2008-02-28 18:53:39 +00:00
|
|
|
args: with args;
|
2008-05-16 12:05:37 +01:00
|
|
|
|
2010-02-05 22:00:51 +00:00
|
|
|
let version = "6.5.9-1"; in
|
2008-05-16 12:26:23 +01:00
|
|
|
|
2008-02-28 18:53:39 +00:00
|
|
|
stdenv.mkDerivation (rec {
|
|
|
|
name = "ImageMagick-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2008-05-19 10:32:24 +01:00
|
|
|
url = "mirror://imagemagick/${name}.tar.bz2";
|
2010-02-05 22:00:51 +00:00
|
|
|
sha256 = "0a4yhhfqagz28yccydngi31050101jfmq5ljln61g69yy6m47ifg";
|
2008-02-28 18:53:39 +00:00
|
|
|
};
|
|
|
|
|
2008-05-16 12:05:37 +01: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 18:53:39 +00:00
|
|
|
|
2008-05-16 12:05:37 +01:00
|
|
|
preConfigure = if args ? tetex then
|
|
|
|
''
|
|
|
|
export DVIDecodeDelegate=${args.tetex}/bin/dvips
|
|
|
|
'' else "";
|
2008-02-28 18:53:39 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.imagemagick.org;
|
|
|
|
};
|
2008-05-16 12:05:37 +01:00
|
|
|
})
|