2005-10-12 14:00:20 +00:00
|
|
|
{ postscriptSupport ? true
|
|
|
|
, pdfSupport ? true
|
|
|
|
, pngSupport ? true
|
|
|
|
, stdenv, fetchurl, pkgconfig, x11, fontconfig, freetype
|
|
|
|
, zlib, libpng
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert postscriptSupport -> zlib != null;
|
|
|
|
assert pngSupport -> libpng != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2007-04-26 18:37:33 +00:00
|
|
|
name = "cairo-1.4.4";
|
2005-10-12 14:00:20 +00:00
|
|
|
src = fetchurl {
|
2007-04-26 18:37:33 +00:00
|
|
|
url = http://cairographics.org/releases/cairo-1.4.4.tar.gz;
|
|
|
|
sha1 = "71a7ce8352500944f7b2b73d4dc25ee947ec56ec";
|
2005-10-12 14:00:20 +00:00
|
|
|
};
|
|
|
|
buildInputs = [
|
|
|
|
pkgconfig x11 fontconfig freetype
|
|
|
|
(if pngSupport then libpng else null)
|
|
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
(if postscriptSupport then zlib else null)
|
2006-08-11 22:26:55 +00:00
|
|
|
(if pngSupport then libpng else null)
|
2005-10-12 14:00:20 +00:00
|
|
|
];
|
|
|
|
configureFlags =
|
|
|
|
(if pdfSupport then ["--enable-pdf"] else []);
|
|
|
|
}
|