summary refs log tree commit diff
path: root/pkgs/applications/graphics/graphicsmagick/default.nix
diff options
context:
space:
mode:
authorEric Bailey <eric@ericb.me>2017-02-28 14:14:24 -0600
committerEric Bailey <eric@ericb.me>2017-03-01 14:04:11 -0600
commitfff88b814c6bec72aee960e843d14936317a5e09 (patch)
tree25c4526a1f6dd021143fb35a5a44f5ea5ab50b9b /pkgs/applications/graphics/graphicsmagick/default.nix
parent337356448a9ce7f6ca4ba345af76b8625e4eb2c7 (diff)
downloadnixpkgs-fff88b814c6bec72aee960e843d14936317a5e09.tar
nixpkgs-fff88b814c6bec72aee960e843d14936317a5e09.tar.gz
nixpkgs-fff88b814c6bec72aee960e843d14936317a5e09.tar.bz2
nixpkgs-fff88b814c6bec72aee960e843d14936317a5e09.tar.lz
nixpkgs-fff88b814c6bec72aee960e843d14936317a5e09.tar.xz
nixpkgs-fff88b814c6bec72aee960e843d14936317a5e09.tar.zst
nixpkgs-fff88b814c6bec72aee960e843d14936317a5e09.zip
graphicsmagick: fix for darwin
Prior to this change, GraphicsMagick didn't work at all for me on Darwin, due to
dylib linking issues.
Diffstat (limited to 'pkgs/applications/graphics/graphicsmagick/default.nix')
-rw-r--r--pkgs/applications/graphics/graphicsmagick/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/applications/graphics/graphicsmagick/default.nix b/pkgs/applications/graphics/graphicsmagick/default.nix
index 4b75d0ccc6b..f655979c2cc 100644
--- a/pkgs/applications/graphics/graphicsmagick/default.nix
+++ b/pkgs/applications/graphics/graphicsmagick/default.nix
@@ -1,6 +1,6 @@
 { stdenv, fetchurl, fetchpatch, bzip2, freetype, graphviz, ghostscript
 , libjpeg, libpng, libtiff, libxml2, zlib, libtool, xz, libX11
-, libwebp, quantumdepth ? 8 }:
+, libwebp, quantumdepth ? 8, fixDarwinDylibNames }:
 
 let version = "1.3.25"; in
 
@@ -53,7 +53,8 @@ stdenv.mkDerivation {
   buildInputs =
     [ bzip2 freetype ghostscript graphviz libjpeg libpng libtiff libX11 libxml2
       zlib libtool libwebp
-    ];
+    ]
+    ++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
 
   nativeBuildInputs = [ xz ];