3
0
Fork 0
forked from mirrors/nixpkgs

consul: fix output cycle on darwin

This commit is contained in:
Daiderd Jordan 2017-09-09 00:21:17 +02:00
parent 25f74ecc8b
commit cc7b771fcf
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -21,6 +21,10 @@ buildGoPackage rec {
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=")
'';
preFixup = stdenv.lib.optionalString stdenv.isDarwin ''
install_name_tool -delete_rpath $out/lib $bin/bin/consul
'';
meta = with stdenv.lib; {
description = "Tool for service discovery, monitoring and configuration";
homepage = https://www.consul.io/;