1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 05:00:16 +00:00

add new cairo

svn path=/nixpkgs/trunk/; revision=5569
This commit is contained in:
Armijn Hemel 2006-07-04 12:37:44 +00:00
parent 7b1649c62a
commit 23fdfca4ab

View file

@ -0,0 +1,26 @@
{ postscriptSupport ? true
, pdfSupport ? true
, pngSupport ? true
, stdenv, fetchurl, pkgconfig, x11, fontconfig, freetype
, zlib, libpng
}:
assert postscriptSupport -> zlib != null;
assert pngSupport -> libpng != null;
stdenv.mkDerivation {
name = "cairo-1.2.0";
src = fetchurl {
url = http://cairographics.org/releases/cairo-1.2.0.tar.gz;
sha1 = "c5da7f89cdd3782102357f99a47f516d11661e92";
};
buildInputs = [
pkgconfig x11 fontconfig freetype
(if pngSupport then libpng else null)
];
propagatedBuildInputs = [
(if postscriptSupport then zlib else null)
];
configureFlags =
(if pdfSupport then ["--enable-pdf"] else []);
}