teler: buildFlagsArray -> ldflags

This commit is contained in:
zowoq 2021-08-21 18:23:51 +10:00
parent 4235c6e4f0
commit c2995424bb

View file

@ -16,9 +16,9 @@ buildGoModule rec {
vendorSha256 = "sha256-TQjwPem+RMuoF5T02CL/CTvBS6W7Q786gTvYUFIvxjE="; vendorSha256 = "sha256-TQjwPem+RMuoF5T02CL/CTvBS6W7Q786gTvYUFIvxjE=";
preBuild = '' ldflags = [
buildFlagsArray+=("-ldflags" "-s -w -X ktbs.dev/teler/common.Version=${version}") "-s" "-w" "-X ktbs.dev/teler/common.Version=${version}"
''; ];
# test require internet access # test require internet access
doCheck = false; doCheck = false;