mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
b0cc696011
svn path=/nixpkgs/trunk/; revision=13896
36 lines
847 B
Nix
36 lines
847 B
Nix
args: with args;
|
|
|
|
let version = "6.4.8-9"; in
|
|
|
|
stdenv.mkDerivation (rec {
|
|
name = "ImageMagick-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://imagemagick/${name}.tar.bz2";
|
|
sha256 = "1ngfs99wryrc7v5pqrjbcrvhsilc29iaj6zplzxm450f49xmpidq";
|
|
};
|
|
|
|
configureFlags = ''
|
|
--with-dots
|
|
--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;
|
|
};
|
|
})
|