summary refs log tree commit diff
path: root/pkgs/development/tools/rust/cargo-hack
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2022-09-18 16:12:31 -0400
committerfigsoda <figsoda@pm.me>2022-09-18 16:12:31 -0400
commitdf1d3be7f488b5114d8a7d4af848fdcf78760d96 (patch)
treecd63de54761964bd97ad1fc410eee8e6b5ca1ca5 /pkgs/development/tools/rust/cargo-hack
parent5a60312b2c03f500a89c529d04658b382b05e58d (diff)
cargo-hack: init at 0.5.18
Diffstat (limited to 'pkgs/development/tools/rust/cargo-hack')
-rw-r--r--pkgs/development/tools/rust/cargo-hack/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/tools/rust/cargo-hack/default.nix b/pkgs/development/tools/rust/cargo-hack/default.nix
new file mode 100644
index 0000000000000..08cc12967d1e5
--- /dev/null
+++ b/pkgs/development/tools/rust/cargo-hack/default.nix
@@ -0,0 +1,24 @@
+{ lib, rustPlatform, fetchCrate }:
+
+rustPlatform.buildRustPackage rec {
+  pname = "cargo-hack";
+  version = "0.5.18";
+
+  src = fetchCrate {
+    inherit pname version;
+    sha256 = "sha256-EtM5nGbsvwWiQGKrakMiToz7Hy6xoE3C6JsD2+JBpaA=";
+  };
+
+  cargoSha256 = "sha256-3O9j9I6iMsgQl1nhXfdI5sNnnt71FBidQh+bqjpuPhc=";
+
+  # some necessary files are absent in the crate version
+  doCheck = false;
+
+  meta = with lib; {
+    description = "Cargo subcommand to provide various options useful for testing and continuous integration";
+    changelog = "https://github.com/taiki-e/cargo-hack/blob/v${version}/CHANGELOG.md";
+    homepage = "https://github.com/taiki-e/cargo-hack";
+    license = with licenses; [ asl20 /* or */ mit ];
+    maintainers = with maintainers; [ figsoda ];
+  };
+}