You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

159 lines
6.2 KiB

;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2012, 2013, 2014, 2015 Ludovic Courtès <>
;;; Copyright © 2014, 2015 Mark H Weaver <>
;;; Copyright © 2014 Ian Denhardt <>
;;; Copyright © 2015 Andreas Enge <>
;;; This file is part of GNU Guix.
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; GNU General Public License for more details.
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <>.
(define-module (gnu packages gnutls)
#:use-module ((guix licenses) #:select (lgpl2.0+ lgpl2.1+ bsd-3))
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix utils)
#:use-module (guix build-system gnu)
#:use-module (gnu packages compression)
#:use-module (gnu packages)
#:use-module (gnu packages guile)
#:use-module (gnu packages libffi)
#:use-module (gnu packages libidn)
#:use-module (gnu packages nettle)
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages texinfo)
#:use-module (gnu packages base))
(define-public libtasn1
(name "libtasn1")
(version "4.5")
(method url-fetch)
(uri (string-append "mirror://gnu/libtasn1/libtasn1-"
version ".tar.gz"))
(build-system gnu-build-system)
(native-inputs `(("perl" ,perl)
;; XXX: For some reason, wants to be
;; rebuilt, so we must provide 'makeinfo'.
("texinfo" ,texinfo)))
(home-page "")
(synopsis "ASN.1 library")
"GNU libtasn1 is a library implementing the ASN.1 notation. It is used
for transmitting machine-neutral encodings of data objects in computer
networking, allowing for formal validation of data according to some
(license lgpl2.0+)))
(define-public p11-kit
(name "p11-kit")
(version "0.23.1")
(method url-fetch)
(uri (string-append ""
version ".tar.gz"))
(modules '((guix build utils))) ; for substitute*
;; Drop one test that fails, also when trying to compile manually.
;; Reported upstream at
(substitute* ""
(("test-module\\$\\(EXEEXT\\) ") ""))))))
(build-system gnu-build-system)
`(("pkg-config" ,pkg-config)))
`(("libffi" ,libffi)
("libtasn1" ,libtasn1)))
`(#:configure-flags '("--without-trust-paths")))
(home-page "")
(synopsis "PKCS#11 library")
"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
(name "gnutls")
(version "3.4.1")
(source (origin
(method url-fetch)
;; Note: Releases are no longer on since the
;; schism (after version 3.1.5).
(string-append "mirror://gnupg/gnutls/v"
(version-major+minor version)
"/gnutls-" version ".tar.xz"))
(build-system gnu-build-system)
(list (string-append "--with-guile-site-dir="
(assoc-ref %outputs "out")
;; GnuTLS doesn't consult any environment variables to specify
;; the location of the system-wide trust store. Instead it has a
;; configure-time option. Unless specified, its configure script
;; attempts to auto-detect the location by looking for common
;; places in the filesystem, none of which are present in our
;; chroot build environment. If not found, then no default trust
;; store is used, so each program has to provide its own
;; fallback, and users have to configure each program
;; independently. This seems suboptimal.
;; FIXME: Temporarily disable p11-kit support since it is not
;; working on mips64el.
(outputs '("out" "debug"))
`(("pkg-config" ,pkg-config)
("which" ,which)))
`(("guile" ,guile-2.0)
("perl" ,perl)))
;; These are all in the 'Requires.private' field of gnutls.pc.
`(("libtasn1" ,libtasn1)
("libidn" ,libidn)
("nettle" ,nettle)
("zlib" ,zlib)))
(home-page "")
(synopsis "Transport layer security library")
"GnuTLS is a secure communications library implementing the SSL, TLS
and DTLS protocols. It is provided in the form of a C library to support the
protocols, as well as to parse and write X.5009, PKCS 12, OpenPGP and other
required structures.")
(license lgpl2.1+)))