<commit_before>{ stdenv, buildOcaml, fetchurl, libev, ocaml, findlib, jbuilder, zed, lwt_react }:

assert stdenv.lib.versionAtLeast ocaml.version "4.02";

buildOcaml rec {
  version = "1.12.0";
  name = "lambda-term";

  src = fetchurl {
    url = "https://github.com/diml/lambda-term/archive/${version}.tar.gz";
    sha256 = "129m5jb015rqm6k3k25m1i2217vhz26n8sa7z113vjv4gs0bcd3d";
  };

  buildInputs = [ libev ocaml findlib jbuilder ];

  propagatedBuildInputs = [ zed lwt_react ];

  buildPhase = "jbuilder build -p lambda-term";

  installPhase = ''
    ${jbuilder.installPhase}
    mv $out/lib/ocaml/${ocaml.version}/site-lib/{stubslibs,lambda-term}/dlllambda_term_stubs.so
  '';

  hasSharedObjects = true;

  meta = { description = "Terminal manipulation library for OCaml";
    longDescription = ''
    Lambda-term is a cross-platform library for
    manipulating the terminal. It provides an abstraction for keys,<commit_msg>ocamlPackages.lambda-term: fix installPhase<commit_after>{ stdenv, buildOcaml, fetchurl, libev, ocaml, findlib, jbuilder, zed, lwt_react }:

assert stdenv.lib.versionAtLeast ocaml.version "4.02";

buildOcaml rec {
  version = "1.12.0";
  name = "lambda-term";

  src = fetchurl {
    url = "https://github.com/diml/lambda-term/archive/${version}.tar.gz";
    sha256 = "129m5jb015rqm6k3k25m1i2217vhz26n8sa7z113vjv4gs0bcd3d";
  };

  buildInputs = [ libev ocaml findlib jbuilder ];

  propagatedBuildInputs = [ zed lwt_react ];

  buildPhase = "jbuilder build -p lambda-term";

  inherit (jbuilder) installPhase;

  hasSharedObjects = true;

  meta = { description = "Terminal manipulation library for OCaml";
    longDescription = ''
    Lambda-term is a cross-platform library for
    manipulating the terminal. It provides an abstraction for keys,
{'fraction_non_alphanumeric': 0.11728395061728394, 'fraction_numerical': 0.04040404040404041, 'mean_word_length': 4.123563218390805, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '251852', 'n_tokens_mistral': 684, 'n_tokens_neox': 638, 'n_words': 136}