anchor.diff:  , pdfSupport ? true
   , pngSupport ? true
   , xcbSupport ? false
  -, stdenv, fetchurl, pkgconfig, x11, fontconfig, freetype
  +, stdenv, fetchurl, pkgconfig, x11, fontconfig, freetype, xlibs
   , zlib, libpng, pixman, libxcb ? null, xcbutil ? null
   }:
   
  
positive.code:     sed -i "src/cairo.pc.in" \
          -es'|^Cflags:\(.*\)$|Cflags: \1 -I${freetype}/include/freetype2 -I${freetype}/include|g'
    '';
  
    meta = {
      description = "A 2D graphics library with support for multiple output devices";
  
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 =
  