From dfad5d3fedb5755a96b628abb8603eab70fe7604 Mon Sep 17 00:00:00 2001 From: Ruben Maher Date: Wed, 17 May 2017 10:26:35 +0930 Subject: [PATCH] sift: fix build for darwin --- pkgs/tools/text/sift/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/text/sift/default.nix b/pkgs/tools/text/sift/default.nix index 42a2ab852e1d..c6f7284d01ef 100644 --- a/pkgs/tools/text/sift/default.nix +++ b/pkgs/tools/text/sift/default.nix @@ -16,11 +16,15 @@ buildGoPackage rec { goDeps = ./deps.nix; + postInstall = lib.optionalString stdenv.isDarwin '' + install_name_tool -delete_rpath $out/lib -add_rpath $bin $bin/bin/sift + ''; + meta = with lib; { description = "sift is a fast and powerful alternative to grep"; homepage = "https://sift-tool.org"; maintainers = [ maintainers.carlsverre ]; license = licenses.gpl3; - platforms = platforms.linux; + platforms = platforms.all; }; }