3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #10756 from sjourdois/ssdeep

ssdeep: only run patchelf on linux
This commit is contained in:
Domen Kožar 2015-10-31 22:10:27 +01:00
commit 0d2f8cfd47

View file

@ -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
'';