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