anchor.diff:      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"
  -    "--enable-introspection"
  +    (enFlag "introspection" (gobject-introspection != null) null)
       "--disable-gtk-doc"
       "--disable-gtk-doc-html"
       "--disable-gtk-doc-pdf"
  
positive.code: { stdenv
  , fetchurl
  
  , cairo
  , fontconfig
  
negative.code: , glib
  , gobject-introspection
  , harfbuzz
  , xorg
  }:
  
  with {
    inherit (stdenv.lib)
      enFlag
      optionalString
      wtFlag;
  };
  