From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id WIzQMQoDk1+pPwAA0tVLHw (envelope-from ) for ; Fri, 23 Oct 2020 16:21:30 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id qLzCLQoDk1/JPgAA1q6Kng (envelope-from ) for ; Fri, 23 Oct 2020 16:21:30 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 266B29402A8 for ; Fri, 23 Oct 2020 16:21:29 +0000 (UTC) Received: from localhost ([::1]:44558 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kVzom-0002Fk-40 for larch@yhetil.org; Fri, 23 Oct 2020 12:21:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVzAg-0004AZ-Rk for guix-patches@gnu.org; Fri, 23 Oct 2020 11:40:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46497) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kVzAg-00038O-Hz for guix-patches@gnu.org; Fri, 23 Oct 2020 11:40:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kVzAg-0005sf-EA for guix-patches@gnu.org; Fri, 23 Oct 2020 11:40:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#44176] Acknowledgement (gnu: Add bash-ctypes) Resent-From: Zhu Zihao Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 23 Oct 2020 15:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44176 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 44176@debbugs.gnu.org Received: via spool by 44176-submit@debbugs.gnu.org id=B44176.160346756522555 (code B ref 44176); Fri, 23 Oct 2020 15:40:02 +0000 Received: (at 44176) by debbugs.gnu.org; 23 Oct 2020 15:39:25 +0000 Received: from localhost ([127.0.0.1]:58043 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVzA4-0005rj-KI for submit@debbugs.gnu.org; Fri, 23 Oct 2020 11:39:24 -0400 Received: from mail-m974.mail.163.com ([123.126.97.4]:53232) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVzA1-0005rQ-AS for 44176@debbugs.gnu.org; Fri, 23 Oct 2020 11:39:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=m/j1f /p+A9Uf0P0hpv9e3Q5r15bSMY8zLnyVnHSJp4c=; b=Y93IUXAWTbxoh2htjDvcz ThBdXKhudgdL677CIMjN6kBoU2d3fAbMVouXE7hnhRofv0HszA7XV9EzsRw2ESxs O2nTFKhXuUn/YHdmQJx0pAaV2z1dWEA5V0UQ7VoI8PkUAfJVMwa7wqRmM8041/hQ vdSvPu49tjtlqisobP65Uw= Received: from asus-laptop (unknown [27.39.88.45]) by smtp4 (Coremail) with SMTP id HNxpCgBH7wge+ZJf3RaHVg--.20322S2; Fri, 23 Oct 2020 23:39:11 +0800 (CST) References: <86wnzhm7e2.fsf@163.com> <86mu0dm65b.fsf@163.com> User-agent: mu4e 1.4.13; emacs 27.1 From: Zhu Zihao In-reply-to: <86mu0dm65b.fsf@163.com> Date: Fri, 23 Oct 2020 23:39:07 +0800 Message-ID: <861rhpdk9w.fsf@163.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-CM-TRANSID: HNxpCgBH7wge+ZJf3RaHVg--.20322S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvj4RGD7aDUUUU X-Originating-IP: [27.39.88.45] X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/xtbCCgDGr12MYdJrAAAAsq X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=163.com header.s=s110527 header.b=Y93IUXAW; dmarc=fail reason="SPF not aligned (relaxed)" header.from=163.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -0.51 X-TUID: 6YnmWwkKkuUn --=-=-= Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" --==-=-= Content-Type: text/plain Add missing v in download url --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFJBAEBCAAzFiEE7NCVzXX6efyusptG1SOVn+xGFqYFAl+S+RsVHGFsbF9idXRf bGFzdEAxNjMuY29tAAoJENUjlZ/sRham7rQH/3KC4mAkm1oBnwlVzx5R2fIecZww kYFvUPok2n6KVPuzj7+ZeVLRgDVuJwMu/gMzJUyrrcG76l6nWZ9d3/hLJxLjZ5F/ +pk67j88Cf5d/8aHNT3dFlBGsjNAPK7TICQyKzL/P3JPhYRwwMnDYL64tGkGEhxt 1qK+A/S3wOEEpDdDozSZ5xFBw8UAja/gff218qEVR0jHGWUCp4FxaE9q4BUU3zyx cWyVfTsoabKzUmhOiz0Qa1T/z4GK3qOii+q46QUVfkl005t6neFceVqtzt86TkWV 9IEGCmxGgYIrEGkhU9ehZ+4A46Gm6PdLSeODHWoYeJqHjhMy+Y5Y1vhiK7s= =yIuH -----END PGP SIGNATURE----- --==-=-=-- --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-bash-ctypes.patch Content-Transfer-Encoding: quoted-printable >From 8210f5f95ca4f33dce35ed0c9bb20c8f615ab079 Mon Sep 17 00:00:00 2001 From: Zhu Zihao Date: Fri, 23 Oct 2020 20:47:04 +0800 Subject: [PATCH] gnu: Add bash-ctypes * gnu/packages/bash.scm(bash-ctypes): New variable. --- gnu/packages/bash.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/bash.scm b/gnu/packages/bash.scm index 47ca625d9a..f7d3cd2892 100644 --- a/gnu/packages/bash.scm +++ b/gnu/packages/bash.scm @@ -5,6 +5,7 @@ ;;; Copyright =C2=A9 2016, 2017, 2018, 2019 Efraim Flashner ;;; Copyright =C2=A9 2018, 2019, 2020 Tobias Geerinckx-Rice ;;; Copyright =C2=A9 2019 Mathieu Othacehe +;;; Copyright =C2=A9 2020 Zhu Zihao ;;; ;;; This file is part of GNU Guix. ;;; @@ -26,10 +27,14 @@ #:use-module (gnu packages) #:use-module (gnu packages base) #:use-module (gnu packages bootstrap) + #:use-module (gnu packages compression) + #:use-module (gnu packages elf) #:use-module (gnu packages ncurses) #:use-module (gnu packages readline) #:use-module (gnu packages bison) #:use-module (gnu packages linux) + #:use-module (gnu packages libffi) + #:use-module (gnu packages pkg-config) #:use-module (gnu packages guile) #:use-module (guix packages) #:use-module (guix download) @@ -415,3 +420,31 @@ framework for Bash. It provides a simple way to verif= y that the UNIX programs you write behave as expected. Bats is most useful when testing software w= ritten in Bash, but you can use it to test any UNIX program.") (license expat))) + +(define-public bash-ctypes + (package + (name "bash-ctypes") + (version "1.2") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/taviso/ctypes.sh/releases/d= ownload/v" + version "/ctypes-sh-" version ".tar.gz")) + (sha256 + (base32 "0s1sifqzqmr0dnciv06yqrpzgj11d7n0gy5zaxh6b3x8bx7k75l8")))) + (build-system gnu-build-system) + (inputs + `(("elfutils" ,elfutils) + ("libelf" ,libelf) + ("libffi" ,libffi) + ("zlib" ,zlib) + ;; Require a bash with C plugin support to build. + ("bash" ,bash))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (home-page "https://github.com/taviso/ctypes.sh") + (synopsis "FFI for Bash") + (description "Bash-ctypes is a bash plugin that provides a foreign fun= ction +interface directly in your shell. In other words, it allows you to call ro= utines +in shared libraries from within bash.") + (license expat))) --=20 2.28.0 --=-=-= Content-Type: text/plain -- Retrieve my public GPG key: https://meta.sr.ht/~citreu.pgp Zihao --=-=-=--