15 src = fetchFromGitHub {
19 sha256 = "sha256-ao9mxN5cMGopCRXUkJRTNJemizzibdw0Q+oAhKjUyHA=";
21 vendorHash = "sha256-pDMvtSavifWfxJqfiOef0CyT8KtU8BUjEFwReElkEeM=";
23 nativeBuildInputs = [ installShellFiles ];
25 # We only want the witness binary, not the helper utilities for generating docs.
26 subPackages = [ "." ];
31 "-X github.com/in-toto/witness/cmd.Version=v${version}"
34 # Feed in all tests for testing
35 # This is because subPackages above limits what is built to just what we
36 # want but also limits the tests
42 installShellCompletion --cmd witness \
43 --bash <($out/bin/witness completion bash) \
44 --fish <($out/bin/witness completion fish) \
45 --zsh <($out/bin/witness completion zsh)
48 passthru.tests.version = testers.testVersion {
50 command = "witness version";
51 version = "v${version}";
55 description = "Pluggable framework for software supply chain security. Witness prevents tampering of build materials and verifies the integrity of the build process from source to target";
57 Witness prevents tampering of build materials and verifies the integrity
58 of the build process from source to target. It works by wrapping commands
59 executed in a continuous integration process. Its attestation system is
60 pluggable and offers support out of the box for most major CI and
61 infrastructure providers. Verification of Witness metadata and a secure
62 PKI distribution system will mitigate against many software supply chain
63 attack vectors and can be used as a framework for automated governance.
65 mainProgram = "witness";
66 homepage = "https://github.com/testifysec/witness";
67 changelog = "https://github.com/testifysec/witness/releases/tag/v${version}";
68 license = licenses.asl20;
69 maintainers = with maintainers; [ fkautz jk ];