11 src = fetchFromGitHub {
12 owner = "aquasecurity";
15 sha256 = "sha256-UpUKt6R5Yr/L0n7DFqIO6s8Y8WT5UYDjMO/QmhcsOxE=";
17 vendorSha256 = "sha256-R6V4dE2cNKcsBweSaUWjZHKnUQP/kADAbW2aTQc7TAg=";
19 nativeBuildInputs = [ installShellFiles ];
24 "-X main.version=v${version}"
28 installShellCompletion --cmd chain-bench \
29 --bash <($out/bin/chain-bench completion bash) \
30 --fish <($out/bin/chain-bench completion fish) \
31 --zsh <($out/bin/chain-bench completion zsh)
34 doInstallCheck = true;
35 installCheckPhase = ''
36 runHook preInstallCheck
37 $out/bin/chain-bench --help
38 $out/bin/chain-bench --version | grep "v${version}"
39 runHook postInstallCheck
43 homepage = "https://github.com/aquasecurity/chain-bench";
44 changelog = "https://github.com/aquasecurity/chain-bench/releases/tag/v${version}";
45 description = "An open-source tool for auditing your software supply chain stack for security compliance based on a new CIS Software Supply Chain benchmark";
47 Chain-bench is an open-source tool for auditing your software supply chain
48 stack for security compliance based on a new CIS Software Supply Chain
49 benchmark. The auditing focuses on the entire SDLC process, where it can
50 reveal risks from code time into deploy time. To win the race against
51 hackers and protect your sensitive data and customer trust, you need to
52 ensure your code is compliant with your organization's policies.
54 license = licenses.asl20;
55 maintainers = with maintainers; [ jk ];