From patchwork Wed Mar 31 18:45:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: david larsson X-Patchwork-Id: 28238 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4EB3A27BC66; Wed, 31 Mar 2021 19:46:13 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED,URIBL_SBL,URIBL_SBL_A autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6DE0427BC65 for ; Wed, 31 Mar 2021 19:46:12 +0100 (BST) Received: from localhost ([::1]:46826 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRfr1-0003AR-Gf for patchwork@mira.cbaines.net; Wed, 31 Mar 2021 14:46:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRfqs-000371-7V for guix-patches@gnu.org; Wed, 31 Mar 2021 14:46:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43969) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lRfqr-00037c-Si for guix-patches@gnu.org; Wed, 31 Mar 2021 14:46:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lRfqr-0004xX-RH for guix-patches@gnu.org; Wed, 31 Mar 2021 14:46:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47528] [PATCH] gnu: Add guile2.2-bash. Resent-From: david larsson Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 31 Mar 2021 18:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47528 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47528@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161721634619037 (code B ref -1); Wed, 31 Mar 2021 18:46:01 +0000 Received: (at submit) by debbugs.gnu.org; 31 Mar 2021 18:45:46 +0000 Received: from localhost ([127.0.0.1]:55515 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lRfqW-0004wu-TJ for submit@debbugs.gnu.org; Wed, 31 Mar 2021 14:45:46 -0400 Received: from lists.gnu.org ([209.51.188.17]:48036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lRfqS-0004wi-35 for submit@debbugs.gnu.org; Wed, 31 Mar 2021 14:45:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58548) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRfqR-0002xf-2b for guix-patches@gnu.org; Wed, 31 Mar 2021 14:45:35 -0400 Received: from server0.selfhosted.xyz ([217.64.149.7]:58260) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRfq7-0002iG-8O for guix-patches@gnu.org; Wed, 31 Mar 2021 14:45:21 -0400 Received: from server0.selfhosted.xyz (localhost [127.0.0.1]) by server0.selfhosted.xyz (Postfix) with ESMTP id 6506C1CCA59C for ; Wed, 31 Mar 2021 20:45:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=selfhosted.xyz; s=dkim; t=1617216311; bh=vQ3tM6RA3j9bJlA50GFSX/c/Ex9nwuxyP2gh57FBCmM=; h=Date:From:To:Subject; b=h4L86Ql7TljduydU1d9fjD+Vlx8KfDlNXflX7SbVtBTri5BidPHK6mb8tcRCz7iKI JrVdapgBWZnuZif7mt5107OJ1hL+LNVWUlkwTgxDzgEAGjsMgImjlYB6jkftaZnJUT K7ElRFxkH+7JsXnsciIJGNT8Ln9nHhv873MTZFiUYEckln70rhEnQrcGG8DVmmalqo bu2X/CDAInWuvidti41TUdPgZWfUwKcD3Ld/ug4593CTxEOKhvC3iyBa78z2L7U4+8 Rd3OdomEb70UKJItVPxeI5gopolKFPt5P+nIWeX+xZMj9MHOQFxWU8ljwVaTiP7LVC 5k6+603YhPtjQ== X-Fuglu-Suspect: 4fbef4ccf6714ee08866142b8734b95a X-Fuglu-Spamstatus: NO Received: from webmail.selfhosted.xyz (office.selfhosted.xyz [192.168.1.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: mail@selfhosted.xyz) by server0.selfhosted.xyz (Postfix) with ESMTPSA for ; Wed, 31 Mar 2021 20:45:04 +0200 (CEST) MIME-Version: 1.0 Date: Wed, 31 Mar 2021 20:45:04 +0200 From: david larsson Message-ID: X-Sender: david.larsson@selfhosted.xyz Received-SPF: pass client-ip=217.64.149.7; envelope-from=david.larsson@selfhosted.xyz; helo=server0.selfhosted.xyz X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.499, FROM_SUSPICIOUS_NTLD_FP=0.001, PDS_OTHER_BAD_TLD=1.999, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From 00288ef6849c78b09c2934bd4565af76cccc2825 Mon Sep 17 00:00:00 2001 From: methuselah-0 Date: Wed, 31 Mar 2021 20:43:16 +0200 Subject: [PATCH] gnu: Add guile2.2-bash. * gnu/packages/guile-xyz.scm (guile2.2-bash): New variable. --- gnu/packages/guile-xyz.scm | 68 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) + +and then run @command{scm \"$(pwd)\"/example.scm}.") + (license license:gpl3+)))) + (define-public guile-8sync (package (name "guile-8sync") From 00288ef6849c78b09c2934bd4565af76cccc2825 Mon Sep 17 00:00:00 2001 From: methuselah-0 Date: Wed, 31 Mar 2021 20:43:16 +0200 Subject: [PATCH] gnu: Add guile2.2-bash. * gnu/packages/guile-xyz.scm (guile2.2-bash): New variable. --- gnu/packages/guile-xyz.scm | 68 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index c798bed817..90f2ec720e 100644 --- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm @@ -36,6 +36,7 @@ ;;; Copyright © 2021 Bonface Munyoki Kilyungi ;;; Copyright © 2021 Xinglu Chen ;;; Copyright © 2021 Leo Le Bouter +;;; Copyright © 2021 David Larsson ;;; ;;; This file is part of GNU Guix. ;;; @@ -429,6 +430,73 @@ enable -f ~/.guix-profile/lib/bash/libguile-bash.so scm and then run @command{scm example.scm}.") (license license:gpl3+)))) +(define-public guile2.2-bash + (let ((commit "678e06df1e9f786ba87b47b18fa5c041eb0e3e86") + (revision "1")) + (package + (name "guile2.2-bash") + (version (string-append "0.1.6-" revision "." (string-take commit 7))) + (home-page + "https://gitlab.com/methuselah-0/guile-bash") + (source (origin + (method git-fetch) + (uri (git-reference + (commit commit) + (url "https://gitlab.com/methuselah-0/guile-bash.git"))) + (sha256 + (base32 + "1dipzbyy3jlc3d40v5vbf4a9vlw6fyv4b03hfvj94iy3papji5sn")) + (file-name (string-append name "-" version "-checkout")))) + (build-system gnu-build-system) + (arguments + '(#:configure-flags + ;; Add -I to match 'bash.pc' of Bash 4.4. + (list (string-append "CPPFLAGS=-I" + (assoc-ref %build-inputs "bash:include") + "/include/bash/include") + + ;; The '.a' file is useless. + "--disable-static" + + ;; Install 'lib/bash' as Bash 4.4 expects. + (string-append "--libdir=" (assoc-ref %outputs "out") + "/lib/bash")))) + (native-inputs `(("pkg-config" ,pkg-config) + ("autoconf" ,autoconf-wrapper) + ("automake" ,automake) + ("libtool" ,libtool) + ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'. + ("gettext" ,gettext-minimal) + + ;; Bash with loadable module support, for the test + ;; suite. + ("bash-full" ,bash))) + (inputs `(("guile" ,guile-2.2) + ("bash:include" ,bash "include"))) + (synopsis "Extend Bash using Guile") + (description + "Guile-Bash provides a shared library and set of Guile modules, +allowing you to extend Bash in Scheme. Scheme interfaces allow you to access +the following aspects of Bash: + +@itemize +@item aliases; +@item setting and getting Bash variables; +@item creating dynamic variables; +@item creating Bash functions with a Scheme implementation; +@item reader macro for output capturing; +@item reader macro for evaluating raw Bash commands. +@end itemize + +To enable it, run: + +@example +enable -f ~/.guix-profile/lib/bash/libguile-bash.so scm +@end example + +and then run @command{scm \"$(pwd)\"/example.scm}.") + (license license:gpl3+)))) + (define-public guile-8sync (package (name "guile-8sync") -- 2.30.2