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; {