goss: buildFlagsArray -> ldflags
This commit is contained in:
parent
8f311a36b0
commit
7a3be5761a
|
@ -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/";
|
||||||
|
|
Loading…
Reference in a new issue