anchor.diff:  , glib
   , gobject-introspection
   , harfbuzz
  -, libpng
   , xorg
  -#, LibThai
   }:
   
   with {
     inherit (stdenv.lib)
  +    enFlag
       optionalString
       wtFlag;
   };
  
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: { stdenv
  , autoreconfHook
  , fetchurl
  , gtk-doc
  
  , cairo
  , fontconfig
  