Merge pull request #168022 from 06kellyjac/witness

witness: 0.1.6 -> 0.1.7
This commit is contained in:
Fabian Affolter 2022-04-09 22:52:48 +02:00 committed by GitHub
commit 82896e1b7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,16 +2,15 @@
buildGoModule rec {
pname = "witness";
version = "0.1.6";
version = "0.1.7";
src = fetchFromGitHub {
owner = "testifysec";
repo = pname;
rev = "v${version}";
sha256 = "sha256-/35hIA6Wm/F5hwyLZbt4JXpwWISWbzVAWrX29r6pejY=";
sha256 = "sha256-fkY3/UmHzggmysrae8VCY3NMBxC/LcWoQcXBELEzJlM=";
};
vendorSha256 = "sha256-vXDsHHJknw9hsHx1mJA2c0CWwFbRXjCjitNWPh6V4yw=";
vendorSha256 = "sha256-ajWIjQXLvFQB1AVYyGjyWMrWIyue/d1uU5HHNf4/UcU=";
nativeBuildInputs = [ installShellFiles ];
@ -38,6 +37,14 @@ buildGoModule rec {
--zsh <($out/bin/witness completion zsh)
'';
doInstallCheck = true;
installCheckPhase = ''
runHook preInstallCheck
$out/bin/witness --help
$out/bin/witness version | grep "v${version}"
runHook postInstallCheck
'';
meta = with lib; {
description = "A 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";
longDescription = ''