<commit_before>{ stdenv, fetchgit, readline, yacc, autoconf, automake, libtool }:

let
  version = "git-2015-04-11";
in
stdenv.mkDerivation {

  name = "es-${version}";

  src = fetchgit {
    url = "git://github.com/wryun/es-shell";
    rev = "fdf29d5296ce3a0ef96d2b5952cff07878753975";
    sha256 = "12faa9b5ffwydgwyjp57zr19sqap2ma3crj6wd2rx1hv30dkll7p";
  };

  buildInputs = [ readline yacc libtool autoconf automake ];

  preConfigure =
    ''
      aclocal
      autoconf
      libtoolize -qi
    '';

  configureFlags="--with-readline --prefix=$(out) --bindir=$(out)/bin --mandir=$(out)/man";

  preInstall = ''
    mkdir -p $out/bin
    mkdir -p $out/man/man1
  '';

  meta = with stdenv.lib; {<commit_msg>es: git-2015-04-11 -> 0.9.1<commit_after>{ stdenv, fetchurl, readline, yacc }:

let
  version = "0.9.1";
in
stdenv.mkDerivation {

  name = "es-${version}";

  src = fetchurl {
    url = "https://github.com/wryun/es-shell/releases/download/v${version}/es-${version}.tar.gz";
    sha256 = "1fplzxc6lncz2lv2fyr2ig23rgg5j96rm2bbl1rs28mik771zd5h";
  };

  # The distribution tarball does not have a single top-level directory.
  preUnpack = ''
    mkdir $name
    cd $name
    sourceRoot=.
  '';

  buildInputs = [ readline yacc ];

  configureFlags = [ "--with-readline" ];

  meta = with stdenv.lib; {
{'fraction_non_alphanumeric': 0.15384615384615385, 'fraction_numerical': 0.06778370144706779, 'mean_word_length': 3.1847133757961785, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3596235', 'n_tokens_mistral': 587, 'n_tokens_neox': 530, 'n_words': 92}