Unverified Commit 9b88d059 authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

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.
parent 7834248d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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"