<commit_before>{ lib, stdenv, fetchFromGitHub, cmake, fftw, catch2 }:

stdenv.mkDerivation rec {
  pname = "libkeyfinder";
  version = "2.2.4";

  src = fetchFromGitHub {
    owner = "mixxxdj";
    repo = "libkeyfinder";
    rev = "v${version}";
    sha256 = "005qq81xfzi1iifvpgkqpizxcrfisafq2r0cjp4fxqh1ih7bfimv";
  };

  # needed for linking libkeyfinder.so into keyfinder-tests executable
  preBuild = ''
    export LD_LIBRARY_PATH=$(pwd)
  '';

  nativeBuildInputs = [ cmake ];

  buildInputs = [ fftw ];
<commit_msg>libkeyfinder: don't set LD_LIBRARY_PATH<commit_after>{ lib, stdenv, fetchFromGitHub, cmake, fftw, catch2 }:

stdenv.mkDerivation rec {
  pname = "libkeyfinder";
  version = "2.2.4";

  src = fetchFromGitHub {
    owner = "mixxxdj";
    repo = "libkeyfinder";
    rev = "v${version}";
    sha256 = "005qq81xfzi1iifvpgkqpizxcrfisafq2r0cjp4fxqh1ih7bfimv";
  };

  # needed for finding libkeyfinder.so to link it into keyfinder-tests executable
  cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=OFF" ];

  nativeBuildInputs = [ cmake ];

  buildInputs = [ fftw ];

{'fraction_non_alphanumeric': 0.12476722532588454, 'fraction_numerical': 0.0335195530726257, 'mean_word_length': 4.046948356807512, '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': '5445596', 'n_tokens_mistral': 459, 'n_tokens_neox': 426, 'n_words': 79}