From 4200c9c87985be29a7207b806d550c5eee7cf8bd Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Mon, 28 May 2018 23:55:39 +0200 Subject: [PATCH] gdk-pixbuf: fix binary @rpath reference on darwin --- pkgs/development/libraries/gdk-pixbuf/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/libraries/gdk-pixbuf/default.nix b/pkgs/development/libraries/gdk-pixbuf/default.nix index d14e625d4365..f9acc721cc39 100644 --- a/pkgs/development/libraries/gdk-pixbuf/default.nix +++ b/pkgs/development/libraries/gdk-pixbuf/default.nix @@ -82,6 +82,11 @@ stdenv.mkDerivation rec { $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). inherit doCheck;