nixpkgs/pkgs/applications/graphics/ImageMagick/default.nix
Peter Simons 77f3a10acb ImageMagick: updated to version 6.6.9-4
svn path=/nixpkgs/trunk/; revision=26801
2011-04-12 09:32:31 +00:00

51 lines
912 B
Nix

{ stdenv
, fetchurl
, bzip2
, freetype
, graphviz
, ghostscript
, libjpeg
, libpng
, libtiff
, libxml2
, zlib
, libtool
, jasper
, libX11
, tetex ? null
, librsvg ? null
}:
let
version = "6.6.9-4";
in
stdenv.mkDerivation rec {
name = "ImageMagick-${version}";
src = fetchurl {
url = "mirror://imagemagick/${name}.tar.bz2";
sha256 = "0byaawz7zbc75rz9hraraaggpn98lajkrad4mv5z3b2nlln2nf4i";
};
configureFlags = ''
--with-gs-font-dir=${ghostscript}/share/ghostscript/fonts
--with-gslib
--with-frozenpaths
${if librsvg != null then "--with-rsvg" else ""}
'';
buildInputs =
[ bzip2 freetype graphviz ghostscript libjpeg libpng
libtiff libxml2 zlib tetex librsvg libtool jasper libX11
];
preConfigure = if tetex != null then
''
export DVIDecodeDelegate=${tetex}/bin/dvips
'' else "";
meta = {
homepage = http://www.imagemagick.org;
};
}