From 5b37b69c5b0520486f0c0729b2b761bf533ff0c1 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 e0a2985..2797b05 100644 --- a/flake.nix +++ b/flake.nix @@ -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 ]; }; });