3
0
Fork 0
forked from mirrors/nixpkgs

ticker: buildFlagsArray -> ldflags

This commit is contained in:
zowoq 2021-08-21 18:23:47 +10:00
parent a1cdf552dc
commit 950b52dec0

View file

@ -16,9 +16,9 @@ buildGoModule rec {
vendorSha256 = "sha256-XBfTVd3X3IDxLCAaNnijf6E5bw+AZ94UdOG9w7BOdBU=";
preBuild = ''
buildFlagsArray+=("-ldflags" "-s -w -X github.com/achannarasappa/ticker/cmd.Version=v${version}")
'';
ldflags = [
"-s" "-w" "-X github.com/achannarasappa/ticker/cmd.Version=v${version}"
];
# Tests require internet
doCheck = false;