cosign: 1.2.1 -> 1.3.0

https://github.com/sigstore/cosign/releases/tag/v1.3.0

+15 -9
+15 -9
pkgs/tools/security/cosign/default.nix
··· 1 - { stdenv, lib, buildGoModule, fetchFromGitHub, pcsclite, pkg-config, PCSC, pivKeySupport ? true }: 1 + { stdenv, lib, buildGoModule, fetchFromGitHub, pcsclite, pkg-config, installShellFiles, PCSC, pivKeySupport ? true }: 2 2 3 3 buildGoModule rec { 4 4 pname = "cosign"; 5 - version = "1.2.1"; 5 + version = "1.3.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "sigstore"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-peR/TPydR4O6kGkRUpOgUCJ7xGRLbl9pYB1lAehjVK4="; 11 + sha256 = "sha256-VKlM+bsK2Oj0UB4LF10pHEIJqXv6cAO5rtxnTogpfOk="; 12 12 }; 13 13 14 - buildInputs = 15 - lib.optional (stdenv.isLinux && pivKeySupport) (lib.getDev pcsclite) 14 + buildInputs = lib.optional (stdenv.isLinux && pivKeySupport) (lib.getDev pcsclite) 16 15 ++ lib.optionals (stdenv.isDarwin && pivKeySupport) [ PCSC ]; 17 16 18 - nativeBuildInputs = [ pkg-config ]; 17 + nativeBuildInputs = [ pkg-config installShellFiles ]; 19 18 20 - vendorSha256 = "sha256-DyRMQ43BJOkDtWEqmAzqICyaSyQJ9H4i69VJ4dCGF44="; 19 + vendorSha256 = "sha256-idMvvYeP5rAT6r9RPZ9S8K9KTpVYVq06ZKSBPxWA2ms="; 21 20 22 - excludedPackages = "\\(copasetic\\|sample\\|webhook\\)"; 21 + excludedPackages = "\\(sample\\|webhook\\|help\\)"; 23 22 24 23 tags = lib.optionals pivKeySupport [ "pivkey" ]; 25 24 26 - ldflags = [ "-s" "-w" "-X github.com/sigstore/cosign/cmd/cosign/cli.GitVersion=v${version}" ]; 25 + ldflags = [ "-s" "-w" "-X github.com/sigstore/cosign/cmd/cosign/cli/options.GitVersion=v${version}" ]; 26 + 27 + postInstall = '' 28 + installShellCompletion --cmd cosign \ 29 + --bash <($out/bin/cosign completion bash) \ 30 + --fish <($out/bin/cosign completion fish) \ 31 + --zsh <($out/bin/cosign completion zsh) 32 + ''; 27 33 28 34 meta = with lib; { 29 35 homepage = "https://github.com/sigstore/cosign";