1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

consul: buildFlagsArray -> ldflags

This commit is contained in:
zowoq 2021-08-05 12:32:48 +10:00
parent 8489655548
commit 09138462c8

View file

@ -32,12 +32,11 @@ buildGoModule rec {
deleteVendor = true;
preBuild = ''
buildFlagsArray+=("-ldflags"
"-X github.com/hashicorp/consul/version.GitDescribe=v${version}
-X github.com/hashicorp/consul/version.Version=${version}
-X github.com/hashicorp/consul/version.VersionPrerelease=")
'';
ldflags = [
"-X github.com/hashicorp/consul/version.GitDescribe=v${version}"
"-X github.com/hashicorp/consul/version.Version=${version}"
"-X github.com/hashicorp/consul/version.VersionPrerelease="
];
meta = with lib; {
description = "Tool for service discovery, monitoring and configuration";