mupdf: fixup build on *-darwin

https://hydra.nixos.org/build/270468296/nixlog/3/tail
Just trying to mitigate the worst.  At least `mutool --help` works.
This commit is contained in:
Vladimír Čunát 2024-08-30 13:28:08 +02:00
parent 7834248d2f
commit 9b88d05935
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -166,7 +166,7 @@ stdenv.mkDerivation rec {
EOF
moveToOutput "bin" "$bin"
cp ./build/shared-release/libmupdf.so* $out/lib
cp ./build/shared-release/libmupdf${stdenv.hostPlatform.extensions.sharedLibrary}* $out/lib
'' + (lib.optionalString (stdenv.isDarwin) ''
for exe in $bin/bin/*; do
install_name_tool -change build/shared-release/libmupdf.dylib $out/lib/libmupdf.dylib "$exe"