<commit_before>{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libevent, openssl }:

stdenv.mkDerivation rec {
  pname = "fstrm";
  version = "0.6.0";

  src = fetchFromGitHub {
    owner = "farsightsec";
    repo = "fstrm";
    rev = "v${version}";
    sha256 = "0b6x9wgyn92vykkmd3ynhnpbdl77zb4wf4rm7p0h8p9pwq953hdm";
  };

  outputs = [ "bin" "out" "dev" ];

  nativeBuildInputs = [ autoreconfHook pkg-config ];
  buildInputs = [ libevent openssl ];

  preBuild = ''<commit_msg>fstrm: 0.6.0 -> 0.6.1<commit_after>{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libevent, openssl }:

stdenv.mkDerivation rec {
  pname = "fstrm";
  version = "0.6.1";

  src = fetchFromGitHub {
    owner = "farsightsec";
    repo = "fstrm";
    rev = "v${version}";
    sha256 = "sha256-/WFP2g3Vuf/qaY8pprY8XFAlpEE+0SJUlFNWfa+7ZlE=";
  };

  outputs = [ "bin" "out" "dev" ];

  nativeBuildInputs = [ autoreconfHook pkg-config ];
  buildInputs = [ libevent openssl ];

  preBuild = ''
{'fraction_non_alphanumeric': 0.15438950554994954, 'fraction_numerical': 0.044399596367305755, 'mean_word_length': 3.769230769230769, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '5002233', 'n_tokens_mistral': 445, 'n_tokens_neox': 410, 'n_words': 72}