anchor.diff:  , fetchFromGitLab
   , meson
   , ninja
  -, pkgconfig
  +, pkg-config
   , python3
  -, libxml2Python
   , docbook_xml_dtd_43
   , docbook_xsl
   , libxslt
  
positive.code:   outputDevdoc = "out";
  
    nativeBuildInputs = [
      gettext
      meson
      ninja
    ];
  
    buildInputs = [
      docbook_xml_dtd_43
      docbook_xsl
      libxslt
      pkgconfig
      python3
      python3.pkgs.pygments # Needed for https://gitlab.gnome.org/GNOME/gtk-doc/blob/GTK_DOC_1_32/meson.build#L42
      libxml2Python
    ]
    ++ stdenv.lib.optional withDblatex dblatex
    ;
  
    mesonFlags = [
      "-Dtests=false"
      "-Dyelp_manual=false"
    ];
  
    # Make pygments available for binaries, python.withPackages creates a wrapper
    # but scripts are not allowed in shebangs so we link it into sys.path.
    postInstall = ''
      ln -s ${python3.pkgs.pygments}/${python3.sitePackages}/* $out/share/gtk-doc/python/
    '';
  
    doCheck = false; # requires a lot of stuff
    doInstallCheck = false; # fails
  
    passthru = {
      # Consumers are expected to copy the m4 files to their source tree, let them reuse the patch
  
negative.code: , withDblatex ? false, dblatex
  }:
  
  python3.pkgs.buildPythonApplication rec {
    pname = "gtk-doc";
    version = "1.32";
  
    format = "other";
  
    src = fetchFromGitLab {
      domain = "gitlab.gnome.org";
  