goss: buildFlagsArray -> ldflags

This commit is contained in:
zowoq 2021-08-21 18:23:49 +10:00
parent 8f311a36b0
commit 7a3be5761a

View file

@ -14,9 +14,9 @@ buildGoModule rec {
vendorSha256 = "1lyqjkwj8hybj5swyrv6357hs8sxmf4wim0c8yhfb9mv7fsxhrv7"; vendorSha256 = "1lyqjkwj8hybj5swyrv6357hs8sxmf4wim0c8yhfb9mv7fsxhrv7";
CGO_ENABLED = 0; CGO_ENABLED = 0;
preBuild = '' ldflags = [
buildFlagsArray+=("-ldflags" "-s -w -X main.version=v${version}") "-s" "-w" "-X main.version=v${version}"
''; ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/aelsabbahy/goss/"; homepage = "https://github.com/aelsabbahy/goss/";