diff options
Diffstat (limited to 'shells')
-rw-r--r-- | shells/rust.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/shells/rust.nix b/shells/rust.nix new file mode 100644 index 000000000000..340336b264e3 --- /dev/null +++ b/shells/rust.nix @@ -0,0 +1,16 @@ +{ pkgs ? import ../. {} }: +with pkgs; + +stdenv.mkDerivation { + name = "rust-shell"; + buildInputs = [ + cargo clang clippy cargo-edit llvm pkg-config rust-analyzer rustfmt + ]; + + buildCommand = '' + printf "%s\n" $buildInputs > $out + ''; + + # For bindgen + LIBCLANG_PATH = "${llvmPackages.libclang}/lib"; +} |