2007-11-11 08:54:45 +01:00
|
|
|
args: with args;
|
|
|
|
(stdenv.mkDerivation ({
|
2008-01-07 14:49:25 +01:00
|
|
|
name = "ImageMagick-6.3.7-9";
|
2007-07-02 00:31:24 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-01-07 14:49:25 +01:00
|
|
|
url = ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.3.7-9.tar.bz2;
|
|
|
|
sha256 = "1s38s78xvzm20ib22zypsb9vvzva0kbqjf0pf4c1q89jzg205pk0";
|
2007-07-02 00:31:24 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = " --with-dots --with-gs-font-dir="+ ghostscript +
|
2007-11-11 08:54:45 +01:00
|
|
|
"/share/ghostscript/fonts --with-gslib " +(
|
|
|
|
if args ? tetex then " --with-frozenpaths " else ""
|
|
|
|
);
|
2007-07-02 00:31:24 +02:00
|
|
|
|
|
|
|
buildInputs = [bzip2 freetype ghostscript graphviz libjpeg libpng
|
2007-11-11 08:54:45 +01:00
|
|
|
libtiff libX11 libxml2 zlib ] ++ (if args ? tetex then [args.tetex] else [])
|
|
|
|
++ (if args ? librsvg then [args.librsvg] else [])
|
|
|
|
;
|
|
|
|
} // (if args ? tetex then {
|
|
|
|
preConfigure = "
|
|
|
|
export DVIDecodeDelegate=${args.tetex}/bin/dvips
|
|
|
|
";
|
|
|
|
} else {})))
|