mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 10:53:11 +00:00
trivy: buildFlagsArray -> ldflags
This commit is contained in:
parent
6c6db42378
commit
aea56b0189
@ -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 New Issue
Block a user