<commit_before>{ stdenv, fetchurl, tcl, tcllib }:

stdenv.mkDerivation {
  name = "tcl2048-0.3.1";

  src = fetchurl {
    url = https://raw.githubusercontent.com/dbohdan/2048-tcl/v0.3.1/2048.tcl;
    sha256 = "44e325328784c4e91cecc0a9cc00e32d733da713adf2fad1c081542f38af3361";
  };

  phases = "installPhase";

  installPhase = ''
    mkdir -pv $out/bin
    cp $src $out/2048.tcl
    cat > $out/bin/2048 << EOF
    #!${stdenv.shell}

    # wrapper for tcl2048
    export TCLLIBPATH="${tcllib}/lib/tcllib${tcllib.version}"
    ${tcl}/bin/tclsh $out/2048.tcl
    EOF

    chmod +x $out/bin/2048
  '';

  meta = {
    homepage = https://github.com/dbohdan/2048-tcl;
    description = "The game of 2048 implemented in Tcl";
    license = stdenv.lib.licenses.mit;
    platforms = stdenv.lib.platforms.all;<commit_msg>tcl2048: 0.3.1 -> 0.4.0<commit_after>{ stdenv, fetchurl, tcl, tcllib }:

stdenv.mkDerivation {
  name = "tcl2048-0.4.0";

  src = fetchurl {
    url = https://raw.githubusercontent.com/dbohdan/2048.tcl/v0.4.0/2048.tcl;
    sha256 = "53f5503efd7f029b2614b0f9b1e3aac6c0342735a3c9b811d74a5135fee3e89e";
  };

  phases = "installPhase";

  installPhase = ''
    mkdir -pv $out/bin
    cp $src $out/2048.tcl
    cat > $out/bin/2048 << EOF
    #!${stdenv.shell}

    # wrapper for tcl2048
    export TCLLIBPATH="${tcllib}/lib/tcllib${tcllib.version}"
    ${tcl}/bin/tclsh $out/2048.tcl
    EOF

    chmod +x $out/bin/2048
  '';

  meta = {
    homepage = https://github.com/dbohdan/2048.tcl;
    description = "The game of 2048 implemented in Tcl";
    license = stdenv.lib.licenses.mit;
    platforms = stdenv.lib.platforms.all;
{'fraction_non_alphanumeric': 0.15097799511002444, 'fraction_numerical': 0.11491442542787286, 'mean_word_length': 3.0419753086419754, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 6, 'https://': 4, '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': '2989136', 'n_tokens_mistral': 811, 'n_tokens_neox': 713, 'n_words': 107}