<commit_before>{ stdenv, fetchurl, coq }:

stdenv.mkDerivation {
  name = "coq${coq.coq-version}-CoLoR-1.3.0";

  src = fetchurl {
    url = https://gforge.inria.fr/frs/download.php/file/36399/color.1.3.0.tar.gz;
    sha256 = "0n7431mc4a5bn9fsyk5167j2vnbxz4vgggjch4pm0x58lda8mxv1";
  };

  buildInputs = [ coq ];
  enableParallelBuilding = true;
  installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/";

  meta = with stdenv.lib; {
    homepage = http://color.inria.fr/;
    description = "CoLoR is a library of formal mathematical definitions and proofs of theorems on rewriting theory and termination whose correctness has been mechanically checked by the Coq proof assistant.";
    maintainers = with maintainers; [ jwiegley ];
    platforms = coq.meta.platforms;
  };
}
<commit_msg>coqPackages_8_6.CoLoR: Fix installPhase<commit_after>{ stdenv, fetchurl, coq }:

stdenv.mkDerivation {
  name = "coq${coq.coq-version}-CoLoR-1.3.0";

  src = fetchurl {
    url = https://gforge.inria.fr/frs/download.php/file/36399/color.1.3.0.tar.gz;
    sha256 = "0n7431mc4a5bn9fsyk5167j2vnbxz4vgggjch4pm0x58lda8mxv1";
  };

  buildInputs = [ coq ];
  enableParallelBuilding = true;

  installPhase = ''
    make -f Makefile.coq COQLIB=$out/lib/coq/${coq.coq-version}/ install
  '';

  meta = with stdenv.lib; {
    homepage = http://color.inria.fr/;
    description = "CoLoR is a library of formal mathematical definitions and proofs of theorems on rewriting theory and termination whose correctness has been mechanically checked by the Coq proof assistant.";
    maintainers = with maintainers; [ jwiegley ];
    platforms = coq.meta.platforms;
  };
}

{'fraction_non_alphanumeric': 0.12515188335358446, 'fraction_numerical': 0.0425273390036452, 'mean_word_length': 3.773913043478261, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2486037', 'n_tokens_mistral': 650, 'n_tokens_neox': 611, 'n_words': 124}