mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
ssdeep: only run patchelf on linux
This commit is contained in:
parent
a9254356d1
commit
480a4069f1
@ -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 New Issue
Block a user