2008-02-28 19:53:39 +01:00
|
|
|
args: with args;
|
2008-05-16 13:05:37 +02:00
|
|
|
|
2009-09-03 00:43:08 +02:00
|
|
|
let version = "6.5.5-6"; in
|
2008-05-16 13:26:23 +02:00
|
|
|
|
2008-02-28 19:53:39 +01:00
|
|
|
stdenv.mkDerivation (rec {
|
|
|
|
name = "ImageMagick-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2008-05-19 11:32:24 +02:00
|
|
|
url = "mirror://imagemagick/${name}.tar.bz2";
|
2009-09-03 00:43:08 +02:00
|
|
|
sha256 = "1037nsvfpw7wdgsvvzvi0bn1n5d667d8aj1xam7zgmf7xi6xha3q";
|
2008-02-28 19:53:39 +01:00
|
|
|
};
|
|
|
|
|
2008-05-16 13:05:37 +02:00
|
|
|
configureFlags = ''
|
|
|
|
--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;
|
2008-02-28 19:53:39 +01:00
|
|
|
|
2008-05-16 13:05:37 +02:00
|
|
|
preConfigure = if args ? tetex then
|
|
|
|
''
|
|
|
|
export DVIDecodeDelegate=${args.tetex}/bin/dvips
|
|
|
|
'' else "";
|
2008-02-28 19:53:39 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.imagemagick.org;
|
|
|
|
};
|
2008-05-16 13:05:37 +02:00
|
|
|
})
|