anchor.diff:  { stdenv
  +, autoreconfHook
   , fetchurl
  +, gtk-doc
   
   , cairo
   , fontconfig
  
positive.code:     (wtFlag "cairo" (cairo != null) null)
    ];
  
    buildInputs = [
      cairo
      fontconfig
      freetype
      glib
      gobject-introspection
      harfbuzz
      libpng
      xorg.libX11
      xorg.libXft
      xorg.libXrender
    ];
  
    postInstall = "rm -rvf $out/share/gtk-doc";
  
    preCheck = optionalString doCheck ''
      # Fontconfig fails to load default config in test
      export FONTCONFIG_FILE="${fontconfig}/etc/fonts/fonts.conf"
    '';
  
    doCheck = true;
  
    # Test cases fail reliably in 1.38.1
    parallelCheck = false;
  
    meta = with stdenv.lib; {
      description = "A library for laying out and rendering of text";
  
negative.code:     sha256 = "1dsf45m51i4rcyvh5wlxxrjfhvn5b67d5ckjc6vdcxbddjgmc80k";
    };
  
    nativeBuildInputs = [
      autoreconfHook
      gtk-doc
    ];
  
    buildInputs = [
      cairo
      fontconfig
      freetype
      glib
      gobject-introspection
      harfbuzz
      xorg.libX11
      xorg.libXft
      xorg.libXrender
    ];
  
    postPatch =
      /* Test fails randomly */ optionalString doCheck ''
        sed -i tests/Makefile.am \
          -e 's,test-pangocairo-threads,,'
      '';
  
    preAutoreconf = ''
      gtkdocize
    '';
  
    configureFlags = [
      "--enable-rebuilds"
      (enFlag "introspection" (gobject-introspection != null) null)
      "--disable-gtk-doc"
      "--disable-gtk-doc-html"
      "--disable-gtk-doc-pdf"
  