anchor.diff:        rm -rf $out/tests
       '';
   
  -  crossAttrs = let
  -    isMingw = stdenv.cross.libc == "msvcrt";
  -  in {
  +  crossAttrs = {
       # I've not tried any case other than i686-pc-mingw32.
       # -nomake tools:   it fails linking some asian language symbols
       # -no-svg: it fails to build on mingw64
  
positive.code:       -no-svg
        -make qmake -make libs -nomake tools
        -nomake demos -nomake examples -nomake docs
      '' + optionalString isMingw " -xplatform win32-g++-4.6";
      patches = [];
      preConfigure = ''
        sed -i -e 's/ g++/ ${stdenv.cross.config}-g++/' \
          -e 's/ gcc/ ${stdenv.cross.config}-gcc/' \
          -e 's/ ar/ ${stdenv.cross.config}-ar/' \
          -e 's/ strip/ ${stdenv.cross.config}-strip/' \
          -e 's/ windres/ ${stdenv.cross.config}-windres/' \
          mkspecs/win32-g++/qmake.conf
      '';
  
  
negative.code: { stdenv, fetchurl, fetchpatch, substituteAll
  , hostPlatform
  , libXrender, libXinerama, libXcursor, libXmu, libXv, libXext
  , libXfixes, libXrandr, libSM, freetype, fontconfig, zlib, libjpeg, libpng
  , libmng, which, mesaSupported, mesa, mesa_glu, openssl, dbus, cups, pkgconfig
  