From 1b6cd5860eae7b358cea9215b3760e5a9aa23600 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sun, 22 Nov 2020 13:58:34 +0000 Subject: shells/rust.nix: init --- shells/rust.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 shells/rust.nix (limited to 'shells/rust.nix') 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"; +} -- cgit 1.4.1