From 52ddeaa0c24ed428bd9351fd051fc52810d80ccd Mon Sep 17 00:00:00 2001 From: ng0 Date: Thu, 16 Feb 2017 10:02:57 -0600 Subject: gnu: Add scsh. * gnu/packages/shells.scm (scsh): New variable. --- gnu/packages/shells.scm | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) (limited to 'gnu/packages/shells.scm') diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm index a7a7fbce52..7b30a1d7df 100644 --- a/gnu/packages/shells.scm +++ b/gnu/packages/shells.scm @@ -37,6 +37,7 @@ #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages readline) + #:use-module (gnu packages scheme) #:use-module (guix build-system gnu) #:use-module (guix build-system python) #:use-module (guix download) @@ -382,3 +383,51 @@ primitives that you are used to from Bash and IPython. It works on all major systems including Linux, Mac OSX, and Windows. Xonsh is meant for the daily use of experts and novices alike.") (license bsd-2))) + +(define-public scsh + (let ((commit "114432435e4eadd54334df6b37fcae505079b49f") + (revision "1")) + (package + (name "scsh") + (version (string-append "0.0.0-" revision "." (string-take commit 7))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/scheme/scsh") + (commit commit))) + (file-name (string-append name "-" version "-checkout")) + (sha256 + (base32 + "1ghk08akiz7hff1pndi8rmgamgcrn2mv9asbss9l79d3c2iaav3q")))) + (build-system gnu-build-system) + (arguments + `(#:test-target "test" + #:phases + (modify-phases %standard-phases + (add-before 'configure 'replace-rx + (lambda* (#:key inputs #:allow-other-keys) + (let* ((rx (assoc-ref inputs "scheme48-rx")) + (rxpath (string-append rx "/share/scheme48-" + ,(package-version scheme48) + "/rx"))) + (delete-file-recursively "rx") + (symlink rxpath "rx")) + #t)) + (add-before 'configure 'autoreconf + (lambda _ + (zero? (system* "autoreconf"))))))) + (inputs + `(("scheme48" ,scheme48) + ("scheme48-rx" ,scheme48-rx))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake))) + (home-page "https://github.com/scheme/scsh") + (synopsis "Unix shell embedded in Scheme") + (description + "Scsh is a Unix shell embedded in Scheme. Scsh has two main +components: a process notation for running programs and setting up pipelines +and redirections, and a complete syscall library for low-level access to the +operating system.") + (license bsd-3)))) -- cgit v1.2.3 From 4f4bca0f1029fd46acab4f03bcc7cfd552f0e9ee Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Fri, 17 Feb 2017 16:01:22 +0100 Subject: gnu: fish: Fix build after upstream changes. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 2.5.0 release was incorrectly packaged, then fixed in place. This is, in a way, a follow-up to commit 89eb56f05fa1561b09d1050147d968b98a16b07a. See . Reported by ng0 . * gnu/packages/shells.scm (fish)[source]: Update hash. [native-inputs]: Remove autoconf, automake, and libtool. [arguments]: Remove ‘bootstrap’ phase. --- gnu/packages/shells.scm | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'gnu/packages/shells.scm') diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm index 7b30a1d7df..5aada54340 100644 --- a/gnu/packages/shells.scm +++ b/gnu/packages/shells.scm @@ -91,7 +91,7 @@ direct descendant of NetBSD's Almquist Shell (@command{ash}).") version "/fish-" version ".tar.gz")) (sha256 (base32 - "0kn2n9qr9cksg2cl78f3w0yd24368d35djhi6w5x3gbdxk23ywq3")) + "19djav128nkhjxgfhwhc32i5y9d9c3karbh5yg67kqrdranyvh7q")) (modules '((guix build utils))) ;; Don't try to install /etc/fish/config.fish. (snippet @@ -99,12 +99,7 @@ direct descendant of NetBSD's Almquist Shell (@command{ash}).") ((".*INSTALL.*sysconfdir.*fish.*") ""))))) (build-system gnu-build-system) (native-inputs - `(("doxygen" ,doxygen) - ;; XXX These are needed to bootstrap the 2.5.0 tarball, and can probably - ;; be removed along with the ‘bootstrap’ phase on the next update. - ("autoconf" ,autoconf) - ("automake" ,automake) - ("libtool" ,libtool))) + `(("doxygen" ,doxygen))) (inputs `(("bc" ,bc) ("ncurses" ,ncurses) @@ -125,10 +120,7 @@ direct descendant of NetBSD's Almquist Shell (@command{ash}).") "/bin/bc"))) (substitute* "share/functions/fish_update_completions.fish" (("python") (which "python"))) - #t)) - (add-before 'configure 'bootstrap - (lambda _ - (zero? (system* "autoreconf" "-vfi"))))))) + #t))))) (synopsis "The friendly interactive shell") (description "Fish (friendly interactive shell) is a shell focused on interactive use, -- cgit v1.2.3