2008-02-28 18:53:39 +00:00
|
|
|
args: with args;
|
2008-05-16 12:05:37 +01:00
|
|
|
|
2008-05-16 12:26:23 +01:00
|
|
|
let version = "6.4.1-1"; in
|
|
|
|
|
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";
|
2008-05-16 12:26:23 +01:00
|
|
|
sha256 = "0a8defbfa867bb5e969f898d9a3b65a8c4f6952cb71411b40f005dd0a183644e";
|
2008-02-28 18:53:39 +00:00
|
|
|
};
|
|
|
|
|
2008-05-16 12:05:37 +01:00
|
|
|
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;
|
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
|
|
|
})
|