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 yHEOMP3Vkl/yEAAA0tVLHw (envelope-from ) for ; Fri, 23 Oct 2020 13:09:17 +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 aAJcKv3Vkl8YPwAA1q6Kng (envelope-from ) for ; Fri, 23 Oct 2020 13:09:17 +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 9345F9404CA for ; Fri, 23 Oct 2020 13:09:16 +0000 (UTC) Received: from localhost ([::1]:56408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kVwol-0003kk-JU for larch@yhetil.org; Fri, 23 Oct 2020 09:09:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVwoZ-0003kD-V5 for guix-patches@gnu.org; Fri, 23 Oct 2020 09:09:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44768) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kVwoY-0007q4-7y for guix-patches@gnu.org; Fri, 23 Oct 2020 09:09:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kVwoY-0003cO-20 for guix-patches@gnu.org; Fri, 23 Oct 2020 09:09:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#44176] 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:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44176 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 44176@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160345849913847 (code B ref -1); Fri, 23 Oct 2020 13:09:01 +0000 Received: (at submit) by debbugs.gnu.org; 23 Oct 2020 13:08:19 +0000 Received: from localhost ([127.0.0.1]:56314 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVwnq-0003bH-PL for submit@debbugs.gnu.org; Fri, 23 Oct 2020 09:08:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:45138) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVwno-0003b9-H6 for submit@debbugs.gnu.org; Fri, 23 Oct 2020 09:08:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50546) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVwno-0003h7-Cg for guix-patches@gnu.org; Fri, 23 Oct 2020 09:08:16 -0400 Received: from mail-m975.mail.163.com ([123.126.97.5]:54002) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1kVwng-0007jb-VG for guix-patches@gnu.org; Fri, 23 Oct 2020 09:08:14 -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=RKmTV U1rOttMwHU2LpFACtoDeT95DuatgTxIV2+GCa4=; b=bnlYLFxPZWMu2NBkyZiGy D1FHF8K4HnyclYCtnHB1ljk3+sn9gtRtayn7ZP9n3SW4dG0ccLnh8c+7DiiFnpoY bGUQXl7HtS/tzLCvqTZa5PZt5Y/Rf2rovvta2BoeQ+B0hG43eCM5CZ5M1SD9R1nt GfL4GeIamxF4BmSSMzUsgk= Received: from asus-laptop (unknown [27.39.88.45]) by smtp5 (Coremail) with SMTP id HdxpCgDHwAIY0pJfGpJFAQ--.27302S2; Fri, 23 Oct 2020 20:52:41 +0800 (CST) User-agent: mu4e 1.4.13; emacs 27.1 From: Zhu Zihao Date: Fri, 23 Oct 2020 20:52:37 +0800 Message-ID: <86wnzhm7e2.fsf@163.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-CM-TRANSID: HdxpCgDHwAIY0pJfGpJFAQ--.27302S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxU-NtxDUUUU X-Originating-IP: [27.39.88.45] X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/xtbCChHGr12MYdDPAwAAse Received-SPF: pass client-ip=123.126.97.5; envelope-from=all_but_last@163.com; helo=mail-m975.mail.163.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/23 08:52:45 X-ACL-Warn: Detected OS = Linux 3.1-3.10 X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.6 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.4 (--) 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=bnlYLFxP; 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: IgJrqX0mQOJ2 --=-=-= Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" --==-=-= Content-Type: text/plain --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFJBAEBCAAzFiEE7NCVzXX6efyusptG1SOVn+xGFqYFAl+S0hUVHGFsbF9idXRf bGFzdEAxNjMuY29tAAoJENUjlZ/sRhamAqcH/0sx9CDr6hiyKX/nAfhoBHBxRjCx +yrQqJj/XblPHYz+8GVnSbBctPuDVNDThg4FXOsNgU/oirJPyshd7uKAh+nBwZiT FhfthqzMs/FPayO9MFKxWrKziHq5pgGVF9ZBw37JJ2JSlnkFGuxqxxldvyfnZu5H PWYfMcg9w0KnuIkVDBnNO9tdDgzVcp49DSYLgdJO+VmPMm0bidgl+UbjrxJKnQ4E 0Wj1qyasYlItXfHhW92prBe908uaPiIxmUBkZHxBo/UivE832uUhb8xKmV6H4nmD hyb18FfsWRj1tKR1pVgQOf4JrvL6CDmHFU3bITz2A6V0nWRzxMga3HRIvJ0= =MSfD -----END PGP SIGNATURE----- --==-=-=-- --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-Add-bash-ctypes.patch >From 5a85c09398cfe96ba244eac7dec45366a139188e 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 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/bash.scm b/gnu/packages/bash.scm index 47ca625d9a..356d0f82d6 100644 --- a/gnu/packages/bash.scm +++ b/gnu/packages/bash.scm @@ -26,6 +26,7 @@ #:use-module (gnu packages) #:use-module (gnu packages base) #:use-module (gnu packages bootstrap) + #:use-module (gnu packages elf) #:use-module (gnu packages ncurses) #:use-module (gnu packages readline) #:use-module (gnu packages bison) @@ -415,3 +416,25 @@ framework for Bash. It provides a simple way to verify that the UNIX programs you write behave as expected. Bats is most useful when testing software written 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/download/" + version "/ctypes-sh-" version ".tar.gz")) + (sha256 + (base32 "0s1sifqzqmr0dnciv06yqrpzgj11d7n0gy5zaxh6b3x8bx7k75l8")))) + (build-system gnu-build-system) + (inputs + `(("libelf" ,libelf) + ("elfutils" ,elfutils))) + (home-page "https://github.com/taviso/ctypes.sh") + (synopsis "FFI for Bash") + (description "Bash-ctypes is a bash plugin that provides a foreign function +interface directly in your shell. In other words, it allows you to call routines +in shared libraries from within bash.") + (license expat))) -- 2.28.0 --=-=-= Content-Type: text/plain -- Retrieve my public GPG key: https://meta.sr.ht/~citreu.pgp Zihao --=-=-=--