fix(nix): add rust-analyzer to development shell

This commit is contained in:
Ogulcan Celik 2026-07-25 22:28:54 +03:00
parent f67803f4ca
commit c7b3d8abcc
1 changed files with 9 additions and 1 deletions

View File

@ -31,6 +31,14 @@
overlays = [ rust-overlay.overlays.default ];
};
rustToolchainFor = pkgs: pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
rustDevToolchainFor =
pkgs:
(rustToolchainFor pkgs).override (toolchain: {
extensions = toolchain.extensions ++ [
"rust-src"
"rust-analyzer"
];
});
rustPlatformFor =
pkgs:
let
@ -73,7 +81,7 @@
system:
let
pkgs = pkgsFor system;
rustToolchain = rustToolchainFor pkgs;
rustToolchain = rustDevToolchainFor pkgs;
in
{
default = pkgs.mkShell {