<commit_before>{ xftSupport ? true
, xrenderSupport ? true
, threadSupport ? true
, mysqlSupport ? true
, stdenv, fetchurl, x11, libXft ? null, libXrender ? null, mysql ? null
, zlib, libjpeg, libpng, which
}:

assert xftSupport -> libXft != null;
assert xrenderSupport -> xftSupport && libXft != null;
assert mysqlSupport -> mysql != null;

stdenv.mkDerivation {
  name = "qt-3.3.3";

  builder = ./builder.sh;
  substitute = ../../../build-support/substitute/substitute.sh;
  hook = ./setup-hook.sh;  
  src = fetchurl {
    url = http://nix.cs.uu.nl/dist/tarballs/qt-x11-free-3.3.3.tar.bz2;
    md5 = "3e0a0c8429b0a974b39b5f535ddff01c";
  };

  buildInputs = [x11 libXft libXrender zlib libjpeg libpng which];

  # Don't strip everything so we can get useful backtraces.
  patches = [./strip.patch ./qt-pwd.patch];
  
  inherit threadSupport xftSupport libXft xrenderSupport libXrender;<commit_msg>* Latest QT 3.x.<commit_after>{ xftSupport ? true
, xrenderSupport ? true
, threadSupport ? true
, mysqlSupport ? true
, stdenv, fetchurl, x11, libXft ? null, libXrender ? null, mysql ? null
, zlib, libjpeg, libpng, which
}:

assert xftSupport -> libXft != null;
assert xrenderSupport -> xftSupport && libXft != null;
assert mysqlSupport -> mysql != null;

stdenv.mkDerivation {
  name = "qt-3.3.5";

  builder = ./builder.sh;
  substitute = ../../../build-support/substitute/substitute.sh;
  hook = ./setup-hook.sh;  
  src = fetchurl {
    url = http://wftp.tu-chemnitz.de/pub/Qt/qt/source/qt-x11-free-3.3.5.tar.bz2;
    md5 = "05d04688c0c0230ed54e89102d689ca4";
  };

  buildInputs = [x11 libXft libXrender zlib libjpeg libpng which];

  # Don't strip everything so we can get useful backtraces.
  patches = [./strip.patch ./qt-pwd.patch];
  
  inherit threadSupport xftSupport libXft xrenderSupport libXrender;
{'fraction_non_alphanumeric': 0.13829201101928373, 'fraction_numerical': 0.03911845730027548, 'mean_word_length': 3.54, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6428791', 'n_tokens_mistral': 710, 'n_tokens_neox': 662, 'n_words': 154}