diff options
author | Peter Simons <simons@cryp.to> | 2010-04-30 10:49:33 +0000 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2010-04-30 10:49:33 +0000 |
commit | 5139e564fa6f0d3389fd0afe81e3e358a792e105 (patch) | |
tree | 83837fb2a8a607c01ab587d7ec64e260f0c44274 /pkgs/applications/graphics/ImageMagick | |
parent | 376895d34c16c5d67e329b4f115a6002cf62e565 (diff) | |
download | nixlib-5139e564fa6f0d3389fd0afe81e3e358a792e105.tar nixlib-5139e564fa6f0d3389fd0afe81e3e358a792e105.tar.gz nixlib-5139e564fa6f0d3389fd0afe81e3e358a792e105.tar.bz2 nixlib-5139e564fa6f0d3389fd0afe81e3e358a792e105.tar.lz nixlib-5139e564fa6f0d3389fd0afe81e3e358a792e105.tar.xz nixlib-5139e564fa6f0d3389fd0afe81e3e358a792e105.tar.zst nixlib-5139e564fa6f0d3389fd0afe81e3e358a792e105.zip |
pkgs/applications/graphics/ImageMagick: added build input jasper for jpeg-2000 support
While I was at it, I also rewrote the expression to get along without using the deprecated "args: with args;" style. svn path=/nixpkgs/trunk/; revision=21454
Diffstat (limited to 'pkgs/applications/graphics/ImageMagick')
-rw-r--r-- | pkgs/applications/graphics/ImageMagick/default.nix | 41 |
1 files changed, 28 insertions, 13 deletions
diff --git a/pkgs/applications/graphics/ImageMagick/default.nix b/pkgs/applications/graphics/ImageMagick/default.nix index 57c236297d8b..e40c0372ffec 100644 --- a/pkgs/applications/graphics/ImageMagick/default.nix +++ b/pkgs/applications/graphics/ImageMagick/default.nix @@ -1,8 +1,25 @@ -args: with args; +{ stdenv +, fetchurl +, bzip2 +, freetype +, graphviz +, ghostscript +, libjpeg +, libpng +, libtiff +, libxml2 +, zlib +, libtool +, jasper +, libX11 +, tetex ? null +, librsvg ? null +}: -let version = "6.5.9-1"; in - -stdenv.mkDerivation (rec { +let + version = "6.5.9-1"; +in +stdenv.mkDerivation rec { name = "ImageMagick-${version}"; src = fetchurl { @@ -13,22 +30,20 @@ stdenv.mkDerivation (rec { configureFlags = '' --with-gs-font-dir=${ghostscript}/share/ghostscript/fonts --with-gslib - ${if args ? tetex then "--with-frozenpaths" else ""} + ${if tetex != null 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; + [ bzip2 freetype graphviz ghostscript libjpeg libpng + libtiff libxml2 zlib tetex librsvg libtool jasper libX11 + ]; - preConfigure = if args ? tetex then + preConfigure = if tetex != null then '' - export DVIDecodeDelegate=${args.tetex}/bin/dvips + export DVIDecodeDelegate=${tetex}/bin/dvips '' else ""; meta = { homepage = http://www.imagemagick.org; }; -}) +} |