summary refs log tree commit diff
path: root/pkgs/development/libraries/gdk-pixbuf
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2018-05-29 08:46:39 +0200
committerDaiderd Jordan <daiderd@gmail.com>2018-05-29 08:47:19 +0200
commit8baaa433b6775f480fcd25e36dc8b00ed03e0757 (patch)
tree685cfba51711108c2d22707e29335c0d6de9c8cb /pkgs/development/libraries/gdk-pixbuf
parent437b98cf9c53dc4e7624406f636481d111b5a2e6 (diff)
downloadnixpkgs-8baaa433b6775f480fcd25e36dc8b00ed03e0757.tar
nixpkgs-8baaa433b6775f480fcd25e36dc8b00ed03e0757.tar.gz
nixpkgs-8baaa433b6775f480fcd25e36dc8b00ed03e0757.tar.bz2
nixpkgs-8baaa433b6775f480fcd25e36dc8b00ed03e0757.tar.lz
nixpkgs-8baaa433b6775f480fcd25e36dc8b00ed03e0757.tar.xz
nixpkgs-8baaa433b6775f480fcd25e36dc8b00ed03e0757.tar.zst
nixpkgs-8baaa433b6775f480fcd25e36dc8b00ed03e0757.zip
gdk-pixbuf: patch all darwin binaries
Diffstat (limited to 'pkgs/development/libraries/gdk-pixbuf')
-rw-r--r--pkgs/development/libraries/gdk-pixbuf/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/libraries/gdk-pixbuf/default.nix b/pkgs/development/libraries/gdk-pixbuf/default.nix
index d2e3fe5e8ca..6c97b806f20 100644
--- a/pkgs/development/libraries/gdk-pixbuf/default.nix
+++ b/pkgs/development/libraries/gdk-pixbuf/default.nix
@@ -84,8 +84,9 @@ stdenv.mkDerivation rec {
 
   # The fixDarwinDylibNames hook doesn't patch binaries.
   preFixup = stdenv.lib.optionalString stdenv.isDarwin ''
-    install_name_tool -change "@rpath/libgdk_pixbuf-2.0.0.dylib" "$dev/lib/libgdk_pixbuf-2.0.0.dylib" $out/bin/gdk-pixbuf-thumbnailer
-    install_name_tool -change "@rpath/libgdk_pixbuf-2.0.0.dylib" "$out/lib/libgdk_pixbuf-2.0.0.dylib" $dev/bin/gdk-pixbuf-thumbnailer
+    for f in $out/bin/* $dev/bin/*; do
+        install_name_tool -change "@rpath/libgdk_pixbuf-2.0.0.dylib" "$out/lib/libgdk_pixbuf-2.0.0.dylib" $f
+    done
   '';
 
   # The tests take an excessive amount of time (> 1.5 hours) and memory (> 6 GB).