<commit_before>{ lib, stdenv, fetchurl, dune, ocamlPackages }:

stdenv.mkDerivation {

  pname = "acgtk";
  version = "1.5.1";

  src = fetchurl {
    url = "https://acg.loria.fr/software/acg-1.5.1-20191113.tar.gz";
    sha256 = "17595qfwhzz5q091ak6i6bg5wlppbn8zfn58x3hmmmjvx2yfajn1";
  };

  buildInputs = [ dune ] ++ (with ocamlPackages; [
    ocaml findlib ansiterminal cairo2 cmdliner fmt logs menhir mtime yojson
  ]);

  buildPhase = "dune build";

  inherit (dune) installPhase;

  meta = with lib; {
    homepage = "https://acg.loria.fr/";
    description = "A toolkit for developing ACG signatures and lexicon";
    license = licenses.cecill20;
    inherit (ocamlPackages.ocaml.meta) platforms;
    maintainers = [ maintainers.jirkamarsik ];
  };
}<commit_msg>acgtk: use dune install<commit_after>{ lib, stdenv, fetchurl, dune, ocamlPackages }:

stdenv.mkDerivation {

  pname = "acgtk";
  version = "1.5.1";

  src = fetchurl {
    url = "https://acg.loria.fr/software/acg-1.5.1-20191113.tar.gz";
    sha256 = "17595qfwhzz5q091ak6i6bg5wlppbn8zfn58x3hmmmjvx2yfajn1";
  };

  buildInputs = [ dune ] ++ (with ocamlPackages; [
    ocaml findlib ansiterminal cairo2 cmdliner fmt logs menhir mtime yojson
  ]);

  buildPhase = "dune build";

  installPhase = ''
    dune install --prefix $out --libdir $OCAMLFIND_DESTDIR
  '';

  meta = with lib; {
    homepage = "https://acg.loria.fr/";
    description = "A toolkit for developing ACG signatures and lexicon";
    license = licenses.cecill20;
    inherit (ocamlPackages.ocaml.meta) platforms;
    maintainers = [ maintainers.jirkamarsik ];
  };
}
{'fraction_non_alphanumeric': 0.1285892634207241, 'fraction_numerical': 0.04744069912609238, 'mean_word_length': 3.5410764872521248, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '4507222', 'n_tokens_mistral': 679, 'n_tokens_neox': 618, 'n_words': 123}