diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2005-10-12 14:00:20 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2005-10-12 14:00:20 +0000 |
commit | 6f334ff54f14d08bc37b43f8fdb522c7711e32e5 (patch) | |
tree | 96b34b572ff9f685e694e6aa07a4d06fd837e935 /pkgs/development/libraries/cairo | |
parent | e0eb3828bcd763e610c23aef9a7e26e6eb619f3d (diff) |
* Oops.
svn path=/nixpkgs/trunk/; revision=4074
Diffstat (limited to 'pkgs/development/libraries/cairo')
-rw-r--r-- | pkgs/development/libraries/cairo/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/libraries/cairo/default.nix b/pkgs/development/libraries/cairo/default.nix new file mode 100644 index 0000000000000..f4ea4c5e699d8 --- /dev/null +++ b/pkgs/development/libraries/cairo/default.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.0.2"; + src = fetchurl { + url = http://cairographics.org/releases/cairo-1.0.2.tar.gz; + sha1 = "3a425049499b0b067ed4dc60d94b4d0819c0841b"; + }; + 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 []); +} |