<commit_before>{ stdenv, fetchFromGitHub, libaio, python, zlib }:

let
  version = "3.6";
  sha256 = "1dilsn6r958skq1kpknm13fdzw7whb3bqa3wwnn2j9gba28599pq";
in

stdenv.mkDerivation rec {
  name = "fio-${version}";

  src = fetchFromGitHub {
    owner = "axboe";
    repo = "fio";
    rev = "fio-${version}";
    inherit sha256;
  };

  buildInputs = [ python zlib ]
    ++ stdenv.lib.optional (!stdenv.isDarwin) libaio;

  enableParallelBuilding = true;

  postPatch = ''
    substituteInPlace Makefile \<commit_msg>fio: 3.6 -> 3.7 (#41564)<commit_after>{ stdenv, fetchFromGitHub, libaio, python, zlib }:

let
  version = "3.7";
  sha256 = "1m2slyxhzyznq283m6ljjgjg38i0hxg537bwhfs12qskv00c4vsk";
in

stdenv.mkDerivation rec {
  name = "fio-${version}";

  src = fetchFromGitHub {
    owner = "axboe";
    repo = "fio";
    rev = "fio-${version}";
    inherit sha256;
  };

  buildInputs = [ python zlib ]
    ++ stdenv.lib.optional (!stdenv.isDarwin) libaio;

  enableParallelBuilding = true;

  postPatch = ''
    substituteInPlace Makefile \
{'fraction_non_alphanumeric': 0.13806327900287632, 'fraction_numerical': 0.05752636625119847, 'mean_word_length': 3.6194690265486726, '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': '2627067', 'n_tokens_mistral': 478, 'n_tokens_neox': 434, 'n_words': 77}