Commit | Line | Data |
---|---|---|
233e7676 | 1 | ;;; GNU Guix --- Functional package management for GNU |
9b521a67 | 2 | ;;; Copyright © 2012, 2013, 2014 Ludovic Courtès <ludo@gnu.org> |
d93627e4 | 3 | ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org> |
7543f865 | 4 | ;;; |
233e7676 | 5 | ;;; This file is part of GNU Guix. |
7543f865 | 6 | ;;; |
233e7676 | 7 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
7543f865 LC |
8 | ;;; under the terms of the GNU General Public License as published by |
9 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
10 | ;;; your option) any later version. | |
11 | ;;; | |
233e7676 | 12 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
7543f865 LC |
13 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | ;;; GNU General Public License for more details. | |
16 | ;;; | |
17 | ;;; You should have received a copy of the GNU General Public License | |
233e7676 | 18 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
7543f865 | 19 | |
1ffa7090 | 20 | (define-module (gnu packages gnutls) |
4a44e743 | 21 | #:use-module (guix licenses) |
7543f865 LC |
22 | #:use-module (guix packages) |
23 | #:use-module (guix download) | |
24 | #:use-module (guix build-system gnu) | |
b5b73a82 | 25 | #:use-module ((gnu packages compression) #:prefix guix:) |
013ce67b | 26 | #:use-module (gnu packages) |
1ffa7090 LC |
27 | #:use-module (gnu packages nettle) |
28 | #:use-module (gnu packages guile) | |
29 | #:use-module (gnu packages perl) | |
a1db0975 | 30 | #:use-module (gnu packages which) |
a31f4d35 | 31 | #:use-module (gnu packages texinfo) |
d93627e4 MW |
32 | #:use-module (gnu packages pkg-config) |
33 | #:use-module (srfi srfi-1)) | |
7543f865 LC |
34 | |
35 | (define-public libtasn1 | |
36 | (package | |
37 | (name "libtasn1") | |
86da684c | 38 | (version "4.1") |
7543f865 LC |
39 | (source |
40 | (origin | |
41 | (method url-fetch) | |
42 | (uri (string-append "mirror://gnu/libtasn1/libtasn1-" | |
43 | version ".tar.gz")) | |
44 | (sha256 | |
45 | (base32 | |
86da684c | 46 | "00gkyppzw6fqi5mnc3d8paf7bp6nfhi9213481awy07sviqnbvk0")))) |
7543f865 | 47 | (build-system gnu-build-system) |
a31f4d35 LC |
48 | (native-inputs `(("perl" ,perl) |
49 | ||
50 | ;; XXX: For some reason, libtasn1.info wants to be | |
51 | ;; rebuilt, so we must provide 'makeinfo'. | |
52 | ("texinfo" ,texinfo))) | |
7543f865 | 53 | (home-page "http://www.gnu.org/software/libtasn1/") |
f50d2669 | 54 | (synopsis "ASN.1 library") |
7543f865 | 55 | (description |
79c311b8 LC |
56 | "GNU libtasn1 is a library implementing the ASN.1 notation. It is used |
57 | for transmitting machine-neutral encodings of data objects in computer | |
a22dc0c4 LC |
58 | networking, allowing for formal validation of data according to some |
59 | specifications.") | |
4a44e743 | 60 | (license lgpl2.0+))) |
7543f865 LC |
61 | |
62 | (define-public gnutls | |
63 | (package | |
64 | (name "gnutls") | |
3de9a593 | 65 | (version "3.2.19") |
d7d408d5 LC |
66 | (source (origin |
67 | (method url-fetch) | |
68 | (uri | |
69 | ;; Note: Releases are no longer on ftp.gnu.org since the | |
70 | ;; schism (after version 3.1.5). | |
d93627e4 MW |
71 | (string-append "mirror://gnupg/gnutls/v" |
72 | (string-join (take (string-split version #\.) 2) | |
73 | ".") | |
74 | "/gnutls-" version ".tar.xz")) | |
d7d408d5 LC |
75 | (sha256 |
76 | (base32 | |
51861587 LC |
77 | "1krx33ab2ijwfz71f1ba8labxfsic7jhlhv6rvjsyw566jj9a3d2")) |
78 | (patches (list (search-patch "gnutls-server-name-fix.patch"))))) | |
7543f865 | 79 | (build-system gnu-build-system) |
a1db0975 LC |
80 | (native-inputs |
81 | `(("pkg-config" ,pkg-config))) | |
7543f865 LC |
82 | (inputs |
83 | `(("guile" ,guile-2.0) | |
4a44e743 | 84 | ("zlib" ,guix:zlib) |
0cb9b456 | 85 | ("perl" ,perl))) |
7543f865 LC |
86 | (propagated-inputs |
87 | `(("libtasn1" ,libtasn1) | |
fa39cc0d LC |
88 | ("nettle" ,nettle) |
89 | ("which" ,which))) | |
7543f865 | 90 | (home-page "http://www.gnu.org/software/gnutls/") |
f50d2669 | 91 | (synopsis "Transport layer security library") |
7543f865 | 92 | (description |
a22dc0c4 | 93 | "GnuTLS is a secure communications library implementing the SSL, TLS |
79c311b8 | 94 | and DTLS protocols. It is provided in the form of a C library to support the |
a22dc0c4 LC |
95 | protocols, as well as to parse and write X.5009, PKCS 12, OpenPGP and other |
96 | required structures.") | |
4a44e743 | 97 | (license lgpl2.1+))) |