flake.nix: add rust-analyzer to devShell

allows using lsp
This commit is contained in:
Astro 2021-12-10 21:00:03 +01:00
parent 23e503b3f1
commit d03d5df1f8

View File

@ -13,6 +13,7 @@
rust = fenix.packages.${system}.stable.withComponents [
"cargo"
"rustc"
"rust-src" # just for rust-analyzer
"rustfmt"
"clippy"
];
@ -47,8 +48,10 @@
# `nix develop`
devShell = pkgs.mkShell {
nativeBuildInputs = with defaultPackage;
nativeBuildInputs ++ buildInputs;
nativeBuildInputs = [
fenix.packages.${system}.rust-analyzer
] ++
(with defaultPackage; nativeBuildInputs ++ buildInputs);
};
}) // {
overlay = final: prev: {