From ecf964c02384302e2bd0f555873fa7046e6f65e3 Mon Sep 17 00:00:00 2001 From: Ashish SHUKLA Date: Sun, 19 Oct 2025 17:07:28 +0200 Subject: [PATCH] gnu: Add schemesh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/chez.scm: New variable. Change-Id: Ic484602c51589ef5f9983fa7d83553a18c2ff5d1 Signed-off-by: Ludovic Courtès --- gnu/packages/chez.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/chez.scm b/gnu/packages/chez.scm index 43fba78225d869753d85a6abb2074bbf092b8929..f8d36f33e8e27c571d5c7bfa218ba9210fa78b4b 100644 --- a/gnu/packages/chez.scm +++ b/gnu/packages/chez.scm @@ -1373,3 +1373,40 @@ required to port the program @code{Scmutils} to Chez Scheme.") Scmutils program to Chez Scheme. The port consists of a set of libraries providing most of the functionality of the original.") (license license:gpl3+))) + +(define-public schemesh + (package + (name "schemesh") + (version "0.9.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cosmos72/schemesh") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 (base32 "0rnd2mz3vnsxdac5q7i625mkmfc1znp865wxdqqx1c6dqb26bqrv")))) + (build-system gnu-build-system) + (arguments + (list #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-Makefile + (lambda _ + (substitute* "Makefile" + (("CC=cc") + (string-append "CC=" #$(cc-for-target))) + (("^(prefix[^/]*)/.*" all prefix) + (string-append prefix #$output "\n"))))) + (delete 'configure)))) + (inputs (list chez-scheme + lz4 + zlib + ncurses + `(,util-linux "lib"))) + (home-page "https://github.com/cosmos72/schemesh") + (synopsis "Unix shell and Lisp REPL, fused together") + (description "Schemesh is an interactive shell scriptable in Lisp. It +supports interactive line editing, autocompletion, history and the familiar Unix +shell syntax.") + (license license:gpl2)))