Make RustRover work with Rust from Nixpkgs
1let
2 pkgs = import <nixpkgs> { };
3 fenix = import <fenix> { inherit pkgs; };
4
5 inherit (fenix.stable) toolchain;
6 mkShellRR = pkgs.callPackage ../. {
7 withNonRustupSysroot = false;
8
9 rustc = toolchain;
10 cargo = toolchain;
11
12 projectRoot = toString ./.;
13 };
14in
15mkShellRR {
16 packages = [ pkgs.taplo ];
17
18 shellHook = ''
19 echo "Welcome to the RustRover Fenix Shell!"
20 echo "Add .idea/rust-toolchain/bin to RustRover to use this toolchain"
21 '';
22}