gdk-pixbuf: fix binary @rpath reference on darwin

This commit is contained in:
Daiderd Jordan 2018-05-28 23:55:39 +02:00
parent 25be6fdb0e
commit 4200c9c879
No known key found for this signature in database
GPG Key ID: D02435D05B810C96

View File

@ -82,6 +82,11 @@ stdenv.mkDerivation rec {
$dev/bin/gdk-pixbuf-query-loaders --update-cache $dev/bin/gdk-pixbuf-query-loaders --update-cache
''; '';
# The fixDarwinDylibNames hook doesn't patch binaries.
preFixup = stdenv.lib.optionalString stdenv.isDarwin ''
install_name_tool -change "@rpath/libgdk_pixbuf-2.0.0.dylib" "$out/lib/libgdk_pixbuf-2.0.0.dylib" $out/bin/gdk-pixbuf-thumbnailer
'';
# The tests take an excessive amount of time (> 1.5 hours) and memory (> 6 GB). # The tests take an excessive amount of time (> 1.5 hours) and memory (> 6 GB).
inherit doCheck; inherit doCheck;