summary refs log tree commit diff
path: root/pkgs/development/libraries/gdk-pixbuf/default.nix
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2018-05-28 23:55:39 +0200
committerDaiderd Jordan <daiderd@gmail.com>2018-05-28 23:56:23 +0200
commit4200c9c87985be29a7207b806d550c5eee7cf8bd (patch)
treebe3d8901e07c9eed135772fc53b09bc53080a360 /pkgs/development/libraries/gdk-pixbuf/default.nix
parent25be6fdb0e4b1bf416a2c00f012710739d68400b (diff)
downloadnixpkgs-4200c9c87985be29a7207b806d550c5eee7cf8bd.tar
nixpkgs-4200c9c87985be29a7207b806d550c5eee7cf8bd.tar.gz
nixpkgs-4200c9c87985be29a7207b806d550c5eee7cf8bd.tar.bz2
nixpkgs-4200c9c87985be29a7207b806d550c5eee7cf8bd.tar.lz
nixpkgs-4200c9c87985be29a7207b806d550c5eee7cf8bd.tar.xz
nixpkgs-4200c9c87985be29a7207b806d550c5eee7cf8bd.tar.zst
nixpkgs-4200c9c87985be29a7207b806d550c5eee7cf8bd.zip
gdk-pixbuf: fix binary @rpath reference on darwin
Diffstat (limited to 'pkgs/development/libraries/gdk-pixbuf/default.nix')
-rw-r--r--pkgs/development/libraries/gdk-pixbuf/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/libraries/gdk-pixbuf/default.nix b/pkgs/development/libraries/gdk-pixbuf/default.nix
index d14e625d436..f9acc721cc3 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;