From 81b4248d8d56863a0054ab19ea02a15e3a41d720 Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Sat, 29 Mar 2014 19:28:39 -0500 Subject: [PATCH] ssdeep: Fix darwin build Signed-off-by: Austin Seipp --- pkgs/tools/security/ssdeep/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/security/ssdeep/default.nix b/pkgs/tools/security/ssdeep/default.nix index c59e50f4ae4..c5c47441704 100644 --- a/pkgs/tools/security/ssdeep/default.nix +++ b/pkgs/tools/security/ssdeep/default.nix @@ -9,7 +9,7 @@ stdenv.mkDerivation rec { sha256 = "1p7dgchq8hgadnxz5qh95ay17k5j74l4qyd15wspc54lb603p2av"; }; - postFixup = '' + postFixup = stdenv.lib.optionalString stdenv.isLinux '' patchelf --set-rpath "$(patchelf --print-rpath $out/bin/ssdeep):$out/lib" $out/bin/ssdeep ''; @@ -17,7 +17,7 @@ stdenv.mkDerivation rec { description = "A program for calculating fuzzy hashes"; homepage = "http://www.ssdeep.sf.net"; license = stdenv.lib.licenses.gpl2; - platforms = stdenv.lib.platforms.linux; + platforms = stdenv.lib.platforms.unix; maintainers = [ stdenv.lib.maintainers.thoughtpolice ]; }; }