aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Enge <andreas@enge.fr>2015-02-08 16:23:44 +0100
committerAndreas Enge <andreas@enge.fr>2015-02-08 16:23:44 +0100
commit27e86bed5371630d5b74ea839115aa39a11f852d (patch)
treec420578d7b03188a072979024ad81547b4878c06
parent75be6b7c06201c5f74d9354d02fab1ca1961d404 (diff)
downloadpatches-27e86bed5371630d5b74ea839115aa39a11f852d.tar
patches-27e86bed5371630d5b74ea839115aa39a11f852d.tar.gz
gnu: Add p11-kit.
* gnu/packages/gnutls.scm (p11-kit): New variable.
-rw-r--r--gnu/packages/gnutls.scm45
1 files changed, 42 insertions, 3 deletions
diff --git a/gnu/packages/gnutls.scm b/gnu/packages/gnutls.scm
index d3097a6751..a51d948ce8 100644
--- a/gnu/packages/gnutls.scm
+++ b/gnu/packages/gnutls.scm
@@ -27,12 +27,13 @@
#:use-module (guix build-system gnu)
#:use-module ((gnu packages compression) #:prefix guix:)
#:use-module (gnu packages)
- #:use-module (gnu packages nettle)
#:use-module (gnu packages guile)
+ #:use-module (gnu packages libffi)
+ #:use-module (gnu packages nettle)
#:use-module (gnu packages perl)
- #:use-module (gnu packages which)
+ #:use-module (gnu packages pkg-config)
#:use-module (gnu packages texinfo)
- #:use-module (gnu packages pkg-config))
+ #:use-module (gnu packages which))
(define-public libtasn1
(package
@@ -61,6 +62,44 @@ networking, allowing for formal validation of data according to some
specifications.")
(license lgpl2.0+)))
+(define-public p11-kit
+ (package
+ (name "p11-kit")
+ (version "0.22.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "http://p11-glue.freedesktop.org/releases/p11-kit-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "0p4sadq2c70jdm7b5a5xw8mk2mqy36krpxr3ihnf783arygk6fpg"))
+ (modules '((guix build utils))) ; for substitute*
+ (snippet
+ '(begin
+ ;; Drop one test that fails, also when trying to compile manually.
+ ;; Reported upstream at
+ ;; https://bugs.freedesktop.org/show_bug.cgi?id=89027
+ (substitute* "Makefile.in"
+ (("test-module\\$\\(EXEEXT\\) ") ""))))))
+ (build-system gnu-build-system)
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (inputs
+ `(("libffi" ,libffi)
+ ("libtasn1" ,libtasn1)))
+ (arguments
+ `(#:configure-flags '("--without-trust-paths")))
+ (home-page "http://p11-glue.freedesktop.org/p11-kit.html")
+ (synopsis "PKCS#11 library")
+ (description
+ "p11-kit provides a way to load and enumerate PKCS#11 modules. It
+provides a standard configuration setup for installing PKCS#11 modules
+in such a way that they are discoverable. It also solves problems with
+coordinating the use of PKCS#11 by different components or libraries
+living in the same process.")
+ (license bsd-3)))
+
(define-public gnutls
(package
(name "gnutls")