gnu: Add perl-lwp-online.

* gnu/packages/web.scm (perl-lwp-online): New variable.

Signed-off-by: Ricardo Wurmus <rekado@elephly.net>
This commit is contained in:
Petter 2017-10-23 09:05:42 +02:00 committed by Ricardo Wurmus
parent 9e88b210f6
commit efc8f7d03d
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 30 additions and 0 deletions

View File

@ -20,6 +20,7 @@
;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2017 Kei Kebreau <kkebreau@posteo.net>
;;; Copyright © 2017 Petter <petter@mykolab.ch>
;;;
;;; This file is part of GNU Guix.
;;;
@ -2891,6 +2892,35 @@ contains modules that are of more general use and even classes that
help you implement simple HTTP servers.")
(home-page "http://search.cpan.org/dist/libwww-perl/")))
(define-public perl-lwp-online
(package
(name "perl-lwp-online")
(version "1.08")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://cpan/authors/id/A/AD/ADAMK/LWP-Online-"
version ".tar.gz"))
(sha256
(base32
"176f6vbk1018i0y7xj9d406ndbjgwzan2j9nihxnsahzg2vr2vz2"))))
(build-system perl-build-system)
(propagated-inputs
`(("perl-libwww" ,perl-libwww)
("perl-uri" ,perl-uri)))
(native-inputs
`(("perl-module-install" ,perl-module-install)))
(home-page "http://search.cpan.org/dist/LWP-Online/")
(synopsis "Checks whether your process has access to the web")
(description "This module attempts to answer, as accurately as it can, one
of the nastiest technical questions there is: am I on the internet?
A host of networking and security issues make this problem very difficult.
There are firewalls, proxies (both well behaved and badly behaved). We might
not have DNS. We might not have a network card at all!")
(license l:perl-license)))
(define-public perl-lwp-mediatypes
(package
(name "perl-lwp-mediatypes")