diff options
author | zowoq <59103226+zowoq@users.noreply.github.com> | 2021-08-07 12:28:41 +1000 |
---|---|---|
committer | zowoq <59103226+zowoq@users.noreply.github.com> | 2021-08-07 12:30:19 +1000 |
commit | 925b2e4b8a84f90ce4053529a5addf953c587b5f (patch) | |
tree | e41a6707512d9ba2578b1e3020df929608059175 /pkgs/tools/security/cosign | |
parent | bdae2bcc6a8c3635ed18e937305cbf1d1b31c341 (diff) |
cosign: buildFlagsArray -> tags
Diffstat (limited to 'pkgs/tools/security/cosign')
-rw-r--r-- | pkgs/tools/security/cosign/default.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pkgs/tools/security/cosign/default.nix b/pkgs/tools/security/cosign/default.nix index 344c74d573c32..f5f60f3da2a71 100644 --- a/pkgs/tools/security/cosign/default.nix +++ b/pkgs/tools/security/cosign/default.nix @@ -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; { |