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,
|
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}";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue