mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
telegraf: buildFlagsArray -> ldflags
This commit is contained in:
parent
b42bac858d
commit
6c6db42378
1 changed files with 3 additions and 3 deletions
|
@ -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; };
|
||||
|
||||
|
|
Loading…
Reference in a new issue