anchor.diff:      # Avoid the need for gobject introspection binaries in PATH in cross-compiling case.
       # Instead we just copy them over from the native output.
       "-Dgtk_doc=${if stdenv.hostPlatform == stdenv.buildPlatform then "true" else "false"}"
  +    "-Dnls=enabled"
     ];
   
     LC_ALL = "en_US.UTF-8";
   
  -  NIX_CFLAGS_COMPILE = optional stdenv.isSunOS "-DBSD_COMP";
  +  NIX_CFLAGS_COMPILE = (optional stdenv.isSunOS "-DBSD_COMP")
  +    ++ [ "-Wno-error=nonnull" ];
   
     postPatch = ''
  -    substituteInPlace meson.build --replace "install_dir : 'bin'," "install_dir : glib_bindir,"
  -
       # substitute fix-gio-launch-desktop-path.patch
       substituteInPlace gio/gdesktopappinfo.c --replace "@bindir@" "$out/bin"
   
  
positive.code:   '';
  
    binPrograms = optional (!stdenv.isDarwin) "gapplication" ++ [ "gdbus" "gio" "gsettings" ];
    version = "2.58.3";
  in
  
  stdenv.mkDerivation rec {
  
negative.code: 
    src = fetchurl {
      url = "mirror://gnome/sources/glib/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
      sha256 = "0ls3njqknb345ni5i8hn9nr1n70kn6s8bi0g6kcqj3c4js5mv1i0";
    };
  
    patches = optional stdenv.isDarwin ./darwin-compilation.patch
  