Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I6a6a69644236ae18e7b46856fb6d6d6c998f8467
26 lines
329 B
Nix
26 lines
329 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
|
|
];
|
|
|
|
RUST_SRC_PATH = "${rustPlatform.rustLibSrc}";
|
|
}
|