anchor.diff:  
     doCheck = false; # test-font: FAIL
   
  -  postInstall = ''
  +  postInstall = lib.optionalString withDocs ''
       # So that devhelp can find this.
       # https://gitlab.gnome.org/GNOME/pango/merge_requests/293/diffs#note_1058448
       mkdir -p "$devdoc/share/devhelp"
  
positive.code:   ];
  
    mesonFlags = [
      "-Dgtk_doc=true"
    ] ++ lib.optionals (!x11Support) [
      "-Dxft=disabled" # only works with x11
    ];
  
    # Fontconfig error: Cannot load default config file
  
negative.code: , x11Support? !stdenv.isDarwin, libXft
  }:
  
  let
    withDocs = stdenv.buildPlatform == stdenv.hostPlatform;
  in
  stdenv.mkDerivation rec {
    pname = "pango";
    version = "1.48.4";
  
    outputs = [ "bin" "out" "dev" ]
      ++ lib.optionals withDocs [ "devdoc" ];
  
    src = fetchurl {
      url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
  