<commit_before>{stdenv, fetchurl, tcl}:

stdenv.mkDerivation {
  name = "expect-5.43.0";
  
  src = fetchurl {
    url = http://expect.nist.gov/old/expect-5.43.0.tar.bz2;
    sha256 = "1j6vyr8lx1fbl641hkkd6hhh9ifniklskfv00pbvy33h86a3mrvn";
  };

  buildInputs = [tcl];

  #NIX_CFLAGS_COMPILE = "-DHAVE_UNISTD_H";

  # http://wiki.linuxfromscratch.org/lfs/ticket/2126
  #preBuild = ''
  #  substituteInPlace exp_inter.c --replace tcl.h tclInt.h
  #'';

  configureFlags = "--with-tcl=${tcl}/lib --with-tclinclude=${tcl}/include";

  meta = {
    description = "A tool for automating interactive applications";
    homepage = http://expect.nist.gov/;
  };
}<commit_msg>Resolved issue with hard-corded path to /sbin/stty<commit_after>{stdenv, fetchurl, tcl}:

stdenv.mkDerivation {
  name = "expect-5.43.0";
  
  src = fetchurl {
    url = http://expect.nist.gov/old/expect-5.43.0.tar.bz2;
    sha256 = "1j6vyr8lx1fbl641hkkd6hhh9ifniklskfv00pbvy33h86a3mrvn";
  };

  buildInputs = [tcl];

  #NIX_CFLAGS_COMPILE = "-DHAVE_UNISTD_H";

  # http://wiki.linuxfromscratch.org/lfs/ticket/2126
  #preBuild = ''
  #  substituteInPlace exp_inter.c --replace tcl.h tclInt.h
  #'';

  coreutils = stdenv.coreutils;
  patchPhase = '' sed -i "s@/bin/stty@$coreutils/bin/stty@" configure '';
  
  configureFlags = "--with-tcl=${tcl}/lib --with-tclinclude=${tcl}/include";

  meta = {
    description = "A tool for automating interactive applications";
    homepage = http://expect.nist.gov/;
  };
}
{'fraction_non_alphanumeric': 0.16283783783783784, 'fraction_numerical': 0.043243243243243246, 'mean_word_length': 3.5152439024390243, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '4104083', 'n_tokens_mistral': 652, 'n_tokens_neox': 609, 'n_words': 85}