shell.nix: Use nixpkgs' rust-analyzer

See issue linked in the comment; this is more stable.
pull/8/head
Tristan Daniël Maat 2020-12-09 21:15:07 +00:00
parent ae48e7b4fb
commit 49edaf0ae1
Signed by: tlater
GPG Key ID: 49670FD774E43268
1 changed files with 4 additions and 5 deletions

View File

@ -8,10 +8,9 @@ with pkgs;
mkShell {
buildInputs = [
rustChannel.rust
rust-analyzer # the one from Mozilla is slightly broken https://github.com/mozilla/nixpkgs-mozilla/issues/238
(pkgs.latest.rustChannels.stable.rust.override {
# extensions = ["rust-src"]; # unneeded because we're using rust-analyzer from nixpkgs
})
];
shellHook = ''
export RUST_SRC_PATH="${rustChannel.rust-src}/lib/rustlib/src/rust/library"
'';
}