Merge branch 'master' into core-updates
[jackhill/guix/guix.git] / gnu / packages / tls.scm
CommitLineData
233e7676 1;;; GNU Guix --- Functional package management for GNU
caeadfdd 2;;; Copyright © 2012, 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
80cc3a0a 3;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org>
29a7c98a 4;;; Copyright © 2014 Ian Denhardt <ian@zenhack.net>
cc2b77df 5;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr>
9fd0838b 6;;; Copyright © 2015 David Thompson <davet@gnu.org>
7890e3ba 7;;; Copyright © 2015 Leo Famulari <leo@famulari.name>
3ea110b7 8;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
7543f865 9;;;
233e7676 10;;; This file is part of GNU Guix.
7543f865 11;;;
233e7676 12;;; GNU Guix is free software; you can redistribute it and/or modify it
7543f865
LC
13;;; under the terms of the GNU General Public License as published by
14;;; the Free Software Foundation; either version 3 of the License, or (at
15;;; your option) any later version.
16;;;
233e7676 17;;; GNU Guix is distributed in the hope that it will be useful, but
7543f865
LC
18;;; WITHOUT ANY WARRANTY; without even the implied warranty of
19;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20;;; GNU General Public License for more details.
21;;;
22;;; You should have received a copy of the GNU General Public License
233e7676 23;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
7543f865 24
a7fd7b68 25(define-module (gnu packages tls)
e9aa8d0c 26 #:use-module ((guix licenses) #:prefix license:)
7543f865
LC
27 #:use-module (guix packages)
28 #:use-module (guix download)
29a7c98a 29 #:use-module (guix utils)
7543f865 30 #:use-module (guix build-system gnu)
cc2b77df 31 #:use-module (guix build-system perl)
7890e3ba 32 #:use-module (guix build-system python)
f61e0e79 33 #:use-module (gnu packages compression)
013ce67b 34 #:use-module (gnu packages)
1ffa7090 35 #:use-module (gnu packages guile)
27e86bed 36 #:use-module (gnu packages libffi)
866f469e 37 #:use-module (gnu packages libidn)
7890e3ba 38 #:use-module (gnu packages ncurses)
27e86bed 39 #:use-module (gnu packages nettle)
1ffa7090 40 #:use-module (gnu packages perl)
27e86bed 41 #:use-module (gnu packages pkg-config)
7890e3ba 42 #:use-module (gnu packages python)
a31f4d35 43 #:use-module (gnu packages texinfo)
ce0614dd 44 #:use-module (gnu packages base))
7543f865
LC
45
46(define-public libtasn1
47 (package
48 (name "libtasn1")
3ea110b7 49 (version "4.7")
7543f865
LC
50 (source
51 (origin
52 (method url-fetch)
53 (uri (string-append "mirror://gnu/libtasn1/libtasn1-"
54 version ".tar.gz"))
55 (sha256
56 (base32
3ea110b7 57 "1j8iixynchziw1y39lnibyl5h81m4p78w3i4f28q2vgwjgf801x4"))))
7543f865 58 (build-system gnu-build-system)
3ea110b7 59 (native-inputs `(("perl" ,perl)))
7543f865 60 (home-page "http://www.gnu.org/software/libtasn1/")
f50d2669 61 (synopsis "ASN.1 library")
7543f865 62 (description
79c311b8
LC
63 "GNU libtasn1 is a library implementing the ASN.1 notation. It is used
64for transmitting machine-neutral encodings of data objects in computer
a22dc0c4
LC
65networking, allowing for formal validation of data according to some
66specifications.")
e9aa8d0c 67 (license license:lgpl2.0+)))
7543f865 68
27e86bed
AE
69(define-public p11-kit
70 (package
71 (name "p11-kit")
14fe9488 72 (version "0.23.1")
27e86bed
AE
73 (source
74 (origin
75 (method url-fetch)
5cc3096c 76 (uri (string-append "https://p11-glue.freedesktop.org/releases/p11-kit-"
27e86bed
AE
77 version ".tar.gz"))
78 (sha256
79 (base32
14fe9488 80 "1i3a1wdpagm0p3y1bwaz5x5rjhcpqbcrnhkcp10p259vkxk72wz5"))
27e86bed
AE
81 (modules '((guix build utils))) ; for substitute*
82 (snippet
83 '(begin
84 ;; Drop one test that fails, also when trying to compile manually.
85 ;; Reported upstream at
86 ;; https://bugs.freedesktop.org/show_bug.cgi?id=89027
87 (substitute* "Makefile.in"
88 (("test-module\\$\\(EXEEXT\\) ") ""))))))
89 (build-system gnu-build-system)
90 (native-inputs
91 `(("pkg-config" ,pkg-config)))
92 (inputs
93 `(("libffi" ,libffi)
94 ("libtasn1" ,libtasn1)))
95 (arguments
96 `(#:configure-flags '("--without-trust-paths")))
97 (home-page "http://p11-glue.freedesktop.org/p11-kit.html")
98 (synopsis "PKCS#11 library")
99 (description
100 "p11-kit provides a way to load and enumerate PKCS#11 modules. It
101provides a standard configuration setup for installing PKCS#11 modules
102in such a way that they are discoverable. It also solves problems with
103coordinating the use of PKCS#11 by different components or libraries
104living in the same process.")
e9aa8d0c 105 (license license:bsd-3)))
27e86bed 106
7543f865
LC
107(define-public gnutls
108 (package
109 (name "gnutls")
7de5236a 110 (version "3.4.9")
d7d408d5
LC
111 (source (origin
112 (method url-fetch)
113 (uri
114 ;; Note: Releases are no longer on ftp.gnu.org since the
115 ;; schism (after version 3.1.5).
d93627e4 116 (string-append "mirror://gnupg/gnutls/v"
29a7c98a 117 (version-major+minor version)
d93627e4 118 "/gnutls-" version ".tar.xz"))
d7d408d5
LC
119 (sha256
120 (base32
7de5236a 121 "0gvwyl0kdp1qpzbzp46wqfdzzrmwy9n54sgcjvvm1m1kpanlyna8"))))
7543f865 122 (build-system gnu-build-system)
b94ae0b8
AK
123 (arguments
124 '(#:configure-flags
125 (list (string-append "--with-guile-site-dir="
126 (assoc-ref %outputs "out")
aa7c7f21
MW
127 "/share/guile/site/2.0")
128 ;; GnuTLS doesn't consult any environment variables to specify
129 ;; the location of the system-wide trust store. Instead it has a
130 ;; configure-time option. Unless specified, its configure script
131 ;; attempts to auto-detect the location by looking for common
132 ;; places in the filesystem, none of which are present in our
133 ;; chroot build environment. If not found, then no default trust
134 ;; store is used, so each program has to provide its own
135 ;; fallback, and users have to configure each program
136 ;; independently. This seems suboptimal.
866f469e
MW
137 "--with-default-trust-store-dir=/etc/ssl/certs"
138
139 ;; FIXME: Temporarily disable p11-kit support since it is not
140 ;; working on mips64el.
606c6380
LC
141 "--without-p11-kit")
142
143 #:phases (modify-phases %standard-phases
144 (add-after
145 'install 'move-doc
146 (lambda* (#:key outputs #:allow-other-keys)
147 ;; Copy the 4.1 MiB of section 3 man pages to "doc".
148 (let* ((out (assoc-ref outputs "out"))
149 (doc (assoc-ref outputs "doc"))
9cdce047 150 (mandir (string-append doc "/share/man/man3"))
606c6380
LC
151 (oldman (string-append out "/share/man/man3")))
152 (mkdir-p mandir)
153 (copy-recursively oldman mandir)
154 (delete-file-recursively oldman)
155 #t))))))
156 (outputs '("out" ;4.4 MiB
157 "debug"
158 "doc")) ;4.1 MiB of man pages
a1db0975 159 (native-inputs
d2fcfd3d
SB
160 `(("pkg-config" ,pkg-config)
161 ("which" ,which)))
7543f865
LC
162 (inputs
163 `(("guile" ,guile-2.0)
0cb9b456 164 ("perl" ,perl)))
7543f865 165 (propagated-inputs
d2fcfd3d 166 ;; These are all in the 'Requires.private' field of gnutls.pc.
7543f865 167 `(("libtasn1" ,libtasn1)
866f469e
MW
168 ("libidn" ,libidn)
169 ("nettle" ,nettle)
f61e0e79 170 ("zlib" ,zlib)))
7543f865 171 (home-page "http://www.gnu.org/software/gnutls/")
f50d2669 172 (synopsis "Transport layer security library")
7543f865 173 (description
a22dc0c4 174 "GnuTLS is a secure communications library implementing the SSL, TLS
79c311b8 175and DTLS protocols. It is provided in the form of a C library to support the
a22dc0c4
LC
176protocols, as well as to parse and write X.5009, PKCS 12, OpenPGP and other
177required structures.")
e9aa8d0c 178 (license license:lgpl2.1+)))
cc2b77df
AE
179
180(define-public openssl
181 (package
caeadfdd 182 (replacement openssl-1.0.2g)
cc2b77df 183 (name "openssl")
19f33952 184 (version "1.0.2f")
cc2b77df
AE
185 (source (origin
186 (method url-fetch)
e81e5fa5
EF
187 (uri (list (string-append "ftp://ftp.openssl.org/source/"
188 name "-" version ".tar.gz")
189 (string-append "ftp://ftp.openssl.org/source/old/"
80cc3a0a
MW
190 (string-trim-right version char-set:letter)
191 "/" name "-" version ".tar.gz")))
cc2b77df
AE
192 (sha256
193 (base32
19f33952 194 "171fkdg9v6j29d962nh6kb79kfm8kkhy7n9makw39d7jvvj4wawk"))
784d6e91
LC
195 (patches (map search-patch
196 '("openssl-runpath.patch"
197 "openssl-c-rehash.patch")))))
cc2b77df
AE
198 (build-system gnu-build-system)
199 (native-inputs `(("perl" ,perl)))
200 (arguments
e1202717 201 `(#:parallel-build? #f
cc2b77df
AE
202 #:parallel-tests? #f
203 #:test-target "test"
204 #:phases
b6cb1358 205 (modify-phases %standard-phases
4fb254a3 206 (add-before
86c8f1da 207 'configure 'patch-Makefile.org
4fb254a3
LC
208 (lambda* (#:key outputs #:allow-other-keys)
209 ;; The default MANDIR is some unusual place. Fix that.
210 (let ((out (assoc-ref outputs "out")))
86c8f1da 211 (patch-makefile-SHELL "Makefile.org")
4fb254a3
LC
212 (substitute* "Makefile.org"
213 (("^MANDIR[[:blank:]]*=.*$")
214 (string-append "MANDIR = " out "/share/man\n")))
215 #t)))
b6cb1358
LC
216 (replace
217 'configure
218 (lambda* (#:key outputs #:allow-other-keys)
219 (let ((out (assoc-ref outputs "out")))
220 (zero?
221 (system* "./config"
222 "shared" ;build shared libraries
223 "--libdir=lib"
4fb254a3
LC
224
225 ;; The default for this catch-all directory is
226 ;; PREFIX/ssl. Change that to something more
227 ;; conventional.
228 (string-append "--openssldir=" out
229 "/share/openssl-" ,version)
230
b6cb1358
LC
231 (string-append "--prefix=" out)
232
233 ;; XXX FIXME: Work around a code generation bug in GCC
234 ;; 4.9.3 on ARM when compiled with -mfpu=neon. See:
235 ;; <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66917>
236 ,@(if (and (not (%current-target-system))
237 (string-prefix? "armhf" (%current-system)))
238 '("-mfpu=vfpv3")
239 '()))))))
fe8199a8
LC
240 (add-after
241 'install 'make-libraries-writable
242 (lambda* (#:key outputs #:allow-other-keys)
243 ;; Make libraries writable so that 'strip' does its job.
244 (let ((out (assoc-ref outputs "out")))
245 (for-each (lambda (file)
246 (chmod file #o644))
247 (find-files (string-append out "/lib")
248 "\\.so"))
249 #t)))
b6cb1358
LC
250 (add-before
251 'patch-source-shebangs 'patch-tests
252 (lambda* (#:key inputs native-inputs #:allow-other-keys)
253 (let ((bash (assoc-ref (or native-inputs inputs) "bash")))
254 (substitute* (find-files "test" ".*")
255 (("/bin/sh")
256 (string-append bash "/bin/bash"))
257 (("/bin/rm")
86c8f1da
MW
258 "rm"))
259 #t)))
784d6e91
LC
260 (add-after
261 'install 'remove-miscellany
262 (lambda* (#:key outputs #:allow-other-keys)
263 ;; The 'misc' directory contains random undocumented shell and Perl
264 ;; scripts. Remove them to avoid retaining a reference on Perl.
265 (let ((out (assoc-ref outputs "out")))
266 (delete-file-recursively (string-append out "/share/openssl-"
267 ,version "/misc"))
268 #t))))))
cc2b77df
AE
269 (native-search-paths
270 ;; FIXME: These two variables must designate a single file or directory
271 ;; and are not actually "search paths." In practice it works OK in user
272 ;; profiles because there's always just one item that matches the
273 ;; specification.
274 (list (search-path-specification
275 (variable "SSL_CERT_DIR")
276 (files '("etc/ssl/certs")))
277 (search-path-specification
278 (variable "SSL_CERT_FILE")
279 (files '("etc/ssl/certs/ca-certificates.crt")))))
280 (synopsis "SSL/TLS implementation")
281 (description
e881752c 282 "OpenSSL is an implementation of SSL/TLS.")
e9aa8d0c 283 (license license:openssl)
cc2b77df
AE
284 (home-page "http://www.openssl.org/")))
285
caeadfdd
LC
286(define openssl-1.0.2g
287 (package
288 (inherit openssl)
289 (replacement #f)
290 (source
291 (let ((name "openssl") (version "1.0.2g"))
292 (origin
293 (method url-fetch)
294 (uri (list (string-append "ftp://ftp.openssl.org/source/"
295 name "-" version ".tar.gz")
296 (string-append "ftp://ftp.openssl.org/source/old/"
297 (string-trim-right version char-set:letter)
298 "/" name "-" version ".tar.gz")))
299 (sha256
300 (base32
301 "0cxajjayi859czi545ddafi24m9nwsnjsw4q82zrmqvwj2rv315p"))
302 (patches (map search-patch
303 '("openssl-runpath.patch"
ed742bc4
MW
304 "openssl-c-rehash-in.patch"))))))
305 (arguments
306 (substitute-keyword-arguments (package-arguments openssl)
307 ((#:phases phases)
308 `(modify-phases ,phases
309 (replace 'configure
310 (lambda* (#:key outputs #:allow-other-keys)
311 (let ((out (assoc-ref outputs "out")))
312 (zero?
313 (system*
314 "./config"
315
316 ;; XXX TEMPORARY, FOR GRAFTING ONLY
317 ;; Enable ssl2 code to preserve
318 ;; ABI compatibility with 1.0.2f
319 "enable-ssl2"
320
321 "shared" ;build shared libraries
322 "--libdir=lib"
323
324 ;; The default for this catch-all directory is
325 ;; PREFIX/ssl. Change that to something more
326 ;; conventional.
327 (string-append "--openssldir=" out
328 "/share/openssl-" ,(package-version openssl))
329
330 (string-append "--prefix=" out)
331
332 ;; XXX FIXME: Work around a code generation bug in GCC
333 ;; 4.9.3 on ARM when compiled with -mfpu=neon. See:
334 ;; <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66917>
335 ,@(if (and (not (%current-target-system))
336 (string-prefix? "armhf" (%current-system)))
337 '("-mfpu=vfpv3")
338 '()))))))))))))
caeadfdd 339
cb6a802c
AE
340(define-public libressl
341 (package
342 (name "libressl")
599860d2 343 (version "2.2.6")
cb6a802c
AE
344 (source
345 (origin
346 (method url-fetch)
347 (uri (string-append
348 "http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-"
349 version ".tar.gz"))
350 (sha256 (base32
599860d2 351 "0kynb15l5gq1qgp3p4ncn20sc65sbl8lk89vyr07s17xrya9kq8y"))))
cb6a802c
AE
352 (build-system gnu-build-system)
353 (native-search-paths
354 ;; FIXME: These two variables must designate a single file or directory
355 ;; and are not actually "search paths." In practice it works OK in
356 ;; user profiles because there's always just one item that matches the
357 ;; specification.
358 (list (search-path-specification
359 (variable "SSL_CERT_DIR")
360 (files '("etc/ssl/certs")))
361 (search-path-specification
362 (variable "SSL_CERT_FILE")
363 (files '("etc/ssl/certs/ca-certificates.crt")))))
364 (home-page "http://www.libressl.org/")
365 (synopsis "SSL/TLS implementation")
366 (description "LibreSSL is a version of the TLS/crypto stack forked
367from OpenSSL in 2014, with the goals of modernizing the codebase, improving
368security, and applying best practice development processes.")
369 ;; Files taken from OpenSSL keep their license, others are under various
370 ;; non-copyleft licenses.
371 (license (list license:openssl
372 (license:non-copyleft
373 "file://COPYING"
374 "See COPYING in the distribution.")))))
375
6cefd53d 376(define-public python-acme
7890e3ba 377 (package
6cefd53d 378 (name "python-acme")
eda0522a 379 (version "0.4.2")
7890e3ba
LF
380 (source (origin
381 (method url-fetch)
ef900645 382 (uri (pypi-uri "acme" version))
7890e3ba
LF
383 (sha256
384 (base32
eda0522a 385 "1dh0qlsi309b37wa0nw0h2gvs94yk12lc4mhr3rb9c4h46m0hn8a"))))
7890e3ba
LF
386 (build-system python-build-system)
387 (arguments
6cefd53d 388 `(#:phases
9bee9d87
LF
389 (modify-phases %standard-phases
390 (add-before 'install 'disable-egg-compression
391 (lambda _
392 ;; Do not compress the egg.
393 ;; See <http://bugs.gnu.org/20765>.
394 (let ((port (open-file "setup.cfg" "a")))
395 (display "\n[easy_install]\nzip_ok = 0\n"
396 port)
397 (close-port port)
50a7963a
LF
398 #t)))
399 (add-after 'install 'docs
400 (lambda* (#:key outputs #:allow-other-keys)
401 (let* ((out (assoc-ref outputs "out"))
402 (man (string-append out "/share/man/man1"))
403 (info (string-append out "/info")))
404 (and (zero? (system* "make" "-C" "docs" "man" "info"))
405 (install-file "docs/_build/texinfo/acme-python.info" info)
406 (install-file "docs/_build/man/acme-python.1" man)
407 #t)))))))
408 ;; TODO: Add optional inputs for testing.
7890e3ba 409 (native-inputs
6cefd53d 410 `(("python-mock" ,python-mock)
50a7963a
LF
411 ;; For documentation
412 ("python-sphinx" ,python-sphinx)
413 ("python-sphinxcontrib-programoutput" ,python-sphinxcontrib-programoutput)
414 ("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme)
415 ("python-setuptools" ,python-setuptools)
416 ("texinfo" ,texinfo)))
7890e3ba 417 (propagated-inputs
6cefd53d
LF
418 `(("python-ndg-httpsclient" ,python-ndg-httpsclient)
419 ("python-werkzeug" ,python-werkzeug)
420 ("python-six" ,python-six)
421 ("python-requests" ,python-requests)
422 ("python-pytz" ,python-pytz)
423 ("python-pyrfc3339" ,python-pyrfc3339)
424 ("python-pyasn1" ,python-pyasn1)
425 ("python-cryptography" ,python-cryptography)
426 ("python-pyopenssl" ,python-pyopenssl)))
7890e3ba
LF
427 (home-page "https://github.com/letsencrypt/letsencrypt")
428 (synopsis "ACME protocol implementation in Python")
429 (description "ACME protocol implementation in Python")
430 (license license:asl2.0)))
431
6cefd53d
LF
432(define-public python2-acme
433 (package-with-python2 python-acme))
434
9fd0838b
DT
435(define-public letsencrypt
436 (package
437 (name "letsencrypt")
eda0522a 438 (version "0.4.2")
9fd0838b
DT
439 (source (origin
440 (method url-fetch)
ef900645 441 (uri (pypi-uri "letsencrypt" version))
9fd0838b
DT
442 (sha256
443 (base32
eda0522a 444 "1rjbblj60w7jwc5y04sy6fbxcynvakvazikg1pdmhyic5jmj9bg3"))))
9fd0838b
DT
445 (build-system python-build-system)
446 (arguments
f9263d9a
LF
447 `(#:python ,python-2
448 #:phases
449 (modify-phases %standard-phases
450 (add-after 'install 'docs
451 (lambda* (#:key outputs #:allow-other-keys)
452 (let* ((out (assoc-ref outputs "out"))
453 (man1 (string-append out "/share/man/man1"))
454 (man7 (string-append out "/share/man/man7"))
455 (info (string-append out "/info")))
456 (substitute* "docs/man/letsencrypt.rst"
457 (("letsencrypt --help all")
458 (string-append out "/bin/letsencrypt" " --help all")))
459 (and
460 (zero? (system* "make" "-C" "docs" "man" "info"))
461 (install-file "docs/_build/texinfo/LetsEncrypt.info" info)
462 (install-file "docs/_build/man/letsencrypt.1" man1)
463 (install-file "docs/_build/man/letsencrypt.7" man7)
464 #t)))))))
465 ;; TODO: Add optional inputs for testing.
9fd0838b
DT
466 (native-inputs
467 `(("python2-nose" ,python2-nose)
f9263d9a
LF
468 ("python2-mock" ,python2-mock)
469 ;; For documentation
470 ("python2-sphinx" ,python2-sphinx)
471 ("python2-sphinx-rtd-theme" ,python2-sphinx-rtd-theme)
472 ("python2-sphinx-repoze-autointerface" ,python2-sphinx-repoze-autointerface)
473 ("python2-sphinxcontrib-programoutput" ,python2-sphinxcontrib-programoutput)
474 ("texinfo" ,texinfo)))
9fd0838b 475 (propagated-inputs
6cefd53d 476 `(("python2-acme" ,python2-acme)
9fd0838b
DT
477 ("python2-zope-interface" ,python2-zope-interface)
478 ("python2-pythondialog" ,python2-pythondialog)
479 ("python2-pyrfc3339" ,python2-pyrfc3339)
480 ("python2-pyopenssl" ,python2-pyopenssl)
481 ("python2-configobj" ,python2-configobj)
482 ("python2-configargparse" ,python2-configargparse)
483 ("python2-zope-component" ,python2-zope-component)
484 ("python2-parsedatetime" ,python2-parsedatetime)
485 ("python2-six" ,python2-six)
486 ("python2-psutil" ,python2-psutil)
487 ("python2-requests" ,python2-requests)
488 ("python2-pytz" ,python2-pytz)))
489 (synopsis "Let's Encrypt client")
490 (description "Tool to automatically receive and install X.509 certificates
491to enable TLS on servers. The client will interoperate with the Let’s Encrypt CA which
492will be issuing browser-trusted certificates for free.")
493 (home-page "https://letsencrypt.org/")
494 (license license:asl2.0)))
495
cc2b77df
AE
496(define-public perl-net-ssleay
497 (package
498 (name "perl-net-ssleay")
499 (version "1.68")
500 (source (origin
501 (method url-fetch)
502 (uri (string-append "mirror://cpan/authors/id/M/MI/MIKEM/"
503 "Net-SSLeay-" version ".tar.gz"))
504 (sha256
505 (base32
1084ec08 506 "1m2wwzhjwsg0drlhp9w12fl6bsgj69v8gdz72jqrqll3qr7f408p"))))
cc2b77df 507 (build-system perl-build-system)
1084ec08
MW
508 (native-inputs
509 `(("patch" ,patch)
510 ("patch/disable-ede-test"
511 ,(search-patch "perl-net-ssleay-disable-ede-test.patch"))))
cc2b77df
AE
512 (inputs `(("openssl" ,openssl)))
513 (arguments
1084ec08
MW
514 `(#:phases
515 (modify-phases %standard-phases
516 (add-after
517 'unpack 'apply-patch
518 (lambda* (#:key inputs #:allow-other-keys)
519 ;; XXX We apply this patch here instead of in the 'origin' because
520 ;; this package's build system fails badly when the source file
521 ;; times are zeroed.
522 ;; XXX Try removing this patch for perl-net-ssleay > 1.68
523 (zero? (system* "patch" "--force" "-p1" "-i"
524 (assoc-ref inputs "patch/disable-ede-test")))))
525 (add-before
526 'configure 'set-ssl-prefix
527 (lambda* (#:key inputs #:allow-other-keys)
528 (setenv "OPENSSL_PREFIX" (assoc-ref inputs "openssl"))
529 #t)))))
cc2b77df
AE
530 (synopsis "Perl extension for using OpenSSL")
531 (description
532 "This module offers some high level convenience functions for accessing
533web pages on SSL servers (for symmetry, the same API is offered for accessing
534http servers, too), an sslcat() function for writing your own clients, and
535finally access to the SSL api of the SSLeay/OpenSSL package so you can write
536servers or clients for more complicated applications.")
537 (license (package-license perl))
538 (home-page "http://search.cpan.org/~mikem/Net-SSLeay-1.66/")))