<commit_before>{ stdenv, fetchurl, x11, SDL, mesa, openal }:

stdenv.mkDerivation {
  name = "ioquake3-1.36";
  
  src = fetchurl {
    url = http://ioquake3.org/files/1.36/ioquake3-1.36.tar.bz2; # calls itself "1.34-rc3"
    sha256 = "008vah60z0n9h1qp373xbqvhwfbyywbbhd1np0h0yw66g0qzchzv";
  };

  patchFlags = "-p0";
  
  patches = [
    # Fix for compiling on gcc 4.2.
    (fetchurl {
      url = "http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/games-fps/quake3/files/quake3-1.34_rc3-gcc42.patch?rev=1.1";
      sha256 = "06c9lxfczcby5q29pim231mr2wdkvbv36xp9zbxp9vk0dfs8rv9x";
    })

    # Do an exit() instead of _exit().  This is nice for gcov.
    # Upstream also seems to do this.
    ./exit.patch    
  ];
  
  buildInputs = [x11 SDL mesa openal];

  # Fix building on GCC 4.6.
  NIX_CFLAGS_COMPILE = "-Wno-error";

  preInstall = ''
    mkdir -p $out/baseq3
    installTargets=copyfiles
    installFlags="COPYDIR=$out"
  '';

  meta.broken = true;
  
}<commit_msg>ioquake3: Remove meta.broken<commit_after>{ lib, stdenv, fetchurl, x11, SDL, mesa, openal }:

stdenv.mkDerivation {
  name = "ioquake3-1.36";

  src = fetchurl {
    url = http://ioquake3.org/files/1.36/ioquake3-1.36.tar.bz2; # calls itself "1.34-rc3"
    sha256 = "008vah60z0n9h1qp373xbqvhwfbyywbbhd1np0h0yw66g0qzchzv";
  };

  patchFlags = "-p0";

  patches = [
    # Fix for compiling on gcc 4.2.
    (fetchurl {
      url = "http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/games-fps/quake3/files/quake3-1.34_rc3-gcc42.patch?rev=1.1";
      sha256 = "06c9lxfczcby5q29pim231mr2wdkvbv36xp9zbxp9vk0dfs8rv9x";
    })

    # Do an exit() instead of _exit().  This is nice for gcov.
    # Upstream also seems to do this.
    ./exit.patch
  ];

  buildInputs = [x11 SDL mesa openal];

  # Fix building on GCC 4.6.
  NIX_CFLAGS_COMPILE = "-Wno-error";

  preInstall = ''
    mkdir -p $out/baseq3
    installTargets=copyfiles
    installFlags="COPYDIR=$out"
  '';

  meta = {
    platforms = lib.platforms.linux;
    maintainers = [ lib.maintainers.eelco ];
  };
}
{'fraction_non_alphanumeric': 0.1411192214111922, 'fraction_numerical': 0.07737226277372262, 'mean_word_length': 2.969111969111969, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4209198', 'n_tokens_mistral': 972, 'n_tokens_neox': 887, 'n_words': 148}