From 23fdfca4ab14cd09db215c010deae292e6776e9b Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Tue, 4 Jul 2006 12:37:44 +0000 Subject: [PATCH] add new cairo svn path=/nixpkgs/trunk/; revision=5569 --- .../libraries/cairo/cairo-1.2.0.nix | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 pkgs/development/libraries/cairo/cairo-1.2.0.nix diff --git a/pkgs/development/libraries/cairo/cairo-1.2.0.nix b/pkgs/development/libraries/cairo/cairo-1.2.0.nix new file mode 100644 index 000000000000..d39570431bf3 --- /dev/null +++ b/pkgs/development/libraries/cairo/cairo-1.2.0.nix @@ -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 []); +}