<commit_before># slack-cli must be configured using the SLACK_CLI_TOKEN environment
# variable. Using `slack init` will not work because it tries to write
# to the Nix store.

{ stdenv, lib, fetchFromGitHub, makeWrapper, curl, jq }:

stdenv.mkDerivation rec {
  name = "slack-cli";
  version = "0.18.0";

  src = fetchFromGitHub {
    owner = "rockymadden";
    repo = "slack-cli";
    rev = "v${version}";
    sha256 = "022yr3cpfg0v7cxi62zzk08vp0l3w851qpfh6amyfgjiynnfyddl";
  };

  buildInputs = [ makeWrapper ];

  dontBuild = true;

  installPhase = ''
    mkdir -p $out/bin
    cp src/slack $out/bin
    wrapProgram $out/bin/slack --prefix PATH : ${lib.makeBinPath [ curl jq ]}
  '';
}<commit_msg>slack-cli: add version to name<commit_after># slack-cli must be configured using the SLACK_CLI_TOKEN environment
# variable. Using `slack init` will not work because it tries to write
# to the Nix store.

{ stdenv, lib, fetchFromGitHub, makeWrapper, curl, jq }:

stdenv.mkDerivation rec {
  name = "slack-cli-${version}";
  version = "0.18.0";

  src = fetchFromGitHub {
    owner = "rockymadden";
    repo = "slack-cli";
    rev = "v${version}";
    sha256 = "022yr3cpfg0v7cxi62zzk08vp0l3w851qpfh6amyfgjiynnfyddl";
  };

  buildInputs = [ makeWrapper ];

  dontBuild = true;

  installPhase = ''
    mkdir -p $out/bin
    cp src/slack $out/bin
    wrapProgram $out/bin/slack --prefix PATH : ${lib.makeBinPath [ curl jq ]}
  '';
}
{'fraction_non_alphanumeric': 0.12569832402234637, 'fraction_numerical': 0.03212290502793296, 'mean_word_length': 3.4921630094043885, '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': '517364', 'n_tokens_mistral': 573, 'n_tokens_neox': 539, 'n_words': 134}