mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
ab93b3a032
I'll let hydra try it. I don't update this in trunk because a lot depends on this. svn path=/nixpkgs/branches/stdenv-updates/; revision=32166
52 lines
937 B
Nix
52 lines
937 B
Nix
{ stdenv
|
|
, fetchurl
|
|
, bzip2
|
|
, freetype
|
|
, graphviz
|
|
, ghostscript
|
|
, libjpeg
|
|
, libpng
|
|
, libtiff
|
|
, libxml2
|
|
, zlib
|
|
, libtool
|
|
, jasper
|
|
, libX11
|
|
, tetex ? null
|
|
, librsvg ? null
|
|
}:
|
|
|
|
let
|
|
version = "6.7.5-3";
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = "ImageMagick-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://imagemagick/${name}.tar.xz";
|
|
sha256 = "0m0sa4jxsvm8pf9nfvkzlbzq13d1lj15lfz6jif12l6ywyh2c1cs";
|
|
};
|
|
|
|
configureFlags = ''
|
|
--with-gs-font-dir=${ghostscript}/share/ghostscript/fonts
|
|
--with-gslib
|
|
--with-frozenpaths
|
|
${if librsvg != null then "--with-rsvg" else ""}
|
|
'';
|
|
|
|
propagatedBuildInputs =
|
|
[ bzip2 freetype ghostscript libjpeg libpng libtiff libxml2 zlib librsvg
|
|
libtool jasper libX11 ];
|
|
|
|
buildInputs = [ tetex graphviz ];
|
|
|
|
preConfigure = if tetex != null then
|
|
''
|
|
export DVIDecodeDelegate=${tetex}/bin/dvips
|
|
'' else "";
|
|
|
|
meta = {
|
|
homepage = http://www.imagemagick.org;
|
|
};
|
|
}
|