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
|
2011-04-12 11:32:31 +02:00
|
|
|
version = "6.6.9-4";
|
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";
|
|
|
|
sha256 = "035j3i3cm29bwc9lipn838gznswrc69g7mwh8h9jj24ss2dmqrf1";
|
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
|
|
|
}
|