nix: use nightly rustfmt; fix environment passthru
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I8206f2730367f04beb908c27c552704c6a6a6964
This commit is contained in:
parent
261e834ec4
commit
b0a9a9ba5b
1 changed files with 10 additions and 6 deletions
|
|
@ -1,22 +1,26 @@
|
|||
{
|
||||
mkShell,
|
||||
rust-analyzer,
|
||||
rustc,
|
||||
cargo,
|
||||
rustfmt,
|
||||
clippy,
|
||||
cargo,
|
||||
taplo,
|
||||
rust-analyzer-unwrapped,
|
||||
rustPlatform,
|
||||
}:
|
||||
mkShell {
|
||||
name = "rust";
|
||||
|
||||
packages = [
|
||||
rust-analyzer
|
||||
rustfmt
|
||||
clippy
|
||||
rustc
|
||||
cargo
|
||||
|
||||
(rustfmt.override {asNightly = true;})
|
||||
clippy
|
||||
cargo
|
||||
taplo
|
||||
rust-analyzer-unwrapped
|
||||
];
|
||||
|
||||
RUST_SRC_PATH = "${rustPlatform.rustLibSrc}";
|
||||
env.RUST_SRC_PATH = "${rustPlatform.rustLibSrc}";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue