git.iko.soy/typeable/nixpkgs
on master help sign in
consul: fix output cycle on darwin
commitcc7b771fcfd13a78c858e68c78d58029c01fc2a3 authorDaiderd Jordan <daiderd@gmail.com> dateSat 9 Sep 2017, 00:21 (9 years ago) parent25f74ec
1 file changed+4
pkgs/servers/consul/default.nix+4
pkgs/servers/consul/default.nix+4
@@ -21,6 +21,10 @@ buildGoPackage rec {
2121 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=")
2222 '';
2323
24+ preFixup = stdenv.lib.optionalString stdenv.isDarwin ''
25+ install_name_tool -delete_rpath $out/lib $bin/bin/consul
26+ '';
27+
2428 meta = with stdenv.lib; {
2529 description = "Tool for service discovery, monitoring and configuration";
2630 homepage = https://www.consul.io/;