From cc2f8db65043621535151ad1b438cde0d0831083 Mon Sep 17 00:00:00 2001 From: A-Walrus Date: Tue, 21 Mar 2023 16:37:03 +0200 Subject: [PATCH] Fix rust-analyzer in nix flake Added "rust-src" component which is necessary for rust-analyzer in nix flake. PS: Sorry for all the nix PRs, I think this is the last one... --- nix/flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/flake.nix b/nix/flake.nix index 8b3f94924..f0511f9fa 100644 --- a/nix/flake.nix +++ b/nix/flake.nix @@ -25,7 +25,7 @@ let toolchainToml = (builtins.fromTOML (builtins.readFile ../rust-toolchain.toml)).toolchain; in { channel = toolchainToml.channel; - components = toolchainToml.components ++ [ "rust-analyzer" ]; + components = toolchainToml.components ++ [ "rust-analyzer" "rust-src" ]; } ); craneLib = (crane.mkLib pkgs).overrideToolchain rustToolchain;