2010-04-30 12:49:33 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, bzip2
|
|
|
|
, freetype
|
|
|
|
, graphviz
|
|
|
|
, ghostscript
|
|
|
|
, libjpeg
|
|
|
|
, libpng
|
|
|
|
, libtiff
|
|
|
|
, libxml2
|
|
|
|
, zlib
|
|
|
|
, libtool
|
|
|
|
, jasper
|
|
|
|
, libX11
|
|
|
|
, tetex ? null
|
|
|
|
, librsvg ? null
|
|
|
|
}:
|
2008-05-16 13:05:37 +02:00
|
|
|
|
2010-04-30 12:49:33 +02:00
|
|
|
let
|
2012-02-09 20:45:31 +01:00
|
|
|
version = "6.7.5-3";
|
2010-04-30 12:49:33 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2008-02-28 19:53:39 +01:00
|
|
|
name = "ImageMagick-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2011-06-07 23:49:04 +02:00
|
|
|
url = "mirror://imagemagick/${name}.tar.xz";
|
2012-02-09 20:45:31 +01:00
|
|
|
sha256 = "0m0sa4jxsvm8pf9nfvkzlbzq13d1lj15lfz6jif12l6ywyh2c1cs";
|
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
|
2010-10-28 10:46:13 +02:00
|
|
|
--with-frozenpaths
|
|
|
|
${if librsvg != null then "--with-rsvg" else ""}
|
2008-05-16 13:05:37 +02:00
|
|
|
'';
|
|
|
|
|
2011-06-07 23:49:04 +02:00
|
|
|
propagatedBuildInputs =
|
|
|
|
[ bzip2 freetype ghostscript libjpeg libpng libtiff libxml2 zlib librsvg
|
|
|
|
libtool jasper libX11 ];
|
|
|
|
|
|
|
|
buildInputs = [ tetex graphviz ];
|
|
|
|
|
2010-04-30 12:49:33 +02:00
|
|
|
preConfigure = if tetex != null then
|
2008-05-16 13:05:37 +02:00
|
|
|
''
|
2010-04-30 12:49:33 +02:00
|
|
|
export DVIDecodeDelegate=${tetex}/bin/dvips
|
2008-05-16 13:05:37 +02:00
|
|
|
'' else "";
|
2008-02-28 19:53:39 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.imagemagick.org;
|
|
|
|
};
|
2010-04-30 12:49:33 +02:00
|
|
|
}
|