From 480a4069f1a856558028fc59ed540ab94513d806 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Jourdois?= Date: Wed, 28 Oct 2015 18:53:03 +0100 Subject: [PATCH] ssdeep: only run patchelf on linux --- pkgs/tools/security/ssdeep/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/security/ssdeep/default.nix b/pkgs/tools/security/ssdeep/default.nix index a17fc36b013..4f2cf551816 100644 --- a/pkgs/tools/security/ssdeep/default.nix +++ b/pkgs/tools/security/ssdeep/default.nix @@ -9,9 +9,11 @@ stdenv.mkDerivation rec { sha256 = "1igqy0j7jrklb8fdlrm6ald4cyl1fda5ipfl8crzyl6bax2ajk3f"; }; + buildInputs = stdenv.lib.optional (!stdenv.isDarwin) [ patchelf ]; + # For some reason (probably a build system bug), the binary isn't # properly linked to $out/lib to find libfuzzy.so - postFixup = '' + postFixup = stdenv.lib.optionalString (!stdenv.isDarwin) '' rp=$(patchelf --print-rpath $out/bin/ssdeep) patchelf --set-rpath $rp:$out/lib $out/bin/ssdeep '';