From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id KCmjOEbZkl+xLAAA0tVLHw (envelope-from ) for ; Fri, 23 Oct 2020 13:23:18 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id OIn8MkbZkl/jYwAAbx9fmQ (envelope-from ) for ; Fri, 23 Oct 2020 13:23:18 +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 5AA6C940222 for ; Fri, 23 Oct 2020 13:23:18 +0000 (UTC) Received: from localhost ([::1]:49758 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kVx2K-000551-BG for larch@yhetil.org; Fri, 23 Oct 2020 09:23:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53322) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVwzC-0000xJ-9G for guix-patches@gnu.org; Fri, 23 Oct 2020 09:20:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44799) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kVwzB-0000mF-Vj for guix-patches@gnu.org; Fri, 23 Oct 2020 09:20:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kVwzB-0003w6-R4 for guix-patches@gnu.org; Fri, 23 Oct 2020 09:20:01 -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 13:20:01 +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.160345918215101 (code B ref 44176); Fri, 23 Oct 2020 13:20:01 +0000 Received: (at 44176) by debbugs.gnu.org; 23 Oct 2020 13:19:42 +0000 Received: from localhost ([127.0.0.1]:56345 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVwyr-0003vV-IE for submit@debbugs.gnu.org; Fri, 23 Oct 2020 09:19:41 -0400 Received: from mail-m973.mail.163.com ([123.126.97.3]:60206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVwyo-0003vC-AH for 44176@debbugs.gnu.org; Fri, 23 Oct 2020 09:19:40 -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=sZAyd swDBnrlQ1hLJ63oT8XOx/ULAP01H73kEvHcPmM=; b=d6P/lWrDjb72sPIzjgeUx H4rDT2/AnYlRfBk/TPSvY0EHN0uRAFLYhWJertThwCMNEoxW4gZ8yHqlrCW+coRQ XBsQNdzVRnr0Mpn30mGOqDpXJlzJix7zNvLwcp4gMQWT+Mgpg94OzJZ5nDslUyMU +YBxuB9kguurCiQbgEBLi0= Received: from asus-laptop (unknown [27.39.88.45]) by smtp3 (Coremail) with SMTP id G9xpCgDX6uBh2JJfvfjTIQ--.18307S2; Fri, 23 Oct 2020 21:19:29 +0800 (CST) References: <86wnzhm7e2.fsf@163.com> User-agent: mu4e 1.4.13; emacs 27.1 From: Zhu Zihao In-reply-to: Date: Fri, 23 Oct 2020 21:19:28 +0800 Message-ID: <86mu0dm65b.fsf@163.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-CM-TRANSID: G9xpCgDX6uBh2JJfvfjTIQ--.18307S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxUj7KVUUUUU X-Originating-IP: [27.39.88.45] X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/xtbCCgjGr12MYdEMxAABsD 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=d6P/lWrD; 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: -2.01 X-TUID: Ugc4tqkL3cDl --=-=-= Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" --==-=-= Content-Type: text/plain Patches updated here. --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFJBAEBCAAzFiEE7NCVzXX6efyusptG1SOVn+xGFqYFAl+S2GAVHGFsbF9idXRf bGFzdEAxNjMuY29tAAoJENUjlZ/sRhamugkH+gPmItv1KOHuPB4/DntB4/cHFY/F qRQbeCioUSL6cXa2KMS5FlvW0K/qThVI2ocP4DT11WAEDKma0cnsyST0VlF0E8ga Z0Kb6F9HShQi/xHpxkrivljlNq7GexvSSlaxwL4OmqVOhZuatLMIY8nMQ1EhS1vJ vbhBIsXeozhNCNUZx6MkjV/lOxcMjnxeGE6OX0e/Og7WM/A7dC7pw9BAsryfvBS7 IFc88RbzS8BIoRUhRMzjqJe6wuPa5k+mNZkKjUixLi8EX35XW3mfv0fJVH4Q5zyE Ytv9wf9ARipjsC6ECtaL2ISWsqt+/c3moPnHSSqXjxAuT+p12AYfVFEMv0Q= =0Ugg -----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 a41329a6df93b4b7e8ca65e62755e55ba74c6301 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..f9185ac519 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/" + 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 --=-=-=--