about summary refs log tree commit diff
path: root/pkgs/applications/graphics/ImageMagick
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2008-05-16 11:05:37 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2008-05-16 11:05:37 +0000
commit4bbd9bab29b1bdca4aa087bbd541d6629c1515a1 (patch)
tree85f617ddef501101a57c3a718f5d1cf576a46062 /pkgs/applications/graphics/ImageMagick
parent86b0350dba906de35c4944264875a2ff32ede318 (diff)
downloadnixlib-4bbd9bab29b1bdca4aa087bbd541d6629c1515a1.tar
nixlib-4bbd9bab29b1bdca4aa087bbd541d6629c1515a1.tar.gz
nixlib-4bbd9bab29b1bdca4aa087bbd541d6629c1515a1.tar.bz2
nixlib-4bbd9bab29b1bdca4aa087bbd541d6629c1515a1.tar.lz
nixlib-4bbd9bab29b1bdca4aa087bbd541d6629c1515a1.tar.xz
nixlib-4bbd9bab29b1bdca4aa087bbd541d6629c1515a1.tar.zst
nixlib-4bbd9bab29b1bdca4aa087bbd541d6629c1515a1.zip
* ImageMagick: code cleanup and added another source URL
  (ftp.imagemagick.org seems to be down now).

svn path=/nixpkgs/trunk/; revision=11835
Diffstat (limited to 'pkgs/applications/graphics/ImageMagick')
-rw-r--r--pkgs/applications/graphics/ImageMagick/6.3.9-0.nix36
1 files changed, 23 insertions, 13 deletions
diff --git a/pkgs/applications/graphics/ImageMagick/6.3.9-0.nix b/pkgs/applications/graphics/ImageMagick/6.3.9-0.nix
index 17632f3c46ac..ad7899b33c49 100644
--- a/pkgs/applications/graphics/ImageMagick/6.3.9-0.nix
+++ b/pkgs/applications/graphics/ImageMagick/6.3.9-0.nix
@@ -1,26 +1,36 @@
 args: with args;
+
 stdenv.mkDerivation (rec {
   name = "ImageMagick-${version}";
 
   src = fetchurl {
-    url = "ftp://ftp.imagemagick.org/pub/ImageMagick/${name}.tar.bz2";
+    urls = [
+      "ftp://ftp.imagemagick.org/pub/ImageMagick/${name}.tar.bz2"
+      "http://ftp.surfnet.nl/pub/ImageMagick/${name}.tar.bz2"
+    ];
     sha256 = "0ynn8gxixjb16xhg60hp2sbfymh03y5qxxgffwlchciiylw9dlvd";
   };
 
-  configureFlags = " --with-dots --with-gs-font-dir="+ ghostscript +
-		"/share/ghostscript/fonts --with-gslib " +(
-		if args ? tetex then " --with-frozenpaths " else ""
-		);
+  configureFlags = ''
+    --with-dots
+    --with-gs-font-dir=${ghostscript}/share/ghostscript/fonts
+    --with-gslib
+    ${if args ? tetex then "--with-frozenpaths" else ""}
+  '';
+
+  buildInputs =
+    [ bzip2 freetype ghostscript graphviz libjpeg libpng
+      libtiff libX11 libxml2 zlib libtool
+    ]
+    ++ stdenv.lib.optional (args ? tetex) args.tetex
+    ++ stdenv.lib.optional (args ? librsvg) args.librsvg;
 
-  buildInputs = [bzip2 freetype ghostscript graphviz libjpeg libpng 
-		libtiff libX11 libxml2 zlib libtool] ++ (if args ? tetex then [args.tetex] else [])
-		 ++ (if args ? librsvg then [args.librsvg] else []);
+  preConfigure = if args ? tetex then
+    ''
+      export DVIDecodeDelegate=${args.tetex}/bin/dvips
+    '' else "";
 
   meta = {
     homepage = http://www.imagemagick.org;
   };
-} // (if args ? tetex then {
-	preConfigure = "
-		export DVIDecodeDelegate=${args.tetex}/bin/dvips
-	";
-} else {}))
+})