trivy: buildFlagsArray -> ldflags

This commit is contained in:
zowoq 2021-08-21 18:23:49 +10:00
parent 6c6db42378
commit aea56b0189

View file

@ -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 = ''