From bbbe9c2ceadd1e66024d3baab8068c8d26fda2f6 Mon Sep 17 00:00:00 2001 From: V Date: Tue, 9 Apr 2024 08:40:40 +0200 Subject: [PATCH] Add rust-src to Nix development shell rust-analyzer can't find the standard library source code otherwise. --- nix/flake.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nix/flake.nix b/nix/flake.nix index 812b34f9c..b7a23921d 100644 --- a/nix/flake.nix +++ b/nix/flake.nix @@ -162,8 +162,12 @@ buildInputs = buildInputs ++ (with pkgs.rust-bin; [ - stable.latest.minimal - stable.latest.clippy + (stable.latest.minimal.override { + extensions = [ + "clippy" + "rust-src" + ]; + }) nightly.latest.rustfmt nightly.latest.rust-analyzer