anchor.diff:      ++ optional (stdenv.isFreeBSD || stdenv.isSunOS) "--with-libiconv=gnu"
       ++ optional stdenv.isSunOS "--disable-dtrace";
   
  -  NIX_CFLAGS_COMPILE = optionalString stdenv.isDarwin " -lintl"
  -    + optionalString stdenv.isSunOS " -DBSD_COMP";
  +  NIX_CFLAGS_COMPILE = optional stdenv.isDarwin "-lintl"
  +    ++ optional stdenv.isSunOS "-DBSD_COMP";
   
  -  preConfigure = if !stdenv.isSunOS then null else
  -    ''
  -      sed -i -e 's|inotify.h|foobar-inotify.h|g' configure
  -    '';
  +  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=
  -    '';
  +  preBuild = optionalString stdenv.isDarwin ''
  +    export MACOSX_DEPLOYMENT_TARGET=
  +  '';
   
     enableParallelBuilding = true;
     DETERMINISTIC_BUILD = 1;
  
positive.code:   meta = with stdenv.lib; {
      description = "C library of programming buildings blocks";
      homepage    = https://www.gtk.org/;
      license     = licenses.lgpl2Plus;
      maintainers = with maintainers; [ lovek323 raskin ];
      platforms   = platforms.unix;
  
  
negative.code: 
    src = fetchurl {
      url = "mirror://gnome/sources/glib/${ver_maj}/${name}.tar.xz";
      sha256 = "fe22998ff0394ec31e6e5511c379b74011bee61a4421bca7fcab223dfbe0fc6a";
    };
  
    patches = optional stdenv.isDarwin ./darwin-compilation.patch
      ++ optional doCheck ./skip-timer-test.patch;
  
    outputs = [ "out" "dev" "devdoc" ];
    outputBin = "dev";
  