<commit_before>args : 
let 
  lib = args.lib;
  fetchurl = args.fetchurl;
  noDepEntry = args.noDepEntry;
  FullDepEntry = args.FullDepEntry;

  buildInputs = lib.attrVals ["clisp" "texinfo"] args;
  version = lib.getAttr ["version"] "0.9.4.1" args; 

  pkgName = "stumpwm";
in
rec {
  src = fetchurl {
    url = "http://download.savannah.gnu.org/releases/stumpwm/${pkgName}-${version}.tgz";
    sha256 = "0wnkv3bgaj2bflh795ph6wiyhxzbhrif20vb40j6hjxxs9kywzqj";
  };

  inherit buildInputs;
  configureFlags = ["--with-lisp=clisp"];
  envVars = noDepEntry (''
    export HOME="$NIX_BUILD_TOP";
  '');

  installation = FullDepEntry (''
    ensureDir $out/bin 
    ensureDir $out/share/stumpwm/doc
    ensureDir $out/share/info 

    cp stumpwm $out/bin
    cp sample-stumpwmrc.lisp  $out/share/stumpwm/doc
    cp stumpwm.info $out/share/info
  '') ["minInit" "defEnsureDir" "addInputs" "doMake"];

  /* doConfigure should be specified separately */<commit_msg>Made possible stumpwm debug run now - install lisp sources, too<commit_after>args : 
let 
  lib = args.lib;
  fetchurl = args.fetchurl;
  noDepEntry = args.noDepEntry;
  FullDepEntry = args.FullDepEntry;

  buildInputs = lib.attrVals ["clisp" "texinfo"] args;
  version = lib.getAttr ["version"] "0.9.4.1" args; 

  pkgName = "stumpwm";
in
rec {
  src = fetchurl {
    url = "http://download.savannah.gnu.org/releases/stumpwm/${pkgName}-${version}.tgz";
    sha256 = "0wnkv3bgaj2bflh795ph6wiyhxzbhrif20vb40j6hjxxs9kywzqj";
  };

  inherit buildInputs;
  configureFlags = ["--with-lisp=clisp"];
  envVars = noDepEntry (''
    export HOME="$NIX_BUILD_TOP";
  '');

  installation = FullDepEntry (''
    ensureDir $out/bin 
    ensureDir $out/share/stumpwm/doc
    ensureDir $out/share/info 
    ensureDir $out/share/stumpwm/lisp

    cp stumpwm $out/bin
    cp sample-stumpwmrc.lisp  $out/share/stumpwm/doc
    cp stumpwm.info $out/share/info

    cp -r {.,cl-ppcre}/*.{lisp,fas,lib,asd} contrib $out/share/stumpwm/lisp
    cd $out/share/stumpwm/lisp
    cat << EOF >init-stumpwm.lisp
      (require "asdf") 
      (asdf:operate 'asdf:load-op :cl-ppcre) 
      (asdf:operate 'asdf:load-op :stumpwm)
    EOF
    clisp -K full -i init-stumpwm.lisp
    cat << EOF >init-stumpwm.lisp
      (require "asdf") 
      (asdf:operate 'asdf:load-source-op :cl-ppcre) 
      (asdf:operate 'asdf:load-source-op :stumpwm)
    EOF
    '') ["minInit" "defEnsureDir" "addInputs" "doMake"];

  /* doConfigure should be specified separately */
{'fraction_non_alphanumeric': 0.14429665457476823, 'fraction_numerical': 0.016122531237404272, 'mean_word_length': 3.377425044091711, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '6982659', 'n_tokens_mistral': 1013, 'n_tokens_neox': 971, 'n_words': 175}