From 356385cbd2a5562fd8b84afbc24cc2375f9ecb6e Mon Sep 17 00:00:00 2001 From: George Thomas Date: Mon, 13 Apr 2026 18:48:17 +0100 Subject: [PATCH] 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. --- flake.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 9cd5f34..b8e1b5c 100644 --- a/flake.nix +++ b/flake.nix @@ -19,7 +19,7 @@ pkgs = (import inputs.nixpkgs { inherit system; }).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 ]; }; });