<commit_before>{ stdenv, lib, writeText, writeScript, fetchurl, php }:

let
  version = "0.24.1";
  name = "wp-cli-${version}";

  phpIni = writeText "wp-cli-php.ini" ''
    [Phar]
    phar.readonly = Off
  '';

  wpBin = writeScript "wp" ''
    #! ${stdenv.shell} -e
    exec ${php}/bin/php \
      -c ${phpIni} \
      -f ${src} "$@"
  '';

  src = fetchurl {
    url = "https://github.com/wp-cli/wp-cli/releases/download/v${version}/${name}.phar";
    sha256 = "027nclp8qbfr624ja6aixzcwnvb55d7dskk9l1i042bc86hmphfd";
  };

in stdenv.mkDerivation rec {

  inherit name;

  buildCommand = ''
    mkdir -p $out/bin
    ln -s ${wpBin} $out/bin/wp<commit_msg>wp-cli: 0.24.1 -> 1.0.0<commit_after>{ stdenv, lib, writeText, writeScript, fetchurl, php }:

let
  version = "1.0.0";
  name = "wp-cli-${version}";

  phpIni = writeText "wp-cli-php.ini" ''
    [Phar]
    phar.readonly = Off
  '';

  wpBin = writeScript "wp" ''
    #! ${stdenv.shell} -e
    exec ${php}/bin/php \
      -c ${phpIni} \
      -f ${src} "$@"
  '';

  src = fetchurl {
    url = "https://github.com/wp-cli/wp-cli/releases/download/v${version}/${name}.phar";
    sha256 = "06a80fz9na9arjdpmnislwr0121kkg11kxfqmac0axa9vkv9fjcp";
  };

in stdenv.mkDerivation rec {

  inherit name src;

  buildCommand = ''
    mkdir -p $out/bin
    ln -s ${wpBin} $out/bin/wp
{'fraction_non_alphanumeric': 0.18990203466465713, 'fraction_numerical': 0.039939713639788994, 'mean_word_length': 2.6991643454039, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6634366', 'n_tokens_mistral': 611, 'n_tokens_neox': 565, 'n_words': 98}