From 08d195ad4d3c81fadd42abc90ab4b53410de573b 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 8b3f949240..f0511f9fa7 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;