anchor.diff:  
   stdenv.mkDerivation rec {
     name = "glib-${version}";
  -  versionMajor = "2.46";
  -  versionMinor = "2";
  +  versionMajor = "2.48";
  +  versionMinor = "0";
     version = "${versionMajor}.${versionMinor}";
   
     src = fetchurl {
       url = "mirror://gnome/sources/glib/${versionMajor}/${name}.tar.xz";
  -    sha256 = "1nrkswmqcmn16fs79q7iy72f89n3yxncqqwil30ijrq36wp74cah";
  +    sha256 = "744be6931ca914c68af98dc38ff6b0cf8381d65e335060faddfbf04c17147c34";
     };
  -
  -  setupHook = ./setup-hook.sh;
  -  selfApplySetupHook = true;
  -
  -  patches = optionals doCheck [
  -    (fetchTritonPatch {
  -      rev = "d3fc5e59bd2b4b465c2652aae5e7428b24eb5669";
  -      file = "glib/glib-2.x-skip-timer-test.patch";
  -      sha256 = "97a177c1fc229d0eef3d3d2c7a023cd6bd47ddd4ee52bd22cf82e2a0c024fb2e";
  -    })
  -  ];
  -
  -  postPatch = (
  -    # Patch tests
  -    if doCheck then (
  -      /* Fix coreutils true path */ ''
  -        sed -i gio/tests/desktop-files/home/applications/epiphany-*.desktop \
  -          -e 's|Exec=/bin/true|Exec=${coreutils}/bin/true|'
  -      '' +
  -      /* desktop-app-info/fallback test broken upstream
  -       * https://github.com/GNOME/glib/commit/a036bd38a574f38773d269447cf81df023d2c819
  -       */ ''
  -        sed -i gio/tests/desktop-app-info.c \
  -          -e '/\/desktop-app-info\/fallback/d'
  -      '' +
  -      /* Fails to detect content type (gio sniffing) */ ''
  -        sed -i gio/tests/Makefile.{am,in} \
  -          -e '/contenttype/d'
  -      '' +
  -      /* Disable tests that require machine-id */ ''
  -        sed -i gio/tests/gdbus-peer.c \
  -          -e '/\/gdbus\/codegen-peer-to-peer/d'
  -        sed -i gio/tests/gdbus-unix-addresses.c \
  -          -e '/\/gdbus\/x11-autolaunch/d'
  -      '' +
  -      /* Regex test fails, glib/gcc5 or pcre/gcc5? */ ''
  -        sed -i glib/tests/regex.c \
  -          -e '/?<ab/d'
  -      '' +
  -      /* All gschemas fail to pass the test, upstream bug? */ ''
  -        sed -i gio/tests/gschema-compile.c \
  -          -e '/g_test_add_data_func/ s/^\/*/\/\//'
  -      '' +
  -      /* Cannot reproduce the failing test_associations on hydra */ ''
  -        sed -i gio/tests/appinfo.c \
  -          -e '/\/appinfo\/associations/d'
  -      '' +
  -      /* Needed because of libtool wrappers */ ''
  -        sed -i gio/tests/gsubprocess.c \
  -          -e '/g_subprocess_launcher_set_environ (launcher, envp);/a g_subprocess_launcher_setenv (launcher, "PATH", g_getenv("PATH"), TRUE);'
  -      ''
  -    ) else (
  -      /* Don't build tests, also prevents extra deps */ ''
  -      sed -i {.,gio,glib}/Makefile.{am,in} \
  -        -e 's/ tests//'
  -    '')
  -  );
  -
  -  configureFlags = [
  -    "--disable-selinux"
  -    "--disable-fam"
  -    "--enable-xattr"
  -    "--enable-libelf"
  -    "--disable-gtk-doc"
  -    "--disable-gtk-doc-html"
  -    "--disable-gtk-doc-pdf"
  -    "--disable-man"
  -    "--disable-dtrace"
  -    "--disable-systemtap"
  -    "--disable-coverage"
  -    "--enable-Bsymbolic"
  -    "--enable-compile-warnings"
  -    # The internal pcre is not patched to support gcc5, among other
  -    # fixes specific to Triton
  -    "--with-pcre=system"
  -  ];
   
     nativeBuildInputs = [
       autoreconfHook
  
positive.code:     libxml2
      shared_mime_info
      tzdata
    ];
  
    postInstall = "rm -rvf $out/share/gtk-doc";
  
negative.code:       codyopel
      ];
      platforms = with platforms;
        x86_64-linux;
    };
  }
  