mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
Fix consul version being "unknown-unknown". Fixes #24606.
See https://github.com/hashicorp/consul/blob/v0.7.5/scripts/build.sh#L44 for how consul's build script does it.
This commit is contained in:
parent
b65dc619f0
commit
b03013cb32
@ -17,6 +17,10 @@ buildGoPackage rec {
|
|||||||
# Keep consul.ui for backward compatability
|
# Keep consul.ui for backward compatability
|
||||||
passthru.ui = consul-ui;
|
passthru.ui = consul-ui;
|
||||||
|
|
||||||
|
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=")
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Tool for service discovery, monitoring and configuration";
|
description = "Tool for service discovery, monitoring and configuration";
|
||||||
homepage = "https://www.consul.io/";
|
homepage = "https://www.consul.io/";
|
||||||
|
Loading…
Reference in New Issue
Block a user