~ruther/guix-local

ecf964c02384302e2bd0f555873fa7046e6f65e3 — Ashish SHUKLA 5 months ago 489e943
gnu: Add schemesh.

* gnu/packages/chez.scm: New variable.

Change-Id: Ic484602c51589ef5f9983fa7d83553a18c2ff5d1
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
1 files changed, 37 insertions(+), 0 deletions(-)

M gnu/packages/chez.scm
M gnu/packages/chez.scm => gnu/packages/chez.scm +37 -0
@@ 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)))