anchor.diff:      sed -i "src/cairo.pc.in" \
           -es'|^Cflags:\(.*\)$|Cflags: \1 -I${freetype}/include/freetype2 -I${freetype}/include|g'
     '';
  +
  +  # The default `--disable-gtk-doc' is ignored.
  +  postInstall = "rm -rf $out/share/gtk-doc";
   
     meta = {
       description = "A 2D graphics library with support for multiple output devices";
  
positive.code: , pdfSupport ? true
  , pngSupport ? true
  , xcbSupport ? false
  , stdenv, fetchurl, pkgconfig, x11, fontconfig, freetype
  , zlib, libpng, pixman, libxcb ? null, xcbutil ? null
  }:
  
  
negative.code: assert xcbSupport -> libxcb != null && xcbutil != null;
  
  stdenv.mkDerivation rec {
    name = "cairo-1.10.2";
    
    src = fetchurl {
      url = "http://cairographics.org/releases/${name}.tar.gz";
      sha1 = "ccce5ae03f99c505db97c286a0c9a90a926d3c6e";
    };
  
    buildInputs =
      [ pkgconfig x11 fontconfig pixman xlibs.libXrender ] ++ 
      stdenv.lib.optionals xcbSupport [ libxcb xcbutil ];
  
    propagatedBuildInputs =
  