mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
consul: buildFlagsArray -> ldflags
This commit is contained in:
parent
8489655548
commit
09138462c8
1 changed files with 5 additions and 6 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue