From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 14 14:28:58 2017 Received: (at submit) by debbugs.gnu.org; 14 Feb 2017 19:28:58 +0000 Received: from localhost ([127.0.0.1]:40156 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cdimX-0006Im-Pb for submit@debbugs.gnu.org; Tue, 14 Feb 2017 14:28:57 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49762) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cdimW-0006Ia-51 for submit@debbugs.gnu.org; Tue, 14 Feb 2017 14:28:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cdimP-0006Bu-V3 for submit@debbugs.gnu.org; Tue, 14 Feb 2017 14:28:51 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44972) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cdimP-0006Bl-Rw for submit@debbugs.gnu.org; Tue, 14 Feb 2017 14:28:49 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cdimO-0004Ia-AG for guix-patches@gnu.org; Tue, 14 Feb 2017 14:28:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cdimL-0006Ac-EC for guix-patches@gnu.org; Tue, 14 Feb 2017 14:28:48 -0500 Received: from perdizione.investici.org ([94.23.50.208]:39414) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cdimL-00069p-3a for guix-patches@gnu.org; Tue, 14 Feb 2017 14:28:45 -0500 Received: from [94.23.50.208] (perdizione [94.23.50.208]) (Authenticated sender: niasterisk@grrlz.net) by localhost (Postfix) with ESMTPSA id EFE1912084D for ; Tue, 14 Feb 2017 19:28:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cryptolab.net; s=stigmate; t=1487100522; bh=PZMcbgjki3pPTmruOVBii8Axe7HT9ioRF0vAdpwhQqo=; h=Date:From:To:Subject; b=oJp+o/DwWA1S6vrmO55/XXVosaOFdHW4bqNWDztP49HPDVAp7o6XcdTzRlrMQ8G2M HxbqJvJLjQU/CISVS31aCGGW9rOLG59Y2oJw68shca9XFr0sHhWPRIVo+U3ERmmEYr QycztaXE2qUUUOuI13eBzWeHHun2coFzR62/L1O4= Date: Tue, 14 Feb 2017 19:30:31 +0000 From: ng0 To: guix-patches@gnu.org Subject: SCSH Message-ID: <20170214193031.pb5dlpv23hxo4cns@wasp> Mail-Followup-To: guix-patches@gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) The following two patches add rx (a dependency of scsh) and scsh. For what my limited testing shows, it works. -- ng0 -- https://www.inventati.org/patternsinthechaos/ From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 14 14:31:22 2017 Received: (at 25732) by debbugs.gnu.org; 14 Feb 2017 19:31:22 +0000 Received: from localhost ([127.0.0.1]:40161 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cdior-0006Nz-7V for submit@debbugs.gnu.org; Tue, 14 Feb 2017 14:31:22 -0500 Received: from aibo.runbox.com ([91.220.196.211]:41676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cdiop-0006Nr-Ao for 25732@debbugs.gnu.org; Tue, 14 Feb 2017 14:31:19 -0500 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1cdioo-0006k5-3P for 25732@debbugs.gnu.org; Tue, 14 Feb 2017 20:31:18 +0100 Received: from 62-210-105-116.rev.poneytelecom.eu ([62.210.105.116] helo=localhost) by mailfront11.runbox.com with esmtpsa (uid:892961 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1cdiok-0004B9-Be; Tue, 14 Feb 2017 20:31:14 +0100 From: contact.ng0@cryptolab.net To: 25732@debbugs.gnu.org Subject: [PATCH 2/2] gnu: Add scsh. Date: Tue, 14 Feb 2017 19:32:59 +0000 Message-Id: <20170214193259.3141-2-contact.ng0@cryptolab.net> X-Mailer: git-send-email 2.11.1 In-Reply-To: <20170214193259.3141-1-contact.ng0@cryptolab.net> References: <20170214193259.3141-1-contact.ng0@cryptolab.net> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 25732 Cc: ng0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) From: ng0 * gnu/packages/shells.scm (scsh): New variable. --- gnu/packages/shells.scm | 61 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm index a7a7fbce5..7fe1de13e 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,63 @@ 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 "rx")) + (rxpath (string-append rx "/share/scheme48-" + ,(package-version scheme48) + "/rx"))) + (delete-file-recursively "rx") + (copy-recursively rxpath "rx")) + #t)) + (add-before 'configure 'autoreconf + (lambda _ + (zero? (system* "autoreconf"))))))) + (inputs + `(("scheme48" ,scheme48) + ("rx" ,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. What does that mean? +Well, unix shells are powerful tools. They allow a user to concisely specify +her commands and the communications between them (piping, redirecting, &c.). +When she needs to do something more complex than running a set of commands +with known inputs, however, things become complicated. General programming +with sh can be unpleasant and error prone, to say the least. + +Scheme is a simple, expressive general programming language. A user with some +taste may want to use it to wield her computing machine. For simple commands, +however, it is not the most concise. At the scale of the command line, even the +overhead of parentheses matters. It would be nice to use each of these languages +where their strengths lie. + +Scsh is the solution. It allows the user to write commands in a language within +Scheme that follows the unix way, but also allows her to specify more complex +commands with the elegance of Scheme.") + (license bsd-3)))) -- 2.11.1 From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 14 14:31:56 2017 Received: (at 25732) by debbugs.gnu.org; 14 Feb 2017 19:31:56 +0000 Received: from localhost ([127.0.0.1]:40164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cdipJ-0006Oe-QF for submit@debbugs.gnu.org; Tue, 14 Feb 2017 14:31:56 -0500 Received: from aibo.runbox.com ([91.220.196.211]:55256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cdipI-0006OW-2t for 25732@debbugs.gnu.org; Tue, 14 Feb 2017 14:31:48 -0500 Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1cdipH-00051T-B0 for 25732@debbugs.gnu.org; Tue, 14 Feb 2017 20:31:47 +0100 Received: from 62-210-105-116.rev.poneytelecom.eu ([62.210.105.116] helo=localhost) by mailfront10.runbox.com with esmtpsa (uid:892961 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1cdioh-0007aq-I6; Tue, 14 Feb 2017 20:31:11 +0100 From: contact.ng0@cryptolab.net To: 25732@debbugs.gnu.org Subject: [PATCH 1/2] gnu: Add rx. Date: Tue, 14 Feb 2017 19:32:58 +0000 Message-Id: <20170214193259.3141-1-contact.ng0@cryptolab.net> X-Mailer: git-send-email 2.11.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 25732 Cc: ng0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) From: ng0 * gnu/packages/scheme.scm (rx): New variable. --- gnu/packages/scheme.scm | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/gnu/packages/scheme.scm b/gnu/packages/scheme.scm index 1210ab526..27e4eb155 100644 --- a/gnu/packages/scheme.scm +++ b/gnu/packages/scheme.scm @@ -5,7 +5,7 @@ ;;; Copyright © 2016 Ricardo Wurmus ;;; Copyright © 2016 Efraim Flashner ;;; Copyright © 2016 Jan Nieuwenhuizen -;;; Copyright © 2016 ng0 +;;; Copyright © 2016, 2017 ng0 ;;; ;;; This file is part of GNU Guix. ;;; @@ -805,3 +805,42 @@ Using Scheme, a dialect of the Lisp programming language, the book explains core computer science concepts such as abstraction in programming, metalinguistic abstraction, recursion, interpreters, and modular programming.") (license cc-by-sa4.0)))) + +(define-public rx + (let* ((commit "d3231ad13de2b44e3ee173b1c9d09ff165e8b6d5") + (revision "1")) + (package + (name "rx") + (version (string-append "0.0.0-" revision "." (string-take commit 7))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/scheme/rx") + (commit commit))) + (sha256 + (base32 + "1nmziaibgmfi346kzidj6xyad0vm7724qymbzgxvdzyrqji6v6yz")) + (file-name (string-append name "-" version "-checkout")))) + (build-system trivial-build-system) + (arguments + `(#:modules ((guix build utils)) + #:builder + (begin + (use-modules (guix build utils)) + (let ((share (string-append %output + "/share/scheme48-" + ,(package-version scheme48) + "/rx"))) + (chdir (assoc-ref %build-inputs "source")) + (mkdir-p share) + (copy-recursively "." share))))) + (native-inputs + `(("source" ,source) + ("scheme48" ,scheme48))) + (home-page "https://github.com/scheme/rx/") + (synopsis "SRE String pattern-matching library for scheme48") + (description + "String pattern-matching library for scheme48 based on the SRE +regular-expression notation.") + (license bsd-3)))) -- 2.11.1 From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 14 14:39:24 2017 Received: (at control) by debbugs.gnu.org; 14 Feb 2017 19:39:24 +0000 Received: from localhost ([127.0.0.1]:40170 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cdiwe-0006ZC-LA for submit@debbugs.gnu.org; Tue, 14 Feb 2017 14:39:24 -0500 Received: from dustycloud.org ([50.116.34.160]:55950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cdiwa-0006Z0-TH for control@debbugs.gnu.org; Tue, 14 Feb 2017 14:39:23 -0500 Received: from oolong (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id 612B0265CD for ; Tue, 14 Feb 2017 14:39:18 -0500 (EST) Date: Tue, 14 Feb 2017 13:39:18 -0600 Message-Id: <87shng4l5l.fsf@dustycloud.org> To: control@debbugs.gnu.org From: Christopher Allan Webber Subject: control message for bug #25732 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) tags 25732 patch From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 16 16:04:47 2017 Received: (at 25732) by debbugs.gnu.org; 16 Feb 2017 21:04:47 +0000 Received: from localhost ([127.0.0.1]:42666 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ceTEN-0001na-8g for submit@debbugs.gnu.org; Thu, 16 Feb 2017 16:04:47 -0500 Received: from dustycloud.org ([50.116.34.160]:52458) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ceTEL-0001nR-BB for 25732@debbugs.gnu.org; Thu, 16 Feb 2017 16:04:45 -0500 Received: from oolong (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id 95ACD266D6; Thu, 16 Feb 2017 16:04:43 -0500 (EST) References: <20170214193259.3141-1-contact.ng0@cryptolab.net> <20170214193259.3141-2-contact.ng0@cryptolab.net> User-agent: mu4e 0.9.18; emacs 25.1.1 From: Christopher Allan Webber To: contact.ng0@cryptolab.net Subject: Re: bug#25732: [PATCH 2/2] gnu: Add scsh. Date: Thu, 16 Feb 2017 15:04:43 -0600 Message-ID: <87o9y1vod0.fsf@dustycloud.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 25732 Cc: ng0 , 25732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) I got these to build fine and ran scsh. Looks good! Should we probably rename go scheme48-rx and scheme48-scsh for consistency in how we're packaging other projects? WDYT? At least for scheme48-rx... maybe one could argue that scsh is more standalone, though I think even that should be scheme48-scsh since maybe guile-scsh will have a resurgence. With that change I think it's okay to merge and push these up. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 16 17:12:49 2017 Received: (at 25732-done) by debbugs.gnu.org; 16 Feb 2017 22:12:49 +0000 Received: from localhost ([127.0.0.1]:42712 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ceUIC-0003O1-2J for submit@debbugs.gnu.org; Thu, 16 Feb 2017 17:12:49 -0500 Received: from dustycloud.org ([50.116.34.160]:52558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ceUIA-0003Nt-Ez for 25732-done@debbugs.gnu.org; Thu, 16 Feb 2017 17:12:46 -0500 Received: from oolong (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id E648B2665F; Thu, 16 Feb 2017 17:12:44 -0500 (EST) User-agent: mu4e 0.9.18; emacs 25.1.1 From: Christopher Allan Webber To: contact.ng0@cryptolab.net Subject: Re: bug#25732: [PATCH 2/2] gnu: Add scsh. Date: Thu, 16 Feb 2017 16:12:44 -0600 Message-ID: <87lgt5vl7n.fsf@dustycloud.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 25732-done Cc: ng0 , 25732-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Okay, some tweaks made: - Updated the description to be shorter and less opinionated. - Renamed rx to scheme48-rx. - Switched from copying in rx library to scsh entirely to making it a symlink. With those changes done, pushed! From unknown Sat Aug 16 10:43:24 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 17 Mar 2017 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator