Add rust-analyzer to rust template
This commit is contained in:
parent
1f2f58c977
commit
d1ccdcb3dc
1 changed files with 3 additions and 1 deletions
|
|
@ -14,6 +14,7 @@
|
||||||
flake-utils.lib.eachDefaultSystem (system:
|
flake-utils.lib.eachDefaultSystem (system:
|
||||||
let
|
let
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
fenixPkgs = fenix.packages.${system};
|
||||||
craneLib = crane.lib.${system};
|
craneLib = crane.lib.${system};
|
||||||
src = craneLib.cleanCargoSource (craneLib.path ./.);
|
src = craneLib.cleanCargoSource (craneLib.path ./.);
|
||||||
|
|
||||||
|
|
@ -33,7 +34,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
craneLibLLvmTools = craneLib.overrideToolchain
|
craneLibLLvmTools = craneLib.overrideToolchain
|
||||||
(fenix.packages.${system}.complete.withComponents [
|
(fenixPkgs.complete.withComponents [
|
||||||
"cargo"
|
"cargo"
|
||||||
"llvm-tools"
|
"llvm-tools"
|
||||||
"rustc"
|
"rustc"
|
||||||
|
|
@ -115,6 +116,7 @@
|
||||||
|
|
||||||
# Extra inputs can be added here; cargo and rustc are provided by default.
|
# Extra inputs can be added here; cargo and rustc are provided by default.
|
||||||
packages = [
|
packages = [
|
||||||
|
fenixPkgs.rust-analyzer
|
||||||
# pkgs.ripgrep
|
# pkgs.ripgrep
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue