anchor.diff:      ln -sr -t "''${!outputInclude}/include/" "''${!outputInclude}"/lib/*/include/* 2>/dev/null || true
     '';
   
  -  ver_maj = "2.52";
  -  ver_min = "3";
  +  ver_maj = "2.54";
  +  ver_min = "0";
   in
   
   stdenv.mkDerivation rec {
  
positive.code: 
    src = fetchurl {
      url = "mirror://gnome/sources/glib/${ver_maj}/${name}.tar.xz";
      sha256 = "0a71wkkhkvad84gm30w13micxxgqqw3sxhybj7nd9z60lwspdvi5";
    };
  
    patches = optional stdenv.isDarwin ./darwin-compilation.patch ++ optional doCheck ./skip-timer-test.patch;
  
    outputs = [ "out" "dev" "devdoc" ];
    outputBin = "dev";
  
negative.code:     ++ optional (stdenv.isFreeBSD || stdenv.isSunOS) "--with-libiconv=gnu"
      ++ optional stdenv.isSunOS "--disable-dtrace";
  
    NIX_CFLAGS_COMPILE = optional stdenv.isDarwin "-lintl"
      ++ 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;
  