Merge pull request #10756 from sjourdois/ssdeep
ssdeep: only run patchelf on linux
This commit is contained in:
commit
0d2f8cfd47
|
@ -9,9 +9,11 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "1igqy0j7jrklb8fdlrm6ald4cyl1fda5ipfl8crzyl6bax2ajk3f";
|
sha256 = "1igqy0j7jrklb8fdlrm6ald4cyl1fda5ipfl8crzyl6bax2ajk3f";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
buildInputs = stdenv.lib.optional (!stdenv.isDarwin) [ patchelf ];
|
||||||
|
|
||||||
# For some reason (probably a build system bug), the binary isn't
|
# For some reason (probably a build system bug), the binary isn't
|
||||||
# properly linked to $out/lib to find libfuzzy.so
|
# properly linked to $out/lib to find libfuzzy.so
|
||||||
postFixup = ''
|
postFixup = stdenv.lib.optionalString (!stdenv.isDarwin) ''
|
||||||
rp=$(patchelf --print-rpath $out/bin/ssdeep)
|
rp=$(patchelf --print-rpath $out/bin/ssdeep)
|
||||||
patchelf --set-rpath $rp:$out/lib $out/bin/ssdeep
|
patchelf --set-rpath $rp:$out/lib $out/bin/ssdeep
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in New Issue