nix: set RUST_SRC_PATH

Resolves #19
This commit is contained in:
Sridhar Ratnakumar 2023-06-26 14:59:37 -04:00
parent 602aa3e3cd
commit 0adadddb7f

View file

@ -47,8 +47,13 @@
config.mission-control.devShell config.mission-control.devShell
config.flake-root.devShell config.flake-root.devShell
]; ];
shellHook = ''
# For rust-analyzer 'hover' tooltips to work.
export RUST_SRC_PATH=${pkgs.rustPlatform.rustLibSrc}
'';
nativeBuildInputs = [ nativeBuildInputs = [
pkgs.cargo-watch pkgs.cargo-watch
pkgs.rust-analyzer
]; ];
}; };