Files
nix-flake/modules/dev-shells/rust.nix
T

17 lines
338 B
Nix

{ inputs, self, ... }: {
perSystem = { pkgs, ... }: {
devShells.rust = with pkgs; mkShell {
name = "rust-dev-shell";
strictDeps = true;
nativeBuildInputs = [
rustc
cargo
pkg-config
rustPlatform.bindgenHook
];
RUST_SRC_PATH = "${rustPlatform.rustLibSrc}";
};
};
}