1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 07:31:20 +00:00

cosign: buildFlagsArray -> tags

This commit is contained in:
zowoq 2021-08-07 12:28:41 +10:00
parent bdae2bcc6a
commit 925b2e4b8a

View file

@ -21,9 +21,8 @@ buildGoModule rec {
excludedPackages = "\\(copasetic\\)";
preBuild = ''
buildFlagsArray+=(${lib.optionalString pivKeySupport "-tags=pivkey"})
'';
tags = lib.optionals pivKeySupport [ "pivkey" ];
ldflags = [ "-s" "-w" "-X github.com/sigstore/cosign/cmd/cosign/cli.gitVersion=v${version}" ];
meta = with lib; {