<commit_before>{ playerctl, libxkbcommon, callPackage, attrs ? {} }:

let
  pkg = callPackage ./build.nix ({
    version = "unstable-2018-01-18";

    rev    = "c516e8e78d39dd2b339acadc4c175347171150bb";
    sha256 = "1p9lx78cayyn7qc2q66id2xfs76jyddnqv2x1ypsvixaxwcvqgdb";
  } // attrs);
in pkg.overrideAttrs (o: {
  buildInputs = o.buildInputs ++ [
    playerctl libxkbcommon
  ];

  makeFlags = o.makeFlags ++ [
    "PLAYERCTL=1"
  ];
})<commit_msg>yabar-unstable: patch for playerctl-2.0 support<commit_after>{ fetchpatch, playerctl, libxkbcommon, callPackage, attrs ? {} }:

let
  pkg = callPackage ./build.nix ({
    version = "unstable-2018-01-18";

    rev    = "c516e8e78d39dd2b339acadc4c175347171150bb";
    sha256 = "1p9lx78cayyn7qc2q66id2xfs76jyddnqv2x1ypsvixaxwcvqgdb";
  } // attrs);
in pkg.overrideAttrs (o: {
  buildInputs = o.buildInputs ++ [
    playerctl libxkbcommon
  ];

  makeFlags = o.makeFlags ++ [
    "PLAYERCTL=1"
  ];

  patches = (o.patches or []) ++ [
    (fetchpatch {
      url = "https://github.com/geommer/yabar/commit/008dc1420ff684cf12ce2ef3ac9d642e054e39f5.patch";
      sha256 = "1q7nd66ai6nr2m6iqxn55gvbr4r5gjc00c8wyjc3riv31qcbqbhv";
    })
  ];
})
{'fraction_non_alphanumeric': 0.13395113732097724, 'fraction_numerical': 0.12299915754001685, 'mean_word_length': 3.7903225806451615, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '2397977', 'n_tokens_mistral': 595, 'n_tokens_neox': 517, 'n_words': 65}