Merge pull request #24607 from nh2/fix-24606-consul-version-unknown

Fix consul version being "unknown-unknown". Fixes #24606.

authored by Jörg Thalheim and committed by GitHub ffea5e10 3f023c89

+4
+4
pkgs/servers/consul/default.nix
··· 17 17 # Keep consul.ui for backward compatability 18 18 passthru.ui = consul-ui; 19 19 20 + preBuild = '' 21 + 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=") 22 + ''; 23 + 20 24 meta = with stdenv.lib; { 21 25 description = "Tool for service discovery, monitoring and configuration"; 22 26 homepage = "https://www.consul.io/";