about summary refs log tree commit diff
path: root/pkgs/development/tools/rust/cargo-raze
diff options
context:
space:
mode:
authorAaron Bull Schaefer <aaron@elasticdog.com>2019-03-07 22:26:06 -0800
committerAaron Bull Schaefer <aaron@elasticdog.com>2019-07-19 15:34:43 -0700
commit1f3a6719d988996792eb59c96dd3c4031bed8838 (patch)
tree15b43df2b3c718cf416dca00ca03d26a0efcc73b /pkgs/development/tools/rust/cargo-raze
parent4c8eaa3d2ed7d32c19d31116f94de0eda5e35654 (diff)
downloadnixlib-1f3a6719d988996792eb59c96dd3c4031bed8838.tar
nixlib-1f3a6719d988996792eb59c96dd3c4031bed8838.tar.gz
nixlib-1f3a6719d988996792eb59c96dd3c4031bed8838.tar.bz2
nixlib-1f3a6719d988996792eb59c96dd3c4031bed8838.tar.lz
nixlib-1f3a6719d988996792eb59c96dd3c4031bed8838.tar.xz
nixlib-1f3a6719d988996792eb59c96dd3c4031bed8838.tar.zst
nixlib-1f3a6719d988996792eb59c96dd3c4031bed8838.zip
cargo-raze: init at 0.2.8
Diffstat (limited to 'pkgs/development/tools/rust/cargo-raze')
-rw-r--r--pkgs/development/tools/rust/cargo-raze/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/tools/rust/cargo-raze/default.nix b/pkgs/development/tools/rust/cargo-raze/default.nix
new file mode 100644
index 000000000000..1c4e176966dd
--- /dev/null
+++ b/pkgs/development/tools/rust/cargo-raze/default.nix
@@ -0,0 +1,31 @@
+{ stdenv, fetchFromGitHub, rustPlatform
+, pkgconfig, curl, libgit2, openssl, Security }:
+
+rustPlatform.buildRustPackage rec {
+  pname = "cargo-raze";
+  version = "0.2.8";
+
+  src = fetchFromGitHub {
+    owner = "google";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "0d87azip59bmkk38par23f5yvb9w8ikvdg6grn689zpgc3di2phx";
+  };
+  sourceRoot = "source/impl";
+
+  cargoSha256 = "06rl7v0f1lgj9ii07fcnaxmhn28ckr03cpf5b93q8ripm5qh7my9";
+
+  nativeBuildInputs = [ pkgconfig ];
+  buildInputs = [ curl libgit2 openssl ]
+    ++ stdenv.lib.optional stdenv.isDarwin Security;
+
+  doCheck = true;
+
+  meta = with stdenv.lib; {
+    description = "Generate Bazel BUILD files from Cargo dependencies";
+    homepage = https://github.com/google/cargo-raze;
+    license = licenses.asl20;
+    maintainers = with maintainers; [ elasticdog ];
+    platforms = platforms.all;
+  };
+}