guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 3e90591c3cd9d15fbebc3c782df7da6e7ac36fdb
Author: Sughosha <[email protected]>
AuthorDate: Mon Jun 30 14:34:32 2025 +0530
gnu: Add libp11.
* gnu/packages/tls.scm (libp11): New variable.
Change-Id: I663b8a769887e66e6b5c4920ec67df94d9df1997
---
gnu/packages/tls.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
index fbf8b10c64..29b6101908 100644
--- a/gnu/packages/tls.scm
+++ b/gnu/packages/tls.scm
@@ -59,6 +59,7 @@
#:use-module (gnu packages compression)
#:use-module (gnu packages)
#:use-module (gnu packages autotools)
+ #:use-module (gnu packages base)
#:use-module (gnu packages bash)
#:use-module (gnu packages build-tools)
#:use-module (gnu packages check)
@@ -202,6 +203,43 @@ coordinating the use of PKCS#11 by different components or
libraries
living in the same process.")
(license license:bsd-3)))
+(define-public libp11
+ (package
+ (name "libp11")
+ (version "0.4.16")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/OpenSC/libp11")
+ (commit (string-append "libp11-" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0sjd3jxpyp61d85n4drmw9rf3bh7hwhrplr5nw6lmcpr2xr4gqds"))))
+ (build-system gnu-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-enginesdir
+ (lambda _
+ (substitute* "configure.ac"
+ (("libcrypto`")
+ (string-append "libcrypto | sed 's#.*/#"
+ #$output "/lib/#'`"))))))))
+ (native-inputs
+ (list autoconf automake libtool pkg-config sed))
+ (inputs
+ (list openssl))
+ (home-page "https://github.com/OpenSC/libp11")
+ (synopsis "PKCS#11 wrapper library")
+ (description
+ "@code{libp11} is a library implementing a thin layer on top of PKCS#11
+API to make PKCS#11 implementations easier.")
+ (license (list license:lgpl2.1+
+ license:bsd-2
+ license:openssl
+ (license:fsf-free "file:///src/pkcs11.h")))))
+
(define-public gnutls
(package
(name "gnutls")