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 7c011719aa
commit 5b37b69c5b

View File

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