about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/rust/cargo-hack/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/tools/rust/cargo-hack/default.nix')
-rw-r--r--nixpkgs/pkgs/development/tools/rust/cargo-hack/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/tools/rust/cargo-hack/default.nix b/nixpkgs/pkgs/development/tools/rust/cargo-hack/default.nix
new file mode 100644
index 000000000000..6c34f3a59054
--- /dev/null
+++ b/nixpkgs/pkgs/development/tools/rust/cargo-hack/default.nix
@@ -0,0 +1,24 @@
+{ lib, rustPlatform, fetchCrate }:
+
+rustPlatform.buildRustPackage rec {
+  pname = "cargo-hack";
+  version = "0.6.7";
+
+  src = fetchCrate {
+    inherit pname version;
+    sha256 = "sha256-uS0QDRSitwCGlo36OvtpjJ6ejKetjYEAuNEZpGiplQs=";
+  };
+
+  cargoSha256 = "sha256-Tro0Yp91P9CB/Md6MqbZGkw03QKUe8gh80357mWKMMY=";
+
+  # 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";
+    homepage = "https://github.com/taiki-e/cargo-hack";
+    changelog = "https://github.com/taiki-e/cargo-hack/blob/v${version}/CHANGELOG.md";
+    license = with licenses; [ asl20 /* or */ mit ];
+    maintainers = with maintainers; [ figsoda ];
+  };
+}