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 000000000000..08cc12967d1e --- /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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 184ed582f1c6..b104897a0f1b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14613,6 +14613,7 @@ with pkgs; }; cargo-kcov = callPackage ../development/tools/rust/cargo-kcov { }; cargo-graph = callPackage ../development/tools/rust/cargo-graph { }; + cargo-hack = callPackage ../development/tools/rust/cargo-hack { }; cargo-license = callPackage ../development/tools/rust/cargo-license { }; cargo-llvm-lines = callPackage ../development/tools/rust/cargo-llvm-lines { }; cargo-outdated = callPackage ../development/tools/rust/cargo-outdated {