anchor.diff:        -docdir $out/share/doc/${name}
         -plugindir $out/lib/qt4/plugins
         -importdir $out/lib/qt4/imports
  -      -examplesdir $out/share/doc/${name}/examples
  -      -demosdir $out/share/doc/${name}/demos
  +      -examplesdir $TMPDIR/share/doc/${name}/examples
  +      -demosdir $TMPDIR/share/doc/${name}/demos
         -datadir $out/share/${name}
         -translationdir $out/share/${name}/translations
       "
  
positive.code:       + "${v_maj}/${vers}/qt-everywhere-opensource-src-${vers}.tar.gz";
      sha256 = "183fca7n7439nlhxyg1z7aky0izgbyll3iwakw4gwivy16aj5272";
    };
  
    # The version property must be kept because it will be included into the QtSDK package name
    version = vers;
  
negative.code:     find . -name "Makefile*" | xargs sed -i 's/^\(LINK[[:space:]]* = clang++\)/\1 ${NIX_LDFLAGS}/'
      sed -i 's/^\(LIBS[[:space:]]*=.*$\)/\1 -lobjc/' ./src/corelib/Makefile.Release
    '';
  
    postInstall =
      ''
        rm -rf $out/tests
      '';
  
    crossAttrs = let
      isMingw = stdenv.cross.libc == "msvcrt";
  