diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-25 22:28:54 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-25 22:28:54 +0300 |
| commit | c7b3d8abcc3449853dd699f41b8ebbdaabfc3530 (patch) | |
| tree | e7dbe0bb1714ee994ae4a567ee82e2ee81c7718f /flake.nix | |
| parent | f67803f4caf6714a6b89d796d04d4ca998ca9a3f (diff) | |
fix(nix): add rust-analyzer to development shell
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 { |
