anchor.diff:    };
   
     nativeBuildInputs = [
  -    autoreconfHook
  -    coreutils
       gettext
  +    meson
  +    ninja
  +    python3
     ];
   
     buildInputs = [
  
positive.code:     shared-mime-info
    ];
  
    postPatch =
      /* The configure script only tests glib for mimetype detection
         support if --enable-gio-sniffing=auto, this patches it to
         run the test and explicitly fail if glib isn't configured
         correctly. */ ''
        sed -i configure.ac \
          -e '/x$enable_gio_sniffing/ s/xauto/xyes/' \
          -e 's|\[gio_can_sniff=no\]|\[gio_can_sniff=no, AC_MSG_ERROR(gio cannot determine mimetype)\]|'
      '';
  
    configureFlags = [
      "--disable-maintainer-mode"
      # TODO: fix glib to support gio sniffing
      "--disable-gio-sniffing"
      "--enable-largefile"
      "--disable-debug"
      "--enable-rebuilds"
      "--enable-nls"
      "--enable-rpath"
      "--enable-glibtest"
      "--enable-modules"
      "--${boolEn (gobject-introspection != null)}-introspection"
      "--disable-gtk-doc"
      "--disable-gtk-doc-html"
      "--disable-gtk-doc-pdf"
      "--disable-man"
      "--enable-Bsymbolic"
      "--disable-installed-tests"
      "--disable-always-build-tests"
      "--disable-coverage"
      # Enabling relocations breaks setting loaders.cache path
      "--disable-relocations"
      "--${boolWt (libpng != null)}-libpng"
      "--${boolWt (libjpeg != null)}-libjpeg"
      "--${boolWt (libtiff != null)}-libtiff"
      "--${boolWt (jasper != null)}-libjasper"
      "--without-gdiplus"
      "--${boolWt (libx11 != null)}-x11"
    ];
  
    postInstall = "rm -rvf $out/share/gtk-doc";
  
negative.code: { stdenv
  , fetchurl
  , gettext
  , lib
  , meson
  , ninja
  , python3
  
  , glib
  , gobject-introspection
  