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:
parent
8489655548
commit
09138462c8
|
@ -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