Get Rust Analyzer from overlay instead of directly from Nixpkgs

Right now, the latter invokes `cargo metadata --lockfile-path`,
which this Cargo nightly doesn't support.
This commit is contained in:
George Thomas 2026-04-13 18:48:17 +01:00
parent 96049682b2
commit 89cbbcb2e8

View File

@ -19,7 +19,7 @@
pkgs = haskell.nixpkgs.extend (import inputs.rust-overlay); pkgs = haskell.nixpkgs.extend (import inputs.rust-overlay);
crane = (inputs.crane.mkLib pkgs).overrideToolchain (p: p.rust-bin.selectLatestNightlyWith ( crane = (inputs.crane.mkLib pkgs).overrideToolchain (p: p.rust-bin.selectLatestNightlyWith (
toolchain: toolchain.default.override { toolchain: toolchain.default.override {
extensions = [ "rust-src" ]; extensions = [ "rust-src" "rust-analyzer" ];
targets = [ "x86_64-unknown-linux-gnu" ]; targets = [ "x86_64-unknown-linux-gnu" ];
} }
)); ));
@ -102,7 +102,6 @@
packages = with pkgs; [ packages = with pkgs; [
bacon bacon
ghcid ghcid
rust-analyzer
]; ];
}; };
}); });