1{
2 lib,
3 rustPlatform,
4 fetchCrate,
5}:
6
7rustPlatform.buildRustPackage rec {
8 pname = "cargo-hack";
9 version = "0.6.37";
10
11 src = fetchCrate {
12 inherit pname version;
13 hash = "sha256-OlWSyp3et/48x5lRE14pIny8HHQcgOV2f9mI9hcj8K4=";
14 };
15
16 cargoHash = "sha256-1FgFHnNCEGoBUbH+Uk67W9ufsGtr9uGdzJz0xZuPQ9U=";
17
18 # some necessary files are absent in the crate version
19 doCheck = false;
20
21 meta = {
22 description = "Cargo subcommand to provide various options useful for testing and continuous integration";
23 mainProgram = "cargo-hack";
24 homepage = "https://github.com/taiki-e/cargo-hack";
25 changelog = "https://github.com/taiki-e/cargo-hack/blob/v${version}/CHANGELOG.md";
26 license = with lib.licenses; [
27 asl20 # or
28 mit
29 ];
30 maintainers = with lib.maintainers; [ figsoda ];
31 };
32}