cosign: 1.4.1 -> 1.5.0

https://github.com/sigstore/cosign/releases/tag/v1.5.0
This commit is contained in:
Thomas Gerbet 2022-01-25 12:40:16 +01:00 committed by zowoq
parent 075b606ef9
commit d33a77c056

View File

@ -2,13 +2,13 @@
buildGoModule rec {
pname = "cosign";
version = "1.4.1";
version = "1.5.0";
src = fetchFromGitHub {
owner = "sigstore";
repo = pname;
rev = "v${version}";
sha256 = "sha256-WjYW9Fo27wE1pg/BqYsdHd8jwd8jG5bk37HmU1DqnyE=";
sha256 = "sha256-mxDLF9DQKySDR1c7jD/D0/xI+/R8a/ZlukliT/R4wCg=";
};
buildInputs = lib.optional (stdenv.isLinux && pivKeySupport) (lib.getDev pcsclite)
@ -16,7 +16,7 @@ buildGoModule rec {
nativeBuildInputs = [ pkg-config installShellFiles ];
vendorSha256 = "sha256-6T98zu55BQ26e43a1i68rhebaLwY/iFM8CRqRcv2QwI=";
vendorSha256 = "sha256-xqwwvVGXWFFKKBtH4a/+akFSlZ2hCOC1v1sO0d2p9fs=";
excludedPackages = "\\(sample\\|webhook\\|help\\)";
@ -24,6 +24,10 @@ buildGoModule rec {
ldflags = [ "-s" "-w" "-X github.com/sigstore/cosign/pkg/version.GitVersion=v${version}" ];
postPatch = ''
rm pkg/cosign/tuf/client_test.go # Require network access
'';
postInstall = ''
installShellCompletion --cmd cosign \
--bash <($out/bin/cosign completion bash) \