<commit_before>{ stdenv, fetchFromGitHub, lib, fzf, xclip }:

stdenv.mkDerivation rec {
   pname = "unipicker";
   version = "2.0.1";

   src = fetchFromGitHub {
      owner = "jeremija";
      repo = pname;
      rev = "v${version}";
      sha256 = "1k4v53pm3xivwg9vq2kndpcmah0yn4679r5jzxvg38bbkfdk86c1";
   };

   buildInputs = [
      fzf
      xclip
   ];

   preInstall = ''
      substituteInPlace unipicker --replace "/etc/unipickerrc" "$out/etc/unipickerrc"
      substituteInPlace unipickerrc --replace "/usr/local" "$out"
   '';

   makeFlags = [
      "PREFIX=$(out)"
      "DESTDIR=$(out)"
   ];

   meta = with lib; {
    description = "A CLI utility for searching unicode characters by description and optionally copying them to clipboard";
    homepage = "https://github.com/jeremija/unipicker";
    license = licenses.mit;
    maintainers = with maintainers; [ kiyengar ];
    platforms = with platforms; unix;
   };
}
<commit_msg>unipicker: use absolute path for fzf<commit_after>{ stdenv, fetchFromGitHub, lib, fzf, xclip }:

stdenv.mkDerivation rec {
   pname = "unipicker";
   version = "2.0.1";

   src = fetchFromGitHub {
      owner = "jeremija";
      repo = pname;
      rev = "v${version}";
      sha256 = "1k4v53pm3xivwg9vq2kndpcmah0yn4679r5jzxvg38bbkfdk86c1";
   };

   buildInputs = [
      fzf
      xclip
   ];

   preInstall = ''
      substituteInPlace unipicker --replace "/etc/unipickerrc" "$out/etc/unipickerrc"
      substituteInPlace unipickerrc --replace "/usr/local" "$out"
      substituteInPlace unipicker --replace "fzf" "${fzf}/bin/fzf"
      substituteInPlace unipickerrc --replace "fzf" "${fzf}/bin/fzf"
   '';

   makeFlags = [
      "PREFIX=$(out)"
      "DESTDIR=$(out)"
   ];

   meta = with lib; {
    description = "A CLI utility for searching unicode characters by description and optionally copying them to clipboard";
    homepage = "https://github.com/jeremija/unipicker";
    license = licenses.mit;
    maintainers = with maintainers; [ kiyengar ];
    platforms = with platforms; unix;
   };
}

{'fraction_non_alphanumeric': 0.12810521188504628, 'fraction_numerical': 0.023380418899171942, 'mean_word_length': 2.95, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '123777', 'n_tokens_mistral': 771, 'n_tokens_neox': 738, 'n_words': 155}