From cc7b771fcfd13a78c858e68c78d58029c01fc2a3 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Sat, 9 Sep 2017 00:21:17 +0200 Subject: [PATCH] consul: fix output cycle on darwin --- pkgs/servers/consul/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/servers/consul/default.nix b/pkgs/servers/consul/default.nix index 86995f440040..ebc2685c122f 100644 --- a/pkgs/servers/consul/default.nix +++ b/pkgs/servers/consul/default.nix @@ -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/;