anchor.diff:  , harfbuzz
   , libintl
   , libthai
  -, gobject-introspection
   , darwin
   , fribidi
   , gnome
  
positive.code: , meson
  , ninja
  , glib
  , x11Support? !stdenv.isDarwin, libXft
  }:
  
  let
    withDocs = stdenv.buildPlatform == stdenv.hostPlatform;
  in
  stdenv.mkDerivation rec {
    pname = "pango";
    version = "1.48.10";
  
negative.code: 
    mesonFlags = [
      "-Dgtk_doc=${lib.boolToString withDocs}"
      "-Dintrospection=${if withIntrospection then "enabled" else "disabled"}"
    ] ++ lib.optionals (!x11Support) [
      "-Dxft=disabled" # only works with x11
    ];
  
    # Fontconfig error: Cannot load default config file
  