diff options
author | Alyssa Ross <hi@alyssa.is> | 2020-11-22 13:58:34 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2020-11-26 13:44:43 +0000 |
commit | 1b6cd5860eae7b358cea9215b3760e5a9aa23600 (patch) | |
tree | 842223000f9d7bbc7f928c03691b7451a6906e05 /shells | |
parent | 834ae454b7e1741306475076bd6e9b0680ae6d24 (diff) | |
download | nixlib-1b6cd5860eae7b358cea9215b3760e5a9aa23600.tar nixlib-1b6cd5860eae7b358cea9215b3760e5a9aa23600.tar.gz nixlib-1b6cd5860eae7b358cea9215b3760e5a9aa23600.tar.bz2 nixlib-1b6cd5860eae7b358cea9215b3760e5a9aa23600.tar.lz nixlib-1b6cd5860eae7b358cea9215b3760e5a9aa23600.tar.xz nixlib-1b6cd5860eae7b358cea9215b3760e5a9aa23600.tar.zst nixlib-1b6cd5860eae7b358cea9215b3760e5a9aa23600.zip |
shells/rust.nix: init
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"; +} |