From eaa0e19a341ec795c3110208c15edd69b1fa08bc Mon Sep 17 00:00:00 2001 From: zimbatm Date: Sun, 24 Sep 2017 17:41:32 +0100 Subject: [PATCH] keybase: add darwin support Fixes the cyclic dependency issue as described in #18131. --- pkgs/tools/security/keybase/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/security/keybase/default.nix b/pkgs/tools/security/keybase/default.nix index 8f19b2577475..229a45b87314 100644 --- a/pkgs/tools/security/keybase/default.nix +++ b/pkgs/tools/security/keybase/default.nix @@ -16,12 +16,16 @@ buildGoPackage rec { sha256 = "0vivc71xfi4y3ydd29b17qxzi10r3a1ppmjjws6vrs0gz58bz1j8"; }; + postInstall = stdenv.lib.optionalString stdenv.isDarwin '' + install_name_tool -delete_rpath $out/lib $bin/bin/keybase + ''; + buildFlags = [ "-tags production" ]; meta = with stdenv.lib; { homepage = https://www.keybase.io/; description = "The Keybase official command-line utility and service."; - platforms = platforms.linux; + platforms = platforms.linux ++ platforms.darwin; maintainers = with maintainers; [ carlsverre np rvolosatovs ]; }; }