shell.nix: Use nixpkgs' rust-analyzer

See issue linked in the comment; this is more stable.
This commit is contained in:
Tristan Daniël Maat 2020-12-09 21:15:07 +00:00
parent ae48e7b4fb
commit 49edaf0ae1
Signed by: tlater
GPG key ID: 49670FD774E43268

View file

@ -8,10 +8,9 @@ with pkgs;
mkShell { mkShell {
buildInputs = [ 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"
'';
} }