nixpkgs/pkgs/applications/graphics/ImageMagick/default.nix
Eelco Dolstra aee659e1e2 * Fix various broken URLs / mirrors.
* Updated tcpdump, ImageMagick, lsof.

svn path=/nixpkgs/trunk/; revision=19847
2010-02-05 22:00:51 +00:00

35 lines
831 B
Nix

args: with args;
let version = "6.5.9-1"; in
stdenv.mkDerivation (rec {
name = "ImageMagick-${version}";
src = fetchurl {
url = "mirror://imagemagick/${name}.tar.bz2";
sha256 = "0a4yhhfqagz28yccydngi31050101jfmq5ljln61g69yy6m47ifg";
};
configureFlags = ''
--with-gs-font-dir=${ghostscript}/share/ghostscript/fonts
--with-gslib
${if args ? tetex then "--with-frozenpaths" else ""}
'';
buildInputs =
[ bzip2 freetype ghostscript graphviz libjpeg libpng
libtiff libX11 libxml2 zlib libtool
]
++ stdenv.lib.optional (args ? tetex) args.tetex
++ stdenv.lib.optional (args ? librsvg) args.librsvg;
preConfigure = if args ? tetex then
''
export DVIDecodeDelegate=${args.tetex}/bin/dvips
'' else "";
meta = {
homepage = http://www.imagemagick.org;
};
})