Update license headers.
[jackhill/guix/guix.git] / distro / packages / gnutls.scm
CommitLineData
233e7676
LC
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2012 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
LC
18
19(define-module (distro 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)
24 #:use-module (distro packages base)
4a44e743
NK
25 #:use-module ((distro packages compression)
26 #:renamer (symbol-prefix-proc 'guix:))
7543f865
LC
27 #:use-module (distro packages nettle)
28 #:use-module (distro packages guile)
29 #:use-module (distro packages perl))
30
31(define-public libtasn1
32 (package
33 (name "libtasn1")
a2745393 34 (version "3.2")
7543f865
LC
35 (source
36 (origin
37 (method url-fetch)
38 (uri (string-append "mirror://gnu/libtasn1/libtasn1-"
39 version ".tar.gz"))
40 (sha256
41 (base32
a2745393 42 "0gvgndypwicchf7m660zh7jdgmkfj9g9xavpcc08pyd0120y0bk7"))))
7543f865
LC
43 (build-system gnu-build-system)
44 (home-page "http://www.gnu.org/software/libtasn1/")
45 (synopsis "GNU Libtasn1, an ASN.1 library")
46 (description
47 "Libtasn1 is the ASN.1 library used by GnuTLS, GNU Shishi and some
48other packages. The goal of this implementation is to be highly
49portable, and only require an ANSI C89 platform.")
4a44e743 50 (license lgpl2.0+)))
7543f865
LC
51
52(define-public gnutls
53 (package
54 (name "gnutls")
a2745393 55 (version "3.1.5")
7543f865
LC
56 (source
57 (origin
58 (method url-fetch)
59 (uri (string-append
60 "mirror://gnu/gnutls/gnutls-"
61 version
62 ".tar.xz"))
63 (sha256
64 (base32
a2745393 65 "1lz05l19s64s5hmhc9fh48ip6izy80bdiv0pwkfg9fwwvn25j29g"))))
7543f865 66 (build-system gnu-build-system)
967305e8
LC
67
68 ;; Build of the Guile bindings is not parallel-safe. See
69 ;; <http://git.savannah.gnu.org/cgit/gnutls.git/commit/?id=330995a920037b6030ec0282b51dde3f8b493cad>
70 ;; for the actual fix.
71 (arguments '(#:parallel-build? #f))
72
7543f865
LC
73 (inputs
74 `(("guile" ,guile-2.0)
75 ;; ("lzo" ,lzo)
4a44e743 76 ("zlib" ,guix:zlib)
7543f865
LC
77 ("perl" ,perl)))
78 (propagated-inputs
79 `(("libtasn1" ,libtasn1)
80 ("nettle" ,nettle)))
81 (home-page "http://www.gnu.org/software/gnutls/")
82 (synopsis
83 "The GNU Transport Layer Security Library")
84 (description
85 "GnuTLS is a project that aims to develop a library which provides
86a secure layer, over a reliable transport layer. Currently the GnuTLS
87library implements the proposed standards by the IETF's TLS working
88group.
89
90Quoting from the TLS protocol specification:
91
92\"The TLS protocol provides communications privacy over the
93Internet. The protocol allows client/server applications to communicate
94in a way that is designed to prevent eavesdropping, tampering, or
95message forgery.\"")
4a44e743 96 (license lgpl2.1+)))