mirror of
https://github.com/astro/deadnix.git
synced 2024-11-24 09:12:50 +03:00
flake.nix: add rust-analyzer to devShell
allows using lsp
This commit is contained in:
parent
23e503b3f1
commit
d03d5df1f8
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user