nix: use nightly rustfmt; fix environment passthru

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I8206f2730367f04beb908c27c552704c6a6a6964
This commit is contained in:
raf 2025-11-14 21:45:23 +03:00
commit b0a9a9ba5b
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

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