forked from mirrors/nixpkgs
Merge pull request #24607 from nh2/fix-24606-consul-version-unknown
Fix consul version being "unknown-unknown". Fixes #24606.
This commit is contained in:
commit
ffea5e10d7
|
@ -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 a new issue