about summary refs log tree commit diff
path: root/pkgs/development/tools/rust/cargo-release/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/tools/rust/cargo-release/default.nix')
-rw-r--r--pkgs/development/tools/rust/cargo-release/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/tools/rust/cargo-release/default.nix b/pkgs/development/tools/rust/cargo-release/default.nix
new file mode 100644
index 0000000000000..965c94742ec5e
--- /dev/null
+++ b/pkgs/development/tools/rust/cargo-release/default.nix
@@ -0,0 +1,27 @@
+{ lib, stdenv, rustPlatform, fetchFromGitHub, libiconv, Security, openssl, pkg-config }:
+
+rustPlatform.buildRustPackage rec {
+  pname = "cargo-release";
+  version = "0.21.0";
+
+  src = fetchFromGitHub {
+    owner = "crate-ci";
+    repo = "cargo-release";
+    rev = "v${version}";
+    sha256 = "sha256-QTHevbEifYsf/nCmkarbrHgijjlHragLieCpVZBfKGQ=";
+  };
+
+  cargoSha256 = "sha256-hEHEcB42mRn6pO5413wQbEWfJNBbiOSUuy9PGjP5EYw=";
+
+  nativeBuildInputs = [ pkg-config ];
+
+  buildInputs = [ openssl ]
+    ++ lib.optionals stdenv.isDarwin [ libiconv Security ];
+
+  meta = with lib; {
+    description = ''Cargo subcommand "release": everything about releasing a rust crate'';
+    homepage = "https://github.com/sunng87/cargo-release";
+    license = with licenses; [ asl20 /* or */ mit ];
+    maintainers = with maintainers; [ gerschtli ];
+  };
+}