3
0
Fork 0
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:
Jörg Thalheim 2017-04-04 21:30:59 +02:00 committed by GitHub
commit ffea5e10d7

View file

@ -17,6 +17,10 @@ buildGoPackage rec {
# Keep consul.ui for backward compatability
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; {
description = "Tool for service discovery, monitoring and configuration";
homepage = "https://www.consul.io/";