Commit | Line | Data |
---|---|---|
233e7676 | 1 | ;;; GNU Guix --- Functional package management for GNU |
fa39cc0d | 2 | ;;; Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org> |
7543f865 | 3 | ;;; |
233e7676 | 4 | ;;; This file is part of GNU Guix. |
7543f865 | 5 | ;;; |
233e7676 | 6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
7543f865 LC |
7 | ;;; under the terms of the GNU General Public License as published by |
8 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
9 | ;;; your option) any later version. | |
10 | ;;; | |
233e7676 | 11 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
7543f865 LC |
12 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | ;;; GNU General Public License for more details. | |
15 | ;;; | |
16 | ;;; You should have received a copy of the GNU General Public License | |
233e7676 | 17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
7543f865 | 18 | |
1ffa7090 | 19 | (define-module (gnu packages gnutls) |
4a44e743 | 20 | #:use-module (guix licenses) |
7543f865 LC |
21 | #:use-module (guix packages) |
22 | #:use-module (guix download) | |
23 | #:use-module (guix build-system gnu) | |
1ffa7090 | 24 | #:use-module ((gnu packages compression) |
4a44e743 | 25 | #:renamer (symbol-prefix-proc '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 LC |
30 | #:use-module (gnu packages which) |
31 | #:use-module (gnu packages pkg-config)) | |
7543f865 LC |
32 | |
33 | (define-public libtasn1 | |
34 | (package | |
35 | (name "libtasn1") | |
825d0ebc | 36 | (version "3.3") |
7543f865 LC |
37 | (source |
38 | (origin | |
39 | (method url-fetch) | |
40 | (uri (string-append "mirror://gnu/libtasn1/libtasn1-" | |
41 | version ".tar.gz")) | |
42 | (sha256 | |
43 | (base32 | |
825d0ebc | 44 | "1h1sz5py8zlg4yczybr6wa925pyadvjcxrdmhilwaqqgs4n2lrcj")))) |
7543f865 LC |
45 | (build-system gnu-build-system) |
46 | (home-page "http://www.gnu.org/software/libtasn1/") | |
f50d2669 | 47 | (synopsis "ASN.1 library") |
7543f865 LC |
48 | (description |
49 | "Libtasn1 is the ASN.1 library used by GnuTLS, GNU Shishi and some | |
50 | other packages. The goal of this implementation is to be highly | |
51 | portable, and only require an ANSI C89 platform.") | |
4a44e743 | 52 | (license lgpl2.0+))) |
7543f865 LC |
53 | |
54 | (define-public gnutls | |
55 | (package | |
56 | (name "gnutls") | |
a1db0975 | 57 | (version "3.2.1") |
d7d408d5 LC |
58 | (source (origin |
59 | (method url-fetch) | |
60 | (uri | |
61 | ;; Note: Releases are no longer on ftp.gnu.org since the | |
62 | ;; schism (after version 3.1.5). | |
a1db0975 | 63 | (string-append "mirror://gnupg/gnutls/v3.2/gnutls-" |
d7d408d5 LC |
64 | version ".tar.xz")) |
65 | (sha256 | |
66 | (base32 | |
a1db0975 | 67 | "1zi2kq3vcbqdy9khl7r6pgk4hgwibniasm9k6siasdvqjijq3ymb")))) |
7543f865 | 68 | (build-system gnu-build-system) |
013ce67b CR |
69 | (arguments |
70 | `(#:patches (list (assoc-ref %build-inputs | |
71 | "patch/fix-tests")) | |
72 | #:patch-flags '("-p0"))) | |
a1db0975 LC |
73 | (native-inputs |
74 | `(("pkg-config" ,pkg-config))) | |
7543f865 LC |
75 | (inputs |
76 | `(("guile" ,guile-2.0) | |
4a44e743 | 77 | ("zlib" ,guix:zlib) |
013ce67b CR |
78 | ("perl" ,perl) |
79 | ("patch/fix-tests" | |
80 | ,(search-patch "gnutls-fix-tests-on-32-bits-system.patch")))) | |
7543f865 LC |
81 | (propagated-inputs |
82 | `(("libtasn1" ,libtasn1) | |
fa39cc0d LC |
83 | ("nettle" ,nettle) |
84 | ("which" ,which))) | |
7543f865 | 85 | (home-page "http://www.gnu.org/software/gnutls/") |
f50d2669 | 86 | (synopsis "Transport layer security library") |
7543f865 LC |
87 | (description |
88 | "GnuTLS is a project that aims to develop a library which provides | |
89 | a secure layer, over a reliable transport layer. Currently the GnuTLS | |
90 | library implements the proposed standards by the IETF's TLS working | |
91 | group. | |
92 | ||
93 | Quoting from the TLS protocol specification: | |
94 | ||
95 | \"The TLS protocol provides communications privacy over the | |
96 | Internet. The protocol allows client/server applications to communicate | |
97 | in a way that is designed to prevent eavesdropping, tampering, or | |
98 | message forgery.\"") | |
4a44e743 | 99 | (license lgpl2.1+))) |