Skip to content

Commit

Permalink
consul: fix output cycle on darwin
Browse files Browse the repository at this point in the history
(cherry picked from commit cc7b771)
  • Loading branch information
LnL7 committed Sep 8, 2017
1 parent 8210e2a commit f665a37
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/servers/consul/default.nix
Expand Up @@ -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/;
Expand Down

0 comments on commit f665a37

Please sign in to comment.