anchor.diff:  
     doCheck = !stdenv.isAarch64;
   
  +  preBuild = ''
  +    # Our gobject-introspection patches make the shared library paths absolute
  +    # in the GIR files. When running tests, the library is not yet installed,
  +    # though, so we need to replace the absolute path with a local one during build.
  +    # We are using a symlink that we will delete before installation.
  +    mkdir -p $out/lib
  +    ln -s $PWD/tests/scanner/libregress-1.0.so $out/lib/libregress-1.0.so
  +    cleanLibregressSymlink() {
  +      rm $out/lib/libregress-1.0.so
  +    }
  +    preInstallPhases="$preInstallPhases cleanLibregressSymlink"
  +  '';
  +
     passthru = {
       updateScript = gnome3.updateScript {
         packageName = pname;
  
positive.code: 
    mesonFlags = [
      "--datadir=${placeholder "dev"}/share"
    ];
  
    # outputs TODO: share/gobject-introspection-1.0/tests is needed during build
  
negative.code: # it may be worth thinking about using multiple derivation outputs
  # In that case its about 6MB which could be separated
  
  with stdenv.lib;
  stdenv.mkDerivation rec {
    pname = "gobject-introspection";
    version = "1.64.0";
  
    src = fetchurl {
      url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
      sha256 = "10pwykfnk7pw8k9k8iz3p72phxvyrh5q4d7gr3ysv08w15immh7a";
    };
  
    outputs = [ "out" "dev" "man" ];
  