eh/nix/shell.nix
NotAShelf b0a9a9ba5b
nix: use nightly rustfmt; fix environment passthru
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I8206f2730367f04beb908c27c552704c6a6a6964
2025-11-14 21:54:34 +03:00

26 lines
333 B
Nix

{
mkShell,
rustc,
cargo,
rustfmt,
clippy,
taplo,
rust-analyzer-unwrapped,
rustPlatform,
}:
mkShell {
name = "rust";
packages = [
rustc
cargo
(rustfmt.override {asNightly = true;})
clippy
cargo
taplo
rust-analyzer-unwrapped
];
env.RUST_SRC_PATH = "${rustPlatform.rustLibSrc}";
}