anchor.diff:      ln -sr -t "''${!outputInclude}/include/" "''${!outputInclude}"/lib/*/include/* 2>/dev/null || true
     '';
   
  -  version = "2.56.0";
  +  version = "2.58.1";
   in
   
   stdenv.mkDerivation rec {
  
positive.code: 
    setupHook = ./setup-hook.sh;
  
    buildInputs = [ libelf setupHook pcre ]
      ++ optionals stdenv.isLinux [ utillinuxMinimal ]; # for libmount
  
    nativeBuildInputs = [ pkgconfig perl python gettext ];
  
    propagatedBuildInputs = [ zlib libffi gettext libiconv ];
  
    # internal pcre would only add <200kB, but it's relatively common
    configureFlags = [ "--with-pcre=system" ]
      ++ optional stdenv.isDarwin "--disable-compile-warnings"
      ++ optional stdenv.isSunOS "--disable-dtrace"
      # Can't run this test when cross-compiling
      ++ optionals (stdenv.hostPlatform != stdenv.buildPlatform)
         [ "glib_cv_stack_grows=no" "glib_cv_uscore=no" ]
      # GElf only supports elf64 hosts
      ++ optional (!stdenv.hostPlatform.is64bit) "--disable-libelf";
  
    NIX_CFLAGS_COMPILE = optional stdenv.isSunOS "-DBSD_COMP";
  
    preConfigure = optionalString stdenv.isSunOS ''
      sed -i -e 's|inotify.h|foobar-inotify.h|g' configure
    '';
  
    postConfigure = ''
      patchShebangs ./gobject/
    '';
  
    LIBELF_CFLAGS = optional stdenv.isFreeBSD "-I${libelf}";
    LIBELF_LIBS = optional stdenv.isFreeBSD "-L${libelf} -lelf";
  
    preBuild = optionalString stdenv.isDarwin ''
      export MACOSX_DEPLOYMENT_TARGET=
    '';
  
    enableParallelBuilding = true;
    DETERMINISTIC_BUILD = 1;
  
    postInstall = ''
  
negative.code: { stdenv, fetchurl, gettext, meson, ninja, pkgconfig, perl, python3, glibcLocales
  , libiconv, zlib, libffi, pcre, libelf, gnome3, libselinux, bash, gnum4, gtk-doc, docbook_xsl, docbook_xml_dtd_45
  # use utillinuxMinimal to avoid circular dependency (utillinux, systemd, glib)
  , utillinuxMinimal ? null
  
  