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

stdenv.mkDerivation {
  name = "freeglut-2.4.0";
  
  src = fetchurl {
    url = mirror://sourceforge/freeglut/freeglut-2.4.0.tar.gz;
    sha256 = "0lmhh5p19rw4wisr0jsl7nsa2hxdaasj0vxk5ri83crhp982v7r6";
  };

  buildInputs = [x11 mesa];
  patches = ./freeglut-gcc-4.2.patch;
}<commit_msg>pkgs/development/libraries/freeglut: disable building with "-Wall -Werror" on Darwin<commit_after>{stdenv, fetchurl, x11, mesa}:

stdenv.mkDerivation {
  name = "freeglut-2.4.0";
  
  src = fetchurl {
    url = mirror://sourceforge/freeglut/freeglut-2.4.0.tar.gz;
    sha256 = "0lmhh5p19rw4wisr0jsl7nsa2hxdaasj0vxk5ri83crhp982v7r6";
  };

  configureFlags = "--" + (if stdenv.isDarwin then "disable" else "enable") + "-warnings";

  buildInputs = [x11 mesa];
  patches = ./freeglut-gcc-4.2.patch;
}
{'fraction_non_alphanumeric': 0.15366146458583432, 'fraction_numerical': 0.07683073229291716, 'mean_word_length': 3.9058823529411764, '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': '7312873', 'n_tokens_mistral': 407, 'n_tokens_neox': 364, 'n_words': 51}