telegraf: buildFlagsArray -> ldflags

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

View file

@ -18,9 +18,9 @@ buildGoModule rec {
vendorSha256 = "sha256-J48ezMi9+PxohDKFhBpbcu6fdojlZPXnQQw2IcyimTA=";
proxyVendor = true;
preBuild = ''
buildFlagsArray+=("-ldflags=-w -s -X main.version=${version}")
'';
ldflags = [
"-w" "-s" "-X main.version=${version}"
];
passthru.tests = { inherit (nixosTests) telegraf; };