nixpkgs-suyu/pkgs/development/libraries/cairo/default.nix
Armijn Hemel 7f3a1fa68f 1.4.4 -> 1.4.6
svn path=/nixpkgs/trunk/; revision=8670
2007-05-13 21:45:43 +00:00

27 lines
723 B
Nix

{ 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.4.6";
src = fetchurl {
url = http://cairographics.org/releases/cairo-1.4.6.tar.gz;
sha256 = "15l87pzmlwbxk6m4102g2zln4drq0l32qs60ccs5bpmcnky2lqya";
};
buildInputs = [
pkgconfig x11 fontconfig freetype
(if pngSupport then libpng else null)
];
propagatedBuildInputs = [
(if postscriptSupport then zlib else null)
(if pngSupport then libpng else null)
];
configureFlags =
(if pdfSupport then ["--enable-pdf"] else []);
}