anchor.diff:    enableParallelBuilding = true;
   
     postInstall = ''
  -    rm -rf $out/share/gtk-doc
       substituteInPlace "$out/lib/gtk-3.0/3.0.0/printbackends/libprintbackend-cups.la" \
         --replace '-L${gmp.dev}/lib' '-L${gmp.out}/lib'
     '';
  
positive.code: 
    nativeBuildInputs = [ pkgconfig gettext gobjectIntrospection perl ];
  
    buildInputs = [ libxkbcommon epoxy ];
    propagatedBuildInputs = with xlibs; with stdenv.lib;
      [ expat glib cairo pango gdk_pixbuf atk at_spi2_atk libXrandr libXrender libXcomposite libXi libXcursor ]
      ++ optionals stdenv.isLinux [ wayland ]
      ++ optional xineramaSupport libXinerama
      ++ optional cupsSupport cups;
  
    NIX_LDFLAGS = if stdenv.isDarwin then "-lintl" else null;
  
    # demos fail to install, no idea where's the problem
    preConfigure = "sed '/^SRC_SUBDIRS /s/demos//' -i Makefile.in";
  
negative.code: 
      homepage = http://www.gtk.org/;
  
      license = licenses.lgpl2Plus;
  
      maintainers = with maintainers; [ urkud raskin vcunat lethalman ];
      platforms = platforms.all;
    };
  }
  