(address . guix-patches@gnu.org)
-----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-----
From 5a85c09398cfe96ba244eac7dec45366a139188e Mon Sep 17 00:00:00 2001
From: Zhu Zihao <all_but_last@163.com>
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(+)
Toggle diff (40 lines)
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