anchor.diff:      })
     ];
   
  -  postPatch = /* patchShebangs does not catch @PYTHON@ */ ''
  -    sed -i tools/g-ir-tool-template.in \
  -      -e 's|#!/usr/bin/env @PYTHON@|#!${python2.interpreter}|'
  -  '' + /* Fix broken glib version check */ ''
  -    sed -i configure{,.ac} \
  -      -e 's/2.56.1/2.56.0/g'
  -  '' +
  -  optionalString doCheck (''
  -      patchShebangs ./tests/gi-tester
  -    '' + /* Fix tests broken by absolute_shlib_path.patch */ ''
  -      sed -i tests/scanner/{GetType,GtkFrob,Regress,SLetter,Typedefs,Utility}-1.0-expected.gir \
  -        -e 's|shared-library="|shared-library="/unused/|'
  -    ''
  -  );
  +  postPatch = ''
  +    # Fix python patching
  +    grep -q 's,@PYTHON_CMD\\@,.*$(PYTHON),' Makefile.in
  +    sed -i 's#s,@PYTHON_CMD\\@,.*$(PYTHON),#s,@PYTHON_CMD\\@,$(PYTHON),#' Makefile.in
  +  '';
   
     configureFlags = [
       "--disable-maintainer-mode"
       "--disable-gtk-doc"
  -    "--disable-gtk-doc-html"
  -    "--disable-gtk-doc-pdf"
       "--disable-doctool"
  -    "--enable-Bsymbolic"
  -    "--${boolWt doCheck}-cairo"
     ];
  -
  -  # meonFlags = [
  -  #   "-Ddoctool=false"
  -  # ];
  -
  -  postInstall = "rm -frv $out/share/gtk-doc";
   
     doCheck = false;
   
     passthru = {
       srcVerification = fetchurl {
  +      failEarly = true;
         inherit (src)
           outputHash
           outputHashAlgo
           urls;
  -      sha256Url = "https://download.gnome.org/sources/gobject-introspection/"
  -        + "${channel}/${name}.sha256sum";
  -      failEarly = true;
  +      fullOpts = {
  +        sha256Url = "https://download.gnome.org/sources/gobject-introspection/"
  +          + "${channel}/${name}.sha256sum";
  +      };
       };
     };
   
  
positive.code: , fetchurl
  , flex
  , lib
  # , meson
  # , ninja
  
  , bzip2
  , glib
  , libffi
  , python2
  
  , cairo
  }:
  
negative.code:   src = fetchurl {
      url = "mirror://gnome/sources/gobject-introspection/${channel}/${name}.tar.xz";
      hashOutput = false;
      sha256 = "27c1590a32749de0a5481ce897772547043e94bccba4bc0a7edb3d8513e401ec";
    };
  
    nativeBuildInputs = [
      bison
      flex
    ];
  
    buildInputs = [
      glib
      libffi
      python3
    ] ++ optionals doCheck [
      cairo
    ];
  