<commit_before>{ stdenv, fetchFromGitHub, scons, qt4 }:

stdenv.mkDerivation {
  pname = "gambatte";
  version = "2016-05-03";

  src = fetchFromGitHub {
    owner = "sinamas";
    repo = "gambatte";
    rev = "f8a810b103c4549f66035dd2be4279c8f0d95e77";
    sha256 = "1arv4zkh3fhrghsykl4blazc9diw09m44pyff1059z5b98smxy3v";
  };

  buildInputs = [ scons qt4 ];

  patches = [ ./fix-scons-paths.patch ];

  buildPhase = ''
    ./build_qt.sh<commit_msg>gambatte: add alsa dependency, 2016-05-03 -> 2020-03-14<commit_after>{ stdenv, fetchFromGitHub, scons, qt4, alsaLib }:

stdenv.mkDerivation {
  pname = "gambatte";
  version = "2020-03-14";

  src = fetchFromGitHub {
    owner = "sinamas";
    repo = "gambatte";
    rev = "56e3371151b5ee86dcdcf4868324ebc6de220bc9";
    sha256 = "0cc6zcvxpvi5hgcssb1zy0fkj9nk7n0d2xm88a4v05kpm5zw7sh2";
  };

  buildInputs = [ scons qt4 alsaLib ];

  patches = [ ./fix-scons-paths.patch ];

  buildPhase = ''
    ./build_qt.sh
{'fraction_non_alphanumeric': 0.13451511991657977, 'fraction_numerical': 0.132429614181439, 'mean_word_length': 3.7058823529411766, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2339817', 'n_tokens_mistral': 498, 'n_tokens_neox': 427, 'n_words': 60}