<commit_before>{ stdenv, fetchurl, jdk, makeWrapper }:

let version = "1.9.0.326"; in

stdenv.mkDerivation {
  name = "clojure-${version}";

  src = fetchurl {
    url = "https://download.clojure.org/install/clojure-tools-${version}.tar.gz";
    sha256 = "0sf8gy39iz4jxj2wic1lbdwdwbj90k3awhr0kq76gr1z1dwbj6s9";
  };

  buildInputs = [ jdk makeWrapper ];

  installPhase = ''
    pwd
    ls -la
    mkdir -p $out/libexec $out/bin
    cp -f deps.edn example-deps.edn $out
    cp -f clojure-tools-${version}.jar $out/libexec
    sed -i -e "s@PREFIX@$out@g" clojure
    cp -f clj clojure $out/bin
  '';

  meta = with stdenv.lib; {
    description = "A Lisp dialect for the JVM";
    homepage = https://clojure.org/;<commit_msg>clojure: fix for running in pure environments<commit_after>{ stdenv, fetchurl, jdk, rlwrap, makeWrapper }:

let version = "1.9.0.326"; in

stdenv.mkDerivation {
  name = "clojure-${version}";

  src = fetchurl {
    url = "https://download.clojure.org/install/clojure-tools-${version}.tar.gz";
    sha256 = "0sf8gy39iz4jxj2wic1lbdwdwbj90k3awhr0kq76gr1z1dwbj6s9";
  };

  buildInputs = [ makeWrapper ];

  installPhase = ''
    pwd
    ls -la
    mkdir -p $out/libexec $out/bin
    cp -f deps.edn example-deps.edn $out
    cp -f clojure-tools-${version}.jar $out/libexec
    sed -i -e "s@PREFIX@$out@g" clojure
    cp -f clj clojure $out/bin
    for program in $out/bin/{clojure,clj}; do
      wrapProgram $program --suffix PATH : $out/bin:${jdk.jre}/bin:${rlwrap}/bin
    done
  '';

  meta = with stdenv.lib; {
    description = "A Lisp dialect for the JVM";
    homepage = https://clojure.org/;
{'fraction_non_alphanumeric': 0.14938271604938272, 'fraction_numerical': 0.03209876543209877, 'mean_word_length': 3.06265664160401, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6031130', 'n_tokens_mistral': 694, 'n_tokens_neox': 662, 'n_words': 136}