<commit_before>with import <nixpkgs> {};

stdenv.mkDerivation rec {
  name = "urn";
  version = "0.3.1";
  src = ./.; # oh nix
  buildInputs = [ lua makeWrapper ];

  installPhase = ''
  install -Dm755 bin/urn.lua $out/bin/urn
  mkdir -p $out/lib/
  cp -r lib $out/lib/urn
  wrapProgram $out/bin/urn \
    --add-flags "-i $out/lib/urn --prelude $out/lib/urn/prelude.lisp" \
    --prefix PATH : ${lua}/bin/
  '';

  meta = with stdenv.lib; {
    homepage = https://squiddev.github.io/urn;
    description = "A lean lisp implementation for Lua";
    license = licenses.bsd3;
  };
}<commit_msg>Allow the user to specify which Lua derivation to use<commit_after>{ nixpkgs ? import <nixpkgs> {}
, lua ? nixpkgs.pkgs.lua
}:

let
  inherit (nixpkgs) stdenv;
in
stdenv.mkDerivation rec {
  name = "urn";
  version = "0.3.1";
  src = ./.; # oh nix
  buildInputs = [ lua nixpkgs.pkgs.makeWrapper ];

  installPhase = ''
  install -Dm755 bin/urn.lua $out/bin/urn
  mkdir -p $out/lib/
  cp -r lib $out/lib/urn
  wrapProgram $out/bin/urn \
    --add-flags "-i $out/lib/urn --prelude $out/lib/urn/prelude.lisp" \
    --prefix PATH : ${lua}/bin/
  '';

  meta = with stdenv.lib; {
    homepage = https://squiddev.github.io/urn;
    description = "A lean lisp implementation for Lua";
    license = licenses.bsd3;
  };
}
{'fraction_non_alphanumeric': 0.16411042944785276, 'fraction_numerical': 0.010736196319018405, 'mean_word_length': 2.6657303370786516, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '592720', 'n_tokens_mistral': 533, 'n_tokens_neox': 508, 'n_words': 119}