<commit_before>{ stdenv, fetchurl, ocaml, findlib, which, ocsigen_server, ocsigen_deriving,
  js_of_ocaml, ocaml_react, ocaml_lwt, calendar, cryptokit, tyxml,
  ipaddr, ocamlnet, ocaml_ssl, ocaml_pcre, ocaml_optcomp,
  reactivedata, opam}:

stdenv.mkDerivation rec
{
  pname = "eliom";
  version = "4.1.0";
  name = "${pname}-${version}";

  src = fetchurl {
    url = https://github.com/ocsigen/eliom/archive/4.1.0.tar.gz;
    sha256 = "10v7mrq3zsbxdlg8k8xif777mbvcdpabvnd1g7p2yqivr7f1qm24";
  };

  patches = [ ./camlp4.patch ];

  buildInputs = [ocaml which ocsigen_server findlib ocsigen_deriving
                 js_of_ocaml ocaml_optcomp opam];

  propagatedBuildInputs = [ ocaml_lwt reactivedata tyxml ipaddr
                            calendar cryptokit ocamlnet ocaml_react ocaml_ssl
                            ocaml_pcre ];

  installPhase =
  let ocamlVersion = (builtins.parseDrvName (ocaml.name)).version;
  in
  ''opam-installer --script --prefix=$out ${pname}.install > install.sh
    sh install.sh
    ln -s $out/lib/${pname} $out/lib/ocaml/${ocamlVersion}/site-lib/
  '';

  createFindlibDestdir = true;<commit_msg>eliom: requires OCaml >= 4<commit_after>{ stdenv, fetchurl, ocaml, findlib, which, ocsigen_server, ocsigen_deriving,
  js_of_ocaml, ocaml_react, ocaml_lwt, calendar, cryptokit, tyxml,
  ipaddr, ocamlnet, ocaml_ssl, ocaml_pcre, ocaml_optcomp,
  reactivedata, opam}:

assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4";

stdenv.mkDerivation rec
{
  pname = "eliom";
  version = "4.1.0";
  name = "${pname}-${version}";

  src = fetchurl {
    url = https://github.com/ocsigen/eliom/archive/4.1.0.tar.gz;
    sha256 = "10v7mrq3zsbxdlg8k8xif777mbvcdpabvnd1g7p2yqivr7f1qm24";
  };

  patches = [ ./camlp4.patch ];

  buildInputs = [ocaml which ocsigen_server findlib ocsigen_deriving
                 js_of_ocaml ocaml_optcomp opam];

  propagatedBuildInputs = [ ocaml_lwt reactivedata tyxml ipaddr
                            calendar cryptokit ocamlnet ocaml_react ocaml_ssl
                            ocaml_pcre ];

  installPhase =
  let ocamlVersion = (builtins.parseDrvName (ocaml.name)).version;
  in
  ''opam-installer --script --prefix=$out ${pname}.install > install.sh
    sh install.sh
    ln -s $out/lib/${pname} $out/lib/ocaml/${ocamlVersion}/site-lib/
  '';

  createFindlibDestdir = true;
{'fraction_non_alphanumeric': 0.11829787234042553, 'fraction_numerical': 0.02297872340425532, 'mean_word_length': 3.3296500920810312, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '4548020', 'n_tokens_mistral': 951, 'n_tokens_neox': 926, 'n_words': 159}