36 lines
516 B
Nix
36 lines
516 B
Nix
{
|
|
pkgs ? import <nixpkgs> { },
|
|
...
|
|
}:
|
|
let
|
|
rust-toolchain = pkgs.symlinkJoin {
|
|
name = "rust-toolchain";
|
|
paths = with pkgs; [
|
|
rustc
|
|
cargo
|
|
rustPlatform.rustcSrc
|
|
rustfmt
|
|
clippy
|
|
];
|
|
};
|
|
in
|
|
pkgs.mkShell {
|
|
nativeBuildInputs = with pkgs.buildPackages; [
|
|
rust-toolchain
|
|
|
|
pkg-config
|
|
xe
|
|
lzma
|
|
cargo-tarpaulin
|
|
gnumake
|
|
iconv
|
|
|
|
typescript
|
|
nodejs
|
|
|
|
dotnet-sdk_8
|
|
];
|
|
|
|
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
|
|
}
|