mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
Merge pull request #10756 from sjourdois/ssdeep
ssdeep: only run patchelf on linux
This commit is contained in:
commit
0d2f8cfd47
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue