2010-04-30 11:49:33 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, bzip2
|
|
|
|
, freetype
|
|
|
|
, graphviz
|
|
|
|
, ghostscript
|
|
|
|
, libjpeg
|
|
|
|
, libpng
|
|
|
|
, libtiff
|
|
|
|
, libxml2
|
|
|
|
, zlib
|
|
|
|
, libtool
|
|
|
|
, jasper
|
|
|
|
, libX11
|
|
|
|
, tetex ? null
|
|
|
|
, librsvg ? null
|
|
|
|
}:
|
2008-05-16 12:05:37 +01:00
|
|
|
|
2010-04-30 11:49:33 +01:00
|
|
|
let
|
|
|
|
version = "6.5.9-1";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2008-02-28 18:53:39 +00:00
|
|
|
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
|
2010-04-30 11:49:33 +01:00
|
|
|
${if tetex != null then "--with-frozenpaths" else ""}
|
2008-05-16 12:05:37 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs =
|
2010-04-30 11:49:33 +01:00
|
|
|
[ bzip2 freetype graphviz ghostscript libjpeg libpng
|
|
|
|
libtiff libxml2 zlib tetex librsvg libtool jasper libX11
|
|
|
|
];
|
2008-02-28 18:53:39 +00:00
|
|
|
|
2010-04-30 11:49:33 +01:00
|
|
|
preConfigure = if tetex != null then
|
2008-05-16 12:05:37 +01:00
|
|
|
''
|
2010-04-30 11:49:33 +01:00
|
|
|
export DVIDecodeDelegate=${tetex}/bin/dvips
|
2008-05-16 12:05:37 +01:00
|
|
|
'' else "";
|
2008-02-28 18:53:39 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.imagemagick.org;
|
|
|
|
};
|
2010-04-30 11:49:33 +01:00
|
|
|
}
|