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 e2854bd486
commit 356385cbd2

View File

@ -19,7 +19,7 @@
pkgs = (import inputs.nixpkgs { inherit system; }).extend (import inputs.rust-overlay); pkgs = (import inputs.nixpkgs { inherit system; }).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
]; ];
}; };
}); });