mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
trivy: buildFlagsArray -> ldflags
This commit is contained in:
parent
6c6db42378
commit
aea56b0189
1 changed files with 3 additions and 3 deletions
|
@ -15,9 +15,9 @@ buildGoModule rec {
|
|||
|
||||
excludedPackages = "misc";
|
||||
|
||||
preBuild = ''
|
||||
buildFlagsArray+=("-ldflags" "-s -w -X main.version=v${version}")
|
||||
'';
|
||||
ldflags = [
|
||||
"-s" "-w" "-X main.version=v${version}"
|
||||
];
|
||||
|
||||
doInstallCheck = true;
|
||||
installCheckPhase = ''
|
||||
|
|
Loading…
Reference in a new issue