anchor.diff:    '';
   in
   
  -stdenv.mkDerivation rec {
  +stdenv.mkDerivation (finalAttrs: {
     pname = "glib";
     version = "2.72.3";
   
     src = fetchurl {
  -    url = "mirror://gnome/sources/glib/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
  +    url = "mirror://gnome/sources/glib/${lib.versions.majorMinor finalAttrs.version}/glib-${finalAttrs.version}.tar.xz";
       sha256 = "Sjmi9iS4US1QDVhAFz7af6hfUcEJBS6ugGrOzoXTRfA=";
     };
   
  
positive.code:     sed -i "$dev/bin/glib-gettextize" -e "s|^gettext_dir=.*|gettext_dir=$dev/share/glib-2.0/gettext|"
  
      # This file is *included* in gtk3 and would introduce runtime reference via __FILE__.
      sed '1i#line 1 "${pname}-${version}/include/glib-2.0/gobject/gobjectnotifyqueue.c"' \
        -i "$dev"/include/glib-2.0/gobject/gobjectnotifyqueue.c
      for i in $bin/bin/*; do
        moveToOutput "share/bash-completion/completions/''${i##*/}" "$bin"
  
negative.code:   checkInputs = [ tzdata desktop-file-utils shared-mime-info ];
  
    preCheck = optionalString doCheck ''
      export LD_LIBRARY_PATH="$NIX_BUILD_TOP/glib-${finalAttrs.version}/glib/.libs''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
      export TZDIR="${tzdata}/share/zoneinfo"
      export XDG_CACHE_HOME="$TMP"
      export XDG_RUNTIME_HOME="$TMP"
  