Add rust-analyzer to rust template

This commit is contained in:
Invariantspace 2024-01-13 16:57:25 +08:00
parent 1f2f58c977
commit d1ccdcb3dc

View file

@ -14,6 +14,7 @@
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
fenixPkgs = fenix.packages.${system};
craneLib = crane.lib.${system};
src = craneLib.cleanCargoSource (craneLib.path ./.);
@ -33,7 +34,7 @@
};
craneLibLLvmTools = craneLib.overrideToolchain
(fenix.packages.${system}.complete.withComponents [
(fenixPkgs.complete.withComponents [
"cargo"
"llvm-tools"
"rustc"
@ -115,6 +116,7 @@
# Extra inputs can be added here; cargo and rustc are provided by default.
packages = [
fenixPkgs.rust-analyzer
# pkgs.ripgrep
];
};