nixpkgs/pkgs/development/libraries/cairo/default.nix
Eelco Dolstra 5b45cce6c1 * Don't need to set CAIRO_CFLAGS anymore.
svn path=/nixpkgs/branches/stdenv-updates/; revision=13061
2008-10-14 12:08:07 +00:00

35 lines
856 B
Nix

{ postscriptSupport ? true
, pdfSupport ? true
, pngSupport ? true
, stdenv, fetchurl, pkgconfig, x11, fontconfig, freetype
, zlib, libpng, pixman
}:
assert postscriptSupport -> zlib != null;
assert pngSupport -> libpng != null;
stdenv.mkDerivation {
name = "cairo-1.8.0";
src = fetchurl {
url = http://cairographics.org/releases/cairo-1.8.0.tar.gz;
sha1 = "8a689ca47c24216f37bb8cabae21ff08a7f47899";
};
buildInputs = [
pkgconfig x11 fontconfig freetype pixman
];
propagatedBuildInputs =
stdenv.lib.optional postscriptSupport zlib ++
stdenv.lib.optional pngSupport libpng;
configureFlags = ["--disable-static"] ++
stdenv.lib.optional pdfSupport "--enable-pdf";
meta = {
description = "A 2D graphics library with support for multiple output devices";
homepage = http://cairographics.org/;
};
}