about summary refs log tree commit diff
path: root/pkgs/applications/graphics/ImageMagick
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2013-09-15 18:13:26 +0200
committerVladimír Čunát <vcunat@gmail.com>2013-09-15 18:27:08 +0200
commit6b2379f43fe74d27fc20a61af73b436f2bf8a562 (patch)
treef2f69c9d38123b909f35eaede74b08c4380d6f9c /pkgs/applications/graphics/ImageMagick
parente5e3d47a68996c33fe7a56a20870d56b93efa6c4 (diff)
downloadnixlib-6b2379f43fe74d27fc20a61af73b436f2bf8a562.tar
nixlib-6b2379f43fe74d27fc20a61af73b436f2bf8a562.tar.gz
nixlib-6b2379f43fe74d27fc20a61af73b436f2bf8a562.tar.bz2
nixlib-6b2379f43fe74d27fc20a61af73b436f2bf8a562.tar.lz
nixlib-6b2379f43fe74d27fc20a61af73b436f2bf8a562.tar.xz
nixlib-6b2379f43fe74d27fc20a61af73b436f2bf8a562.tar.zst
nixlib-6b2379f43fe74d27fc20a61af73b436f2bf8a562.zip
imagemagick: add link for $out/include/ImageMagick
For transition. Fixes calibre build, at least.
Diffstat (limited to 'pkgs/applications/graphics/ImageMagick')
-rw-r--r--pkgs/applications/graphics/ImageMagick/default.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/applications/graphics/ImageMagick/default.nix b/pkgs/applications/graphics/ImageMagick/default.nix
index a5d8b22c7844..1c3bff2e36d7 100644
--- a/pkgs/applications/graphics/ImageMagick/default.nix
+++ b/pkgs/applications/graphics/ImageMagick/default.nix
@@ -27,6 +27,11 @@ stdenv.mkDerivation rec {
     sha256 = "1bpj8676mph5cvyjsdgf27i6yg2iw9iskk5c69mvpxkyawgjw1vg";
   };
 
+  preConfigure = if tetex != null then
+    ''
+      export DVIDecodeDelegate=${tetex}/bin/dvips
+    '' else "";
+
   configureFlags = "" + stdenv.lib.optionalString (ghostscript != null && stdenv.system != "x86_64-darwin") ''
     --with-gs-font-dir=${ghostscript}/share/ghostscript/fonts
     --with-gslib
@@ -41,10 +46,7 @@ stdenv.mkDerivation rec {
 
   buildInputs = [ tetex graphviz ];
 
-  preConfigure = if tetex != null then
-    ''
-      export DVIDecodeDelegate=${tetex}/bin/dvips
-    '' else "";
+  postInstall = ''(cd "$out/include" && ln -s ImageMagick* ImageMagick)'';
 
   meta = {
     homepage = http://www.imagemagick.org/;