<commit_before>{stdenv, fetchgit, coq, ssreflect, mathcomp}:

stdenv.mkDerivation rec {

  name = "coq-coqeal-${coq.coq-version}-${version}";
  version = "7522037d";

  src = fetchgit {
    url = git://github.com/CoqEAL/CoqEAL.git;
    rev = "7522037d5e01e651e705d782f4f91fc68c46866e";
    sha256 = "1cvjz0yyqihdx1hp1h9x5x14kv9qf3rjhgqq4f7rv8bxcv9p1gv3";
  };

  buildInputs = [ coq.ocaml coq.camlp5 ssreflect mathcomp ];
  propagatedBuildInputs = [ coq ];

  preConfigure = "cd theory";

  installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/";

  meta = with stdenv.lib; {
    homepage = http://www.maximedenes.fr/content/coqeal-coq-effective-algebra-library;
    description = "A Coq library for effective algebra, by which is meant formally verified computer algebra algorithms that can be run inside Coq on concrete inputs";
    maintainers = with maintainers; [ jwiegley ];
    platforms = coq.meta.platforms;
  };

}
<commit_msg>coq-coqeal: fix installation<commit_after>{ stdenv, fetchgit, coq, mathcomp }:

stdenv.mkDerivation rec {

  name = "coq-coqeal-${coq.coq-version}-${version}";
  version = "7522037d";

  src = fetchgit {
    url = git://github.com/CoqEAL/CoqEAL.git;
    rev = "7522037d5e01e651e705d782f4f91fc68c46866e";
    sha256 = "1cvjz0yyqihdx1hp1h9x5x14kv9qf3rjhgqq4f7rv8bxcv9p1gv3";
  };

  propagatedBuildInputs = [ mathcomp ];

  preConfigure = ''
    cd theory
    patch ./Make <<EOF
    0a1
    > -R . CoqEAL
    EOF
  '';

  installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/";

  meta = with stdenv.lib; {
    homepage = http://www.maximedenes.fr/content/coqeal-coq-effective-algebra-library;
    description = "A Coq library for effective algebra, by which is meant formally verified computer algebra algorithms that can be run inside Coq on concrete inputs";
    maintainers = with maintainers; [ jwiegley ];
    platforms = coq.meta.platforms;
  };

}

{'fraction_non_alphanumeric': 0.1253291205897841, 'fraction_numerical': 0.05950500263296472, 'mean_word_length': 3.797979797979798, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4145348', 'n_tokens_mistral': 800, 'n_tokens_neox': 742, 'n_words': 138}