<commit_before>{ stdenv, fetchurl, ncurses}:

stdenv.mkDerivation rec {
  name = "libedit-20090923-3.0";

  src = fetchurl {
    url = "http://www.thrysoee.dk/editline/${name}.tar.gz";
    sha256 = "02j66qbd1c9wfghpjb8dzshkcj4i0n9xanxy81552j3is9ilxjka";
  };

  postInstall = ''
    sed -i s/-lcurses/-lncurses/g $out/lib/pkgconfig/libedit.pc
  '';

  propagatedBuildInputs = [ ncurses ];

  meta = {
    homepage = "http://www.thrysoee.dk/editline/";
    description = "A port of the NetBSD Editline library (libedit)";
  };<commit_msg>Updating the libedit build so it works fine with wide chars.<commit_after>{ stdenv, fetchurl, ncurses}:

stdenv.mkDerivation rec {
  name = "libedit-20100424-3.0";

  src = fetchurl {
    url = "http://www.thrysoee.dk/editline/${name}.tar.gz";
    sha256 = "11hxaq58gym7kqccjhxywjxdibffzg545z1aj997y1dn0rckhav0";
  };

  postInstall = ''
    sed -i s/-lncurses/-lncursesw/g $out/lib/pkgconfig/libedit.pc
  '';

  configureFlags = "--enable-widec";

  propagatedBuildInputs = [ ncurses ];

  meta = {
    homepage = "http://www.thrysoee.dk/editline/";
    description = "A port of the NetBSD Editline library (libedit)";
  };
{'fraction_non_alphanumeric': 0.14987080103359174, 'fraction_numerical': 0.04995693367786391, 'mean_word_length': 3.4864864864864864, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '6605414', 'n_tokens_mistral': 509, 'n_tokens_neox': 468, 'n_words': 78}