1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2013 Aljosha Papsch <misc@rpapsch.de>
4 ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
5 ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org>
6 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2018 Raoul Jean Pierre Bonnal <ilpuccio.febo@gmail.com>
8 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
9 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Eric Bavier <bavier@posteo.net>
10 ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
11 ;;; Copyright © 2016 Sou Bunnbu <iyzsong@gmail.com>
12 ;;; Copyright © 2016 Jelle Licht <jlicht@fsfe.org>
13 ;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
14 ;;; Copyright © 2016 Rene Saavedra <rennes@openmailbox.org>
15 ;;; Copyright © 2016 Ben Woodcroft <donttrustben@gmail.com>
16 ;;; Copyright © 2016 Clément Lassieur <clement@lassieur.org>
17 ;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
18 ;;; Copyright © 2016, 2017, 2018, 2019, 2021 Arun Isaac <arunisaac@systemreboot.net>
19 ;;; Copyright © 2016–2021 Tobias Geerinckx-Rice <me@tobias.gr>
20 ;;; Copyright © 2016 Bake Timmons <b3timmons@speedymail.org>
21 ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
22 ;;; Copyright © 2017, 2018, 2020 Marius Bakke <mbakke@fastmail.com>
23 ;;; Copyright © 2017 Kei Kebreau <kkebreau@posteo.net>
24 ;;; Copyright © 2017 Petter <petter@mykolab.ch>
25 ;;; Copyright © 2017, 2021 Pierre Langlois <pierre.langlois@gmx.com>
26 ;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
27 ;;; Copyright © 2017, 2019, 2020 Christopher Baines <mail@cbaines.net>
28 ;;; Copyright © 2018, 2019 Julien Lepiller <julien@lepiller.eu>
29 ;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
30 ;;; Copyright © 2018 Gábor Boskovits <boskovits@gmail.com>
31 ;;; Copyright © 2018 Mădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>
32 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
33 ;;; Copyright © 2019, 2020, 2021 Nicolas Goaziou <mail@nicolasgoaziou.fr>
34 ;;; Copyright © 2019 Brendan Tildesley <mail@brendan.scot>
35 ;;; Copyright © 2019 Alex Griffin <a@ajgrf.com>
36 ;;; Copyright © 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
37 ;;; Copyright © 2019 Jakob L. Kreuze <zerodaysfordays@sdf.org>
38 ;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
39 ;;; Copyright © 2019 Pierre-Moana Levesque <pierre.moana.levesque@gmail.com>
40 ;;; Copyright © 2019, 2020 Florian Pelz <pelzflorian@pelzflorian.de>
41 ;;; Copyright © 2020 Timotej Lazar <timotej.lazar@araneo.si>
42 ;;; Copyright © 2020 Pierre Neidhardt <mail@ambrevar.xyz>
43 ;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
44 ;;; Copyright © 2018, 2019, 2020 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
45 ;;; Copyright © 2020, 2021 Paul Garlick <pgarlick@tourbillion-technology.com>
46 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
47 ;;; Copyright © 2020, 2021 Ryan Prior <rprior@protonmail.com>
48 ;;; Copyright © 2020 Alexandru-Sergiu Marton <brown121407@posteo.ro>
49 ;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
50 ;;; Copyright © 2021 Stefan Reichör <stefan@xsteve.at>
51 ;;; Copyright © 2021 la snesne <lasnesne@lagunposprasihopre.org>
52 ;;; Copyright © 2021 Matthew James Kraai <kraai@ftbfs.org>
53 ;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
54 ;;; Copyright © 2021 Jack Hill <jackhill@jackhill.us>
55 ;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
57 ;;; This file is part of GNU Guix.
59 ;;; GNU Guix is free software; you can redistribute it and/or modify it
60 ;;; under the terms of the GNU General Public License as published by
61 ;;; the Free Software Foundation; either version 3 of the License, or (at
62 ;;; your option) any later version.
64 ;;; GNU Guix is distributed in the hope that it will be useful, but
65 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
66 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
67 ;;; GNU General Public License for more details.
69 ;;; You should have received a copy of the GNU General Public License
70 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
72 (define-module (gnu packages web)
73 #:use-module (ice-9 match)
74 #:use-module ((guix licenses) #:prefix license:)
75 #:use-module (guix packages)
76 #:use-module (guix download)
77 #:use-module (guix gexp)
78 #:use-module (guix cvs-download)
79 #:use-module (guix hg-download)
80 #:use-module (guix git-download)
81 #:use-module (guix utils)
82 #:use-module (guix build-system ant)
83 #:use-module (guix build-system cargo)
84 #:use-module (guix build-system cmake)
85 #:use-module (guix build-system copy)
86 #:use-module (guix build-system glib-or-gtk)
87 #:use-module (guix build-system gnu)
88 #:use-module (guix build-system go)
89 #:use-module (guix build-system meson)
90 #:use-module (guix build-system perl)
91 #:use-module (guix build-system python)
92 #:use-module (guix build-system qt)
93 #:use-module (guix build-system scons)
94 #:use-module (guix build-system trivial)
95 #:use-module (gnu packages)
96 #:use-module (gnu packages admin)
97 #:use-module (gnu packages adns)
98 #:use-module (gnu packages apr)
99 #:use-module (gnu packages autotools)
100 #:use-module (gnu packages base)
101 #:use-module (gnu packages bash)
102 #:use-module (gnu packages bison)
103 #:use-module (gnu packages bittorrent)
104 #:use-module (gnu packages boost)
105 #:use-module (gnu packages check)
106 #:use-module (gnu packages compression)
107 #:use-module (gnu packages crates-gtk)
108 #:use-module (gnu packages crates-io)
109 #:use-module (gnu packages curl)
110 #:use-module (gnu packages cyrus-sasl)
111 #:use-module (gnu packages databases)
112 #:use-module (gnu packages docbook)
113 #:use-module (gnu packages documentation)
114 #:use-module (gnu packages emacs)
115 #:use-module (gnu packages emacs-xyz)
116 #:use-module (gnu packages flex)
117 #:use-module (gnu packages fontutils)
118 #:use-module (gnu packages freedesktop)
119 #:use-module (gnu packages gcc)
120 #:use-module (gnu packages gd)
121 #:use-module (gnu packages gettext)
122 #:use-module (gnu packages glib)
123 #:use-module (gnu packages gnome)
124 #:use-module (gnu packages gnu-doc)
125 #:use-module (gnu packages gnunet)
126 #:use-module (gnu packages gnupg)
127 #:use-module (gnu packages golang)
128 #:use-module (gnu packages gperf)
129 #:use-module (gnu packages graphviz)
130 #:use-module (gnu packages gtk)
131 #:use-module (gnu packages guile)
132 #:use-module (gnu packages guile-xyz)
133 #:use-module (gnu packages hurd)
134 #:use-module (gnu packages icu4c)
135 #:use-module (gnu packages image)
136 #:use-module (gnu packages java)
137 #:use-module (gnu packages jemalloc)
138 #:use-module (gnu packages imagemagick)
139 #:use-module (gnu packages kde)
140 #:use-module (gnu packages kerberos)
141 #:use-module (gnu packages libevent)
142 #:use-module (gnu packages libidn)
143 #:use-module (gnu packages libunistring)
144 #:use-module (gnu packages libunwind)
145 #:use-module (gnu packages linux)
146 #:use-module (gnu packages lisp-xyz)
147 #:use-module (gnu packages lsof)
148 #:use-module (gnu packages lua)
149 #:use-module (gnu packages mail)
150 #:use-module (gnu packages man)
151 #:use-module (gnu packages markup)
152 #:use-module (gnu packages ncurses)
153 #:use-module (gnu packages networking)
154 #:use-module (gnu packages nss)
155 #:use-module (gnu packages openldap)
156 #:use-module (gnu packages openstack)
157 #:use-module (gnu packages package-management)
158 #:use-module (gnu packages pcre)
159 #:use-module (gnu packages perl)
160 #:use-module (gnu packages perl-check)
161 #:use-module (gnu packages python)
162 #:use-module (gnu packages python-crypto)
163 #:use-module (gnu packages python-web)
164 #:use-module (gnu packages python-xyz)
165 #:use-module (gnu packages pkg-config)
166 #:use-module (gnu packages qt)
167 #:use-module (gnu packages re2c)
168 #:use-module (gnu packages readline)
169 #:use-module (gnu packages search)
170 #:use-module (gnu packages serialization)
171 #:use-module (gnu packages sphinx)
172 #:use-module (gnu packages texinfo)
173 #:use-module (gnu packages textutils)
174 #:use-module (gnu packages tls)
175 #:use-module (gnu packages valgrind)
176 #:use-module (gnu packages version-control)
177 #:use-module (gnu packages vim)
178 #:use-module (gnu packages xml)
179 #:use-module ((srfi srfi-1) #:select (delete-duplicates)))
190 (url "https://github.com/azadkuh/qhttp")
191 (commit (string-append "version-" version))))
192 (file-name (git-file-name name version))
194 (base32 "0cx23g4y4k4v9p5ph6h7gfhp8sfy1gcdv1g6bl44hppar1y0zfdq"))))
195 (build-system gnu-build-system)
197 `(#:tests? #f ; no target
199 ((guix build copy-build-system)
200 ,@%gnu-build-system-modules)
202 (((guix build copy-build-system) #:prefix copy:)
203 (guix build gnu-build-system)
206 (modify-phases %standard-phases
207 (add-after 'unpack 'patch-source
208 (lambda* (#:key outputs #:allow-other-keys)
209 (substitute* "commondir.pri"
210 (("\\$\\$PRJDIR/xbin")
211 (string-append (assoc-ref outputs "out") "/lib"))
214 (("\\$\\$PRJDIR/3rdparty")
216 (substitute* "src/src.pro"
217 (("SOURCES \\+= \\$\\$PRJDIR/3rdparty/http-parser/http_parser.c")
219 (("HEADERS \\+= \\$\\$PRJDIR/3rdparty/http-parser/http_parser.h")
221 (substitute* '("src/private/qhttpbase.hpp" "src/qhttpabstracts.cpp")
222 (("http-parser/http_parser.h")
226 (lambda _ (invoke "qmake")))
229 (apply (assoc-ref copy:%standard-phases 'install)
232 #:include-regexp ("\\.hpp$")))
234 (add-after 'install 'remove-examples
235 (lambda* (#:key outputs #:allow-other-keys)
236 (with-directory-excursion
237 (string-append (assoc-ref outputs "out") "/lib")
238 (for-each delete-file
245 `(("http-parser" ,http-parser)
246 ("qtbase" ,qtbase-5)))
247 (home-page "https://github.com/azadkuh/qhttp/")
248 (synopsis "Qt-based HTTP Library")
250 "Qhttp is a light-weight and asynchronous HTTP library
251 (both server & client) in Qt5 and C++14.")
252 (license license:expat)))
260 (uri (string-append "mirror://apache/httpd/httpd-"
264 "0v4npxnvih5mlxx6dywwhhfs8xvgcckc0hxzwk3hi0g8nbkjdj0v"))))
265 (build-system gnu-build-system)
266 (native-inputs `(("pcre" ,pcre "bin"))) ;for 'pcre-config'
267 (inputs `(("apr" ,apr)
268 ("apr-util" ,apr-util)
270 ("perl" ,perl))) ; needed to run bin/apxs
272 `(#:test-target "test"
273 #:configure-flags (list "--enable-rewrite"
275 "--enable-vhost-alias"
277 "--enable-mime-magic"
278 (string-append "--sysconfdir="
279 (assoc-ref %outputs "out")
281 (synopsis "Featureful HTTP server")
283 "The Apache HTTP Server Project is a collaborative software development
284 effort aimed at creating a robust, commercial-grade, featureful, and
285 freely-available source code implementation of an HTTP (Web) server. The
286 project is jointly managed by a group of volunteers located around the world,
287 using the Internet and the Web to communicate, plan, and develop the server
288 and its related documentation.")
289 (license license:asl2.0)
290 (home-page "https://httpd.apache.org/")))
292 (define-public mod-wsgi
299 (url "https://github.com/GrahamDumpleton/mod_wsgi")
301 (file-name (git-file-name name version))
304 "1savh6h3qds20mwn1nqasmqzcp57pdhfc9v4b4k78d6q28y0r17s"))))
305 (build-system gnu-build-system)
307 '(#:tests? #f ; TODO: can't figure out if there are tests
309 (string-append "DESTDIR="
310 (assoc-ref %outputs "out"))
311 "LIBEXECDIR=/modules")))
314 ("python" ,python-wrapper)))
315 (synopsis "Apache HTTPD module for Python WSGI applications")
317 "The mod_wsgi module for the Apache HTTPD Server adds support for running
318 applications that support the Python @acronym{WSGI, Web Server Gateway
319 Interface} specification.")
320 (license license:asl2.0)
321 (home-page "https://modwsgi.readthedocs.io/")))
323 (define-public monolith
331 (url "https://github.com/Y2Z/monolith.git")
332 (commit (string-append "v" version))))
333 (file-name (git-file-name name version))
335 (base32 "1pj4wnsw5a4ys79sqw68ib6zimaqlkplb89x6yncg949a6hj8516"))))
336 (build-system cargo-build-system)
339 (("rust-atty" ,rust-atty-0.2)
340 ("rust-base64" ,rust-base64-0.13)
341 ("rust-chrono" ,rust-chrono-0.4)
342 ("rust-clap" ,rust-clap-2)
343 ("rust-cssparser" ,rust-cssparser-0.28)
344 ("rust-encoding-rs" ,rust-encoding-rs-0.8)
345 ("rust-html5ever" ,rust-html5ever-0.24)
346 ("rust-regex" ,rust-regex-1)
347 ("rust-reqwest" ,rust-reqwest-0.11)
348 ("rust-sha2" ,rust-sha2-0.9)
349 ("rust-url" ,rust-url-2))
350 #:cargo-development-inputs
351 (("rust-assert-cmd" ,rust-assert-cmd-1))))
353 `(("pkg-config" ,pkg-config)))
355 `(("openssl" ,openssl)))
356 (home-page "https://github.com/Y2Z/monolith")
357 (synopsis "Command line tool for saving web pages as a single HTML file")
359 "Monolith bundles any web page into a single HTML file.
361 Unlike conventional ``Save page as…'', Monolith not only saves the target
362 document, it embeds CSS, image, and JavaScript assets all at once, producing
363 a single HTML5 document.
365 If compared to saving websites with @samp{wget -mpk}, Monolith embeds
366 all assets as data URLs and therefore displays the saved page exactly
367 the same, being completely separated from the Internet.")
368 (license license:unlicense)))
373 ;; Track the ‘mainline’ branch. Upstream considers it more reliable than
374 ;; ’stable’ and recommends that “in general you deploy the NGINX mainline
375 ;; branch at all times” (https://www.nginx.com/blog/nginx-1-6-1-7-released/)
376 ;; Please update the nginx-documentation package together with this one!
380 (uri (string-append "https://nginx.org/download/nginx-"
384 "11ail85iw6mg8fxd2qnxhcghi0frjk5r70cfar83dms61rb1qxri"))))
385 (build-system gnu-build-system)
386 (inputs `(("libxml2" ,libxml2)
392 `(#:tests? #f ; no test target
394 (modify-phases %standard-phases
395 (add-before 'configure 'patch-/bin/sh
397 (substitute* "auto/feature"
398 (("/bin/sh") (which "sh")))
401 ;; The configure script is hand-written, not from GNU autotools.
402 (lambda* (#:key configure-flags inputs outputs #:allow-other-keys)
404 (append (list (string-append "--prefix=" (assoc-ref outputs "out"))
405 "--with-http_ssl_module"
406 "--with-http_v2_module"
407 "--with-http_xslt_module"
408 "--with-http_gzip_static_module"
409 "--with-http_gunzip_module"
410 "--with-http_addition_module"
411 "--with-http_sub_module"
415 ;; Even when not cross-building, we pass the
416 ;; --crossbuild option to avoid customizing for the
417 ;; kernel version on the build machine.
418 ,(let ((system "Linux") ; uname -s
419 (release "3.2.0") ; uname -r
421 (machine (match (or (%current-target-system)
423 ("x86_64-linux" "x86_64")
424 ("i686-linux" "i686")
425 ("mips64el-linux" "mips64")
426 ;; Prevent errors when querying
427 ;; this package on unsupported
428 ;; platforms, e.g. when running
429 ;; "guix package --search="
431 (string-append "--crossbuild="
432 system ":" release ":" machine)))
434 (setenv "CC" ,(cc-for-target))
435 ;; Fix ./configure test for ‘#include <libxml/parser.h>’.
436 (setenv "CFLAGS" ; CPPFLAGS is not respected
437 (string-append "-I" (assoc-ref inputs "libxml2")
439 (format #t "configure flags: ~s~%" flags)
440 (apply invoke "./configure" flags)
442 (add-after 'install 'install-man-page
443 (lambda* (#:key outputs #:allow-other-keys)
444 (let* ((out (assoc-ref outputs "out"))
445 (man (string-append out "/share/man")))
446 (install-file "objs/nginx.8" (string-append man "/man8"))
448 (add-after 'install 'fix-root-dirs
449 (lambda* (#:key outputs #:allow-other-keys)
450 ;; 'make install' puts things in strange places, so we need to
451 ;; clean it up ourselves.
452 (let* ((out (assoc-ref outputs "out"))
453 (share (string-append out "/share/nginx")))
454 ;; This directory is empty, so get rid of it.
455 (rmdir (string-append out "/logs"))
456 ;; Example configuration and HTML files belong in
459 (rename-file (string-append out "/conf")
460 (string-append share "/conf"))
461 (rename-file (string-append out "/html")
462 (string-append share "/html"))
464 (home-page "https://nginx.org")
465 (synopsis "HTTP and reverse proxy server")
467 "Nginx (\"engine X\") is a high-performance web and reverse proxy server
468 created by Igor Sysoev. It can be used both as a stand-alone web server
469 and as a proxy to reduce the load on back-end HTTP or mail servers.")
470 ;; Almost all of nginx is distributed under the bsd-2 license.
471 ;; The exceptions are:
472 ;; * The 'nginx-http-push' module is covered by the expat license.
473 ;; * The 'nginx-development-kit' module is mostly covered by bsd-3,
474 ;; except for two source files which are bsd-4 licensed.
475 (license (list license:bsd-2 license:expat license:bsd-3 license:bsd-4))))
477 (define-public nginx-documentation
478 ;; This documentation should be relevant for the current nginx package.
479 (let ((version "1.21.2")
481 (changeset "bc9c5d11b67c"))
483 (name "nginx-documentation")
484 (version (simple-format #f "~A-~A-~A" version revision changeset))
486 (origin (method hg-fetch)
488 (url "http://hg.nginx.org/nginx.org")
489 (changeset changeset)))
490 (file-name (string-append name "-" version))
493 "05n72q9vqxx37dyw3yl7jssmpqkw3rwxa2y3m6s0c0ih0z2bx58n"))))
494 (build-system gnu-build-system)
496 '(#:tests? #f ; no test suite
498 (modify-phases %standard-phases
499 (delete 'configure) ; no configure script
501 (lambda* (#:key outputs #:allow-other-keys)
502 (let ((output (assoc-ref outputs "out")))
503 (substitute* "umasked.sh"
504 ((" /bin/sh") (string-append " " (which "sh"))))
505 ;; The documentation includes a banner, which makes sense on
506 ;; the NGinx website, but doesn't make much sense when
507 ;; viewing locally. Therefore, modify the CSS to remove the
509 (substitute* "xslt/style.xslt"
510 (("#banner \\{ background: black;")
511 "#banner { display: none;"))
515 (lambda* (#:key outputs #:allow-other-keys)
516 (let ((output (assoc-ref outputs "out")))
518 (copy-recursively "libxslt" output)
521 `(("libxml2" ,libxml2)
523 ("nginx-xslscript" ,nginx-xslscript)))
524 (home-page "https://nginx.org")
525 (synopsis "Documentation for the nginx web server")
527 "This package provides HTML documentation for the nginx web server.")
528 (license license:bsd-2))))
530 (define-public nginx-accept-language-module
531 ;; Upstream has never made a release; use current commit instead.
532 (let ((commit "2f69842f83dac77f7d98b41a2b31b13b87aeaba7")
535 (name "nginx-accept-language-module")
536 (version (git-version "0.0.0" ;upstream has no version number
542 (url "https://github.com/giom/nginx_accept_language_module")
544 (file-name (git-file-name name version))
546 (base32 "1hjysrl15kh5233w7apq298cc2bp4q1z5mvaqcka9pdl90m0vhbw"))))
547 (build-system gnu-build-system)
548 (inputs `(("openssl" ,openssl)
550 ("nginx-sources" ,(package-source nginx))
553 `(#:tests? #f ; no test target
554 #:make-flags (list "modules")
555 #:modules ((guix build utils)
556 (guix build gnu-build-system)
559 (ice-9 textual-ports))
561 (modify-phases %standard-phases
562 (add-after 'unpack 'unpack-nginx-sources
563 (lambda* (#:key inputs native-inputs #:allow-other-keys)
565 ;; The nginx source code is part of the module’s source.
566 (format #t "decompressing nginx source code~%")
567 (let ((tar (assoc-ref inputs "tar"))
568 (nginx-srcs (assoc-ref inputs "nginx-sources")))
569 (invoke (string-append tar "/bin/tar")
570 "xvf" nginx-srcs "--strip-components=1"))
572 (add-after 'unpack 'convert-to-dynamic-module
575 (with-atomic-file-replacement "config"
577 ;; cf. https://www.nginx.com/resources/wiki/extending/new_config/
578 (format out "ngx_module_type=HTTP~%")
579 (format out "ngx_module_name=\
580 ngx_http_accept_language_module~%")
581 (let* ((str (get-string-all in))
583 "NGX_ADDON_SRCS=\"\\$NGX_ADDON_SRCS (.*)\""))
584 (m (regexp-exec rx str))
585 (srcs (match:substring m 1)))
586 (format out (string-append "ngx_module_srcs=\""
588 (format out ". auto/module~%")
589 (format out "ngx_addon_name=$ngx_module_name~%"))))))
590 (add-before 'configure 'patch-/bin/sh
592 (substitute* "auto/feature"
593 (("/bin/sh") (which "sh")))
596 ;; This phase is largely copied from the nginx package.
597 (lambda* (#:key outputs #:allow-other-keys)
599 (list ;; A copy of nginx’ flags follows, otherwise we
600 ;; get a binary compatibility error. FIXME: Code
601 ;; duplication is bad.
602 (string-append "--prefix=" (assoc-ref outputs "out"))
603 "--with-http_ssl_module"
604 "--with-http_v2_module"
607 ;; Even when not cross-building, we pass the
608 ;; --crossbuild option to avoid customizing for the
609 ;; kernel version on the build machine.
610 ,(let ((system "Linux") ; uname -s
611 (release "3.2.0") ; uname -r
613 (machine (match (or (%current-target-system)
615 ("x86_64-linux" "x86_64")
616 ("i686-linux" "i686")
617 ("mips64el-linux" "mips64")
618 ;; Prevent errors when querying
619 ;; this package on unsupported
620 ;; platforms, e.g. when running
621 ;; "guix package --search="
623 (string-append "--crossbuild="
624 system ":" release ":" machine))
625 ;; The following are the args decribed on
626 ;; <https://www.nginx.com/blog/compiling-dynamic-modules-nginx-plus>.
627 ;; Enabling --with-compat here and in the nginx package
628 ;; would ensure binary compatibility even when using
629 ;; different configure options from the main nginx
630 ;; package. This is not needed for Guix.
632 "--add-dynamic-module=.")))
634 (format #t "environment variable `CC' set to `gcc'~%")
635 (format #t "configure flags: ~s~%" flags)
636 (apply invoke "./configure" flags)
639 (lambda* (#:key outputs #:allow-other-keys)
640 (let* ((out (assoc-ref outputs "out"))
641 (modules-dir (string-append out "/etc/nginx/modules"))
642 (doc-dir (string-append
643 out "/share/doc/nginx-accept-language-module")))
644 (mkdir-p modules-dir)
645 (copy-file "objs/ngx_http_accept_language_module.so"
647 modules-dir "/ngx_http_accept_language_module.so"))
649 (copy-file "README.textile"
650 (string-append doc-dir "/README.textile"))
653 "https://www.nginx.com/resources/wiki/modules/accept_language/")
654 (synopsis "Nginx module for parsing the Accept-Language HTTP header")
656 "This nginx module parses the Accept-Language field in HTTP headers and
657 chooses the most suitable locale for the user from the list of locales
658 supported at your website.")
659 (license (delete-duplicates
660 (cons license:bsd-2 ;license of nginx-accept-language-module
661 ;; The module’s code is linked statically with nginx,
662 ;; therefore nginx’ other licenses may also apply to its
664 (package-license nginx)))))))
666 (define nginx-xslscript
668 (changeset "01dc9ba12e1b"))
670 (name "nginx-xslscript")
672 (simple-format #f "2014-03-31-~A-~A" revision changeset))
676 (url "http://hg.nginx.org/xslscript")
677 (changeset changeset)))
678 (file-name (string-append name "-" version))
681 "0am8zvdx3jmiwkg5q07qjaw5r26r4i2v5i4yr8a1k0jgib6ii08g"))))
682 (build-system gnu-build-system)
684 '(#:tests? #f ; No test suite
686 (modify-phases %standard-phases
690 (lambda* (#:key outputs #:allow-other-keys)
691 (let ((out-bin (string-append
692 (assoc-ref outputs "out")
695 (copy-file "xslscript.pl"
700 (home-page "http://hg.nginx.org/xslscript")
701 (synopsis "XSLScript with NGinx specific modifications")
703 "XSLScript is a terse notation for writing complex XSLT stylesheets.
704 This is modified version, specifically intended for use with the NGinx
706 (license license:bsd-2))))
708 (define nginx-socket-cloexec
711 (name "nginx-socket-cloexec") ;required for lua-resty-shell
714 (inherit (package-source nginx))
715 (patches (append (search-patches "nginx-socket-cloexec.patch")
716 (origin-patches (package-source nginx))))))))
718 (define-public nginx-lua-module
721 (name "nginx-lua-module")
727 (url "https://github.com/openresty/lua-nginx-module")
728 (commit (string-append "v" version))))
729 (file-name (git-file-name "lua-nginx-module" version))
731 (base32 "0nwcbqm1visg1dkxav7qa16w0d0n8cgqn4881xiqn88xfkxj0dyg"))))
732 (build-system gnu-build-system)
734 `(("nginx-sources" ,(package-source nginx-socket-cloexec))
736 ,@(package-inputs nginx)))
738 (substitute-keyword-arguments
739 `(#:configure-flags '("--add-dynamic-module=.")
740 #:make-flags '("modules")
741 #:modules ((guix build utils)
742 (guix build gnu-build-system)
745 (ice-9 textual-ports))
746 ,@(package-arguments nginx))
748 `(modify-phases ,phases
749 (add-after 'unpack 'unpack-nginx-sources
750 (lambda* (#:key inputs native-inputs #:allow-other-keys)
752 ;; The nginx source code is part of the module’s source.
753 (format #t "decompressing nginx source code~%")
754 (let ((tar (assoc-ref inputs "tar"))
755 (nginx-srcs (assoc-ref inputs "nginx-sources")))
756 (invoke (string-append tar "/bin/tar")
757 "xvf" nginx-srcs "--strip-components=1"))
759 (add-before 'configure 'set-luajit-env
760 (lambda* (#:key inputs #:allow-other-keys)
761 (let ((luajit (assoc-ref inputs "luajit")))
763 (string-append luajit "/lib"))
765 (string-append luajit "/include/luajit-2.1"))
768 (lambda* (#:key outputs #:allow-other-keys)
769 (let ((modules-dir (string-append (assoc-ref outputs "out")
770 "/etc/nginx/modules")))
771 (install-file "objs/ngx_http_lua_module.so" modules-dir)
773 (delete 'fix-root-dirs)
774 (delete 'install-man-page)))))
775 (synopsis "NGINX module for Lua programming language support")
776 (description "This NGINX module provides a scripting support with Lua
777 programming language.")))
779 (define-public nginx-rtmp-module
782 (name "nginx-rtmp-module")
788 (url "https://github.com/arut/nginx-rtmp-module")
789 (commit (string-append "v" version))))
790 (file-name (git-file-name name version))
792 (base32 "0y45bswk213yhkc2v1xca2rnsxrhx8v6azxz9pvi71vvxcggqv6h"))))
793 (build-system gnu-build-system)
795 `(("nginx-sources" ,(package-source nginx))
796 ,@(package-inputs nginx)))
798 (substitute-keyword-arguments
799 `(#:configure-flags '("--add-dynamic-module=.")
800 #:make-flags '("modules")
801 #:modules ((guix build utils)
802 (guix build gnu-build-system))
803 ,@(package-arguments nginx))
805 `(modify-phases ,phases
806 (add-after 'unpack 'unpack-nginx-sources
807 (lambda* (#:key inputs native-inputs #:allow-other-keys)
809 ;; The nginx source code is part of the module’s source.
810 (format #t "decompressing nginx source code~%")
811 (invoke "tar" "xvf" (assoc-ref inputs "nginx-sources")
812 ;; This packages's LICENSE file would be
813 ;; overwritten with the one from nginx when
814 ;; unpacking the nginx source, so rename the nginx
815 ;; one when unpacking.
816 "--transform=s,/LICENSE$,/LICENSE.nginx,"
817 "--strip-components=1")
820 (lambda* (#:key outputs #:allow-other-keys)
821 (let ((modules-dir (string-append (assoc-ref outputs "out")
822 "/etc/nginx/modules")))
823 (install-file "objs/ngx_rtmp_module.so" modules-dir)
825 (delete 'fix-root-dirs)
826 (delete 'install-man-page)))))
827 (home-page "https://github.com/arut/nginx-rtmp-module")
828 (synopsis "NGINX module for audio and video streaming with RTMP")
829 (description "This NGINX module provides streaming with the @acronym{RTMP,
830 Real-Time Messaging Protocol}, @acronym{DASH, Dynamic Adaptive Streaming over HTTP},
831 and @acronym{HLS, HTTP Live Streaming} protocols. It allows NGINX to accept
832 incoming RTMP streams for recording or redistribution. It also supports
833 on-demand streaming from a file on disk and pulling from an upstream RTMP
834 stream. Remote control of the module is possible over HTTP.")
835 (license license:bsd-2)))
837 (define-public lighttpd
843 (uri (string-append "https://download.lighttpd.net/lighttpd/"
844 "releases-" (version-major+minor version) ".x/"
845 "lighttpd-" version ".tar.xz"))
848 "1mc421yrbnq3k6yrc708svp0fgcamrn5a0p2nvnhivysffr3v5gv"))))
849 (build-system gnu-build-system)
860 (modify-phases %standard-phases
861 (add-after 'unpack 'embed-/bin/sh-reference
863 (substitute* "src/mod_ssi.c"
864 (("/bin/sh") (which "sh")))
866 (add-after 'unpack 'fix-tests
868 (setenv "SHELL" (which "sh"))
869 ;; gethostbyaddr fails
870 (substitute* "tests/LightyTest.pm"
871 (("\\{HOSTNAME\\} = \\$name;")
872 "{HOSTNAME} = \"127.0.0.1\";"))
875 `(("cyrus-sasl" ,cyrus-sasl)
877 ("libunwind" ,libunwind)
878 ("linux-pam" ,linux-pam)
879 ("mit-krb5" ,mit-krb5)
880 ("openldap" ,openldap)
883 ("pcre:bin" ,pcre "bin")
886 `(("perl" ,perl) ; for tests
887 ("pkg-config" ,pkg-config)
889 (home-page "https://www.lighttpd.net/")
890 (synopsis "Lightweight HTTP and reverse proxy server")
892 "Lighttpd is a secure, fast, compliant, and very flexible web-server that
893 has been optimized for high-performance environments. It has a very low
894 memory footprint compared to other webservers. Its features include FastCGI,
895 CGI, authentication, output compression, URL rewriting and many more.")
896 (license license:bsd-3)))
905 ;; Upstream has disappeared.
907 (url "https://github.com/FastCGI-Archives/fcgi2")
909 (file-name (git-file-name name version))
911 (base32 "1jhz6jfwv5kawa8kajvg18nfwc1b30f38zc0lggszd1vcmrwqkz1"))))
912 (build-system gnu-build-system)
913 ;; Parallel building is not supported.
914 (arguments `(#:parallel-build? #f))
916 `(("autoconf" ,autoconf)
917 ("automake" ,automake)
918 ("libtool" ,libtool)))
919 ;; This is an archived fork of the original home page, www.fastcgi.com.
920 (home-page "https://fastcgi-archives.github.io/")
921 (synopsis "Language-independent, high-performant extension to CGI")
922 (description "FastCGI is a language-independent, scalable extension to CGI
923 that provides high performance without the limitations of server specific
925 ;; This package is released under the Open Market License, a variant of
926 ;; the Expat license, incompatible with the GPL.
927 (license (license:non-copyleft "file://LICENSE.TERMS"))))
929 (define-public fcgiwrap
937 (url "https://github.com/gnosek/fcgiwrap")
939 (file-name (git-file-name name version))
941 (base32 "1ryw66h9aazi83amk8l7ha8k5g0c7qvk5g6jv376a1ws9xk2qw6f"))))
942 (build-system gnu-build-system)
944 `(#:tests? #f ; no tests included
945 #:make-flags (list "CC=gcc")
947 (modify-phases %standard-phases
948 (add-after 'unpack 'fix-CFLAGS
949 ;; Remove broken options unconditionally added to CFLAGS.
951 (substitute* "configure.ac"
955 `(("autoconf" ,autoconf)
956 ("automake" ,automake)
957 ("pkg-config" ,pkg-config)))
960 (home-page "https://nginx.localdomain.pl/wiki/FcgiWrap")
961 (synopsis "Simple server for running CGI applications over FastCGI")
962 (description "Fcgiwrap is a simple server for running CGI applications
963 over FastCGI. It hopes to provide clean CGI support to Nginx (and other web
964 servers that may need it).")
965 (license license:expat)))
967 (define-public starman
974 (uri (string-append "mirror://cpan/authors/id/M/MI/MIYAGAWA/"
975 "Starman-" version ".tar.gz"))
977 (base32 "1y1kn4929k299fbf6sw9lxcsdlq9fvq777p6yrzk591rr9xhkx8h"))))
978 (build-system perl-build-system)
980 `(("perl-libwww" ,perl-libwww)
981 ("perl-module-build-tiny" ,perl-module-build-tiny)
982 ("perl-test-requires" ,perl-test-requires)))
984 `(("perl-data-dump" ,perl-data-dump)
985 ("perl-http-date" ,perl-http-date)
986 ("perl-http-message" ,perl-http-message)
987 ("perl-http-parser-xs" ,perl-http-parser-xs)
988 ("perl-net-server" ,perl-net-server)
989 ("perl-plack" ,perl-plack)
990 ("perl-test-tcp" ,perl-test-tcp)))
991 (home-page "https://metacpan.org/release/Starman")
992 (synopsis "PSGI/Plack web server")
993 (description "Starman is a PSGI perl web server that has unique features
994 such as high performance, preforking, signal support, superdaemon awareness,
995 and UNIX socket support.")
996 (license license:perl-license)))
998 (define-public icedtea-web
1000 (name "icedtea-web")
1005 "http://icedtea.wildebeest.org/download/source/"
1006 name "-" version ".tar.gz"))
1009 "004kwrngyxxlrlzby4vzxjr0xcyngcdc9dfgnvi61ffnjr006ryf"))))
1010 (build-system gnu-build-system)
1013 (list "--disable-plugin" ;NPAPI plugins are obsolete nowadays.
1014 (string-append "BIN_BASH=" (assoc-ref %build-inputs "bash")
1016 (string-append "--with-jdk-home=" (assoc-ref %build-inputs "jdk")))))
1017 (outputs '("out" "doc"))
1019 `(("pkg-config" ,pkg-config)
1023 ("jdk" ,icedtea "jdk")))
1024 (home-page "http://icedtea.classpath.org/wiki/IcedTea-Web")
1025 (synopsis "Java Web Start")
1027 "IcedTea-Web is an implementation of the @dfn{Java Network Launching
1028 Protocol}, also known as Java Web Start. This package provides tools and
1029 libraries for working with JNLP applets.")
1030 ;; The program is mainly GPL2+, with some individual files under LGPL2.1+
1031 ;; or dual licenses.
1032 (license license:gpl2+)))
1034 (define-public jansson
1041 (string-append "http://www.digip.org/jansson/releases/jansson-"
1042 version ".tar.bz2"))
1045 "1g8h18vh8gyxlwfmvdivdp1siad26ywj5zr4j4avgdyjg7wa147f"))))
1046 (build-system gnu-build-system)
1048 `(#:configure-flags '("--disable-static")))
1049 (home-page "http://www.digip.org/jansson/")
1050 (synopsis "JSON C library")
1052 "Jansson is a C library for encoding, decoding and manipulating JSON
1054 (license license:expat)))
1056 (define-public json-c
1063 "https://s3.amazonaws.com/json-c_releases/releases/json-c-"
1067 "0w381krr99q5a2rypx4g437fa7gzgl82i64sgnrs6g5jr44dwxxk"))
1068 (patches (search-patches "json-c-CVE-2020-12762.patch"))))
1069 (build-system cmake-build-system)
1070 (home-page "https://github.com/json-c/json-c/wiki")
1071 (synopsis "JSON implementation in C")
1073 "JSON-C implements a reference counting object model that allows you to
1074 easily construct JSON objects in C, output them as JSON-formatted strings and
1075 parse JSON-formatted strings back into the C representation of JSON objects.
1076 It aims to conform to RFC 7159.")
1077 (license license:x11)))
1079 ;; TODO: Remove these old versions when all dependents have been updated.
1080 (define-public json-c-0.13
1087 "https://s3.amazonaws.com/json-c_releases/releases/json-c-"
1090 (base32 "0ws8dz9nk8q2c0gbf66kg2r6mrkl7kamd3gpdv9zsyrz9n6n0zmq"))
1091 (patches (search-patches "json-c-0.13-CVE-2020-12762.patch"))
1092 (modules '((guix build utils)))
1095 ;; Somehow 'config.h.in' is older than
1096 ;; 'aclocal.m4', which would trigger a rule to
1097 ;; run 'autoheader'.
1098 (set-file-time "config.h.in"
1099 (stat "aclocal.m4"))
1101 (build-system gnu-build-system)))
1103 (define-public json-c-0.12
1105 (inherit json-c-0.13)
1110 "https://s3.amazonaws.com/json-c_releases/releases/json-c-"
1113 (base32 "08qibrq29a5v7g23wi5icy6l4fbfw90h9ccps6vq0bcklx8n84ra"))
1114 (patches (search-patches "json-c-0.12-CVE-2020-12762.patch"))
1115 (modules '((guix build utils)))
1118 ;; Somehow 'config.h.in' is older than
1119 ;; 'aclocal.m4', which would trigger a rule to
1120 ;; run 'autoheader'.
1121 (set-file-time "config.h.in"
1122 (stat "aclocal.m4"))
1124 ;; Don't try to build with -Werror.
1125 (substitute* (find-files "." "Makefile\\.in")
1129 (define-public json-parser
1131 (name "json-parser")
1134 ;; do not use auto-generated tarballs
1137 (url "https://github.com/udp/json-parser")
1138 (commit (string-append "v" version))))
1139 (file-name (git-file-name name version))
1142 "1ls7z4fx0sq633s5bc0j1gh36sv087gmrgr7rza22wjq2d4606yf"))))
1143 ;; FIXME: we should build the python bindings in a separate package
1144 (build-system gnu-build-system)
1145 ;; the tests are written for the python bindings which are not built here
1146 (arguments '(#:tests? #f))
1147 (home-page "https://github.com/udp/json-parser")
1148 (synopsis "JSON parser written in ANSI C")
1149 (description "This package provides a very low footprint JSON parser
1150 written in portable ANSI C.
1153 @item BSD licensed with no dependencies (i.e. just drop the C file into your
1155 @item Never recurses or allocates more memory than it needs
1156 @item Very simple API with operator sugar for C++
1158 (license license:bsd-2)))
1160 (define-public qjson
1167 (url "https://github.com/flavio/qjson")
1169 (file-name (git-file-name name version))
1172 "1f4wnxzx0qdmxzc7hqk28m0sva7z9p9xmxm6aifvjlp0ha6pmfxs"))))
1173 (build-system cmake-build-system)
1175 ;; The tests require a running X server.
1176 `(#:configure-flags '("-DQJSON_BUILD_TESTS=ON"
1177 "-DCMAKE_CXX_FLAGS=-std=gnu++11 -fPIC")
1179 (modify-phases %standard-phases
1180 (add-after 'unpack 'disable-broken-test
1182 ;; FIXME: One test fails. See
1183 ;; https://github.com/flavio/qjson/issues/105
1184 (substitute* "tests/scanner/testscanner.cpp"
1185 (("QTest::newRow\\(\"too large exponential\"\\)" line)
1186 (string-append "//" line)))
1188 (add-before 'check 'render-offscreen
1189 (lambda _ (setenv "QT_QPA_PLATFORM" "offscreen") #t)))))
1191 `(("qtbase" ,qtbase-5)))
1192 (home-page "http://qjson.sourceforge.net")
1193 (synopsis "Library that maps JSON data to QVariant objects")
1194 (description "QJson is a Qt-based library that maps JSON data to
1195 @code{QVariant} objects. JSON arrays will be mapped to @code{QVariantList}
1196 instances, while JSON's objects will be mapped to @code{QVariantMap}.")
1197 ;; Only version 2.1 of the license
1198 (license license:lgpl2.1)))
1200 (define-public qoauth
1207 (url "https://github.com/ayoy/qoauth")
1208 (commit (string-append "v" version))))
1209 (file-name (git-file-name name version))
1212 "1b2jdqs526ac635yb2whm049spcsk7almnnr6r5b4yqhq922anw3"))))
1213 (build-system gnu-build-system)
1216 ("qtbase" ,qtbase-5)))
1218 '(#:tests? #f ;FIXME: some tests are failing
1220 (modify-phases %standard-phases
1221 (add-after 'unpack 'patch-code
1223 (make-file-writable "src/qoauth.pc")
1224 (substitute* "src/src.pro"
1225 (("/lib64") "/lib"))
1227 (add-after 'unpack 'adjust-mkspecs-directory
1228 (lambda* (#:key outputs #:allow-other-keys)
1229 (substitute* "src/src.pro"
1230 ;; Do not attempt to install the .prf file into qtbase
1231 ;; "lib/qt5/mkspecs/features", ref <https://bugs.gnu.org/45031>.
1232 (("\\$\\$\\[QMAKE_MKSPECS\\]")
1233 (string-append (assoc-ref outputs "out") "/lib/qt5/mkspecs")))
1236 (lambda* (#:key inputs #:allow-other-keys)
1237 (let ((qca (assoc-ref inputs "qca")))
1240 (string-append "PREFIX=" (assoc-ref %outputs "out"))
1241 (string-append "QMAKE_INCDIR+=" qca "/include/Qca-qt5/QtCrypto")
1242 (string-append "LIBS+=-L" qca "/lib")
1243 (string-append "LIBS+=-lqca-qt5"))))))))
1244 (home-page "https://github.com/ayoy/qoauth")
1245 (synopsis "Qt-based C++ library for OAuth authorization scheme")
1246 (description "QOAuth is an attempt to support interaction with
1247 OAuth-powered network services in a Qt way, i.e. simply, clearly and
1248 efficiently. It gives the application developer no more than 4 methods.")
1249 (license license:lgpl2.1+)))
1251 (define-public krona-tools
1253 (name "krona-tools")
1258 "https://github.com/marbl/Krona/releases/download/v"
1259 version "/KronaTools-" version ".tar"))
1262 "1h698wddb3hii68mnkby7s1x81vbhd4z1sf4ivm1lsi2nqlc1vsn"))))
1263 (build-system perl-build-system)
1266 (modify-phases %standard-phases
1267 ;; There is no configure or build steps.
1270 ;; Install script "install.pl" expects the build directory to remain
1271 ;; after installation, creating symlinks etc., so re-implement it
1274 (lambda* (#:key outputs #:allow-other-keys)
1275 (let ((bin (string-append (assoc-ref outputs "out") "/bin"))
1276 (perl (string-append (assoc-ref outputs "out")
1277 "/lib/perl5/site_perl/krona-tools/lib"))
1278 (share (string-append (assoc-ref outputs "out")
1279 "/share/krona-tools")))
1283 (let ((executable (string-append "scripts/" script ".pl")))
1284 ;; Prefix executables with 'kt' as install script does.
1285 (copy-file executable (string-append bin "/kt" script))))
1287 "GetContigMagnitudes"
1297 "ImportMETAREP-BLAST"
1302 "ImportRDPComparison"
1308 (copy-recursively directory
1309 (string-append perl "/../" directory)))
1310 (list "data" "img" "taxonomy" "src"))
1311 (install-file "lib/KronaTools.pm" perl)
1313 ;; Install downloaders
1314 (substitute* "updateAccessions.sh"
1315 (("ktPath=.*") (string-append "ktPath=" share "\n")))
1316 (substitute* "updateTaxonomy.sh"
1317 (("ktPath=.*") (string-append "ktPath=" share "\n"))
1318 (("command -v curl")
1319 (string-append "command -v " (which "curl")))
1321 (string-append (which "curl") " -s"))
1322 (("curl\\$timestring")
1323 (string-append (which "curl") "$timestring"))
1325 (string-append (which "perl") " -M"))
1327 (string-append (which "make") " ")))
1328 (for-each (lambda (file)
1329 (install-file file (string-append share "/scripts")))
1330 '("scripts/extractTaxonomy.pl"
1331 "scripts/accession2taxid.make"
1332 "scripts/taxonomy.make"))
1333 (for-each (lambda (file)
1334 (install-file file share))
1335 '("updateAccessions.sh"
1336 "updateTaxonomy.sh")))))
1337 (add-after 'install 'wrap-program
1338 (lambda* (#:key inputs outputs #:allow-other-keys)
1339 (let* ((out (assoc-ref outputs "out"))
1340 (path (getenv "PERL5LIB")))
1342 (lambda (executable)
1343 (wrap-program executable
1344 `("PERL5LIB" ":" prefix
1345 (,(string-append out "/lib/perl5/site_perl/krona-tools/lib")))))
1346 (find-files (string-append out "/bin/") ".*")))))
1348 (add-after 'wrap-program 'check
1349 (lambda* (#:key inputs outputs #:allow-other-keys)
1350 (with-directory-excursion "data"
1351 (invoke (string-append (assoc-ref outputs "out") "/bin/ktImportText")
1357 (home-page "https://github.com/marbl/Krona/wiki")
1358 (synopsis "Hierarchical data exploration with zoomable HTML5 pie charts")
1360 "Krona is a flexible tool for exploring the relative proportions of
1361 hierarchical data, such as metagenomic classifications, using a radial,
1362 space-filling display. It is implemented using HTML5 and JavaScript, allowing
1363 charts to be explored locally or served over the Internet, requiring only a
1364 current version of any major web browser.")
1365 (license license:bsd-3)))
1367 (define-public rapidjson
1374 (url "https://github.com/Tencent/rapidjson")
1375 (commit (string-append "v" version))))
1376 (file-name (git-file-name name version))
1379 "1jixgb8w97l9gdh3inihz7avz7i770gy2j2irvvlyrq3wi41f5ab"))
1380 (patches (search-patches "rapidjson-gcc-compat.patch"))
1381 (modules '((guix build utils)))
1384 ;; Remove code using the problematic JSON license (see
1385 ;; <https://www.gnu.org/licenses/license-list.html#JSON>).
1386 (delete-file-recursively "bin/jsonchecker")))))
1387 (build-system cmake-build-system)
1389 (if (string-prefix? "aarch64" (or (%current-target-system)
1392 (modify-phases %standard-phases
1393 (add-after 'unpack 'patch-aarch-march-detection
1395 (substitute* (find-files "." "^CMakeLists\\.txt$")
1396 (("native") "armv8-a"))))))
1398 (home-page "https://github.com/Tencent/rapidjson")
1399 (synopsis "JSON parser/generator for C++ with both SAX/DOM style API")
1401 "RapidJSON is a fast JSON parser/generator for C++ with both SAX/DOM
1403 (license license:expat)))
1405 (define-public libyajl
1412 (url "https://github.com/lloyd/yajl")
1414 (file-name (git-file-name name version))
1417 "00yj06drb6izcxfxfqlhimlrb089kka0w0x8k27pyzyiq7qzcvml"))))
1418 (build-system cmake-build-system)
1421 (modify-phases %standard-phases
1422 (add-after 'patch-source-shebangs 'patch-tests
1424 (substitute* "test/parsing/run_tests.sh"
1425 (("`which echo`") (which "echo")))
1427 (home-page "https://lloyd.github.io/yajl/")
1428 (synopsis "C library for parsing JSON")
1430 "Yet Another JSON Library (YAJL) is a small event-driven (SAX-style) JSON
1431 parser written in ANSI C and a small validating JSON generator.")
1432 (license license:isc)))
1434 (define-public libwebsockets
1436 (name "libwebsockets")
1439 ;; The project does not publish tarballs, so we have to take
1443 (url "https://github.com/warmcat/libwebsockets")
1444 (commit (string-append "v" version))))
1447 "0x56v4hsx92vm1zibfmnqb5g3v23kzciffn3fjlsc3sly2pknhsg"))
1448 (file-name (string-append name "-" version))))
1450 (build-system cmake-build-system)
1452 ;; XXX: The thing lacks a 'make test' target, because CMakeLists.txt
1453 ;; doesn't use 'add_test', and it's unclear how to run the test suite.
1456 (native-inputs `(("perl" ,perl))) ; to build the HTML doc
1457 (inputs `(("zlib" ,zlib)
1458 ("openssl" ,openssl)))
1459 (synopsis "WebSockets library written in C")
1461 "Libwebsockets is a library that allows C programs to establish client
1462 and server WebSockets connections---a protocol layered above HTTP that allows
1463 for efficient socket-like bidirectional reliable communication channels.")
1464 (home-page "https://libwebsockets.org")
1466 ;; This is LGPLv2.1-only with extra exceptions specified in 'LICENSE'.
1467 (license license:lgpl2.1)))
1477 (url "https://github.com/WebAssembly/wabt")
1479 (file-name (git-file-name name version))
1481 (base32 "1zlv3740wkqj4mn6sr84h0x6wk2lcp4pwwmqsh5yyqp1j1glbsa0"))))
1482 (build-system cmake-build-system)
1484 `(#:configure-flags '("-DBUILD_TESTS=OFF")
1486 (inputs `(("python" ,python-2)
1488 (home-page "https://github.com/WebAssembly/wabt")
1489 (synopsis "WebAssembly Binary Toolkit")
1490 (description "WABT (pronounced: wabbit) is a suite of tools for
1491 WebAssembly, including:
1494 @item @command{wat2wasm} translates from WebAssembly text format to the
1495 WebAssembly binary format
1496 @item @command{wasm2wat} is the inverse; it translates from the binary format
1497 back to the text format (also known as a .wat)
1498 @item @command{wasm-objdump} prints information about a wasm binary, similarly
1499 to @command{objdump}.
1500 @item @command{wasm-interp} decodes ands run a WebAssembly binary file using a
1501 stack-based interpreter
1502 @item @command{wat-desugar} parses .wat text form as supported by the spec
1503 interpreter (s-expressions, flat syntax, or mixed) and prints the canonical
1505 @item @command{wasm2c} converts a WebAssembly binary file to a C source and
1509 These tools are intended for use in (or for development of) toolchains or
1510 other systems that want to manipulate WebAssembly files.")
1511 (license license:asl2.0)))
1513 (define-public websocketpp
1515 (name "websocketpp")
1521 (url "https://github.com/zaphoyd/websocketpp")
1523 (file-name (git-file-name name version))
1525 (base32 "1ww4fhl8qf12hkv6jaild8zzsygdspxm1gqpk2f63gv1xfi31wpm"))
1526 (patches (search-patches "websocketpp-fix-for-cmake-3.15.patch"))))
1527 (build-system cmake-build-system)
1528 (inputs `(("boost" ,boost)
1529 ("openssl" ,openssl)))
1530 (arguments '(#:configure-flags '("-DBUILD_TESTS=ON")
1532 (modify-phases %standard-phases
1533 (add-after 'install 'remove-tests
1534 (lambda* (#:key outputs #:allow-other-keys)
1535 (let* ((install-dir (assoc-ref outputs "out"))
1536 (bin-dir (string-append install-dir "/bin")))
1537 (delete-file-recursively bin-dir)
1539 (home-page "https://www.zaphoyd.com/websocketpp/")
1540 (synopsis "C++ library implementing the WebSocket protocol")
1541 (description "WebSocket++ is a C++ library that can be used to implement
1542 WebSocket functionality. The goals of the project are to provide a WebSocket
1543 implementation that is simple, portable, flexible, lightweight, low level, and
1545 (license license:bsd-3)))
1547 (define-public wslay
1555 (url "https://github.com/tatsuhiro-t/wslay")
1556 (commit (string-append "release-" version))))
1557 (file-name (git-file-name name version))
1559 (base32 "1w32iljg4inqf0712w5fxxhggvmjh6ipl2lnz0h36dv1xrj0d964"))))
1560 (build-system gnu-build-system)
1562 ;; Parallel builds don't reliably succeed.
1563 `(#:parallel-build? #f))
1565 `(("autoconf" ,autoconf)
1566 ("automake" ,automake)
1567 ("cunit" ,cunit) ; for tests
1568 ("libtool" ,libtool)
1569 ("pkg-config" ,pkg-config)
1570 ("python-sphinx" ,python-sphinx)))
1571 (home-page "https://tatsuhiro-t.github.io/wslay/")
1572 (synopsis "C WebSocket library")
1573 (description "@code{Wslay} is an event-based C library for the WebSocket
1574 protocol version 13, described in RFC 6455. Besides a high-level API it
1575 provides callbacks for sending and receiving frames directly. @code{Wslay}
1576 only supports the data transfer part of WebSocket protocol and does not
1577 perform the opening handshake in HTTP.")
1578 (license license:expat)))
1580 (define-public libpsl
1586 (uri (string-append "https://github.com/rockdaboot/libpsl/"
1587 "releases/download/" version
1588 "/libpsl-" version ".tar.gz"))
1591 "0k0d46bbh1jj2ll369f134vciplrzbqkg7fv9m62bl6lzghy2v5c"))))
1592 (build-system gnu-build-system)
1594 `(("pkg-config" ,pkg-config)
1597 ("python" ,python-wrapper)))
1599 `(("libidn2" ,libidn2)
1600 ("libunistring" ,libunistring)))
1601 (home-page "https://github.com/rockdaboot/libpsl")
1602 (synopsis "C library for the Publix Suffix List")
1604 "A \"public suffix\" is a domain name under which Internet users can
1605 directly register own names.
1607 Browsers and other web clients can use it to avoid privacy-leaking
1608 \"supercookies\", avoid privacy-leaking \"super domain\" certificates, domain
1609 highlighting parts of the domain in a user interface, and sorting domain lists
1612 Libpsl has built-in PSL data for fast access, allowing to load PSL data from
1613 files, checks if a given domain is a public suffix, provides immediate cookie
1614 domain verification, finds the longest public part of a given domain, finds
1615 the shortest private part of a given domain, works with international
1616 domains (UTF-8 and IDNA2008 Punycode), is thread-safe, and handles IDNA2008
1618 (license license:x11)))
1623 (version "20091223")
1628 ":pserver:anonymous@tidy.cvs.sourceforge.net:/cvsroot/tidy")
1630 (revision "2009-12-23")))
1631 (file-name (string-append name "-" version "-checkout"))
1634 "14dsnmirjcrvwsffqp3as70qr6bbfaig2fv3zvs5g7005jrsbvpb"))
1635 (patches (search-patches "tidy-CVE-2015-5522+5523.patch"))))
1636 (build-system gnu-build-system)
1638 '(#:phases (modify-phases %standard-phases
1640 (lambda* (#:key inputs #:allow-other-keys)
1641 ;; configure.in and Makefile.am aren't in the root of the
1643 (copy-recursively "build/gnuauto" ".")
1644 (setenv "AUTOMAKE" "automake --foreign")
1645 (invoke "autoreconf" "-vfi"))))))
1647 `(("automake" ,automake)
1648 ("autoconf" ,autoconf)
1649 ("libtool" ,libtool)))
1650 (synopsis "HTML validator and tidier")
1651 (description "HTML Tidy is a command-line tool and C library that can be
1652 used to validate and fix HTML data.")
1653 (home-page "http://tidy.sourceforge.net/")
1654 (license (license:x11-style "file:///include/tidy.h"))))
1656 (define-public esbuild
1664 (url "https://github.com/evanw/esbuild")
1665 (commit (string-append "v" version))))
1666 (file-name (git-file-name name version))
1668 (base32 "10bz1xq2frdja7mbx04m009svg8b5rj7vfq3sc2gc88n31v21b1j"))
1669 (modules '((guix build utils)))
1672 ;; Remove prebuilt binaries
1673 (delete-file-recursively "npm")
1675 (build-system go-build-system)
1677 `(#:import-path "github.com/evanw/esbuild/cmd/esbuild"
1678 #:unpack-path "github.com/evanw/esbuild"
1680 (modify-phases %standard-phases
1682 (lambda* (#:key tests? unpack-path #:allow-other-keys)
1684 ;; The "Go Race Detector" is only supported on 64-bit
1685 ;; platforms, this variable disables it.
1686 (unless ,(target-64bit?)
1687 (setenv "ESBUILD_RACE" ""))
1688 (with-directory-excursion (string-append "src/" unpack-path)
1689 (invoke "make" "test-go")))
1692 `(("golang.org/x/sys" ,go-golang-org-x-sys)))
1694 `(("github.com/kylelemons/godebug" ,go-github-com-kylelemons-godebug)))
1695 (home-page "https://esbuild.github.io/")
1696 (synopsis "Bundler and minifier tool for JavaScript and TypeScript")
1698 "The esbuild tool provides a unified bundler, transpiler and
1699 minifier. It packages up JavaScript and TypeScript code, along with JSON
1700 and other data, for distribution on the web.")
1701 (license license:expat)))
1703 (define-public tinyproxy
1709 (uri (string-append "https://github.com/tinyproxy/tinyproxy/"
1710 "releases/download/" version "/tinyproxy-"
1714 "0cizm8pbh5p557birdirkayj71xdxapaa9q29v1d4lf5qk7q3v61"))))
1715 (build-system gnu-build-system)
1717 `(#:test-target "test" ; ‘make check’ silently does nothing
1720 ;; For the log file, etc.
1721 "--localstatedir=/var")
1723 (modify-phases %standard-phases
1724 (add-before 'build 'pre-build
1725 (lambda* (#:key inputs #:allow-other-keys #:rest args)
1726 ;; Uncommenting the next two lines may assist in debugging
1727 ;; (substitute* "docs/man5/Makefile" (("a2x") "a2x -v"))
1728 ;; (setenv "XML_DEBUG_CATALOG" "1")
1731 `(("perl" ,perl))) ; for tests
1732 (home-page "https://tinyproxy.github.io/")
1733 (synopsis "Light-weight HTTP/HTTPS proxy daemon")
1734 (description "Tinyproxy is a light-weight HTTP/HTTPS proxy
1735 daemon. Designed from the ground up to be fast and yet small, it is an ideal
1736 solution for use cases such as embedded deployments where a full featured HTTP
1737 proxy is required, but the system resources for a larger proxy are
1739 (license license:gpl2+)))
1741 (define-public polipo
1749 "http://www.pps.univ-paris-diderot.fr/~jch/software/files/polipo/polipo-"
1753 "05g09sg9qkkhnc2mxldm1w1xkxzs2ylybkjzs28w8ydbjc3pand2"))))
1754 (native-inputs `(("texinfo" ,texinfo)))
1755 (build-system gnu-build-system)
1757 `(#:phases (modify-phases %standard-phases
1758 (delete 'configure))
1759 #:make-flags (let ((out (assoc-ref %outputs "out")))
1760 (list (string-append "PREFIX=" out)
1761 (string-append "LOCAL_ROOT="
1762 out "/share/polipo/www")
1764 ;; No 'check' target.
1766 (home-page "https://www.pps.univ-paris-diderot.fr/~jch/software/polipo/")
1767 (synopsis "Small caching web proxy")
1769 "Polipo is a small caching web proxy (web cache, HTTP proxy, and proxy
1770 server). It was primarily designed to be used by one person or a small group
1772 (license license:expat)))
1774 (define-public websockify
1781 (url "https://github.com/novnc/websockify")
1782 (commit (string-append "v" version))))
1783 (file-name (git-file-name name version))
1786 "0pcic8qs0gdwrfjgfaf893jyddaw97wcjm2mmvwn0xyhmy8mbmw1"))))
1787 (build-system python-build-system)
1789 `(#:tests? #f)) ; FIXME: 2 out of 6 tests fail with "ImportError: No module
1790 ; named 'stubout'". The tests can be run by replacing the check phase with
1791 ; the command "python setup.py nosetests --verbosity=3".
1792 (native-inputs `(; Required for tests:
1793 ("python-mox3" ,python-mox3)
1794 ("python-nose" ,python-nose)))
1795 (propagated-inputs `(("python-numpy" ,python-numpy)))
1796 (home-page "https://github.com/novnc/websockify")
1797 (synopsis "WebSockets support for any application/server")
1798 (description "Websockify translates WebSockets traffic to normal socket
1799 traffic. Websockify accepts the WebSockets handshake, parses it, and then
1800 begins forwarding traffic between the client and the target in both
1802 (license license:lgpl3)))
1804 (define-public wwwoffle
1810 (uri (string-append "https://www.gedanken.org.uk/software/"
1811 "wwwoffle/download/wwwoffle-"
1815 "1ihil1xq9dp21hf108khxbw6f3baq0w5c0j3af038y6lkmad4vdi"))))
1816 (build-system gnu-build-system)
1818 `(#:configure-flags '("--with-gnutls")
1819 #:tests? #f)) ; no test target
1820 (native-inputs `(("flex" ,flex)))
1821 (inputs `(("gnutls" ,gnutls)
1822 ("libcrypt" ,libgcrypt)))
1823 (home-page "https://www.gedanken.org.uk/software/wwwoffle/")
1824 (synopsis "Caching web proxy optimized for intermittent internet links")
1825 (description "WWWOFFLE is a proxy web server that is especially good for
1826 intermittent internet links. It can cache HTTP, HTTPS, FTP, and finger
1827 protocols, and supports browsing and requesting pages while offline, indexing,
1828 modifying pages and incoming and outgoing headers, monitoring pages for
1829 changes, and much more.")
1830 (license license:gpl2+)))
1832 (define-public liboauth
1838 (uri (string-append "mirror://sourceforge/liboauth/liboauth-"
1842 "07w1aq8y8wld43wmbk2q8134p3bfkp2vma78mmsfgw2jn1bh3xhd"))))
1843 (build-system gnu-build-system)
1844 (arguments '(#:configure-flags '("--enable-nss")))
1845 (native-inputs `(("pkg-config" ,pkg-config)))
1849 (home-page "https://sourceforge.net/projects/liboauth")
1850 (synopsis "C library implementing the OAuth API")
1852 "liboauth is a collection of C functions implementing the OAuth API.
1853 liboauth provides functions to escape and encode strings according to OAuth
1854 specifications and offers high-level functionality built on top to sign
1855 requests or verify signatures using either NSS or OpenSSL for calculating the
1857 ;; Source code may be distributed under either license.
1858 (license (list license:expat license:gpl2+))))
1860 (define-public libquvi-scripts
1862 (name "libquvi-scripts")
1868 "mirror://sourceforge/quvi/" (version-major+minor version) "/"
1869 name "/" name "-" version ".tar.xz"))
1871 (base32 "0d0giry6bb57pnidymvdl7i5x9bq3ljk3g4bs294hcr5mj3cq0kw"))))
1872 (build-system gnu-build-system)
1873 (home-page "http://quvi.sourceforge.net/")
1874 (synopsis "Media stream URL parser")
1875 (description "This package contains support scripts called by libquvi to
1876 parse media stream properties.")
1877 (license license:lgpl2.1+)))
1879 (define-public libquvi
1887 "mirror://sourceforge/quvi/" (version-major+minor version) "/" name "/"
1888 name "-" version ".tar.xz"))
1890 (base32 "00x9gbmzc5cns0gnfag0hsphcr3cb33vbbb9s7ppvvd6bxz2z1mm"))))
1891 (build-system gnu-build-system)
1892 (native-inputs `(("pkg-config" ,pkg-config)))
1895 ("cyrus-sasl" ,cyrus-sasl)
1896 ("libquvi-scripts" ,libquvi-scripts)
1898 ("openssl" ,openssl)
1901 ;; Lua provides no .pc file, so add CFLAGS/LIBS manually.
1903 (let ((lua (assoc-ref %build-inputs "lua")))
1905 (string-append "liblua_CFLAGS=-I" lua "/include")
1906 (string-append "liblua_LIBS=-L" lua "/libs -llua")))))
1907 (home-page "http://quvi.sourceforge.net/")
1908 (synopsis "Media stream URL parser")
1909 (description "libquvi is a library with a C API for parsing media stream
1910 URLs and extracting their actual media files.")
1911 (license license:lgpl2.1+)))
1921 "mirror://sourceforge/" name "/" (version-major+minor version)
1922 "/" name "/" name "-" version ".tar.xz"))
1924 (base32 "09lhl6dv5zpryasx7yjslfrcdcqlsbwapvd5lg7w6sm5x5n3k8ci"))))
1925 (build-system gnu-build-system)
1926 (native-inputs `(("pkg-config" ,pkg-config)))
1929 ("libquvi" ,libquvi)))
1930 (home-page "http://quvi.sourceforge.net/")
1931 (synopsis "Media stream URL parser")
1932 (description "quvi is a command-line-tool suite to extract media files
1933 from streaming URLs. It is a command-line wrapper for the libquvi library.")
1934 (license license:lgpl2.1+)))
1943 (uri (string-append "mirror://apache/serf/serf-"
1944 version ".tar.bz2"))
1945 (patches (search-patches "serf-python3.patch"))
1947 (base32 "1k47gbgpp52049andr28y28nbwh9m36bbb0g8p0aka3pqlhjv72l"))))
1948 (build-system scons-build-system)
1951 ("apr-util" ,apr-util)
1952 ("openssl" ,openssl)))
1954 `(;; TODO: Fix build with gss.
1958 `(#:scons-flags (list (string-append "APR=" (assoc-ref %build-inputs "apr"))
1959 (string-append "APU=" (assoc-ref %build-inputs "apr-util"))
1960 (string-append "OPENSSL=" (assoc-ref %build-inputs "openssl"))
1961 ;; (string-append "GSSAPI=" (assoc-ref %build-inputs "gss"))
1962 (string-append "ZLIB=" (assoc-ref %build-inputs "zlib"))
1963 (string-append "PREFIX=" %output))
1965 (modify-phases %standard-phases
1966 (add-after 'unpack 'scons-propagate-environment
1968 ;; By design, SCons does not, by default, propagate
1969 ;; environment variables to subprocesses. See:
1970 ;; <http://comments.gmane.org/gmane.linux.distributions.nixos/4969>
1971 ;; Here, we modify the SConstruct file to arrange for
1972 ;; environment variables to be propagated.
1973 (substitute* "SConstruct"
1974 (("^env = Environment\\(")
1975 "env = Environment(ENV=os.environ, "))))
1976 (add-before 'check 'disable-broken-tests
1978 ;; These tests rely on SSL certificates that expired 2017-04-18.
1979 ;; While there are newer certs available upstream, we don't want
1980 ;; this package to suddenly "expire" some time in the future.
1981 ;; https://bugs.gnu.org/26671
1983 '("test_ssl_trust_rootca"
1984 "test_ssl_certificate_chain_with_anchor"
1985 "test_ssl_certificate_chain_all_from_server"
1986 "test_ssl_no_servercert_callback_allok"
1987 "test_ssl_large_response"
1988 "test_ssl_large_request"
1989 "test_ssl_client_certificate"
1990 "test_ssl_future_server_cert"
1991 "test_setup_ssltunnel"
1992 "test_ssltunnel_basic_auth"
1993 "test_ssltunnel_basic_auth_server_has_keepalive_off"
1994 "test_ssltunnel_basic_auth_proxy_has_keepalive_off"
1995 "test_ssltunnel_basic_auth_proxy_close_conn_on_200resp"
1996 "test_ssltunnel_digest_auth")))
1999 (substitute* "test/test_context.c"
2000 (((string-append "SUITE_ADD_TEST\\(suite, " test "\\);")) "")))
2003 (home-page "https://serf.apache.org/")
2004 (synopsis "High-performance asynchronous HTTP client library")
2006 "serf is a C-based HTTP client library built upon the Apache Portable
2007 Runtime (APR) library. It multiplexes connections, running the read/write
2008 communication asynchronously. Memory copies and transformations are kept to a
2009 minimum to provide high performance operation.")
2010 ;; Most of the code is covered by the Apache License, Version 2.0, but the
2011 ;; bundled CuTest framework uses a different non-copyleft license.
2012 (license (list license:asl2.0 (license:non-copyleft "file://test/CuTest-README.txt")))))
2014 (define-public libsass
2017 ;; When updating, check whether sassc/libsass-3.5 is still needed.
2022 (url "https://github.com/sass/libsass")
2024 (file-name (git-file-name name version))
2027 "0r8lfqvr3rjhjd8r036zd1wc9q17gyiskppcw9m13jks9an7xp4j"))))
2028 (build-system gnu-build-system)
2031 (modify-phases %standard-phases
2032 (add-before 'bootstrap 'set-LIBSASS_VERSION
2034 (setenv "LIBSASS_VERSION" ,version)
2037 `(("autoconf" ,autoconf)
2038 ("automake" ,automake)
2039 ("libtool" ,libtool)))
2040 (home-page "https://sass-lang.com/libsass")
2041 (synopsis "SASS Compiler, implemented as a C/C++ library")
2043 "LibSass is a @acronym{SASS,Syntactically awesome style sheets} compiler
2044 library designed for portability and efficiency. To actually compile SASS
2045 stylesheets, you'll need to use another program that uses this library,
2046 @var{sassc} for example.")
2047 (license license:expat)))
2049 (define-public sassc
2056 (url "https://github.com/sass/sassc")
2058 (file-name (git-file-name name version))
2061 "0m7flrs0hz3ivib8kvsgn3d0fgkabqviadkp1dyspa6iibx3gjwd"))))
2062 (build-system gnu-build-system)
2066 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2067 #:tests? #f ; no test suite
2069 (modify-phases %standard-phases
2070 (add-after 'unpack 'patch-Makefile
2072 (substitute* "Makefile"
2073 (("build-shared: \\$\\(RESOURCES\\) \\$\\(OBJECTS\\) \\$\\(LIB_SHARED\\)")
2074 "build-shared: $(RESOURCES) $(OBJECTS)")
2075 (("\\$\\(SASSC_EXE\\): libsass build")
2076 "$(SASSC_EXE): build")
2077 (("install: libsass-install-\\$\\(BUILD\\) \\\\")
2080 ;; This phase fails because…
2082 ;; …there is no configure script to be generated.
2084 (add-before 'build 'setup-environment
2086 (setenv "BUILD" "shared")
2087 (setenv "SASSC_VERSION" ,version)
2090 `(("libsass" ,libsass)))
2091 (synopsis "CSS pre-processor")
2092 (description "SassC is a compiler written in C for the CSS pre-processor
2093 language known as SASS.")
2094 (home-page "https://sass-lang.com/libsass")
2095 (license license:expat)))
2097 (define-public sassc/libsass-3.5
2098 ;; Newer libsass versions suffor from a memory leak when building (some?)
2099 ;; GTK themes <https://github.com/sass/libsass/issues/3033>.
2113 (url "https://github.com/sass/libsass")
2115 (file-name (git-file-name name version))
2118 "0830pjcvhzxh6yixj82x5k5r1xnadjqzi16kp53213icbly0r9ma"))))))))
2119 (properties '((hidden? . #t)))))
2122 (define-public perl-apache-logformat-compiler
2124 (name "perl-apache-logformat-compiler")
2129 (uri (string-append "mirror://cpan/authors/id/K/KA/KAZEBURO/"
2130 "Apache-LogFormat-Compiler-" version ".tar.gz"))
2132 (base32 "05xcl7j65vakx7x79jqjikyw0nzf60bc2w6hhc0q5sklxq1ral4l"))))
2133 (build-system perl-build-system)
2135 `(("perl-http-message" ,perl-http-message)
2136 ("perl-module-build-tiny" ,perl-module-build-tiny)
2137 ("perl-test-mocktime" ,perl-test-mocktime)
2138 ("perl-try-tiny" ,perl-try-tiny)
2139 ("perl-uri" ,perl-uri)))
2141 `(("perl-posix-strftime-compiler" ,perl-posix-strftime-compiler)))
2142 (arguments `(#:tests? #f)) ; TODO: Timezone test failures
2143 (home-page "https://metacpan.org/release/Apache-LogFormat-Compiler")
2144 (synopsis "Compile a log format string to perl-code")
2145 (description "This module provides methods to compile a log format string
2146 to perl-code, for faster generation of access_log lines.")
2147 (license license:perl-license)))
2149 (define-public perl-authen-sasl
2151 (name "perl-authen-sasl")
2156 (uri (string-append "mirror://cpan/authors/id/G/GB/GBARR/"
2157 "Authen-SASL-" version ".tar.gz"))
2160 "02afhlrdq5hh5g8b32fa79fqq5i76qzwfqqvfi9zi57h31szl536"))))
2161 (build-system perl-build-system)
2164 (modify-phases %standard-phases
2165 (add-after 'unpack 'set-env
2166 ;; Fix the build with Perl 5.26.0. Try removing this phase for later
2167 ;; versions of perl-authen-sasl.
2168 (lambda _ (setenv "PERL_USE_UNSAFE_INC" "1") #t)))))
2170 `(("perl-digest-hmac" ,perl-digest-hmac)
2171 ("perl-gssapi" ,perl-gssapi)))
2172 (home-page "https://metacpan.org/release/Authen-SASL")
2173 (synopsis "SASL authentication framework")
2174 (description "Authen::SASL provides an SASL authentication framework.")
2175 (license license:perl-license)))
2177 (define-public perl-catalyst-action-renderview
2179 (name "perl-catalyst-action-renderview")
2184 (uri (string-append "mirror://cpan/authors/id/B/BO/BOBTFISH/"
2185 "Catalyst-Action-RenderView-"
2189 "0j1rrld13cjk7ks92b5hv3xw4rfm2lvmksb4rlzd8mx0a0wj0rc5"))))
2190 (build-system perl-build-system)
2192 `(("perl-http-request-ascgi" ,perl-http-request-ascgi)
2193 ("perl-module-install" ,perl-module-install)))
2195 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
2196 ("perl-data-visitor" ,perl-data-visitor)
2197 ("perl-mro-compat" ,perl-mro-compat)))
2198 (home-page "https://metacpan.org/release/Catalyst-Action-RenderView")
2199 (synopsis "Sensible default Catalyst action")
2200 (description "This Catalyst action implements a sensible default end
2201 action, which will forward to the first available view.")
2202 (license license:perl-license)))
2204 (define-public perl-catalyst-action-rest
2206 (name "perl-catalyst-action-rest")
2210 (uri (string-append "mirror://cpan/authors/id/J/JJ/JJNAPIORK/"
2211 "Catalyst-Action-REST-" version ".tar.gz"))
2214 "086bykggzalbjfk0islac4b48g9s2ypj7y81d6ns1lq0aax1py6c"))))
2215 (build-system perl-build-system)
2217 `(("perl-test-requires" ,perl-test-requires)
2218 ("perl-module-install" ,perl-module-install)))
2220 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
2221 ("perl-class-inspector" ,perl-class-inspector)
2222 ("perl-config-general" ,perl-config-general)
2223 ("perl-cpanel-json-xs" ,perl-cpanel-json-xs)
2224 ("perl-libwww" ,perl-libwww)
2225 ("perl-moose" ,perl-moose)
2226 ("perl-mro-compat" ,perl-mro-compat)
2227 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
2228 ("perl-params-validate" ,perl-params-validate)
2229 ("perl-uri-find" ,perl-uri-find)
2230 ("perl-xml-simple" ,perl-xml-simple)))
2231 (home-page "https://metacpan.org/release/Catalyst-Action-REST")
2232 (synopsis "Automated REST Method Dispatching")
2233 (description "This Action handles doing automatic method dispatching for
2234 REST requests. It takes a normal Catalyst action, and changes the dispatch to
2235 append an underscore and method name. First it will try dispatching to an
2236 action with the generated name, and failing that it will try to dispatch to a
2238 (license license:perl-license)))
2240 (define-public perl-catalyst-authentication-store-dbix-class
2242 (name "perl-catalyst-authentication-store-dbix-class")
2247 (uri (string-append "mirror://cpan/authors/id/I/IL/ILMARI/"
2248 "Catalyst-Authentication-Store-DBIx-Class-"
2252 "0i5ja7690fs9nhxcij6lw51j804sm8s06m5mvk1n8pi8jljrymvw"))))
2253 (build-system perl-build-system)
2255 `(("perl-catalyst-plugin-authorization-roles"
2256 ,perl-catalyst-plugin-authorization-roles)
2257 ("perl-catalyst-plugin-session-state-cookie"
2258 ,perl-catalyst-plugin-session-state-cookie)
2259 ("perl-dbd-sqlite" ,perl-dbd-sqlite)
2260 ("perl-module-install" ,perl-module-install)
2261 ("perl-test-www-mechanize-catalyst" ,perl-test-www-mechanize-catalyst)))
2263 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
2264 ("perl-catalyst-plugin-authentication"
2265 ,perl-catalyst-plugin-authentication)
2266 ("perl-dbix-class" ,perl-dbix-class)
2267 ("perl-catalyst-model-dbic-schema" ,perl-catalyst-model-dbic-schema)))
2269 "https://metacpan.org/release/Catalyst-Authentication-Store-DBIx-Class")
2270 (synopsis "Storage class for Catalyst authentication using DBIx::Class")
2271 (description "The Catalyst::Authentication::Store::DBIx::Class class
2272 provides access to authentication information stored in a database via
2274 (license license:perl-license)))
2276 (define-public perl-catalyst-component-instancepercontext
2278 (name "perl-catalyst-component-instancepercontext")
2279 (version "0.001001")
2283 (uri (string-append "mirror://cpan/authors/id/G/GR/GRODITI/"
2284 "Catalyst-Component-InstancePerContext-"
2288 "0wfj4vnn2cvk6jh62amwlg050p37fcwdgrn9amcz24z6w4qgjqvz"))))
2289 (build-system perl-build-system)
2291 `(("perl-module-install" ,perl-module-install)))
2293 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
2294 ("perl-moose" ,perl-moose)))
2296 "https://metacpan.org/release/Catalyst-Component-InstancePerContext")
2297 (synopsis "Create only one instance of Moose component per context")
2298 (description "Catalyst::Component::InstancePerContext returns a new
2299 instance of a component on each request.")
2300 (license license:perl-license)))
2302 (define-public perl-catalyst-devel
2304 (name "perl-catalyst-devel")
2309 (uri (string-append "mirror://cpan/authors/id/H/HA/HAARG/"
2310 "Catalyst-Devel-" version ".tar.gz"))
2312 (base32 "1r8arq7sw37d0mjyfzkc3pg1a9plgydqbscryc8qpvba4swpljls"))))
2313 (build-system perl-build-system)
2315 `(("perl-test-fatal" ,perl-test-fatal)))
2317 `(("perl-catalyst-action-renderview" ,perl-catalyst-action-renderview)
2318 ("perl-catalyst-plugin-configloader" ,perl-catalyst-plugin-configloader)
2319 ("perl-catalyst-plugin-static-simple" ,perl-catalyst-plugin-static-simple)
2320 ("perl-catalyst-runtime" ,perl-catalyst-runtime)
2321 ("perl-config-general" ,perl-config-general)
2322 ("perl-file-changenotify" ,perl-file-changenotify)
2323 ("perl-file-copy-recursive" ,perl-file-copy-recursive)
2324 ("perl-file-sharedir" ,perl-file-sharedir)
2325 ("perl-module-install" ,perl-module-install)
2326 ("perl-moose" ,perl-moose)
2327 ("perl-moosex-emulate-class-accessor-fast"
2328 ,perl-moosex-emulate-class-accessor-fast)
2329 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
2330 ("perl-namespace-clean" ,perl-namespace-clean)
2331 ("perl-path-class" ,perl-path-class)
2332 ("perl-template-toolkit" ,perl-template-toolkit)))
2333 (home-page "https://metacpan.org/release/Catalyst-Devel")
2334 (synopsis "Catalyst Development Tools")
2335 (description "The Catalyst-Devel distribution includes a variety of
2336 modules useful for the development of Catalyst applications, but not required
2337 to run them. Catalyst-Devel includes the Catalyst::Helper system, which
2338 autogenerates scripts and tests; Module::Install::Catalyst, a Module::Install
2339 extension for Catalyst; and requirements for a variety of development-related
2341 (license license:perl-license)))
2343 (define-public perl-catalyst-dispatchtype-regex
2345 (name "perl-catalyst-dispatchtype-regex")
2350 (uri (string-append "mirror://cpan/authors/id/M/MG/MGRIMES/"
2351 "Catalyst-DispatchType-Regex-" version ".tar.gz"))
2354 "06jq1lmpq88rmp9zik5gqczg234xac0hiyc3l698iif7zsgcyb80"))))
2355 (build-system perl-build-system)
2357 `(("perl-module-build" ,perl-module-build) ;needs Module::Build >= 0.4004
2358 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
2359 ("perl-catalyst-runtime" ,perl-catalyst-runtime)))
2361 `(("perl-moose" ,perl-moose)
2362 ("perl-text-simpletable" ,perl-text-simpletable)))
2363 (home-page "https://metacpan.org/release/Catalyst-DispatchType-Regex")
2364 (synopsis "Regex DispatchType for Catalyst")
2365 (description "Dispatch type managing path-matching behaviour using
2366 regexes. Regex dispatch types have been deprecated and removed from Catalyst
2367 core. It is recommend that you use Chained methods or other techniques
2368 instead. As part of the refactoring, the dispatch priority of Regex vs Regexp
2369 vs LocalRegex vs LocalRegexp may have changed. Priority is now influenced by
2370 when the dispatch type is first seen in your application.")
2371 (license license:perl-license)))
2373 (define-public perl-catalyst-model-dbic-schema
2375 (name "perl-catalyst-model-dbic-schema")
2380 (uri (string-append "mirror://cpan/authors/id/G/GB/GBJK/"
2381 "Catalyst-Model-DBIC-Schema-"
2385 "1spfjcjc0b9dv3k2gbanqj1m1cqzyxb32p76dhdwizzpbvpi3a96"))))
2386 (build-system perl-build-system)
2388 `(("perl-dbd-sqlite" ,perl-dbd-sqlite)
2389 ("perl-module-install" ,perl-module-install)
2390 ("perl-test-exception" ,perl-test-exception)
2391 ("perl-test-requires" ,perl-test-requires)))
2393 `(("perl-carp-clan" ,perl-carp-clan)
2394 ("perl-catalyst-component-instancepercontext"
2395 ,perl-catalyst-component-instancepercontext)
2396 ("perl-catalyst-runtime" ,perl-catalyst-runtime)
2397 ("perl-catalystx-component-traits" ,perl-catalystx-component-traits)
2398 ("perl-dbix-class" ,perl-dbix-class)
2399 ("perl-dbix-class-cursor-cached" ,perl-dbix-class-cursor-cached)
2400 ("perl-dbix-class-schema-loader" ,perl-dbix-class-schema-loader)
2401 ("perl-hash-merge" ,perl-hash-merge)
2402 ("perl-list-moreutils" ,perl-list-moreutils)
2403 ("perl-module-runtime" ,perl-module-runtime)
2404 ("perl-moose" ,perl-moose)
2405 ("perl-moosex-markasmethods" ,perl-moosex-markasmethods)
2406 ("perl-moosex-nonmoose" ,perl-moosex-nonmoose)
2407 ("perl-moosex-types" ,perl-moosex-types)
2408 ("perl-moosex-types-loadableclass" ,perl-moosex-types-loadableclass)
2409 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
2410 ("perl-namespace-clean" ,perl-namespace-clean)
2411 ("perl-tie-ixhash" ,perl-tie-ixhash)
2412 ("perl-try-tiny" ,perl-try-tiny)))
2413 (home-page "https://metacpan.org/release/Catalyst-Model-DBIC-Schema")
2414 (synopsis "DBIx::Class::Schema Model Class")
2415 (description "This is a Catalyst Model for DBIx::Class::Schema-based
2417 (license license:perl-license)))
2419 (define-public perl-catalyst-plugin-accesslog
2421 (name "perl-catalyst-plugin-accesslog")
2426 (uri (string-append "mirror://cpan/authors/id/A/AR/ARODLAND/"
2427 "Catalyst-Plugin-AccessLog-" version ".tar.gz"))
2430 "0811rj45q4v2y8wka3wb9d5m4vbyhcmkvddf2wz4x69awzjbhgc7"))))
2431 (build-system perl-build-system)
2433 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
2434 ("perl-datetime" ,perl-datetime)
2435 ("perl-moose" ,perl-moose)
2436 ("perl-namespace-autoclean" ,perl-namespace-autoclean)))
2437 (home-page "https://metacpan.org/release/Catalyst-Plugin-AccessLog")
2438 (synopsis "Request logging from within Catalyst")
2439 (description "This Catalyst plugin enables you to create \"access logs\"
2440 from within a Catalyst application instead of requiring a webserver to do it
2441 for you. It will work even with Catalyst debug logging turned off.")
2442 (license license:perl-license)))
2444 (define-public perl-catalyst-plugin-authentication
2446 (name "perl-catalyst-plugin-authentication")
2451 (uri (string-append "mirror://cpan/authors/id/B/BO/BOBTFISH/"
2452 "Catalyst-Plugin-Authentication-"
2456 "0v6hb4r1wv3djrnqvnjcn3xx1scgqzx8nyjdg9lfc1ybvamrl0rn"))))
2457 (build-system perl-build-system)
2459 `(("perl-module-install" ,perl-module-install)))
2461 `(("perl-catalyst-plugin-session" ,perl-catalyst-plugin-session)
2462 ("perl-catalyst-runtime" ,perl-catalyst-runtime)
2463 ("perl-class-inspector" ,perl-class-inspector)
2464 ("perl-moose" ,perl-moose)
2465 ("perl-moosex-emulate-class-accessor-fast"
2466 ,perl-moosex-emulate-class-accessor-fast)
2467 ("perl-mro-compat" ,perl-mro-compat)
2468 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
2469 ("perl-string-rewriteprefix" ,perl-string-rewriteprefix)
2470 ("perl-test-exception" ,perl-test-exception)
2471 ("perl-try-tiny" ,perl-try-tiny)))
2472 (home-page "https://metacpan.org/release/Catalyst-Plugin-Authentication")
2473 (synopsis "Infrastructure plugin for the Catalyst authentication framework")
2474 (description "The authentication plugin provides generic user support for
2475 Catalyst apps. It is the basis for both authentication (checking the user is
2476 who they claim to be), and authorization (allowing the user to do what the
2477 system authorises them to do).")
2478 (license license:perl-license)))
2480 (define-public perl-catalyst-plugin-authorization-roles
2482 (name "perl-catalyst-plugin-authorization-roles")
2487 (uri (string-append "mirror://cpan/authors/id/B/BO/BOBTFISH/"
2488 "Catalyst-Plugin-Authorization-Roles-"
2492 "0l83lkwmq0lngwh8b1rv3r719pn8w1gdbyhjqm74rnd0wbjl8h7f"))))
2493 (build-system perl-build-system)
2495 `(("perl-module-install" ,perl-module-install)
2496 ("perl-test-exception" ,perl-test-exception)))
2498 `(("perl-catalyst-plugin-authentication"
2499 ,perl-catalyst-plugin-authentication)
2500 ("perl-catalyst-runtime" ,perl-catalyst-runtime)
2501 ("perl-set-object" ,perl-set-object)
2502 ("perl-universal-isa" ,perl-universal-isa)))
2504 "https://metacpan.org/release/Catalyst-Plugin-Authorization-Roles")
2505 (synopsis "Role-based authorization for Catalyst")
2506 (description "Catalyst::Plugin::Authorization::Roles provides role-based
2507 authorization for Catalyst based on Catalyst::Plugin::Authentication.")
2508 (license license:perl-license)))
2510 (define-public perl-catalyst-plugin-captcha
2512 (name "perl-catalyst-plugin-captcha")
2517 (uri (string-append "mirror://cpan/authors/id/D/DI/DIEGOK/"
2518 "Catalyst-Plugin-Captcha-" version ".tar.gz"))
2521 "0llyj3v5nx9cx46jdbbvxf1lc9s9cxq5ml22xmx3wkb201r5qgaa"))))
2522 (build-system perl-build-system)
2524 `(("perl-catalyst-plugin-session" ,perl-catalyst-plugin-session)
2525 ("perl-catalyst-runtime" ,perl-catalyst-runtime)
2526 ("perl-gd-securityimage" ,perl-gd-securityimage)
2527 ("perl-http-date" ,perl-http-date)))
2528 (home-page "https://metacpan.org/release/Catalyst-Plugin-Captcha")
2529 (synopsis "Captchas for Catalyst")
2530 (description "This plugin creates and validates Captcha images for
2532 (license license:perl-license)))
2534 (define-public perl-catalyst-plugin-configloader
2536 (name "perl-catalyst-plugin-configloader")
2541 (uri (string-append "mirror://cpan/authors/id/H/HA/HAARG/"
2542 "Catalyst-Plugin-ConfigLoader-"
2545 (base32 "0w8r3bbxqnlykvra6sx3sh3wh8ylkj914xg5ql6nw11ddy56jaly"))))
2546 (build-system perl-build-system)
2548 `(("perl-path-class" ,perl-path-class)
2549 ("perl-module-install" ,perl-module-install)))
2551 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
2552 ("perl-config-any" ,perl-config-any)
2553 ("perl-data-visitor" ,perl-data-visitor)
2554 ("perl-mro-compat" ,perl-mro-compat)))
2555 (home-page "https://metacpan.org/release/Catalyst-Plugin-ConfigLoader")
2556 (synopsis "Load config files of various types")
2557 (description "This module will attempt to load find and load configuration
2558 files of various types. Currently it supports YAML, JSON, XML, INI and Perl
2560 (license license:perl-license)))
2562 (define-public perl-catalyst-plugin-session
2564 (name "perl-catalyst-plugin-session")
2569 (uri (string-append "mirror://cpan/authors/id/J/JJ/JJNAPIORK/"
2570 "Catalyst-Plugin-Session-" version ".tar.gz"))
2572 (base32 "0a451997zc2vjx7rvndgx1ldbrpic8sfbddyvncynh0zr8bhlqc5"))))
2573 (build-system perl-build-system)
2575 `(("perl-module-install" ,perl-module-install)
2576 ("perl-test-deep" ,perl-test-deep)
2577 ("perl-test-exception" ,perl-test-exception)))
2579 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
2580 ("perl-moose" ,perl-moose)
2581 ("perl-moosex-emulate-class-accessor-fast"
2582 ,perl-moosex-emulate-class-accessor-fast)
2583 ("perl-mro-compat" ,perl-mro-compat)
2584 ("perl-namespace-clean" ,perl-namespace-clean)
2585 ("perl-object-signature" ,perl-object-signature)
2586 ("perl-test-www-mechanize-psgi" ,perl-test-www-mechanize-psgi)))
2587 (home-page "https://metacpan.org/release/Catalyst-Plugin-Session")
2588 (synopsis "Catalyst generic session plugin")
2589 (description "This plugin links the two pieces required for session
2590 management in web applications together: the state, and the store.")
2591 (license license:perl-license)))
2593 (define-public perl-catalyst-plugin-session-state-cookie
2595 (name "perl-catalyst-plugin-session-state-cookie")
2600 (uri (string-append "mirror://cpan/authors/id/M/MS/MSTROUT/"
2601 "Catalyst-Plugin-Session-State-Cookie-"
2605 "1rvxbfnpf9x2pc2zgpazlcgdlr2dijmxgmcs0m5nazs0w6xikssb"))))
2606 (build-system perl-build-system)
2608 `(("perl-module-install" ,perl-module-install)))
2610 `(("perl-catalyst-plugin-session" ,perl-catalyst-plugin-session)
2611 ("perl-catalyst-runtime" ,perl-catalyst-runtime)
2612 ("perl-moose" ,perl-moose)
2613 ("perl-mro-compat" ,perl-mro-compat)
2614 ("perl-namespace-autoclean" ,perl-namespace-autoclean)))
2616 "https://metacpan.org/release/Catalyst-Plugin-Session-State-Cookie")
2617 (synopsis "Maintain session IDs using cookies")
2618 (description "In order for Catalyst::Plugin::Session to work, the session
2619 ID needs to be stored on the client, and the session data needs to be stored
2620 on the server. This plugin stores the session ID on the client using the
2622 (license license:perl-license)))
2624 (define-public perl-catalyst-plugin-session-store-fastmmap
2626 (name "perl-catalyst-plugin-session-store-fastmmap")
2631 (uri (string-append "mirror://cpan/authors/id/B/BO/BOBTFISH/"
2632 "Catalyst-Plugin-Session-Store-FastMmap-"
2636 "0x3j6zv3wr41jlwr6yb2jpmcx019ibyn11y8653ffnwhpzbpzsxs"))))
2637 (build-system perl-build-system)
2639 `(("perl-cache-fastmmap" ,perl-cache-fastmmap)
2640 ("perl-catalyst-plugin-session" ,perl-catalyst-plugin-session)
2641 ("perl-catalyst-runtime" ,perl-catalyst-runtime)
2642 ("perl-moosex-emulate-class-accessor-fast"
2643 ,perl-moosex-emulate-class-accessor-fast)
2644 ("perl-mro-compat" ,perl-mro-compat)
2645 ("perl-path-class" ,perl-path-class)))
2647 "https://metacpan.org/release/Catalyst-Plugin-Session-Store-FastMmap")
2648 (synopsis "FastMmap session storage backend")
2649 (description "Catalyst::Plugin::Session::Store::FastMmap is a fast session
2650 storage plugin for Catalyst that uses an mmap'ed file to act as a shared
2651 memory interprocess cache. It is based on Cache::FastMmap.")
2652 (license license:perl-license)))
2654 (define-public perl-catalyst-plugin-stacktrace
2656 (name "perl-catalyst-plugin-stacktrace")
2661 (uri (string-append "mirror://cpan/authors/id/B/BO/BOBTFISH/"
2662 "Catalyst-Plugin-StackTrace-" version ".tar.gz"))
2665 "1b2ksz74cpigxqzf63rddar3vfmnbpwpdcbs11v0ml89pb8ar79j"))))
2666 (build-system perl-build-system)
2668 `(("perl-module-install" ,perl-module-install)))
2670 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
2671 ("perl-devel-stacktrace" ,perl-devel-stacktrace)
2672 ("perl-mro-compat" ,perl-mro-compat)))
2673 (home-page "https://metacpan.org/release/Catalyst-Plugin-StackTrace")
2674 (synopsis "Stack trace on the Catalyst debug screen")
2675 (description "This plugin enhances the standard Catalyst debug screen by
2676 including a stack trace of your application up to the point where the error
2677 occurred. Each stack frame is displayed along with the package name, line
2678 number, file name, and code context surrounding the line number.")
2679 (license license:perl-license)))
2681 (define-public perl-catalyst-plugin-static-simple
2683 (name "perl-catalyst-plugin-static-simple")
2688 (uri (string-append "mirror://cpan/authors/id/I/IL/ILMARI/"
2689 "Catalyst-Plugin-Static-Simple-" version ".tar.gz"))
2692 "0m4l627p2fvzr4i6sgdxhdvsx4wpa6qmaibsbxlg5x5yjs7k7drn"))))
2693 (build-system perl-build-system)
2695 `(("perl-module-install" ,perl-module-install)))
2697 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
2698 ("perl-mime-types" ,perl-mime-types)
2699 ("perl-moose" ,perl-moose)
2700 ("perl-moosex-types" ,perl-moosex-types)
2701 ("perl-namespace-autoclean" ,perl-namespace-autoclean)))
2702 (home-page "https://metacpan.org/release/Catalyst-Plugin-Static-Simple")
2703 (synopsis "Simple serving of static pages")
2704 (description "The Static::Simple plugin is designed to make serving static
2705 content in your application during development quick and easy, without
2706 requiring a single line of code from you. This plugin detects static files by
2707 looking at the file extension in the URL (such as .css or .png or .js). The
2708 plugin uses the lightweight MIME::Types module to map file extensions to
2709 IANA-registered MIME types, and will serve your static files with the correct
2710 MIME type directly to the browser, without being processed through Catalyst.")
2711 (license license:perl-license)))
2713 (define-public perl-catalyst-runtime
2715 (name "perl-catalyst-runtime")
2720 (uri (string-append "mirror://cpan/authors/id/J/JJ/JJNAPIORK/"
2721 "Catalyst-Runtime-" version ".tar.gz"))
2724 "001yk1i0xwn4v308qx15nvnp6v9qfdigdlvz1rgw5zpnq7kwnq1a"))))
2725 (build-system perl-build-system)
2727 `(("perl-test-fatal" ,perl-test-fatal)))
2729 `(("perl-cgi-simple" ,perl-cgi-simple)
2730 ("perl-cgi-struct" ,perl-cgi-struct)
2731 ("perl-class-c3-adopt-next" ,perl-class-c3-adopt-next)
2732 ("perl-class-date" ,perl-class-date)
2733 ("perl-class-load" ,perl-class-load)
2734 ("perl-data-dump" ,perl-data-dump)
2735 ("perl-http-body" ,perl-http-body)
2736 ("perl-http-message" ,perl-http-message)
2737 ("perl-json-maybexs" ,perl-json-maybexs)
2738 ("perl-libwww" ,perl-libwww)
2739 ("perl-module-pluggable" ,perl-module-pluggable)
2740 ("perl-moose" ,perl-moose)
2741 ("perl-moosex-emulate-class-accessor-fast"
2742 ,perl-moosex-emulate-class-accessor-fast)
2743 ("perl-moosex-getopt" ,perl-moosex-getopt)
2744 ("perl-moosex-methodattributes" ,perl-moosex-methodattributes)
2745 ("perl-namespace-clean" ,perl-namespace-clean)
2746 ("perl-path-class" ,perl-path-class)
2747 ("perl-perlio-utf8-strict" ,perl-perlio-utf8_strict)
2748 ("perl-plack" ,perl-plack)
2749 ("perl-plack-middleware-fixmissingbodyinredirect"
2750 ,perl-plack-middleware-fixmissingbodyinredirect)
2751 ("perl-plack-middleware-methodoverride"
2752 ,perl-plack-middleware-methodoverride)
2753 ("perl-plack-middleware-removeredundantbody"
2754 ,perl-plack-middleware-removeredundantbody)
2755 ("perl-plack-middleware-reverseproxy"
2756 ,perl-plack-middleware-reverseproxy)
2757 ("perl-plack-test-externalserver" ,perl-plack-test-externalserver)
2758 ("perl-safe-isa" ,perl-safe-isa)
2759 ("perl-string-rewriteprefix" ,perl-string-rewriteprefix)
2760 ("perl-text-simpletable" ,perl-text-simpletable)
2761 ("perl-tree-simple" ,perl-tree-simple)
2762 ("perl-tree-simple-visitorfactory" ,perl-tree-simple-visitorfactory)
2763 ("perl-try-tiny" ,perl-try-tiny)
2764 ("perl-uri" ,perl-uri)
2765 ("perl-uri-ws" ,perl-uri-ws)))
2766 (home-page "https://metacpan.org/release/Catalyst-Runtime")
2767 (synopsis "The Catalyst Framework Runtime")
2768 (description "Catalyst is a modern framework for making web applications.
2769 It is designed to make it easy to manage the various tasks you need to do to
2770 run an application on the web, either by doing them itself, or by letting you
2771 \"plug in\" existing Perl modules that do what you need.")
2772 (license license:perl-license)))
2774 (define-public perl-catalyst-traitfor-request-proxybase
2776 (name "perl-catalyst-traitfor-request-proxybase")
2777 (version "0.000005")
2781 (uri (string-append "mirror://cpan/authors/id/B/BO/BOBTFISH/"
2782 "Catalyst-TraitFor-Request-ProxyBase-"
2786 "02kir63d5cs2ipj3fn1qlmmx3gqi1xqzrxfr4pv5vjhjgsm0zgx7"))))
2787 (build-system perl-build-system)
2789 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
2790 ("perl-catalystx-roleapplicator" ,perl-catalystx-roleapplicator)
2791 ("perl-http-message" ,perl-http-message)
2792 ("perl-module-install" ,perl-module-install)))
2794 `(("perl-moose" ,perl-moose)
2795 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
2796 ("perl-uri" ,perl-uri)))
2798 "https://metacpan.org/release/Catalyst-TraitFor-Request-ProxyBase")
2799 (synopsis "Replace request base with value passed by HTTP proxy")
2800 (description "This module is a Moose::Role which allows you more
2801 flexibility in your application's deployment configurations when deployed
2802 behind a proxy. Using this module, the request base ($c->req->base) is
2803 replaced with the contents of the X-Request-Base header.")
2804 (license license:perl-license)))
2806 (define-public perl-catalyst-view-download
2808 (name "perl-catalyst-view-download")
2813 (uri (string-append "mirror://cpan/authors/id/G/GA/GAUDEON/"
2814 "Catalyst-View-Download-" version ".tar.gz"))
2817 "1qgq6y9iwfbhbkbgpw9czang2ami6z8jk1zlagrzdisy4igqzkvs"))))
2818 (build-system perl-build-system)
2820 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
2821 ("perl-module-install" ,perl-module-install)
2822 ("perl-test-simple" ,perl-test-simple)
2823 ("perl-test-www-mechanize-catalyst" ,perl-test-www-mechanize-catalyst)
2824 ("perl-text-csv" ,perl-text-csv)
2825 ("perl-xml-simple" ,perl-xml-simple)))
2826 (home-page "https://metacpan.org/release/Catalyst-View-Download")
2827 (synopsis "Download data in many formats")
2828 (description "The purpose of this module is to provide a method for
2829 downloading data into many supportable formats. For example, downloading a
2830 table based report in a variety of formats (CSV, HTML, etc.).")
2831 (license license:perl-license)))
2833 (define-public perl-catalyst-view-json
2835 (name "perl-catalyst-view-json")
2840 (uri (string-append "mirror://cpan/authors/id/H/HA/HAARG/"
2841 "Catalyst-View-JSON-" version ".tar.gz"))
2844 "1v4xkzazs743sc7cd1kxkbi99cf00a4dadyyancckcbpi9p3znn5"))))
2845 (build-system perl-build-system)
2847 `(("perl-module-install" ,perl-module-install)
2848 ("perl-yaml" ,perl-yaml)))
2850 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
2851 ("perl-json-maybexs" ,perl-json-maybexs)
2852 ("perl-mro-compat" ,perl-mro-compat)))
2853 (home-page "https://metacpan.org/release/Catalyst-View-JSON")
2854 (synopsis "Catalyst JSON view")
2855 (description "Catalyst::View::JSON is a Catalyst View handler that returns
2856 stash data in JSON format.")
2857 (license license:perl-license)))
2859 (define-public perl-catalyst-view-tt
2861 (name "perl-catalyst-view-tt")
2866 (uri (string-append "mirror://cpan/authors/id/H/HA/HAARG/"
2867 "Catalyst-View-TT-" version ".tar.gz"))
2869 (base32 "0jzgpkgq5pwq82zlb0nykdyk40dfpsyn9ilz91d0wpixgi9i5pr8"))))
2870 (build-system perl-build-system)
2872 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
2873 ("perl-class-accessor" ,perl-class-accessor)
2874 ("perl-data-dump" ,perl-data-dump)
2875 ("perl-mro-compat" ,perl-mro-compat)
2876 ("perl-path-class" ,perl-path-class)
2877 ("perl-template-timer" ,perl-template-timer)
2878 ("perl-template-toolkit" ,perl-template-toolkit)))
2879 (home-page "https://metacpan.org/release/Catalyst-View-TT")
2880 (synopsis "Template View Class")
2881 (description "This module is a Catalyst view class for the Template
2883 (license license:perl-license)))
2885 (define-public perl-catalystx-component-traits
2887 (name "perl-catalystx-component-traits")
2892 (uri (string-append "mirror://cpan/authors/id/R/RK/RKITOVER/"
2893 "CatalystX-Component-Traits-" version ".tar.gz"))
2896 "0iq4ci8m6g2c4g01fvdl568y7pjz28f3widk986v3pyhr7ll8j88"))))
2897 (build-system perl-build-system)
2899 `(("perl-moose" ,perl-moose)
2900 ("perl-catalyst-runtime" ,perl-catalyst-runtime)
2901 ("perl-moosex-methodattributes" ,perl-moosex-methodattributes)))
2903 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
2904 ("perl-class-load" ,perl-class-load)
2905 ("perl-moose" ,perl-moose)
2906 ("perl-moosex-traits-pluggable" ,perl-moosex-traits-pluggable)
2907 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
2908 ("perl-list-moreutils" ,perl-list-moreutils)))
2909 (home-page "https://metacpan.org/release/CatalystX-Component-Traits")
2910 (synopsis "Trait Loading and Resolution for Catalyst Components")
2911 (description "Adds a \"COMPONENT\" in Catalyst::Component method to your
2912 Catalyst component base class that reads the optional \"traits\" parameter
2913 from app and component config and instantiates the component subclass with
2914 those traits using \"new_with_traits\" in MooseX::Traits from
2915 MooseX::Traits::Pluggable.")
2916 (license license:perl-license)))
2918 (define-public perl-catalystx-roleapplicator
2920 (name "perl-catalystx-roleapplicator")
2925 (uri (string-append "mirror://cpan/authors/id/H/HD/HDP/"
2926 "CatalystX-RoleApplicator-" version ".tar.gz"))
2929 "0vwaapxn8g5hs2xp63c4dwv9jmapmji4272fakssvgc9frklg3p2"))))
2930 (build-system perl-build-system)
2932 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
2933 ("perl-moose" ,perl-moose)
2934 ("perl-moosex-relatedclassroles" ,perl-moosex-relatedclassroles)))
2935 (home-page "https://metacpan.org/release/CatalystX-RoleApplicator")
2936 (synopsis "Apply roles to Catalyst classes")
2937 (description "CatalystX::RoleApplicator applies roles to Catalyst
2938 application classes.")
2939 (license license:perl-license)))
2941 (define-public perl-catalystx-script-server-starman
2943 (name "perl-catalystx-script-server-starman")
2948 (uri (string-append "mirror://cpan/authors/id/A/AB/ABRAXXA/"
2949 "CatalystX-Script-Server-Starman-"
2953 "08jvibq4v8xjj0c3cr93h0w8w0c88ajwjn37xjy7ygxl9krlffp6"))))
2954 (build-system perl-build-system)
2956 `(("perl-module-install" ,perl-module-install)
2957 ("perl-test-www-mechanize-catalyst" ,perl-test-www-mechanize-catalyst)))
2959 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
2960 ("perl-moose" ,perl-moose)
2961 ("perl-namespace-autoclean" ,perl-namespace-autoclean)
2962 ("starman" ,starman)))
2963 (home-page "https://metacpan.org/release/CatalystX-Script-Server-Starman")
2964 (synopsis "Catalyst development server with Starman")
2965 (description "This module provides a Catalyst extension to replace the
2966 development server with Starman.")
2967 (license license:perl-license)))
2969 (define-public perl-cgi
2976 (uri (string-append "mirror://cpan/authors/id/L/LE/LEEJO/"
2977 "CGI-" version ".tar.gz"))
2979 (base32 "1bxrpxv95js8yinicminxdg41xvd85haj2gvlywg3zqdb66smqy8"))))
2980 (build-system perl-build-system)
2982 `(("perl-test-deep" ,perl-test-deep)
2983 ("perl-test-nowarnings" ,perl-test-nowarnings)
2984 ("perl-test-warn" ,perl-test-warn)))
2986 `(("perl-html-parser" ,perl-html-parser)))
2987 (home-page "https://metacpan.org/release/CGI")
2988 (synopsis "Handle Common Gateway Interface requests and responses")
2989 (description "CGI.pm is a stable, complete and mature solution for
2990 processing and preparing HTTP requests and responses. Major features include
2991 processing form submissions, file uploads, reading and writing cookies, query
2992 string generation and manipulation, and processing and preparing HTTP
2994 (license license:perl-license)))
2996 (define-public perl-cgi-formbuilder
2998 (name "perl-cgi-formbuilder")
3004 "https://cpan.metacpan.org/authors/id/B/BI/BIGPRESH/"
3005 "CGI-FormBuilder-" version ".tar.gz"))
3008 "163ixq9kninqq094z2rnkg9pv3bcmvjphlww4vksfrzhq3h9pjdf"))))
3009 (build-system perl-build-system)
3010 (inputs `(("perl-cgi" ,perl-cgi)))
3012 "https://metacpan.org/release/CGI-FormBuilder")
3014 "Generate and process stateful forms")
3016 "@code{CGI::FormBuilder} provides an easy way to generate and process CGI
3017 form-based applications.")
3018 (license license:perl-license)))
3020 (define-public perl-cgi-session
3022 (name "perl-cgi-session")
3028 "mirror://cpan/authors/id/M/MA/MARKSTOS/CGI-Session-"
3033 "1xsl2pz1jrh127pq0b01yffnj4mnp9nvkp88h5mndrscq9hn8xa6"))))
3034 (build-system perl-build-system)
3036 `(("perl-module-build" ,perl-module-build)))
3037 (inputs `(("perl-cgi" ,perl-cgi)))
3039 "https://metacpan.org/release/CGI-Session")
3041 "Persistent session data in CGI applications")
3043 "@code{CGI::Session} provides modular session management system across
3045 (license license:perl-license)))
3047 (define-public perl-cgi-simple
3049 (name "perl-cgi-simple")
3054 (uri (string-append "mirror://cpan/authors/id/M/MA/MANWAR/"
3055 "CGI-Simple-" version ".tar.gz"))
3057 (base32 "13c7iwnnavky10ab87pi8jc1kqph03s0rhvj7myn7szhbfisc4gn"))))
3058 (build-system perl-build-system)
3060 `(("perl-io-stringy" ,perl-io-stringy) ; for IO::Scalar
3061 ("perl-module-build" ,perl-module-build)
3062 ("perl-test-exception" ,perl-test-exception)
3063 ("perl-test-nowarnings" ,perl-test-nowarnings)))
3064 (home-page "https://metacpan.org/release/CGI-Simple")
3065 (synopsis "CGI interface that is CGI.pm compliant")
3066 (description "CGI::Simple provides a relatively lightweight drop in
3067 replacement for CGI.pm. It shares an identical OO interface to CGI.pm for
3068 parameter parsing, file upload, cookie handling and header generation.")
3069 (license license:perl-license)))
3071 (define-public perl-cgi-struct
3073 (name "perl-cgi-struct")
3078 (uri (string-append "mirror://cpan/authors/id/F/FU/FULLERMD/"
3079 "CGI-Struct-" version ".tar.gz"))
3082 "0v4xq2qpryr7i6jngw1wpn8yr2kiib10yxp4aih90vfdznkqsgfi"))))
3083 (build-system perl-build-system)
3085 `(("perl-test-deep" ,perl-test-deep)))
3086 (home-page "https://metacpan.org/release/CGI-Struct")
3087 (synopsis "Build structures from CGI data")
3088 (description "This is a module for building structured data from CGI
3089 inputs, in a manner reminiscent of how PHP does.")
3090 (license license:bsd-2)))
3092 (define-public perl-datetime-format-http
3094 (name "perl-datetime-format-http")
3099 (uri (string-append "mirror://cpan/authors/id/C/CK/CKRAS/"
3100 "DateTime-Format-HTTP-" version ".tar.gz"))
3103 "0h6qqdg1yzqkdxp7hqlp0qa7d1y64nilgimxs79dys2ryjfpcknh"))))
3104 (build-system perl-build-system)
3106 `(("perl-module-build" ,perl-module-build)))
3108 `(("perl-datetime" ,perl-datetime)
3109 ("perl-http-date" ,perl-http-date)))
3110 (home-page "https://metacpan.org/release/DateTime-Format-HTTP")
3111 (synopsis "Date conversion routines")
3112 (description "This module provides functions that deal with the date
3113 formats used by the HTTP protocol.")
3114 (license license:perl-license)))
3116 (define-public perl-digest-md5-file
3118 (name "perl-digest-md5-file")
3123 (uri (string-append "mirror://cpan/authors/id/D/DM/DMUEY/"
3124 "Digest-MD5-File-" version ".tar.gz"))
3127 "060jzf45dlwysw5wsm7av1wvpl06xgk415kwwpvv89r6wda3md5d"))))
3128 (build-system perl-build-system)
3130 `(("perl-libwww" ,perl-libwww)))
3131 (home-page "https://metacpan.org/release/Digest-MD5-File")
3132 (synopsis "MD5 sums for files and urls")
3133 (description "Digest::MD5::File is a Perl extension for getting MD5 sums
3134 for files and urls.")
3135 (license license:perl-license)))
3137 (define-public perl-encode-locale
3139 (name "perl-encode-locale")
3144 "mirror://cpan/authors/id/G/GA/GAAS/Encode-Locale-"
3148 "1h8fvcdg3n20c2yp7107yhdkkx78534s9hnvn7ps8hpmf4ks0vqp"))))
3149 (build-system perl-build-system)
3150 (license license:perl-license)
3151 (synopsis "Perl locale encoding determination")
3153 "The POSIX locale system is used to specify both the language
3154 conventions requested by the user and the preferred character set to
3155 consume and output. The Encode::Locale module looks up the charset and
3156 encoding (called a CODESET in the locale jargon) and arranges for the
3157 Encode module to know this encoding under the name \"locale\". It means
3158 bytes obtained from the environment can be converted to Unicode strings
3159 by calling Encode::encode(locale => $bytes) and converted back again
3160 with Encode::decode(locale => $string).")
3161 (home-page "https://metacpan.org/release/Encode-Locale")))
3163 (define-public perl-feed-find
3165 (name "perl-feed-find")
3169 (uri (string-append "mirror://cpan/authors/id/B/BT/BTROTT/"
3170 "Feed-Find-" version ".tar.gz"))
3173 "0sa33cm8ww55cymnl8j7b5yspi2y5xkkkgqqa4h6fs3wdqylz600"))))
3174 (build-system perl-build-system)
3176 ;; Tests expect to query files at http://stupidfool.org/perl/feeds/
3179 (modify-phases %standard-phases
3180 (add-after 'unpack 'set-env
3181 (lambda _ (setenv "PERL_USE_UNSAFE_INC" "1"))))))
3183 `(("perl-class-errorhandler" ,perl-class-errorhandler)
3184 ("perl-html-parser" ,perl-html-parser)
3185 ("perl-libwww" ,perl-libwww)
3186 ("perl-uri" ,perl-uri)))
3187 (home-page "https://metacpan.org/release/Feed-Find")
3188 (synopsis "Syndication feed auto-discovery")
3189 (description "@code{Feed::Find} implements feed auto-discovery for finding
3190 syndication feeds, given a URI. It will discover the following feed formats:
3191 RSS 0.91, RSS 1.0, RSS 2.0, Atom.")
3192 (license license:perl-license)))
3194 (define-public perl-file-listing
3196 (name "perl-file-listing")
3201 "mirror://cpan/authors/id/P/PL/PLICEASE/File-Listing-"
3205 "0vmzw1mhv580flzkla80gvwfpficnhlbqr1dnlf9x50bw7n18k62"))))
3206 (build-system perl-build-system)
3208 `(("perl-http-date" ,perl-http-date)))
3209 (license license:perl-license)
3210 (synopsis "Perl directory listing parser")
3212 "The File::Listing module exports a single function called parse_dir(),
3213 which can be used to parse directory listings.")
3214 (home-page "https://metacpan.org/release/File-Listing")))
3216 (define-public perl-finance-quote
3218 (name "perl-finance-quote")
3223 (uri (string-append "https://cpan.metacpan.org/authors/id/E/EC/ECOCODE/"
3224 "Finance-Quote-" version ".tar.gz"))
3226 (base32 "0gzbq85738f299jaw4nj3ljnka380j2y6yspmyl71rgfypqjvbr7"))
3227 (patches (search-patches
3228 "perl-finance-quote-unuse-mozilla-ca.patch"))))
3229 (build-system perl-build-system)
3231 `(("perl-cgi" ,perl-cgi)
3232 ("perl-datetime" ,perl-datetime)
3233 ("perl-html-parser" ,perl-html-parser)
3234 ("perl-html-tableextract" ,perl-html-tableextract)
3235 ("perl-html-tree" ,perl-html-tree)
3236 ("perl-http-cookies" ,perl-http-cookies)
3237 ("perl-http-message" ,perl-http-message)
3238 ("perl-json" ,perl-json)
3239 ("perl-libwww" ,perl-libwww)
3240 ("perl-lwp-protocol-https" ,perl-lwp-protocol-https)
3241 ("perl-uri" ,perl-uri)))
3242 (home-page "https://metacpan.org/release/Finance-Quote")
3243 (synopsis "Stock and mutual fund quotes")
3245 "Finance::Quote gets stock quotes from various internet sources, including
3246 Yahoo! Finance, Fidelity Investments, and the Australian Stock Exchange.")
3247 (license license:gpl2)))
3249 (define-public perl-gssapi
3251 (name "perl-gssapi")
3256 (uri (string-append "mirror://cpan/authors/id/A/AG/AGROLMS/"
3257 "GSSAPI-" version ".tar.gz"))
3260 "1mkhwxjjlhr58pd770i9gnf7zy7jj092iv6jfbnb8bvnc5xjr3vx"))))
3261 (build-system perl-build-system)
3262 (inputs `(("gssapi" ,mit-krb5)))
3264 `(#:make-maker-flags
3265 `(,(string-append "--gssapiimpl=" (assoc-ref %build-inputs "gssapi")))))
3266 (home-page "https://metacpan.org/release/GSSAPI")
3267 (synopsis "Perl extension providing access to the GSSAPIv2 library")
3268 (description "This is a Perl extension for using GSSAPI C bindings as
3269 described in RFC 2744.")
3270 (license license:perl-license)))
3272 (define-public perl-html-element-extended
3274 (name "perl-html-element-extended")
3279 (uri (string-append "mirror://cpan/authors/id/M/MS/MSISK/"
3280 "HTML-Element-Extended-" version ".tar.gz"))
3283 "0axknss8c368r5i082yhkfj8mq0w4nglfrpcxcayyzzj13qimvzk"))))
3284 (build-system perl-build-system)
3286 `(("perl-html-tree" ,perl-html-tree)))
3287 (home-page "https://metacpan.org/release/HTML-Element-Extended")
3288 (synopsis "Manipulate tables of HTML::Element")
3290 "HTML::Element::Extended is a Perl extension for manipulating a table
3291 composed of HTML::Element style components.")
3292 (license license:perl-license)))
3294 (define-public perl-html-form
3296 (name "perl-html-form")
3301 (uri (string-append "mirror://cpan/authors/id/O/OA/OALDERS/"
3302 "HTML-Form-" version ".tar.gz"))
3304 (base32 "14i4ldyvdvhdhvfhh9kiq6z853q2f84biq8vcpv1k5w2r80wdiin"))))
3305 (build-system perl-build-system)
3307 `(("perl-html-parser" ,perl-html-parser)
3308 ("perl-html-tagset" ,perl-html-tagset)
3309 ("perl-http-message" ,perl-http-message)
3310 ("perl-lwp-mediatypes" ,perl-lwp-mediatypes)
3311 ("perl-uri" ,perl-uri)))
3312 (home-page "https://metacpan.org/release/HTML-Form")
3313 (synopsis "Perl class representing an HTML form element")
3314 (description "Objects of the HTML::Form class represents a single HTML
3315 <form> ... </form> instance.")
3316 (license license:perl-license)))
3318 (define-public perl-html-scrubber
3320 (name "perl-html-scrubber")
3326 "mirror://cpan/authors/id/N/NI/NIGELM/HTML-Scrubber-"
3331 "06p7w4zd42b2yh541mlzyqj40lwmvvn3fyqi8big4mf34la7m2jm"))))
3332 (build-system perl-build-system)
3334 `(("perl-module-build" ,perl-module-build)
3335 ("perl-test-cpan-meta" ,perl-test-cpan-meta)
3336 ("perl-test-differences" ,perl-test-differences)
3337 ("perl-test-eol" ,perl-test-eol)
3338 ("perl-test-memory-cycle" ,perl-test-memory-cycle)
3339 ("perl-test-notabs" ,perl-test-notabs)))
3341 `(("perl-html-parser" ,perl-html-parser)))
3343 "https://metacpan.org/release/HTML-Scrubber")
3345 "Perl extension for scrubbing/sanitizing html")
3347 "@code{HTML::Scrubber} Perl extension for scrubbing/sanitizing HTML.")
3348 (license license:perl-license)))
3350 (define-public perl-html-lint
3352 (name "perl-html-lint")
3357 (uri (string-append "mirror://cpan/authors/id/P/PE/PETDANCE/"
3358 "HTML-Lint-" version ".tar.gz"))
3360 (base32 "0lk02xpfxcg7ij4dvpsa4wjlzhmiizj0jfr3rwmdpbj69nvc93br"))))
3361 (build-system perl-build-system)
3363 `(("perl-html-parser" ,perl-html-parser)
3364 ("perl-html-tagset" ,perl-html-tagset)
3365 ("perl-libwww" ,perl-libwww)))
3366 (home-page "https://metacpan.org/release/HTML-Lint")
3367 (synopsis "Check for HTML errors in a string or file")
3368 (description "HTML::Lint is a pure-Perl HTML parser and checker for
3369 syntactic legitmacy.")
3370 (license license:artistic2.0)))
3372 (define-public perl-html-tableextract
3374 (name "perl-html-tableextract")
3379 (uri (string-append "https://cpan.metacpan.org/authors/id/M/MS/MSISK/"
3380 "HTML-TableExtract-" version ".tar.gz"))
3383 "01jimmss3q68a89696wmclvqwb2ybz6xgabpnbp6mm6jcni82z8a"))))
3384 (build-system perl-build-system)
3386 `(("perl-html-element-extended" ,perl-html-element-extended)
3387 ("perl-html-parser" ,perl-html-parser)))
3388 (home-page "https://metacpan.org/release/HTML-TableExtract")
3389 (synopsis "Extract contents from HTML tables")
3391 "HTML::TableExtract is a Perl module for extracting the content contained
3392 in tables within an HTML document, either as text or encoded element trees.")
3393 (license license:perl-license)))
3395 (define-public perl-html-tree
3397 (name "perl-html-tree")
3402 (uri (string-append "mirror://cpan/authors/id/K/KE/KENTNL/"
3403 "HTML-Tree-" version ".tar.gz"))
3406 "1gyvm4qlwm9y6hczkpnrdfl303ggbybr0nqxdjw09hii8yw4sdzh"))))
3407 (build-system perl-build-system)
3409 `(("perl-module-build" ,perl-module-build)
3410 ("perl-test-fatal" ,perl-test-fatal)))
3412 `(("perl-html-parser" ,perl-html-parser)
3413 ("perl-html-tagset" ,perl-html-tagset)
3414 ("perl-libwww" ,perl-libwww)))
3415 (home-page "https://metacpan.org/release/HTML-Tree")
3416 (synopsis "Work with HTML in a DOM-like tree structure")
3417 (description "This distribution contains a suite of modules for
3418 representing, creating, and extracting information from HTML syntax trees.")
3419 (license license:perl-license)))
3421 (define-public perl-html-parser
3423 (name "perl-html-parser")
3428 "mirror://cpan/authors/id/G/GA/GAAS/HTML-Parser-"
3432 "12v05ywlnsi9lc17z32k9jxx3sj1viy7y1wpl7n4az76v7hwfa7c"))))
3433 (build-system perl-build-system)
3435 `(("perl-html-tagset" ,perl-html-tagset)
3436 ("perl-http-message" ,perl-http-message)))
3437 (license license:perl-license)
3438 (synopsis "Perl HTML parser class")
3440 "Objects of the HTML::Parser class will recognize markup and separate
3441 it from plain text (alias data content) in HTML documents. As different
3442 kinds of markup and text are recognized, the corresponding event handlers
3444 (home-page "https://metacpan.org/release/HTML-Parser")))
3446 (define-public perl-html-tagset
3448 (name "perl-html-tagset")
3453 "mirror://cpan/authors/id/P/PE/PETDANCE/HTML-Tagset-"
3457 "1qh8249wgr4v9vgghq77zh1d2zs176bir223a8gh3k9nksn7vcdd"))))
3458 (build-system perl-build-system)
3459 (license license:perl-license)
3460 (synopsis "Perl data tables useful in parsing HTML")
3462 "The HTML::Tagset module contains several data tables useful in various
3463 kinds of HTML parsing operations.")
3464 (home-page "https://metacpan.org/release/HTML-Tagset")))
3466 (define-public perl-html-template
3468 (name "perl-html-template")
3472 (uri (string-append "mirror://cpan/authors/id/S/SA/SAMTREGAR/"
3473 "HTML-Template-" version ".tar.gz"))
3476 "17qjw8swj2q4b1ic285pndgrkmvpsqw0j68nhqzpk1daydhsyiv5"))))
3477 (build-system perl-build-system)
3479 `(("perl-cgi" ,perl-cgi)))
3480 (home-page "https://metacpan.org/release/HTML-Template")
3481 (synopsis "HTML-like templates")
3483 "This module attempts to make using HTML templates simple and natural.
3484 It extends standard HTML with a few new HTML-esque tags: @code{<TMPL_VAR>},
3485 @code{<TMPL_LOOP>}, @code{<TMPL_INCLUDE>}, @code{<TMPL_IF>},
3486 @code{<TMPL_ELSE>} and @code{<TMPL_UNLESS>}. The file written with HTML and
3487 these new tags is called a template. Using this module you fill in the values
3488 for the variables, loops and branches declared in the template. This allows
3489 you to separate design from the data.")
3490 (license license:perl-license)))
3492 (define-public perl-http-body
3494 (name "perl-http-body")
3499 (uri (string-append "mirror://cpan/authors/id/G/GE/GETTY/"
3500 "HTTP-Body-" version ".tar.gz"))
3503 "15vj488i62mdp4ps9k77h39prj70i7anb6b0j8nm7l9vbdc2q3gw"))))
3504 (build-system perl-build-system)
3506 `(("perl-test-deep" ,perl-test-deep)))
3508 `(("perl-file-temp" ,perl-file-temp)
3509 ("perl-http-message" ,perl-http-message))) ;For HTTP::Headers
3510 (home-page "https://metacpan.org/release/HTTP-Body")
3511 (synopsis "HTTP Body Parser")
3512 (description "HTTP::Body parses chunks of HTTP POST data and supports
3513 application/octet-stream, application/json, application/x-www-form-urlencoded,
3514 and multipart/form-data.")
3515 (license license:perl-license)))
3517 (define-public perl-http-cookiejar
3519 (name "perl-http-cookiejar")
3524 (uri (string-append "mirror://cpan/authors/id/D/DA/DAGOLDEN/"
3525 "HTTP-CookieJar-" version ".tar.gz"))
3527 (base32 "0jk0ps4i67dhhhwaxwwa9nkv3n6n5w44xlnwyzvk59735pwvyjh0"))))
3528 (build-system perl-build-system)
3530 `(("perl-test-deep" ,perl-test-deep)
3531 ("perl-test-requires" ,perl-test-requires)
3532 ("perl-time-mock" ,perl-time-mock)
3533 ("perl-uri" ,perl-uri)))
3535 `(("perl-time-local" ,perl-time-local)
3536 ("perl-http-date" ,perl-http-date)))
3537 (home-page "https://metacpan.org/release/HTTP-CookieJar")
3538 (synopsis "Minimalist HTTP user agent cookie jar")
3539 (description "This module implements a minimalist HTTP user agent cookie
3540 jar in conformance with RFC 6265 <http://tools.ietf.org/html/rfc6265>.")
3541 (license license:asl2.0)))
3543 (define-public perl-http-cookies
3545 (name "perl-http-cookies")
3550 "mirror://cpan/authors/id/O/OA/OALDERS/HTTP-Cookies-"
3554 "13rnz3233vbsfariya4njiyfaj6k94j6bvlyh3dmfmh24hpqgx77"))))
3555 (build-system perl-build-system)
3557 `(("perl-http-message" ,perl-http-message)))
3558 (license license:perl-license)
3559 (synopsis "Perl HTTP cookie jars")
3561 "The HTTP::Cookies class is for objects that represent a cookie jar,
3562 that is, a database of all the HTTP cookies that a given LWP::UserAgent
3563 object knows about.")
3564 (home-page "https://metacpan.org/release/GAAS/HTTP-Cookies-6.01")))
3566 (define-public perl-http-daemon
3568 (name "perl-http-daemon")
3573 "mirror://cpan/authors/id/G/GA/GAAS/HTTP-Daemon-"
3577 "1hmd2isrkilf0q0nkxms1q64kikjmcw9imbvrjgky6kh89vqdza3"))))
3578 (build-system perl-build-system)
3580 `(("perl-http-message" ,perl-http-message)
3581 ("perl-lwp-mediatypes" ,perl-lwp-mediatypes)))
3582 (license license:perl-license)
3583 (synopsis "Perl simple http server class")
3585 "Instances of the HTTP::Daemon class are HTTP/1.1 servers that listen
3586 on a socket for incoming requests. The HTTP::Daemon is a subclass of
3587 IO::Socket::INET, so you can perform socket operations directly on it too.")
3588 (home-page "https://metacpan.org/release/HTTP-Daemon")))
3590 (define-public perl-http-date
3592 (name "perl-http-date")
3597 "mirror://cpan/authors/id/O/OA/OALDERS/HTTP-Date-"
3601 "0awjdbz7x0jd5pna55dwxhs3k6xp3sw6b2zg3p2yndxxvya64p9n"))))
3602 (build-system perl-build-system)
3603 (license license:perl-license)
3604 (synopsis "Perl date conversion routines")
3606 "The HTTP::Date module provides functions that deal with date formats
3607 used by the HTTP protocol (and then some more).")
3608 (home-page "https://metacpan.org/release/HTTP-Date")))
3610 (define-public perl-http-lite
3612 (name "perl-http-lite")
3618 "mirror://cpan/authors/id/N/NE/NEILB/HTTP-Lite-"
3622 "0z77nflj8zdcfg70kc93glq5kmd6qxn2nf7h70x4xhfg25wkvr1q"))))
3623 (build-system perl-build-system)
3624 (native-inputs `(("perl-cgi" ,perl-cgi)))
3625 (home-page "https://metacpan.org/release/HTTP-Lite")
3626 (synopsis "Lightweight HTTP implementation")
3627 (description "@code{HTTP::Lite} is a stand-alone lightweight
3628 HTTP/1.1 implementation for perl. It is intended for use in
3629 situations where it is desirable to install the minimal number of
3630 modules to achieve HTTP support. @code{HTTP::Lite} is ideal for
3631 CGI (or mod_perl) programs or for bundling for redistribution with
3632 larger packages where only HTTP GET and POST functionality are
3633 necessary. @code{HTTP::Lite} is compliant with the Host header,
3634 necessary for name based virtual hosting, and supports proxies.
3635 Additionally, @code{HTTP::Lite} supports a callback to allow
3636 processing of request data as it arrives.")
3637 (license license:perl-license)))
3639 (define-public perl-http-message
3641 (name "perl-http-message")
3646 "mirror://cpan/authors/id/O/OA/OALDERS/HTTP-Message-"
3650 "04lih0fn89jpyk74c4aq1rzq18h8v4zd3x0lik2r9dl8sdqd2q6h"))))
3651 (build-system perl-build-system)
3653 `(("perl-try-tiny" ,perl-try-tiny)))
3655 `(("perl-encode-locale" ,perl-encode-locale)
3656 ("perl-http-date" ,perl-http-date)
3657 ("perl-io-html" ,perl-io-html)
3658 ("perl-lwp-mediatypes" ,perl-lwp-mediatypes)
3659 ("perl-uri" ,perl-uri)))
3660 (license license:perl-license)
3661 (synopsis "Perl HTTP style message")
3663 "An HTTP::Message object contains some headers and a content body.")
3664 (home-page "https://metacpan.org/release/ETHER/HTTP-Message-6.11")))
3666 (define-public perl-http-negotiate
3668 (name "perl-http-negotiate")
3673 "mirror://cpan/authors/id/G/GA/GAAS/HTTP-Negotiate-"
3677 "05p053vjs5g91v5cmjnny7a3xzddz5k7vnjw81wfh01ilqg9qwhw"))))
3678 (build-system perl-build-system)
3680 `(("perl-http-message" ,perl-http-message)))
3681 (license license:perl-license)
3682 (synopsis "Perl http content negotiation")
3684 "The HTTP::Negotiate module provides a complete implementation of the
3685 HTTP content negotiation algorithm specified in
3686 draft-ietf-http-v11-spec-00.ps chapter 12. Content negotiation allows for
3687 the selection of a preferred content representation based upon attributes
3688 of the negotiable variants and the value of the various Accept* header
3689 fields in the request.")
3690 (home-page "https://metacpan.org/release/HTTP-Negotiate")))
3692 (define-public perl-http-parser
3694 (name "perl-http-parser")
3699 (uri (string-append "mirror://cpan/authors/id/E/ED/EDECA/"
3700 "HTTP-Parser-" version ".tar.gz"))
3703 "0idwq3jk595xil65lmxz128ha7s3r2n5zknisddpgwnqrghs3igq"))))
3704 (build-system perl-build-system)
3706 `(("perl-http-message" ,perl-http-message)
3707 ("perl-uri" ,perl-uri)))
3708 (home-page "https://metacpan.org/release/HTTP-Parser")
3709 (synopsis "Parse HTTP/1.1 requests")
3710 (description "This is an HTTP request parser. It takes chunks of text as
3711 received and returns a @code{hint} as to what is required, or returns the
3712 HTTP::Request when a complete request has been read. HTTP/1.1 chunking is
3714 (license license:perl-license)))
3716 (define-public perl-http-parser-xs
3718 (name "perl-http-parser-xs")
3723 (uri (string-append "mirror://cpan/authors/id/K/KA/KAZUHO/"
3724 "HTTP-Parser-XS-" version ".tar.gz"))
3727 "02d84xq1mm53c7jl33qyb7v5w4372vydp74z6qj0vc96wcrnhkkr"))))
3728 (build-system perl-build-system)
3730 `(("perl-module-install" ,perl-module-install)))
3731 (home-page "https://metacpan.org/release/HTTP-Parser-XS")
3732 (synopsis "Fast HTTP request parser")
3733 (description "HTTP::Parser::XS is a fast, primitive HTTP request/response
3735 (license license:perl-license)))
3737 (define-public perl-http-request-ascgi
3739 (name "perl-http-request-ascgi")
3744 (uri (string-append "mirror://cpan/authors/id/F/FL/FLORA/"
3745 "HTTP-Request-AsCGI-" version ".tar.gz"))
3748 "1smwmiarwcgq7vjdblnb6ldi2x1s5sk5p15p7xvm5byiqq3znnwl"))))
3749 (build-system perl-build-system)
3751 `(("perl-class-accessor" ,perl-class-accessor)
3752 ("perl-http-message" ,perl-http-message)))
3753 (home-page "https://metacpan.org/release/HTTP-Request-AsCGI")
3754 (synopsis "Set up a CGI environment from an HTTP::Request")
3755 (description "This module provides a convenient way to set up a CGI
3756 environment from an HTTP::Request.")
3757 (license license:perl-license)))
3759 (define-public perl-http-server-simple
3761 (name "perl-http-server-simple")
3766 (uri (string-append "mirror://cpan/authors/id/B/BP/BPS/"
3767 "HTTP-Server-Simple-" version ".tar.gz"))
3770 "0k6bg7k6mjixfzxdkkdrhqvaqmdhjszx0zsk8g0bimiby6j9z4yq"))))
3771 (build-system perl-build-system)
3773 `(("perl-cgi" ,perl-cgi)))
3775 ;; See the discussion of a related tests issue at
3776 ;; https://lists.gnu.org/archive/html/guix-devel/2015-01/msg00346.html
3779 #:phases (modify-phases %standard-phases
3780 (add-before 'configure 'set-search-path
3782 ;; Work around "dotless @INC" build failure.
3784 (string-append (getcwd) ":"
3785 (getenv "PERL5LIB")))
3787 (home-page "https://metacpan.org/release/HTTP-Server-Simple")
3788 (synopsis "Lightweight HTTP server")
3789 (description "HTTP::Server::Simple is a simple standalone HTTP daemon with
3790 no non-core module dependencies. It can be used for building a standalone
3791 http-based UI to your existing tools.")
3792 (license license:perl-license)))
3794 (define-public perl-http-tiny
3796 (name "perl-http-tiny")
3801 (uri (string-append "mirror://cpan/authors/id/D/DA/DAGOLDEN/"
3802 "HTTP-Tiny-" version ".tar.gz"))
3805 "11wkxxqj3ff84rgj9q2gzkdgscwp3fzj205846k9ycqinlpsmgfx"))))
3806 (build-system perl-build-system)
3808 `(("perl-http-cookiejar" ,perl-http-cookiejar)
3809 ("perl-io-socket-ip" ,perl-io-socket-ip)
3810 ("perl-io-socket-ssl" ,perl-io-socket-ssl)
3811 ("perl-mozilla-ca" ,perl-mozilla-ca)
3812 ("perl-net-ssleay" ,perl-net-ssleay)))
3813 (home-page "https://metacpan.org/release/HTTP-Tiny")
3814 (synopsis "HTTP/1.1 client")
3815 (description "This is a very simple HTTP/1.1 client, designed for doing
3816 simple requests without the overhead of a large framework like LWP::UserAgent.
3817 It supports proxies and redirection. It also correctly resumes after EINTR.")
3818 (license license:perl-license)))
3820 (define-public perl-http-tinyish
3822 (name "perl-http-tinyish")
3828 "mirror://cpan/authors/id/M/MI/MIYAGAWA/HTTP-Tinyish-"
3833 "199sa722amvwhq0czjfb7psj3hbqmvni5vxkrm579r5943pg0rax"))))
3834 (build-system perl-build-system)
3836 `(("perl-file-which" ,perl-file-which)
3837 ("perl-ipc-run3" ,perl-ipc-run3)))
3838 (home-page "https://metacpan.org/release/HTTP-Tinyish")
3839 (synopsis "@code{HTTP::Tiny} compatible HTTP client wrappers")
3841 "@code{HTTP::Tinyish} is a wrapper module for @acronym{LWP,libwww-perl},
3842 @code{HTTP::Tiny}, curl and wget.
3844 It provides an API compatible to HTTP::Tiny.")
3845 (license license:perl-license)))
3847 (define-public perl-io-html
3849 (name "perl-io-html")
3854 "mirror://cpan/authors/id/C/CJ/CJM/IO-HTML-"
3858 "06nj3a0xgp5jxwxx6ayglfk2v7npf5a7gwkqsjlkapjkybarzqh4"))))
3859 (build-system perl-build-system)
3860 (license license:perl-license)
3861 (synopsis "Perl module to open an HTML file with automatic charset detection")
3863 "IO::HTML provides an easy way to open a file containing HTML while
3864 automatically determining its encoding. It uses the HTML5 encoding sniffing
3865 algorithm specified in section 8.2.2.1 of the draft standard.")
3866 (home-page "https://metacpan.org/release/IO-HTML")))
3868 (define-public perl-io-socket-ip
3870 (name "perl-io-socket-ip")
3875 (uri (string-append "mirror://cpan/authors/id/P/PE/PEVANS/"
3876 "IO-Socket-IP-" version ".tar.gz"))
3878 (base32 "0ihlpxrkq1xrvhnq52nhghanskic718ch8kpp642afgq72i4b6l4"))))
3879 (build-system perl-build-system)
3880 (native-inputs `(("perl-module-build" ,perl-module-build)))
3881 (home-page "https://metacpan.org/release/IO-Socket-IP")
3882 (synopsis "Family-neutral IP socket supporting both IPv4 and IPv6")
3883 (description "This module provides a protocol-independent way to use IPv4
3884 and IPv6 sockets, intended as a replacement for IO::Socket::INET.")
3885 (license license:perl-license)))
3887 (define-public perl-io-socket-ssl
3889 (name "perl-io-socket-ssl")
3893 (uri (string-append "mirror://cpan/authors/id/S/SU/SULLR/"
3894 "IO-Socket-SSL-" version ".tar.gz"))
3897 "1ycgzg1l7p07y5wc0vzgnj122vm51p5aqpi4s56pp0piaq0gq824"))))
3898 (build-system perl-build-system)
3900 `(("perl-net-ssleay" ,perl-net-ssleay)
3902 ("perl-uri" ,perl-uri)))
3903 (synopsis "Nearly transparent SSL encapsulation for IO::Socket::INET")
3905 "IO::Socket::SSL makes using SSL/TLS much easier by wrapping the
3906 necessary functionality into the familiar IO::Socket interface and providing
3907 secure defaults whenever possible. This way existing applications can be made
3908 SSL-aware without much effort, at least if you do blocking I/O and don't use
3910 (license license:perl-license)
3911 (home-page "https://github.com/noxxi/p5-io-socket-ssl")))
3913 (define-public perl-libwww
3915 (name "perl-libwww")
3920 "mirror://cpan/authors/id/O/OA/OALDERS/libwww-perl-"
3924 "0869hn711d6fd6yil8p88wij6p1zdrbnycy7p9p176q39ajd7l61"))))
3925 (build-system perl-build-system)
3927 `(("perl-test-fatal" ,perl-test-fatal)
3928 ("perl-test-needs" ,perl-test-needs)
3929 ("perl-test-requiresinternet" ,perl-test-requiresinternet)))
3931 `(("perl-encode-locale" ,perl-encode-locale)
3932 ("perl-file-listing" ,perl-file-listing)
3933 ("perl-html-parser" ,perl-html-parser)
3934 ("perl-http-cookies" ,perl-http-cookies)
3935 ("perl-http-daemon" ,perl-http-daemon)
3936 ("perl-http-date" ,perl-http-date)
3937 ("perl-http-message" ,perl-http-message)
3938 ("perl-http-negotiate" ,perl-http-negotiate)
3939 ("perl-net-http" ,perl-net-http)
3940 ("perl-try-tiny" ,perl-try-tiny)
3941 ("perl-uri" ,perl-uri)
3942 ("perl-www-robotrules" ,perl-www-robotrules)))
3943 (license license:perl-license)
3944 (synopsis "Perl modules for the WWW")
3946 "The libwww-perl collection is a set of Perl modules which provides a
3947 simple and consistent application programming interface to the
3948 World-Wide Web. The main focus of the library is to provide classes
3949 and functions that allow you to write WWW clients. The library also
3950 contains modules that are of more general use and even classes that
3951 help you implement simple HTTP servers.")
3952 (home-page "https://metacpan.org/release/libwww-perl")))
3954 (define-public perl-lwp-online
3956 (name "perl-lwp-online")
3962 "mirror://cpan/authors/id/A/AD/ADAMK/LWP-Online-"
3966 "176f6vbk1018i0y7xj9d406ndbjgwzan2j9nihxnsahzg2vr2vz2"))))
3967 (build-system perl-build-system)
3969 `(("perl-libwww" ,perl-libwww)
3970 ("perl-uri" ,perl-uri)))
3972 `(("perl-module-install" ,perl-module-install)))
3973 (home-page "https://metacpan.org/release/LWP-Online")
3974 (synopsis "Checks whether your process has access to the web")
3975 (description "This module attempts to answer, as accurately as it can, one
3976 of the nastiest technical questions there is: am I on the internet?
3978 A host of networking and security issues make this problem very difficult.
3979 There are firewalls, proxies (both well behaved and badly behaved). We might
3980 not have DNS. We might not have a network card at all!")
3981 (license license:perl-license)))
3983 (define-public perl-lwp-mediatypes
3985 (name "perl-lwp-mediatypes")
3990 "mirror://cpan/authors/id/O/OA/OALDERS/LWP-MediaTypes-"
3994 "1n8rg6csv3dsvymg06cmxipimr6cb1g9r903ghm1qsmiv89cl6wg"))))
3995 (build-system perl-build-system)
3997 `(("perl-test-fatal" ,perl-test-fatal)))
3998 (license license:perl-license)
3999 (synopsis "Perl module to guess the media type for a file or a URL")
4001 "The LWP::MediaTypes module provides functions for handling media (also
4002 known as MIME) types and encodings. The mapping from file extensions to
4003 media types is defined by the media.types file. If the ~/.media.types file
4004 exists it is used instead.")
4005 (home-page "https://metacpan.org/release/LWP-MediaTypes")))
4007 (define-public perl-lwp-protocol-https
4009 (name "perl-lwp-protocol-https")
4014 (uri (string-append "mirror://cpan/authors/id/O/OA/OALDERS/"
4015 "LWP-Protocol-https-" version ".tar.gz"))
4017 (base32 "14pm785cgyrnppks6ccasb2vkqifh0a8fz36nmnhc2v926jy3kqn"))))
4018 (build-system perl-build-system)
4021 `(("perl-test-requiresinternet" ,perl-test-requiresinternet)))
4023 `(("perl-io-socket-ssl" ,perl-io-socket-ssl)
4024 ("perl-libwww" ,perl-libwww)
4025 ("perl-mozilla-ca" ,perl-mozilla-ca)
4026 ("perl-net-http" ,perl-net-http)))
4027 (home-page "https://metacpan.org/release/LWP-Protocol-https")
4028 (synopsis "HTTPS support for LWP::UserAgent")
4029 (description "The LWP::Protocol::https module provides support for using
4030 https schemed URLs with LWP.")
4031 (license license:perl-license)))
4033 (define-public perl-lwp-useragent-cached
4035 (name "perl-lwp-useragent-cached")
4040 (uri (string-append "mirror://cpan/authors/id/O/OL/OLEG/"
4041 "LWP-UserAgent-Cached-" version ".tar.gz"))
4044 "1hw7wy7f82kl61xjwkgmhv1ixgg56dhgfr45wxn6ahc0qys5mkix"))))
4045 (build-system perl-build-system)
4047 `(("perl-libwww" ,perl-libwww)))
4048 (home-page "https://metacpan.org/release/LWP-UserAgent-Cached")
4049 (synopsis "Simple caching for LWP::UserAgent")
4050 (description "LWP::UserAgent::Cached is an LWP::UserAgent subclass with
4051 cache support. It returns responses from the local file system, if available,
4052 instead of making an HTTP request.")
4053 (license license:perl-license)))
4055 (define-public perl-lwp-useragent-determined
4057 (name "perl-lwp-useragent-determined")
4062 (uri (string-append "mirror://cpan/authors/id/A/AL/ALEXMV/"
4063 "LWP-UserAgent-Determined-" version ".tar.gz"))
4066 "0lyvbpjng7yfvyha9rp2y2c6liz5hhplmd2grc8jlsfkih7dbn06"))))
4067 (build-system perl-build-system)
4069 `(("perl-libwww" ,perl-libwww)))
4070 (home-page "https://metacpan.org/release/LWP-UserAgent-Determined")
4071 (synopsis "Virtual browser that retries errors")
4072 (description "LWP::UserAgent::Determined works just like LWP::UserAgent,
4073 except that when you use it to get a web page but run into a
4074 possibly-temporary error (like a DNS lookup timeout), it'll wait a few seconds
4075 and retry a few times.")
4076 (license license:perl-license)))
4078 (define-public perl-lwpx-paranoidagent
4080 (name "perl-lwpx-paranoidagent")
4086 "mirror://cpan/authors/id/S/SA/SAXJAZMAN/lwp/LWPx-ParanoidAgent-"
4090 "0gfhw3jbs25yya2dryv8xvyn9myngcfcmsybj7gkq62fnznil16c"))))
4091 (build-system perl-build-system)
4093 `(("perl-libwww" ,perl-libwww)
4094 ;; Users should instead make sure SSL_ca_path is set properly.
4095 ;; ("perl-mozilla-ca" ,perl-mozilla-ca)
4096 ("perl-net-dns" ,perl-net-dns)))
4097 (home-page "https://metacpan.org/release/LWPx-ParanoidAgent")
4098 (synopsis "Security enhanced subclass of LWP::UserAgent")
4099 (description "@code{LWPx::ParanoidAgent} is a class subclassing
4100 @code{LWP::UserAgent} but paranoid against attackers. Its purpose is
4101 to vet requests for a remote resource on behalf of a possibly
4102 malicious user. The class can do the same as @code{LWP::UserAgent},
4103 except that proxy support has been removed. Support for URI schemes
4104 is limited to http and https.")
4105 (license license:perl-license)))
4107 (define-public perl-net-amazon-s3
4109 (name "perl-net-amazon-s3")
4114 (uri (string-append "mirror://cpan/authors/id/P/PF/PFIG/"
4115 "Net-Amazon-S3-" version ".tar.gz"))
4118 "10dcsq4s2kc9cb1vccx17r187c81drirc3s1hbxh3rb8489kg2b2"))
4119 (patches (search-patches
4120 "perl-net-amazon-s3-moose-warning.patch"))))
4121 (build-system perl-build-system)
4123 `(("perl-libwww" ,perl-libwww)
4124 ("perl-test-exception" ,perl-test-exception)))
4126 `(("perl-data-stream-bulk" ,perl-data-stream-bulk)
4127 ("perl-datetime-format-http" ,perl-datetime-format-http)
4128 ("perl-digest-hmac" ,perl-digest-hmac)
4129 ("perl-digest-md5-file" ,perl-digest-md5-file)
4130 ("perl-file-find-rule" ,perl-file-find-rule)
4131 ("perl-http-date" ,perl-http-date)
4132 ("perl-http-message" ,perl-http-message)
4133 ("perl-lwp-useragent-determined" ,perl-lwp-useragent-determined)
4134 ("perl-mime-types" ,perl-mime-types)
4135 ("perl-moose" ,perl-moose)
4136 ("perl-moosex-strictconstructor" ,perl-moosex-strictconstructor)
4137 ("perl-moosex-types-datetime-morecoercions"
4138 ,perl-moosex-types-datetime-morecoercions)
4139 ("perl-path-class" ,perl-path-class)
4140 ("perl-regexp-common" ,perl-regexp-common)
4141 ("perl-term-encoding" ,perl-term-encoding)
4142 ("perl-term-progressbar-simple" ,perl-term-progressbar-simple)
4143 ("perl-uri" ,perl-uri)
4144 ("perl-xml-libxml" ,perl-xml-libxml)))
4145 (home-page "https://metacpan.org/release/Net-Amazon-S3")
4146 (synopsis "Perl interface to Amazon S3")
4147 (description "This module provides a Perlish interface to Amazon S3.")
4148 (license license:perl-license)))
4150 (define-public perl-net-http
4152 (name "perl-net-http")
4157 "mirror://cpan/authors/id/O/OA/OALDERS/"
4158 "Net-HTTP-" version ".tar.gz"))
4161 "1i7fk6q1iaxzgf82mjd5hg77hvy7dbb79488cijg16dyfrds6nip"))))
4162 (build-system perl-build-system)
4164 `(("perl-io-socket-ssl" ,perl-io-socket-ssl)
4165 ("perl-uri" ,perl-uri)))
4166 (license license:perl-license)
4167 (synopsis "Perl low-level HTTP connection (client)")
4169 "The Net::HTTP class is a low-level HTTP client. An instance of the
4170 Net::HTTP class represents a connection to an HTTP server. The HTTP protocol
4171 is described in RFC 2616. The Net::HTTP class supports HTTP/1.0 and
4173 (home-page "https://metacpan.org/release/Net-HTTP")))
4175 (define-public perl-net-server
4177 (name "perl-net-server")
4182 (uri (string-append "mirror://cpan/authors/id/R/RH/RHANDOM/"
4183 "Net-Server-" version ".tar.gz"))
4186 "0gw1k9gcw7habbkxvsfa2gz34brlbwcidk6khgsf1qjm0dbccrw2"))))
4187 (build-system perl-build-system)
4188 (home-page "https://metacpan.org/release/Net-Server")
4189 (synopsis "Extensible Perl server engine")
4190 (description "Net::Server is an extensible, generic Perl server engine.
4191 It attempts to be a generic server as in Net::Daemon and NetServer::Generic.
4192 It includes with it the ability to run as an inetd
4193 process (Net::Server::INET), a single connection server (Net::Server or
4194 Net::Server::Single), a forking server (Net::Server::Fork), a preforking
4195 server which maintains a constant number of preforked
4196 children (Net::Server::PreForkSimple), or as a managed preforking server which
4197 maintains the number of children based on server load (Net::Server::PreFork).
4198 In all but the inetd type, the server provides the ability to connect to one
4199 or to multiple server ports.")
4200 (license license:perl-license)))
4202 (define-public perl-net-smtp-ssl
4204 (name "perl-net-smtp-ssl")
4209 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
4210 "Net-SMTP-SSL-" version ".tar.gz"))
4213 "001a6dcfahf7kkyirqkc8jd4fh4fkal7n7vm9c4dblqrvmdc8abv"))))
4214 (build-system perl-build-system)
4216 `(("perl-io-socket-ssl" ,perl-io-socket-ssl)))
4217 (home-page "https://metacpan.org/release/Net-SMTP-SSL")
4218 (synopsis "SSL support for Net::SMTP")
4219 (description "SSL support for Net::SMTP.")
4220 (license license:perl-license)))
4222 (define-public perl-plack
4229 (uri (string-append "mirror://cpan/authors/id/M/MI/MIYAGAWA/"
4230 "Plack-" version ".tar.gz"))
4233 "081jg0xddzpg2anmqi9i6d7vs6c8z7k557bf8xl6vgb3h95pin5w"))))
4234 (build-system perl-build-system)
4236 `(("perl-test-requires" ,perl-test-requires)
4237 ("perl-file-sharedir-install" ,perl-file-sharedir-install)))
4239 `(("perl-apache-logformat-compiler" ,perl-apache-logformat-compiler)
4240 ("perl-devel-stacktrace" ,perl-devel-stacktrace)
4241 ("perl-devel-stacktrace-ashtml" ,perl-devel-stacktrace-ashtml)
4242 ("perl-file-sharedir" ,perl-file-sharedir)
4243 ("perl-hash-multivalue" ,perl-hash-multivalue)
4244 ("perl-http-body" ,perl-http-body)
4245 ("perl-http-message" ,perl-http-message)
4246 ("perl-http-tiny" ,perl-http-tiny)
4247 ("perl-libwww" ,perl-libwww)
4248 ("perl-stream-buffered" ,perl-stream-buffered)
4249 ("perl-test-tcp" ,perl-test-tcp)
4250 ("perl-try-tiny" ,perl-try-tiny)
4251 ("perl-uri" ,perl-uri)))
4252 (home-page "https://metacpan.org/release/Plack")
4253 (synopsis "Perl Superglue for Web frameworks and servers (PSGI toolkit)")
4254 (description "Plack is a set of tools for using the PSGI stack. It
4255 contains middleware components, a reference server, and utilities for Web
4256 application frameworks. Plack is like Ruby's Rack or Python's Paste for
4258 (license license:perl-license)))
4260 (define-public perl-plack-middleware-deflater
4262 (name "perl-plack-middleware-deflater")
4268 "mirror://cpan/authors/id/K/KA/KAZEBURO/"
4269 "Plack-Middleware-Deflater-" version ".tar.gz"))
4272 "0xf2visi16hgwgyp9q0cjr10ikbn474hjia5mj8mb2scvbkrbni8"))))
4273 (build-system perl-build-system)
4275 `(("perl-module-install" ,perl-module-install)
4276 ("perl-test-requires" ,perl-test-requires)))
4278 `(("perl-plack" ,perl-plack)))
4279 (home-page "https://metacpan.org/release/Plack-Middleware-Deflater")
4280 (synopsis "Compress response body with Gzip or Deflate")
4282 "Plack::Middleware::Deflater is a middleware to encode your response body
4283 in gzip or deflate, based on \"Accept-Encoding\" HTTP request header. It
4284 would save the bandwidth a little bit but should increase the Plack server
4285 load, so ideally you should handle this on the frontend reverse proxy
4287 (license license:perl-license)))
4289 (define-public perl-plack-middleware-fixmissingbodyinredirect
4291 (name "perl-plack-middleware-fixmissingbodyinredirect")
4296 (uri (string-append "mirror://cpan/authors/id/S/SW/SWEETKID/"
4297 "Plack-Middleware-FixMissingBodyInRedirect-"
4301 "14dkrmccq7a5vpymx5dv8032gfcvhsw2i6v5sh3c4ym5ymlx08kc"))))
4302 (build-system perl-build-system)
4304 `(("perl-html-parser" ,perl-html-parser) ;for HTML::Entities
4305 ("perl-http-message" ,perl-http-message)
4306 ("perl-plack" ,perl-plack))) ;for Plack::Test
4308 "https://metacpan.org/release/Plack-Middleware-FixMissingBodyInRedirect")
4309 (synopsis "Plack::Middleware which sets body for redirect response")
4310 (description "This module sets the body in redirect response, if it's not
4312 (license license:perl-license)))
4314 (define-public perl-plack-middleware-methodoverride
4316 (name "perl-plack-middleware-methodoverride")
4321 (uri (string-append "mirror://cpan/authors/id/M/MI/MIYAGAWA/"
4322 "Plack-Middleware-MethodOverride-"
4325 (base32 "1wdmmav3rbhv49zpw311zrxxqmg1fz3f3q9src0ypgs8zcp5myyv"))))
4326 (build-system perl-build-system)
4328 `(("perl-module-build" ,perl-module-build)))
4330 `(("perl-plack" ,perl-plack)))
4331 (home-page "https://metacpan.org/release/Plack-Middleware-MethodOverride")
4332 (synopsis "Override REST methods to Plack apps via POST")
4333 (description "This middleware allows for POST requests that pretend to be
4334 something else: by adding either a header named X-HTTP-Method-Override to the
4335 request, or a query parameter named x-tunneled-method to the URI, the client
4336 can say what method it actually meant.")
4337 (license license:perl-license)))
4339 (define-public perl-plack-middleware-removeredundantbody
4341 (name "perl-plack-middleware-removeredundantbody")
4346 (uri (string-append "mirror://cpan/authors/id/S/SW/SWEETKID/"
4347 "Plack-Middleware-RemoveRedundantBody-"
4350 (base32 "0zh83001rn5aqwpc1pn3di2h3ibzlf2dvkmkv05hnadpss9mzm40"))))
4351 (build-system perl-build-system)
4353 `(("perl-plack" ,perl-plack)))
4355 "https://metacpan.org/release/Plack-Middleware-RemoveRedundantBody")
4356 (synopsis "Plack::Middleware which removes body for HTTP response")
4357 (description "This module removes the body in an HTTP response if it's not
4359 (license license:perl-license)))
4361 (define-public perl-plack-middleware-reverseproxy
4363 (name "perl-plack-middleware-reverseproxy")
4368 (uri (string-append "mirror://cpan/authors/id/M/MI/MIYAGAWA/"
4369 "Plack-Middleware-ReverseProxy-"
4372 (base32 "0a512n62pnk5ayj3zdzyj50iy1qi8nwh6ygks2h7nrh7gp9k2jc7"))))
4373 (build-system perl-build-system)
4375 `(("perl-module-install" ,perl-module-install)))
4377 `(("perl-plack" ,perl-plack)))
4378 (home-page "https://metacpan.org/release/Plack-Middleware-ReverseProxy")
4379 (synopsis "Supports app to run as a reverse proxy backend")
4380 (description "Plack::Middleware::ReverseProxy resets some HTTP headers,
4381 which are changed by reverse-proxy. You can specify the reverse proxy address
4382 and stop fake requests using @code{enable_if} directive in your app.psgi.")
4383 (license license:perl-license)))
4385 (define-public perl-plack-test-externalserver
4387 (name "perl-plack-test-externalserver")
4392 (uri (string-append "mirror://cpan/authors/id/E/ET/ETHER/"
4393 "Plack-Test-ExternalServer-" version ".tar.gz"))
4395 (base32 "1l1yj1l25679x7cbpd27ii7s1f1ajpkspif9xqnl21hczrbmrbsv"))))
4396 (build-system perl-build-system)
4398 `(("perl-plack" ,perl-plack)))
4399 (home-page "https://metacpan.org/release/Plack-Test-ExternalServer")
4400 (synopsis "Run HTTP tests on external live servers")
4401 (description "This module allows your to run your Plack::Test tests
4402 against an external server instead of just against a local application through
4403 either mocked HTTP or a locally spawned server.")
4404 (license license:perl-license)))
4406 (define-public perl-test-tcp
4408 (name "perl-test-tcp")
4413 (uri (string-append "mirror://cpan/authors/id/M/MI/MIYAGAWA/"
4414 "Test-TCP-" version ".tar.gz"))
4416 (base32 "0mvv9rqwrwlcfh8qrs0s47p85rhlnw15d4gbpyi802bddp0c6lry"))))
4417 (build-system perl-build-system)
4419 `(("perl-test-sharedfork" ,perl-test-sharedfork)))
4420 (arguments `(#:tests? #f)) ;related to signaling in t/05_sigint.t
4421 (home-page "https://metacpan.org/release/Test-TCP")
4422 (synopsis "Testing TCP programs")
4423 (description "Test::TCP is test utilities for TCP/IP programs.")
4424 (license license:perl-license)))
4426 (define-public perl-test-www-mechanize
4428 (name "perl-test-www-mechanize")
4433 (uri (string-append "mirror://cpan/authors/id/P/PE/PETDANCE/"
4434 "Test-WWW-Mechanize-" version ".tar.gz"))
4436 (base32 "1jsywlbxhqw39ij7s8vmgff5vys58vlfaq27072awacnxc65aal4"))))
4437 (build-system perl-build-system)
4439 `(("perl-carp-assert-more" ,perl-carp-assert-more)
4440 ("perl-html-form" ,perl-html-form)
4441 ("perl-html-lint" ,perl-html-lint)
4442 ("perl-http-server-simple" ,perl-http-server-simple)
4443 ("perl-libwww" ,perl-libwww)
4444 ("perl-test-longstring" ,perl-test-longstring)
4445 ("perl-www-mechanize" ,perl-www-mechanize)))
4446 (home-page "https://metacpan.org/release/Test-WWW-Mechanize")
4447 (synopsis "Testing-specific WWW::Mechanize subclass")
4448 (description "Test::WWW::Mechanize is a subclass of the Perl module
4449 WWW::Mechanize that incorporates features for web application testing.")
4450 (license license:artistic2.0)))
4452 (define-public perl-test-www-mechanize-catalyst
4454 (name "perl-test-www-mechanize-catalyst")
4459 (uri (string-append "mirror://cpan/authors/id/M/MS/MSTROUT/"
4460 "Test-WWW-Mechanize-Catalyst-" version ".tar.gz"))
4462 (base32 "1cdc2q16vs6fb335pzaislz2rx1ph9acaxyp7v5hv9xbwwddwfqq"))))
4463 (build-system perl-build-system)
4465 `(("perl-catalyst-plugin-session" ,perl-catalyst-plugin-session)
4466 ("perl-catalyst-plugin-session-state-cookie"
4467 ,perl-catalyst-plugin-session-state-cookie)
4468 ("perl-module-install" ,perl-module-install)
4469 ("perl-test-exception" ,perl-test-exception)
4470 ("perl-test-pod" ,perl-test-pod)
4471 ("perl-test-utf8" ,perl-test-utf8)))
4473 `(("perl-catalyst-runtime" ,perl-catalyst-runtime)
4474 ("perl-class-load" ,perl-class-load)
4475 ("perl-libwww" ,perl-libwww)
4476 ("perl-moose" ,perl-moose)
4477 ("perl-namespace-clean" ,perl-namespace-clean)
4478 ("perl-test-www-mechanize" ,perl-test-www-mechanize)
4479 ("perl-www-mechanize" ,perl-www-mechanize)))
4480 (home-page "https://metacpan.org/release/Test-WWW-Mechanize-Catalyst")
4481 (synopsis "Test::WWW::Mechanize for Catalyst")
4482 (description "The Test::WWW::Mechanize::Catalyst module meshes the
4483 Test::WWW:Mechanize module and the Catalyst web application framework to allow
4484 testing of Catalyst applications without needing to start up a web server.")
4485 (license license:perl-license)))
4487 (define-public perl-test-www-mechanize-psgi
4489 (name "perl-test-www-mechanize-psgi")
4494 (uri (string-append "mirror://cpan/authors/id/O/OA/OALDERS/"
4495 "Test-WWW-Mechanize-PSGI-" version ".tar.gz"))
4498 "0fsh2i05kf1kfavv2r9kmnjl7qlyqrd11ikc0qcqzzxsqzzjkg9r"))))
4499 (build-system perl-build-system)
4501 `(("perl-test-pod" ,perl-test-pod)))
4503 `(("perl-plack" ,perl-plack)
4504 ("perl-test-www-mechanize" ,perl-test-www-mechanize)))
4505 (home-page "https://metacpan.org/release/Test-WWW-Mechanize-PSGI")
4506 (synopsis "Test PSGI programs using WWW::Mechanize")
4507 (description "PSGI is a specification to decouple web server environments
4508 from web application framework code. Test::WWW::Mechanize is a subclass of
4509 WWW::Mechanize that incorporates features for web application testing. The
4510 Test::WWW::Mechanize::PSGI module meshes the two to allow easy testing of PSGI
4512 (license license:perl-license)))
4514 (define-public perl-uri
4520 (uri (string-append "mirror://cpan/authors/id/O/OA/OALDERS/"
4521 "URI-" version ".tar.gz"))
4524 "1v3r3ck67w272kzfgm1nd3wb41av1hlnza56vkxxj1i7s3917hd5"))))
4525 (build-system perl-build-system)
4528 `(("perl-test-needs" ,perl-test-needs)))
4529 (license license:perl-license)
4530 (synopsis "Perl Uniform Resource Identifiers (absolute and relative)")
4532 "The URI module implements the URI class. Objects of this class
4533 represent \"Uniform Resource Identifier references\" as specified in RFC 2396
4534 and updated by RFC 2732.")
4535 (home-page "https://metacpan.org/release/URI")))
4537 (define-public perl-uri-fetch
4539 (name "perl-uri-fetch")
4543 (uri (string-append "mirror://cpan/authors/id/N/NE/NEILB/"
4544 "URI-Fetch-" version ".tar.gz"))
4547 "0rw6xiqm70s218aii9id3hf8j3pz6n22xnwd8v9m1ff2bnh63c0d"))))
4548 (build-system perl-build-system)
4550 `(#:tests? #f)) ; Tests require internet connection to succeed
4552 `(("perl-class-errorhandler" ,perl-class-errorhandler)
4553 ("perl-libwww" ,perl-libwww)
4554 ("perl-uri" ,perl-uri)))
4555 (home-page "https://metacpan.org/release/URI-Fetch")
4556 (synopsis "Smart URI fetching/caching")
4557 (description "@code{URI::Fetch} is a smart client for fetching HTTP pages,
4558 notably syndication feeds (RSS, Atom, and others), in an intelligent, bandwidth-
4559 and time-saving way.")
4560 (license license:perl-license)))
4562 (define-public perl-uri-find
4564 (name "perl-uri-find")
4565 (version "20160806")
4569 (uri (string-append "mirror://cpan/authors/id/M/MS/MSCHWERN/"
4570 "URI-Find-" version ".tar.gz"))
4573 "1mk3jv8x0mcq3ajrn9garnxd0jc7sw4pkwqi88r5apqvlljs84z2"))))
4574 (build-system perl-build-system)
4576 `(("perl-module-build" ,perl-module-build)))
4578 `(("perl-uri" ,perl-uri)))
4579 (home-page "https://metacpan.org/release/URI-Find")
4580 (synopsis "Find URIs in arbitrary text")
4581 (description "This module finds URIs and URLs (according to what URI.pm
4582 considers a URI) in plain text. It only finds URIs which include a
4583 scheme (http:// or the like), for something a bit less strict, consider
4584 URI::Find::Schemeless. For a command-line interface, urifind is provided.")
4585 (license license:perl-license)))
4587 (define-public perl-uri-ws
4589 (name "perl-uri-ws")
4594 (uri (string-append "mirror://cpan/authors/id/P/PL/PLICEASE/"
4595 "URI-ws-" version ".tar.gz"))
4598 "1vs1wm80sq685944g1l4a0fxcbccc00c0f9648yabdmcf90hwsvf"))))
4599 (build-system perl-build-system)
4601 `(("perl-uri" ,perl-uri)))
4602 (home-page "https://metacpan.org/release/URI-ws")
4603 (synopsis "WebSocket support for URI package")
4604 (description "With this module, the URI package provides the same set of
4605 methods for WebSocket URIs as it does for HTTP URIs.")
4606 (license license:perl-license)))
4608 (define-public perl-uri-template
4610 (name "perl-uri-template")
4614 (uri (string-append "mirror://cpan/authors/id/B/BR/BRICAS/URI-Template-"
4618 "1phibcmam2hklrddzj79l43va1gcqpyszbw21ynxq53ynmhjvbk8"))))
4619 (build-system perl-build-system)
4621 `(("perl-uri" ,perl-uri)))
4623 `(("perl-test-pod-coverage" ,perl-test-pod-coverage)
4624 ("perl-test-pod" ,perl-test-pod)
4625 ("perl-module-install" ,perl-module-install)
4626 ("perl-json" ,perl-json)))
4627 (home-page "https://metacpan.org/release/URI-Template")
4628 (synopsis "Object for handling URI templates")
4629 (description "This perl module provides a wrapper around URI templates as described in
4631 (license license:perl-license)))
4633 (define-public perl-www-curl
4635 (name "perl-www-curl")
4640 "mirror://cpan/authors/id/S/SZ/SZBALINT/WWW-Curl-"
4642 (patches (search-patches "perl-www-curl-fix-struct-void.patch"
4643 "perl-www-curl-remove-symbol.patch"))
4646 "1fmp9aib1kaps9vhs4dwxn7b15kgnlz9f714bxvqsd1j1q8spzsj"))))
4647 (build-system perl-build-system)
4649 '(#:tests? #f ;XXX: tests require network access
4650 #:phases (modify-phases %standard-phases
4651 (add-before 'configure 'set-search-path
4653 ;; Work around "dotless @INC" build failure.
4655 (string-append (getcwd) ":"
4656 (getenv "PERL5LIB")))
4659 `(("perl-module-install" ,perl-module-install)))
4660 (inputs `(("curl" ,curl)))
4661 (synopsis "Perl extension interface for libcurl")
4663 "This is a Perl extension interface for the libcurl file downloading
4665 (license license:perl-license)
4666 (home-page "https://metacpan.org/release/WWW-Curl")))
4668 (define-public perl-www-mechanize
4670 (name "perl-www-mechanize")
4675 (uri (string-append "mirror://cpan/authors/id/O/OA/OALDERS/"
4676 "WWW-Mechanize-" version ".tar.gz"))
4678 (base32 "0cb14m1vhaf0mgn2fqwi5hm72xhfi77hpq2g57swgy0w83x7m27b"))))
4679 (build-system perl-build-system)
4680 (native-inputs ;only for tests
4681 `(("perl-cgi" ,perl-cgi)
4682 ("perl-test-deep" ,perl-test-deep)
4683 ("perl-test-fatal" ,perl-test-fatal)
4684 ("perl-test-output" ,perl-test-output)
4685 ("perl-test-warnings" ,perl-test-warnings)))
4687 `(("perl-html-form" ,perl-html-form)
4688 ("perl-html-parser" ,perl-html-parser)
4689 ("perl-html-tree" ,perl-html-tree)
4690 ("perl-http-message" ,perl-http-message)
4691 ("perl-http-server-simple" ,perl-http-server-simple)
4692 ("perl-libwww" ,perl-libwww)
4693 ("perl-test-warn" ,perl-test-warn)
4694 ("perl-uri" ,perl-uri)))
4695 (home-page "https://metacpan.org/release/WWW-Mechanize")
4696 (synopsis "Web browsing in a Perl object")
4697 (description "WWW::Mechanize is a Perl module for stateful programmatic
4698 web browsing, used for automating interaction with websites.")
4699 (license license:perl-license)))
4701 (define-public perl-www-opensearch
4703 (name "perl-www-opensearch")
4707 (uri (string-append "mirror://cpan/authors/id/B/BR/BRICAS/"
4708 "WWW-OpenSearch-" version ".tar.gz"))
4711 "1yxplx1q1qk2fvnzqrbk01lz26fy1lyhay51a3ky7q3jgh9p01rb"))))
4712 (build-system perl-build-system)
4714 `(("perl-class-errorhandler" ,perl-class-errorhandler)
4715 ("perl-datetime" ,perl-datetime)
4716 ("perl-datetime-format-mail" ,perl-datetime-format-mail)
4717 ("perl-datetime-format-w3cdtf" ,perl-datetime-format-w3cdtf)
4718 ("perl-feed-find" ,perl-feed-find)
4719 ("perl-module-install" ,perl-module-install)
4720 ("perl-module-pluggable" ,perl-module-pluggable)
4721 ("perl-uri-fetch" ,perl-uri-fetch)
4722 ("perl-test-simple" ,perl-test-simple)
4723 ("perl-xml-atom" ,perl-xml-atom)
4724 ("perl-xml-rss" ,perl-xml-rss)))
4726 `(("perl-data-page" ,perl-data-page)
4727 ("perl-libwww" ,perl-libwww)
4728 ("perl-uri" ,perl-uri)
4729 ("perl-uri-template" ,perl-uri-template)
4730 ("perl-xml-feed" ,perl-xml-feed)
4731 ("perl-xml-libxml" ,perl-xml-libxml)))
4732 (home-page "https://metacpan.org/release/WWW-OpenSearch")
4733 (synopsis "Search A9 OpenSearch compatible engines")
4735 "@code{WWW::OpenSearch} is a module to search @url{A9's OpenSearch,
4736 http://opensearch.a9.com} compatible search engines.")
4737 (license license:perl-license)))
4739 (define-public perl-www-robotrules
4741 (name "perl-www-robotrules")
4746 "mirror://cpan/authors/id/G/GA/GAAS/WWW-RobotRules-"
4750 "07m50dp5n5jxv3m93i55qvnd67a6g7cvbvlik115kmc8lbkh5da6"))))
4751 (build-system perl-build-system)
4753 `(("perl-uri" ,perl-uri)))
4754 (license license:perl-license)
4755 (synopsis "Perl database of robots.txt-derived permissions")
4757 "The WWW::RobotRules module parses /robots.txt files as specified in
4758 \"A Standard for Robot Exclusion\", at
4759 <http://www.robotstxt.org/wc/norobots.html>. Webmasters can use the
4760 /robots.txt file to forbid conforming robots from accessing parts of
4762 (home-page "https://metacpan.org/release/WWW-RobotRules")))
4764 (define-public python-feedparser
4766 (name "python-feedparser")
4771 (uri (pypi-uri "feedparser" version ".tar.gz"))
4774 "0qcnkyjjfj5gg5rhd1j4zzlqx5h34bma18zwgj68q95b0l543q2w"))))
4775 (build-system python-build-system)
4777 `(("python-sgmllib3k" ,python-sgmllib3k)))
4781 "https://github.com/kurtmckee/feedparser")
4782 (synopsis "Parse feeds in Python")
4784 "Universal feed parser which handles RSS 0.9x, RSS 1.0, RSS 2.0,
4785 CDF, Atom 0.3, and Atom 1.0 feeds.")
4786 (license (list license:bsd-2 ; source code
4787 license:freebsd-doc)))) ; documentation
4789 (define-public python2-feedparser
4791 (name "python2-feedparser")
4796 (uri (pypi-uri "feedparser" version ".tar.bz2"))
4799 "00hb4qg2am06g81mygfi1jsbx8830024jm45g6qp9g8fr6am91yf"))))
4800 (build-system python-build-system)
4803 #:python ,python-2))
4805 "https://github.com/kurtmckee/feedparser")
4806 (synopsis "Parse feeds in Python")
4808 "Universal feed parser which handles RSS 0.9x, RSS 1.0, RSS 2.0,
4809 CDF, Atom 0.3, and Atom 1.0 feeds.")
4810 (license (list license:bsd-2 ; source code
4811 license:freebsd-doc)))) ; documentation
4813 (define-public guix-data-service
4814 (let ((commit "df2a0a73f1f35ea53ba6c07a6ad4c5347ba12b8f")
4817 (name "guix-data-service")
4818 (version (string-append "0.0.1-" revision "." (string-take commit 7)))
4822 (url "https://git.savannah.gnu.org/git/guix/data-service.git/")
4824 (file-name (git-file-name name version))
4827 "1ss1prr98zdjkm97w24rd04lfnnvcw6xs0gwxqgd40briqisaa5g"))))
4828 (build-system gnu-build-system)
4830 '(#:modules ((guix build utils)
4831 (guix build gnu-build-system)
4836 #:test-target "check-with-tmp-database"
4838 (modify-phases %standard-phases
4839 (add-before 'build 'set-GUILE_AUTO_COMPILE
4841 ;; To avoid warnings relating to 'guild'.
4842 (setenv "GUILE_AUTO_COMPILE" "0")
4844 (add-after 'install 'wrap-executable
4845 (lambda* (#:key inputs outputs #:allow-other-keys)
4846 (let* ((out (assoc-ref outputs "out"))
4847 (bin (string-append out "/bin"))
4848 (guile (assoc-ref inputs "guile"))
4849 (guile-effective-version
4851 (open-pipe* OPEN_READ
4852 (string-append guile "/bin/guile")
4853 "-c" "(display (effective-version))")))
4854 (scm (string-append out "/share/guile/site/"
4855 guile-effective-version))
4856 (go (string-append out "/lib/guile/"
4857 guile-effective-version
4861 (simple-format (current-error-port)
4863 (string-append bin "/" file))
4864 (wrap-program (string-append bin "/" file)
4868 (map (lambda (input)
4870 (assoc-ref inputs input)
4875 `("GUILE_LOAD_PATH" ":" prefix
4876 (,scm ,(getenv "GUILE_LOAD_PATH")))
4877 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
4878 (,go ,(getenv "GUILE_LOAD_COMPILED_PATH")))))
4884 (delete 'strip)))) ; As the .go files aren't compatible
4887 ("guile-fibers" ,guile-fibers)
4888 ("guile-json" ,guile-json-4)
4889 ("guile-email" ,guile-email)
4890 ("guile-prometheus" ,guile-prometheus)
4891 ("guile-squee" ,guile-squee)
4892 ("ephemeralpg" ,ephemeralpg)
4893 ("util-linux" ,util-linux)
4894 ("postgresql" ,postgresql-13)
4895 ("sqitch" ,sqitch)))
4897 `(("guile" ,@(assoc-ref (package-native-inputs guix) "guile"))
4898 ("autoconf" ,autoconf)
4899 ("automake" ,automake)
4900 ("emacs-minimal" ,emacs-minimal)
4901 ("emacs-htmlize" ,emacs-htmlize)
4902 ("pkg-config" ,pkg-config)))
4903 (synopsis "Store and provide data about GNU Guix")
4905 "The Guix Data Service stores data about GNU Guix, and provides this
4906 through a web interface. It supports listening to the guix-commits mailing
4907 list to find out about new revisions, then loads the data from these in to a
4908 PostgreSQL database.")
4909 (home-page "https://data.guix.gnu.org/")
4910 (license license:agpl3+))))
4912 (define-public gumbo-parser
4914 (name "gumbo-parser")
4919 (url "https://github.com/google/gumbo-parser")
4920 (commit (string-append "v" version))))
4921 (file-name (git-file-name name version))
4924 "0xslckwdh2i0g2qjsb6rnm8mjmbagvziz0hjlf7d1lbljfms1iw1"))))
4925 (build-system gnu-build-system)
4927 `(#:tests? #f)) ;tests require bundling googletest sources
4928 ;; The release tarball lacks the generated files.
4930 `(("autoconf" ,autoconf)
4931 ("automake" ,automake)
4932 ("libtool" ,libtool)))
4933 (home-page "https://github.com/google/gumbo-parser")
4934 (synopsis "HTML5 parsing library")
4936 "Gumbo is an implementation of the HTML5 parsing algorithm implemented as
4937 a pure C99 library.")
4938 (license license:asl2.0)))
4940 (define-public uwsgi
4946 (uri (string-append "https://projects.unbit.it/downloads/uwsgi-"
4950 "10zmk4npknigmbqcq1wmhd461dk93159px172112vyq0i19sqwj9"))))
4951 (build-system gnu-build-system)
4952 (outputs '("out" "python"))
4954 '(;; XXX: The 'check' target runs cppcheck to do static code analysis.
4955 ;; But there is no obvious way to run the real tests.
4958 (modify-phases %standard-phases
4960 ;; Configuration is done by writing an ini file.
4961 (lambda* (#:key outputs #:allow-other-keys)
4962 (let* ((out (assoc-ref outputs "out"))
4963 (bindir (string-append out "/bin"))
4964 (plugindir (string-append out "/lib/uwsgi")))
4965 ;; The build phase outputs files to these directories directly.
4968 ;; XXX: Enable other plugins.
4969 (call-with-output-file "buildconf/guix.ini"
4971 (format port "[uwsgi]
4977 plugins = cgi,python
4979 " bindir plugindir))))
4980 (setenv "PROFILE" "guix")
4983 ;; Move plugins into their own output.
4984 (lambda* (#:key outputs #:allow-other-keys)
4985 (let* ((out (assoc-ref outputs "out"))
4986 (plugindir (string-append out "/lib/uwsgi"))
4987 (python-plugin (string-append
4988 plugindir "/python_plugin.so")))
4989 (install-file python-plugin
4991 (assoc-ref outputs "python") "/lib/uwsgi"))
4992 (delete-file python-plugin)
4995 `(("pkg-config" ,pkg-config)
4996 ("python" ,python-wrapper)))
4998 `(("jansson" ,jansson)
4999 ("libxml2" ,libxml2)
5000 ("libyaml" ,libyaml)
5001 ("openssl" ,openssl)
5005 ("python" ,python)))
5006 (home-page "https://uwsgi-docs.readthedocs.org/")
5007 (synopsis "Application container server")
5009 "uWSGI presents a complete stack for networked/clustered web applications,
5010 implementing message/object passing, caching, RPC and process management.
5011 It uses the uwsgi protocol for all the networking/interprocess communications.")
5012 (license license:gpl2+))) ; with linking exception
5021 (uri (string-append "https://github.com/stedolan/jq"
5022 "/releases/download/jq-" version
5023 "/jq-" version ".tar.gz"))
5025 (base32 "0wmapfskhzfwranf6515nzmm84r7kwljgfs7dg6bjgxakbicis2x"))
5026 (modules '((guix build utils)))
5029 ;; Remove bundled onigurama.
5030 (delete-file-recursively "modules")
5033 `(("oniguruma" ,oniguruma)))
5035 `(;; TODO fix gems to generate documentation
5037 ;;("bundler" ,bundler)
5038 ("valgrind" ,valgrind)))
5039 (build-system gnu-build-system)
5040 (home-page "https://stedolan.github.io/jq/")
5041 (synopsis "Command-line JSON processor")
5042 (description "jq is like sed for JSON data – you can use it to slice and
5043 filter and map and transform structured data with the same ease that sed, awk,
5044 grep and friends let you play with text. It is written in portable C. jq can
5045 mangle the data format that you have into the one that you want with very
5046 little effort, and the program to do so is often shorter and simpler than
5048 (license (list license:expat license:cc-by3.0))))
5051 (let ((revision "1")
5052 (commit "681d7bb639334bf485476f5872c5bdab10931f9a"))
5055 (version (git-version "0.4.0" revision commit))
5060 (url "https://github.com/ericchiang/pup")
5062 (file-name (git-file-name name version))
5064 (base32 "1hx1k0qlc1bq6gg5d4yprn4d7kvqzagg6mi5mvb39zdq6c4y17vr"))))
5065 (build-system go-build-system)
5067 `(#:import-path "github.com/ericchiang/pup"))
5068 (home-page "https://github.com/ericchiang/pup")
5069 (synopsis "Parse HTML at the command line")
5071 "@command{pup} is a command line tool for processing HTML. It reads
5072 from stdin, prints to stdout, and allows the user to filter parts of the page
5073 using CSS selectors. Inspired by @command{jq}, @command{pup} aims to be a
5074 fast and flexible way of exploring HTML from the terminal.")
5075 (license license:expat))))
5077 (define-public uhttpmock
5084 (uri (string-append "https://tecnocode.co.uk/downloads/uhttpmock/"
5085 "uhttpmock-" version ".tar.xz"))
5087 (base32 "0bqizz69hxk8rn4z57asz1d45vizl1rj6i5k3rzxn2x3qcik514h"))))
5088 (build-system glib-or-gtk-build-system)
5090 `(("gobject-introspection" ,gobject-introspection)
5092 ("glib-networking" ,glib-networking)
5093 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
5094 ("pkg-config" ,pkg-config)))
5096 `(("libsoup" ,libsoup)))
5099 (modify-phases %standard-phases
5100 (add-before 'check 'set-home-for-tests
5102 (setenv "HOME" "/tmp"))))))
5103 (home-page "https://gitlab.com/groups/uhttpmock")
5104 (synopsis "Library for mocking web service APIs which use HTTP or HTTPS")
5106 "Uhttpmock is a project for mocking web service APIs which use HTTP or
5107 HTTPS. It provides a library, libuhttpmock, which implements recording and
5108 playback of HTTP request/response traces.")
5109 (license license:lgpl2.1+)))
5114 (version "2012-05-31")
5118 "http://www.home.unix-ag.org/simon/woof-"
5122 "0wjmjhpg6xlid33yi59j47q2qadz20sijrqsjahj30vngz856hyq"))))
5123 (build-system trivial-build-system)
5125 '(#:modules ((guix build utils))
5128 (use-modules (guix build utils))
5129 (let* ((source (assoc-ref %build-inputs "source"))
5130 (out (assoc-ref %outputs "out"))
5131 (bin (string-append out "/bin"))
5132 (python (assoc-ref %build-inputs "python")))
5134 (with-directory-excursion bin
5135 (copy-file source "woof")
5136 (patch-shebang "woof" (list (string-append python "/bin")))
5137 (chmod "woof" #o555))
5139 (inputs `(("python" ,python-2)))
5140 (home-page "http://www.home.unix-ag.org/simon/woof.html")
5141 (synopsis "Single file web server")
5142 (description "Woof (Web Offer One File) is a small simple web server that
5143 can easily be invoked on a single file. Your partner can access the file with
5144 tools they trust (e.g. wget).")
5145 (license license:gpl2+)))
5147 (define netsurf-buildsystem
5149 (name "netsurf-buildsystem")
5154 (uri (string-append "https://download.netsurf-browser.org/libs/releases/"
5155 "buildsystem-" version ".tar.gz"))
5158 "0alsmaig9ln8dgllb3z63gq90fiz75jz0ic71fi0k0k898qix14k"))))
5159 (build-system gnu-build-system)
5160 (inputs `(("perl" ,perl)))
5162 '(#:make-flags (list (string-append "PREFIX=" %output))
5163 #:tests? #f ;no tests
5164 #:phases (modify-phases %standard-phases
5167 (home-page "https://www.netsurf-browser.org")
5168 (synopsis "Build system for the Netsurf project")
5170 "This package provides the shared build system for Netsurf project
5172 (license license:expat)))
5174 (define netsurf-buildsystem-arguments
5175 `(#:make-flags `("COMPONENT_TYPE=lib-shared"
5176 "CC=gcc" "BUILD_CC=gcc"
5177 ,(string-append "PREFIX=" %output)
5178 ,(string-append "NSSHARED="
5179 (assoc-ref %build-inputs
5180 "netsurf-buildsystem")
5181 "/share/netsurf-buildsystem"))
5182 #:test-target "test"
5183 #:phases (modify-phases %standard-phases
5184 (delete 'configure))))
5186 (define-public libparserutils
5188 (name "libparserutils")
5193 (uri (string-append "https://download.netsurf-browser.org/libs/releases/"
5194 name "-" version "-src.tar.gz"))
5197 "1n2794y2l0c8nv8z2pxwfnbn882987ifmxjv60zdxkhcndhswarj"))))
5198 (build-system gnu-build-system)
5200 `(("netsurf-buildsystem" ,netsurf-buildsystem)
5201 ("pkg-config" ,pkg-config)
5202 ("perl" ,perl))) ;for test harness
5203 (arguments netsurf-buildsystem-arguments)
5204 (home-page "https://www.netsurf-browser.org/projects/libparserutils/")
5205 (synopsis "Parser building library")
5207 "LibParserUtils is a library for building efficient parsers, written in
5208 C. It is developed as part of the NetSurf project.")
5209 (license license:expat)))
5211 (define-public hubbub
5218 (uri (string-append "https://download.netsurf-browser.org/libs/releases/"
5219 "libhubbub-" version "-src.tar.gz"))
5222 "1dimfyblmym98qa1b80c5jslv2zk8r44xbdrgrsrw1n9wr9y4yly"))
5223 (patches (search-patches "hubbub-sort-entities.patch"))))
5224 (build-system gnu-build-system)
5226 `(("netsurf-buildsystem" ,netsurf-buildsystem)
5227 ("pkg-config" ,pkg-config)
5228 ("doxygen" ,doxygen)
5229 ("json-c" ,json-c-0.12) ; check whether json-c-0.12 can be removed
5232 `(("libparserutils" ,libparserutils))) ;for libhubbub.pc
5233 (arguments netsurf-buildsystem-arguments)
5234 (home-page "https://www.netsurf-browser.org/projects/hubbub/")
5235 (synopsis "HTML5 compliant parsing library")
5237 "Hubbub is an HTML5 compliant parsing library, written in C, which can
5238 parse both valid and invalid web content. It is developed as part of the
5240 (license license:expat)))
5242 (define-public ikiwiki
5245 (version "3.20200202.3")
5250 (url "git://git.ikiwiki.info/")
5252 (file-name (git-file-name name version))
5255 "0fphyqzlk9y8v9s89ypsmrnbhyymzrpc2w0liy0n4knc7kk2pabq"))
5258 ;; The POT file requires write permission during the build
5260 (chmod "po/ikiwiki.pot" #o644)
5262 (build-system perl-build-system)
5265 (modify-phases %standard-phases
5266 (add-after 'patch-source-shebangs 'patch-Makefiles
5268 (substitute* "Makefile.PL"
5269 (("SYSCONFDIR\\?=") "SYSCONFDIR?=$(PREFIX)"))
5270 (with-directory-excursion "po"
5271 (substitute* "Makefile"
5272 (("PERL5LIB=") "PERL5LIB=${PERL5LIB}:")))
5274 (add-before 'build 'set-modification-times
5275 ;; The wiki '--refresh' steps, which are executed during
5276 ;; the check phase, require recent timestamps on files in
5277 ;; the 'doc' and 'underlays' directories.
5279 (invoke "find" "doc" "underlays" "-type" "f" "-exec"
5282 (add-before 'check 'pre-check
5283 (lambda* (#:key inputs #:allow-other-keys)
5284 ;; Six tests use IPC::Run. For these tests the PERL5LIB
5285 ;; variable is needed in the runtime environment and also
5286 ;; in the search path list in the setup file.
5288 '("t/aggregate-file.t" "t/git-cgi.t" "t/git-untrusted.t"
5289 "t/passwordauth.t" "t/relativity.t" "t/wrapper-environ.t")
5290 (("(.*)\"perl\"(.*)$" _ prefix suffix)
5291 (string-append prefix "qw(env), 'PERL5LIB='.$ENV{PERL5LIB}"
5292 ", qw(perl)" suffix))
5293 (("(.*) PERL5LIB=(.*) perl(.*)$" _ prefix middle suffix)
5294 (string-append prefix "), 'PERL5LIB='.$ENV{PERL5LIB}.':"
5295 middle "', qw(perl" suffix))
5296 (("(.*)setup(.* )getcwd(.*)$" _ prefix middle suffix)
5297 (string-append prefix "setup" middle
5298 "$ENV{PERL5LIB}.':'.getcwd" suffix))
5299 (("^ENV(.*): '(.*)$" _ middle suffix)
5300 (string-append "ENV" middle
5301 ": '$ENV{PERL5LIB}:" suffix)))
5302 ;; XDG_DATA_DIRS is needed by the podcast.t test.
5303 (setenv "XDG_DATA_DIRS"
5304 (string-append (assoc-ref inputs "shared-mime-info")
5306 ;; CC is needed by IkiWiki/Wrapper.pm.
5309 (add-after 'install 'wrap-programs
5310 (lambda* (#:key outputs #:allow-other-keys)
5311 (let* ((out (assoc-ref outputs "out"))
5312 (bin (string-append out "/bin/"))
5313 (path (getenv "PERL5LIB")))
5314 (for-each (lambda (file)
5316 `("PERL5LIB" ":" prefix (,path))))
5321 ("gettext" ,gettext-minimal)
5322 ("subversion" ,subversion)
5326 ("mercurial" ,mercurial)))
5328 `(("python" ,python-wrapper)
5329 ("perl-authen-passphrase" ,perl-authen-passphrase)
5330 ("perl-cgi-simple" ,perl-cgi-simple)
5331 ("perl-db-file" ,perl-db-file)
5332 ("perl-file-mimeinfo" ,perl-file-mimeinfo)
5333 ("perl-html-tagset" ,perl-html-tagset)
5334 ("perl-image-magick" ,perl-image-magick)
5335 ("perl-ipc-run" ,perl-ipc-run)
5336 ("perl-lwpx-paranoidagent" ,perl-lwpx-paranoidagent)
5337 ("perl-xml-feed" ,perl-xml-feed)
5338 ("perl-xml-sax" ,perl-xml-sax)
5339 ("perl-xml-twig" ,perl-xml-twig)
5340 ("perl-yaml-tiny" ,perl-yaml-tiny)
5343 `(("perl-cgi-formbuilder" ,perl-cgi-formbuilder)
5344 ("perl-cgi-session" ,perl-cgi-session)
5345 ("perl-html-parser" ,perl-html-parser)
5346 ("perl-html-scrubber" ,perl-html-scrubber)
5347 ("perl-html-template" ,perl-html-template)
5348 ("perl-json" ,perl-json)
5349 ("perl-mail-sendmail" ,perl-mail-sendmail)
5350 ("perl-text-markdown-discount" ,perl-text-markdown-discount)
5351 ("perl-timedate" ,perl-timedate)
5352 ("perl-uri" ,perl-uri)
5353 ("perl-xml-simple" ,perl-xml-simple)
5354 ("perl-yaml-libyaml" ,perl-yaml-libyaml)))
5355 (home-page "https://ikiwiki.info/")
5356 (synopsis "Wiki compiler, capable of generating HTML")
5358 "Ikiwiki is a wiki compiler, capable of generating a static set of web
5359 pages, but also incorporating dynamic features like a web based editor and
5361 (license license:gpl2+)))
5363 (define-public libwapcaplet
5365 (name "libwapcaplet")
5370 (uri (string-append "https://download.netsurf-browser.org/libs/releases/"
5371 "libwapcaplet-" version "-src.tar.gz"))
5374 "0p0c2q9lsj4vs97aa7vjllfhw33zv3dpysdkjblzhib6dpfs2alv"))))
5375 (build-system gnu-build-system)
5377 `(("netsurf-buildsystem" ,netsurf-buildsystem)
5378 ("pkg-config" ,pkg-config)
5379 ("check" ,check-0.14))) ;for tests
5380 (arguments netsurf-buildsystem-arguments)
5381 (home-page "https://www.netsurf-browser.org/projects/libwapcaplet/")
5382 (synopsis "String internment library")
5384 "LibWapcaplet provides a reference counted string internment system
5385 designed to store small strings and allow rapid comparison of them. It is
5386 developed as part of the Netsurf project.")
5387 (license license:expat)))
5389 (define-public libcss
5396 (uri (string-append "https://download.netsurf-browser.org/libs/releases/"
5397 "libcss-" version "-src.tar.gz"))
5400 "1p66sdiiqm7w4jkq23hsf08khsnmq93hshh9f9m8sbirjdpf3p6j"))
5401 (modules '((guix build utils)))
5404 ;; This can be removed with the next release.
5405 (substitute* "src/select/computed.c"
5406 (("css_unit unit;") "css_unit unit = CSS_UNIT_PX;"))))))
5407 (build-system gnu-build-system)
5409 `(("netsurf-buildsystem" ,netsurf-buildsystem)
5410 ("pkg-config" ,pkg-config)
5412 (propagated-inputs ;needed for libcss.pc
5413 `(("libparserutils" ,libparserutils)
5414 ("libwapcaplet" ,libwapcaplet)))
5415 (arguments netsurf-buildsystem-arguments)
5416 (home-page "https://www.netsurf-browser.org/projects/libcss/")
5417 (synopsis "CSS parser and selection library")
5419 "LibCSS is a CSS (Cascading Style Sheet) parser and selection engine,
5420 written in C. It is developed as part of the NetSurf project.")
5421 (license license:expat)))
5423 (define-public libdom
5430 (uri (string-append "https://download.netsurf-browser.org/libs/releases/"
5431 "libdom-" version "-src.tar.gz"))
5434 "0jpg5hx3y0mdxk5szd47dyijqimd2321brbqk2620pp5f4j0gvlq"))))
5435 (build-system gnu-build-system)
5437 `(("netsurf-buildsystem" ,netsurf-buildsystem)
5438 ("pkg-config" ,pkg-config)
5439 ("perl" ,perl) ;for test harness
5440 ("perl-libxml" ,perl-libxml)
5441 ("perl-switch" ,perl-switch)
5442 ("perl-xml-xpath" ,perl-xml-xpath)))
5444 `(("libparserutils" ,libparserutils)
5445 ("libwapcaplet" ,libwapcaplet)))
5447 `(("expat" ,expat) ;needed for headers and linking
5448 ("hubbub" ,hubbub))) ;for libdom.pc
5450 `(#:tests? #f ;TODO: re-enable. tests take a looong time.
5451 ,@netsurf-buildsystem-arguments))
5452 (home-page "https://www.netsurf-browser.org/projects/libdom/")
5453 (synopsis "Implementation of the W3C DOM")
5455 "LibDOM is an implementation of the W3C DOM, written in C. It is
5456 developed as part of the NetSurf project.")
5457 (license license:expat)))
5459 (define-public libsvgtiny
5466 (uri (string-append "https://download.netsurf-browser.org/libs/releases/"
5467 name "-" version "-src.tar.gz"))
5470 "10bpkmvfpydj74im3r6kqm9vnvgib6afy0alx71q5n0w5yawy39c"))))
5471 (build-system gnu-build-system)
5473 `(("netsurf-buildsystem" ,netsurf-buildsystem)
5474 ("pkg-config" ,pkg-config)
5475 ("gperf" ,gperf-3.0)))
5477 `(("libwapcaplet" ,libwapcaplet)))
5479 `(("libdom" ,libdom))) ;for libsvgtiny.pc
5480 (arguments netsurf-buildsystem-arguments)
5481 (home-page "https://www.netsurf-browser.org/projects/libsvgtiny/")
5482 (synopsis "Library for parsing SVG files")
5484 "Libsvgtiny takes some SVG as input and returns a list of paths and texts
5485 which can be rendered easily, as defined in
5486 @url{http://www.w3.org/TR/SVGMobile/}. It is developed as part of the NetSurf
5488 (license license:expat)))
5490 (define-public libnsbmp
5497 (uri (string-append "https://download.netsurf-browser.org/libs/releases/"
5498 name "-" version "-src.tar.gz"))
5501 "0krjg69a2amxjsahdgm3wmy9ngnyr3gfs2a1zhdlbvb0z1jr7i3r"))))
5502 (build-system gnu-build-system)
5504 `(("netsurf-buildsystem" ,netsurf-buildsystem)))
5505 (arguments netsurf-buildsystem-arguments)
5506 (home-page "https://www.netsurf-browser.org/projects/libnsbmp/")
5507 (synopsis "Decoding library for BMP and ICO files")
5509 "Libnsbmp is a decoding library for BMP and ICO image file formats,
5510 written in C. It is developed as part of the NetSurf project.")
5511 (license license:expat)))
5513 (define-public libnsgif
5520 (uri (string-append "https://download.netsurf-browser.org/libs/releases/"
5521 name "-" version "-src.tar.gz"))
5524 "0jwshypgmx16xlsbx3d8njk8a5khazlplca5mxd3rdbhrlsabbly"))))
5525 (build-system gnu-build-system)
5527 `(("netsurf-buildsystem" ,netsurf-buildsystem)))
5528 (arguments netsurf-buildsystem-arguments)
5529 (home-page "https://www.netsurf-browser.org/projects/libnsgif/")
5530 (synopsis "Decoding library for GIF files")
5532 "Libnsgif is a decoding library for the GIF image file format, written in
5533 C. It is developed as part of the NetSurf project.")
5534 (license license:expat)))
5536 (define-public libnslog
5543 (uri (string-append "https://download.netsurf-browser.org/libs/releases/"
5544 "libnslog-" version "-src.tar.gz"))
5547 "1l2k0kdv9iv18svhv360vszjavhl4g09cp8a8yb719pgsylxr67w"))))
5548 (build-system gnu-build-system)
5550 `(("netsurf-buildsystem" ,netsurf-buildsystem)
5551 ("pkg-config" ,pkg-config)
5552 ("check" ,check) ; For tests
5555 (arguments netsurf-buildsystem-arguments)
5556 (home-page "https://www.netsurf-browser.org/")
5557 (synopsis "Logging library")
5559 "Libnslog provides a category-based logging library which supports
5560 complex logging filters, multiple log levels, and provides context through to
5561 client applications. It is developed as part of the NetSurf project.")
5562 (license license:expat)))
5564 (define-public libnsutils
5571 (uri (string-append "https://download.netsurf-browser.org/libs/releases/"
5572 name "-" version "-src.tar.gz"))
5575 "1w5fyy2i60a3v3if3iqcn9sy9sycx6966rcx53v85gja6hb6a33r"))))
5576 (build-system gnu-build-system)
5578 `(("netsurf-buildsystem" ,netsurf-buildsystem)))
5579 (arguments netsurf-buildsystem-arguments)
5580 (home-page "https://www.netsurf-browser.org/")
5581 (synopsis "Utility library for NetSurf")
5583 "Libnsutils provides a small number of useful utility routines. It is
5584 developed as part of the NetSurf project.")
5585 (license license:expat)))
5587 (define-public libnspsl
5594 (uri (string-append "https://download.netsurf-browser.org/libs/releases/"
5595 "libnspsl-" version "-src.tar.gz"))
5598 "02q28n5i6fwqcz1nn167rb71k1q95mx38mfah6zi1lvqrc2q5ifk"))))
5599 (build-system gnu-build-system)
5601 `(("netsurf-buildsystem" ,netsurf-buildsystem)))
5602 (arguments netsurf-buildsystem-arguments)
5603 (home-page "https://www.netsurf-browser.org/")
5604 (synopsis "Library to generate a static Public Suffix List")
5606 "Libnspsl is a library to generate a static code representation of the
5607 Public Suffix List. It is developed as part of the NetSurf project.")
5608 (license license:expat)))
5610 (define-public nsgenbind
5617 (uri (string-append "https://download.netsurf-browser.org/libs/releases/"
5618 "nsgenbind-" version "-src.tar.gz"))
5621 "1cqwgwca49jvmijwiyaab2bwxicgxdrnlpinf8kp3nha02nm73ad"))))
5622 (build-system gnu-build-system)
5624 `(("netsurf-buildsystem" ,netsurf-buildsystem)
5628 (substitute-keyword-arguments netsurf-buildsystem-arguments
5629 ((#:make-flags flags)
5630 `(delete "COMPONENT_TYPE=lib-shared" ,flags))))
5631 (home-page "https://www.netsurf-browser.org/")
5632 (synopsis "Generate JavaScript to DOM bindings")
5634 "@code{nsgenbind} is a tool to generate JavaScript to DOM bindings from
5635 w3c webidl files and a binding configuration file.")
5636 (license license:expat)))
5638 (define-public netsurf
5645 (uri (string-append "https://download.netsurf-browser.org/netsurf/"
5646 "releases/source/netsurf-" version "-src.tar.gz"))
5649 "0plra64c5xyiw12yx2q13brxsv8apmany97zqa2lcqckw4ll8j1n"))
5650 (patches (search-patches "netsurf-system-utf8proc.patch"
5651 "netsurf-y2038-tests.patch"
5652 "netsurf-longer-test-timeout.patch"
5653 "netsurf-message-timestamp.patch"))))
5654 (build-system glib-or-gtk-build-system)
5656 `(("netsurf-buildsystem" ,netsurf-buildsystem)
5657 ("nsgenbind" ,nsgenbind)
5658 ("libidn" ,libidn) ;only for tests
5661 ("perl-html-parser" ,perl-html-parser)
5662 ("pkg-config" ,pkg-config)
5667 ("openssl" ,openssl)
5668 ("utf8proc" ,utf8proc)
5670 ("libjpeg" ,libjpeg-turbo)
5673 ("libnsbmp" ,libnsbmp)
5674 ("libnsgif" ,libnsgif)
5675 ("libnslog" ,libnslog)
5676 ("libnspsl" ,libnspsl)
5677 ("libnsutils" ,libnsutils)
5678 ("libsvgtiny" ,libsvgtiny)
5679 ("miscfiles" ,miscfiles)))
5681 `(#:make-flags `("CC=gcc" "BUILD_CC=gcc"
5683 ,(string-append "PREFIX=" %output)
5684 ,(string-append "NSSHARED="
5685 (assoc-ref %build-inputs
5686 "netsurf-buildsystem")
5687 "/share/netsurf-buildsystem"))
5688 #:test-target "test"
5689 #:modules ((ice-9 rdelim)
5693 ,@%glib-or-gtk-build-system-modules)
5695 (modify-phases %standard-phases
5697 (add-after 'build 'adjust-welcome
5699 (substitute* "frontends/gtk/res/welcome.html"
5700 ;; Close some XHTML tags.
5701 (("<(img|input)([^>]*)>" _ tag contents)
5702 (string-append "<" tag contents " />"))
5703 ;; Increase freedom.
5704 ((" open source") ", free software")
5705 ;; Prefer a more privacy-respecting default search engine.
5706 (("www.google.co.uk") "www.duckduckgo.com/html")
5707 (("Google Search") "DuckDuckGo Search")
5708 (("name=\"btnG\"") ""))
5709 ;; Remove default links so it doesn't seem we're endorsing them.
5710 (with-atomic-file-replacement "frontends/gtk/res/welcome.html"
5712 ;; Leave the DOCTYPE header as is.
5713 (display (read-line in 'concat) out)
5715 (let rec ((sxml (xml->sxml in
5716 #:default-entity-handler
5718 (string-append "<ENTITY>"
5719 (symbol->string name)
5721 ;; We'd like to use sxml-match here, but it can't
5722 ;; match against generic tag symbols...
5724 (`(div (@ (class "links")) . ,rest)
5733 (add-before 'check 'patch-check
5734 (lambda* (#:key inputs #:allow-other-keys)
5735 (substitute* '("test/bloom.c" "test/hashtable.c")
5736 (("/usr/share/dict/words")
5737 (search-input-file inputs "/share/web2")))
5739 (add-after 'install 'install-more
5740 (lambda* (#:key outputs #:allow-other-keys)
5741 (let* ((out (assoc-ref outputs "out"))
5742 (desktop (string-append out "/share/applications/"
5743 "netsurf.desktop")))
5744 (mkdir-p (dirname desktop))
5745 (copy-file "frontends/gtk/res/netsurf-gtk.desktop"
5747 (substitute* desktop
5748 (("netsurf-gtk") (string-append out "/bin/netsurf-gtk3"))
5749 (("netsurf.png") (string-append out "/share/netsurf/"
5751 (install-file "docs/netsurf-gtk.1"
5752 (string-append out "/share/man/man1/"))
5754 (home-page "https://www.netsurf-browser.org")
5755 (synopsis "Web browser")
5757 "NetSurf is a lightweight web browser that has its own layout and
5758 rendering engine entirely written from scratch. It is small and capable of
5759 handling many of the web standards in use today.")
5760 (license license:gpl2+)))
5762 (define-public surfraw
5769 (uri (string-append "https://gitlab.com/surfraw/Surfraw/uploads/"
5770 "2de827b2786ef2fe43b6f07913ca7b7f/"
5771 "surfraw-" version ".tar.gz"))
5773 (base32 "099nbif0x5cbcf18snc58nx1a3q7z0v9br9p2jiq9pcc7ic2015d"))))
5774 (build-system gnu-build-system)
5777 (modify-phases %standard-phases
5778 (add-before 'configure 'patch-perl
5779 (lambda* (#:key inputs #:allow-other-keys)
5780 (let ((perl (assoc-ref inputs "perl")))
5781 (substitute* "surfraw.IN"
5783 (string-append perl "/bin/perl -e")))
5785 (add-after 'install 'compress-elvi.1sr
5786 (lambda* (#:key outputs #:allow-other-keys)
5787 ;; The manpages of the elvis are symlinks to elvi.1sr.gz
5788 ;; but elvi.1sr does not get compressed by our manpage phase.
5789 (let* ((out (assoc-ref %outputs "out"))
5790 (man (string-append out "/share/man/man1")))
5791 (with-directory-excursion man
5792 (invoke "gzip" "elvi.1sr"))))))))
5795 ("perl-www-opensearch" ,perl-www-opensearch)
5796 ("perl-html-parser" ,perl-html-parser)
5797 ("perl-libwww" ,perl-libwww)))
5798 (synopsis "Unix command line interface to the www")
5799 (description "Surfraw (Shell Users' Revolutionary Front Rage Against the Web)
5800 provides a unix command line interface to a variety of popular www search engines
5801 and similar services.")
5802 (home-page "https://surfraw.alioth.debian.org/")
5803 (license license:public-domain)))
5805 (define-public darkhttpd
5812 (uri (string-append "https://unix4lyfe.org/darkhttpd/darkhttpd-"
5813 version ".tar.bz2"))
5816 "0185wlyx4iqiwfigp1zvql14zw7gxfacncii3d15yaxk4av1f155"))))
5817 (build-system gnu-build-system)
5819 `(#:make-flags '("CC=gcc")
5820 #:tests? #f ; No test suite
5822 (modify-phases %standard-phases
5825 (lambda* (#:key outputs #:allow-other-keys)
5826 (install-file "darkhttpd"
5827 (string-append (assoc-ref outputs "out")
5830 (synopsis "Simple static web server")
5831 (description "darkhttpd is a simple static web server. It is
5832 standalone and does not need inetd or ucspi-tcp. It does not need any
5833 config files---you only have to specify the www root.")
5834 (home-page "https://unix4lyfe.org/darkhttpd/")
5835 (license license:isc)))
5837 (define-public goaccess
5843 (uri (string-append "http://tar.goaccess.io/goaccess-"
5847 "03wp75n1krv8g643q00gcv1ikmzwwh8jjqmph0wxww1bwrw7whc8"))
5848 (modules '((guix build utils)))
5850 (substitute* "src/error.h"
5851 (("__DATE__") "\"1970-01-01\"")
5852 (("__TIME__") "\"00:00:00\""))
5854 (build-system gnu-build-system)
5856 ;; TODO: Add dependency on geoip-tools.
5858 ("ncurses" ,ncurses)))
5860 `(("pkg-config" ,pkg-config)))
5861 (home-page "https://goaccess.io")
5862 (synopsis "Analyze Web server logs in real time")
5864 "GoAccess is a real-time web log analyzer and interactive viewer that
5865 runs in a terminal or through your browser. It provides fast and valuable
5866 HTTP statistics for system administrators that require a visual server report
5868 (license license:x11)))
5870 (define-public hitch
5874 (home-page "https://hitch-tls.org/")
5877 (uri (string-append home-page "source/hitch-" version ".tar.gz"))
5880 "1i75giwyr66ip8xsvk3gg5xdbxnmcabgxz8dqi06c58mw7qzhzn9"))))
5881 (build-system gnu-build-system)
5883 `(#:phases (modify-phases %standard-phases
5884 (add-before 'check 'pre-check
5886 ;; Most tests attempts to access hitch-tls.org which is
5887 ;; unavailable in the build container. Run them against
5888 ;; a dummy local web server instead.
5889 (for-each (lambda (test)
5891 (("\\[hitch-tls\\.org\\]:80")
5892 "[localhost]:8000")))
5893 (find-files "src/tests" "\\.sh$"))
5894 (system "python3 -m http.server &")
5896 ;; The build container does not reap zombie processes,
5897 ;; causing stop_hitch to hang indefinitely while waiting
5898 ;; for the process to terminate because 'kill -0' never
5899 ;; succeeds. Use a different test to see whether the
5900 ;; process has shut down.
5901 (substitute* "src/tests/hitch_test.sh"
5902 (("kill -0 \"\\$HITCH_PID\"")
5903 "$(ps -p $HITCH_PID -o state= | grep -qv '^Z$')"))
5906 `(("pkg-config" ,pkg-config)
5912 ("python" ,python)))
5915 ("openssl" ,openssl)))
5916 (synopsis "Scalable TLS proxy")
5918 "Hitch is a performant TLS proxy based on @code{libev}. It terminates
5919 SSL/TLS connections and forwards the unencrypted traffic to a backend such
5920 as a web server. It is designed to handle many thousand connections on
5921 multicore machines.")
5922 (license license:bsd-2)))
5924 (define-public httptunnel
5931 (uri (string-append "http://www.nocrew.org/software/httptunnel/"
5932 name "-" version ".tar.gz"))
5935 "0mn5s6p68n32xzadz6ds5i6bp44dyxzkq68r1yljlv470jr84bql"))
5936 (modules '((guix build utils)))
5938 ;; Remove non-free IETF RFC documentation.
5939 (delete-file-recursively "doc")
5941 (build-system gnu-build-system)
5944 (modify-phases %standard-phases
5945 ;; The default configure phase tries to pass environment variables as
5946 ;; command-line arguments, which confuses the ./configure script.
5948 (lambda* (#:key outputs #:allow-other-keys)
5949 (let* ((out (assoc-ref outputs "out")))
5950 (setenv "CONFIG_SHELL" (which "bash"))
5951 (invoke "./configure"
5952 (string-append "--prefix=" out))))))))
5953 (home-page "http://www.nocrew.org/software/httptunnel.html")
5954 (synopsis "Tunnel data connections through HTTP requests")
5955 (description "httptunnel creates a bidirectional virtual data connection
5956 tunnelled through HTTP (HyperText Transfer Protocol) requests. This can be
5957 useful for users behind restrictive firewalls. As long as Web traffic is
5958 allowed, even through a HTTP-only proxy, httptunnel can be combined with other
5959 tools like SSH (Secure Shell) to reach the outside world.")
5960 (license license:gpl2+)))
5962 (define-public stunnel
5969 (uri (string-append "https://www.stunnel.org/downloads/stunnel-"
5972 (base32 "17yf2n47j5hw2y9527mrkx3j7q9jk5vvg46m3hgp1wg8dggpcxqk"))))
5973 (build-system gnu-build-system)
5976 `(("iproute" ,iproute)
5978 ("procps" ,procps)))
5979 (inputs `(("openssl" ,openssl)))
5982 (list (string-append "--with-ssl=" (assoc-ref %build-inputs "openssl")))
5984 (modify-phases %standard-phases
5985 (add-after 'unpack 'patch-output-directories
5987 ;; Some (not all) Makefiles have a hard-coded incorrect docdir.
5988 (substitute* (list "Makefile.in"
5990 "tools/Makefile.in")
5992 (string-append "/doc/" ,name "-" ,version)))
5994 (add-before 'check 'patch-tests
5996 (substitute* "tests/make_test"
5998 (string-append (which "sh") " ")))
5999 ;; test requires networking
6000 (delete-file "tests/recipes/055_socket_closed")
6002 (home-page "https://www.stunnel.org")
6003 (synopsis "TLS proxy for clients or servers")
6004 (description "Stunnel is a proxy designed to add TLS encryption
6005 functionality to existing clients and servers without any changes in the
6006 programs' code. Its architecture is optimized for security, portability, and
6007 scalability (including load-balancing), making it suitable for large
6009 (license license:gpl2+)))
6011 (define-public varnish
6014 (home-page "https://varnish-cache.org/")
6018 (uri (string-append home-page "_downloads/varnish-" version ".tgz"))
6021 "1dfdswri6lkfk6kml3szvffm91y49pajgqy1k5y26llqixl4r5hi"))))
6022 (build-system gnu-build-system)
6024 `(#:configure-flags (list (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib")
6025 ;; Use absolute path of GCC so it's found at runtime.
6026 (string-append "PTHREAD_CC="
6027 (assoc-ref %build-inputs "gcc")
6029 "--localstatedir=/var")
6031 (modify-phases %standard-phases
6032 (add-after 'unpack 'use-absolute-file-names
6034 (substitute* '("bin/varnishtest/vtc_varnish.c"
6035 "bin/varnishtest/vtc_process.c"
6036 "bin/varnishd/mgt/mgt_vcc.c"
6037 "bin/varnishtest/tests/u00014.vtc")
6038 (("/bin/sh") (which "sh")))
6039 (substitute* "bin/varnishd/mgt/mgt_shmem.c"
6040 (("rm -rf") (string-append (which "rm") " -rf")))
6041 (substitute* "bin/varnishtest/vtc_main.c"
6042 (("/bin/rm") (which "rm")))
6044 (add-before 'install 'patch-Makefile
6046 (substitute* "Makefile"
6047 ;; Do not create /var/varnish during install.
6048 (("^install-data-am: install-data-local") "install-data-am: "))
6050 (add-after 'install 'wrap-varnishd
6051 ;; Varnish uses GCC to compile VCL, so wrap it with required GCC
6052 ;; environment variables to avoid propagating them to profiles.
6053 (lambda* (#:key inputs outputs #:allow-other-keys)
6054 (let* ((out (assoc-ref outputs "out"))
6055 (varnishd (string-append out "/sbin/varnishd"))
6056 (PATH (string-append (assoc-ref inputs "binutils") "/bin"))
6057 (LIBRARY_PATH (string-append (assoc-ref inputs "libc") "/lib")))
6058 (wrap-program varnishd
6059 ;; Add binutils to PATH so gcc finds the 'as' executable.
6060 `("PATH" ":" prefix (,PATH))
6061 ;; Make sure 'crti.o' et.al is found.
6062 `("LIBRARY_PATH" ":" prefix (,LIBRARY_PATH)))
6065 `(("pkg-config" ,pkg-config)
6066 ("python-sphinx" ,python-sphinx)
6067 ("rst2man" ,python-docutils)))
6069 `(("jemalloc" ,jemalloc)
6070 ("ncurses" ,ncurses)
6072 ("python" ,python-wrapper)
6073 ("readline" ,readline)))
6074 (synopsis "Web application accelerator")
6076 "Varnish is a high-performance HTTP accelerator. It acts as a caching
6077 reverse proxy and load balancer. You install it in front of any server that
6078 speaks HTTP and configure it to cache the contents through an extensive
6079 configuration language.")
6080 (license (list license:bsd-2 ;main distribution
6081 license:zlib ;lib/libvgz/*
6082 license:public-domain ;bin/varnishncsa/as64.c, include/miniobj.h
6083 license:bsd-3)))) ;include/vqueue.h, lib/libvarnishcompat/daemon.c
6085 (define-public varnish-modules
6087 (name "varnish-modules")
6088 (home-page "https://github.com/varnish/varnish-modules")
6092 (uri (git-reference (url home-page) (commit version)))
6093 (file-name (git-file-name name version))
6096 "1mzkad9r4rpm1fi7j7skwrsyzzbwcapfnlvvl1ls3rng2djcqb5j"))))
6097 (build-system gnu-build-system)
6099 `(("pkg-config" ,pkg-config)
6101 ;; For bootstrapping.
6102 ("autoconf" ,autoconf)
6103 ("automake" ,automake)
6104 ("libtool" ,libtool)
6106 ;; For generating manuals.
6107 ("rst2man" ,python-docutils)))
6109 `(("python" ,python)
6110 ("varnish" ,varnish)))
6111 (synopsis "Collection of Varnish modules")
6113 "This package provides a collection of modules (@dfn{vmods}) for the Varnish
6114 cache server, extending the @acronym{VCL, Varnish Configuration Language} with
6115 additional capabilities.")
6116 (license license:bsd-2)))
6118 (define-public xinetd
6121 ;; This is the maintenance fork currently used by openSUSE and Debian.
6122 (version "2.3.15.4")
6127 (url "https://github.com/openSUSE/xinetd")
6129 (file-name (git-file-name name version))
6131 (base32 "0lrp3lcj6azhjplwxws2rx40bkyp6i6bp7n77ndcisb7ninad30q"))))
6132 (build-system gnu-build-system)
6134 `(#:configure-flags '("--with-loadavg")
6135 #:tests? #f)) ; no tests
6137 `(("autoconf" ,autoconf)
6138 ("automake" ,automake)
6139 ("libtool" ,libtool)
6140 ("pkg-config" ,pkg-config)))
6141 (home-page "https://github.com/openSUSE/xinetd")
6142 (synopsis "Internet services daemon")
6143 (description "@code{xinetd}, a more secure replacement for @code{inetd},
6144 listens for incoming requests over a network and launches the appropriate
6145 service for that request. Requests are made using port numbers as identifiers
6146 and xinetd usually launches another daemon to handle the request. It can be
6147 used to start services with both privileged and non-privileged port numbers.")
6148 (license (license:fsf-free "file://COPYRIGHT"))))
6150 (define-public tidy-html
6158 (url "https://github.com/htacg/tidy-html5")
6160 (file-name (git-file-name name version))
6163 "01k5sqwgcsr26i8031v1yr2r8qcy9a5w7sj800660haszgfbjz2f"))))
6164 (build-system cmake-build-system)
6166 "static")) ; 1.3MiB of .a files
6168 `(#:tests? #f ; no tests available
6169 #:build-type "Release"
6171 (modify-phases %standard-phases
6172 (add-after 'install 'move-static-libraries
6173 (lambda* (#:key outputs #:allow-other-keys)
6174 ;; Move static libraries to the "static" output.
6175 (let* ((out (assoc-ref outputs "out"))
6176 (lib (string-append out "/lib"))
6177 (static (assoc-ref outputs "static"))
6178 (slib (string-append static "/lib")))
6180 (for-each (lambda (file)
6181 (install-file file slib)
6183 (find-files lib "\\.a$"))
6186 `(("libxslt" ,libxslt)))
6187 (home-page "http://www.html-tidy.org/")
6188 (synopsis "HTML Tidy with HTML5 support")
6190 "Tidy is a console application which corrects and cleans up
6191 HTML and XML documents by fixing markup errors and upgrading
6192 legacy code to modern standards.
6194 Tidy also provides @code{libtidy}, a C static and dynamic library that
6195 developers can integrate into their applications to make use of the
6196 functions of Tidy.")
6197 (license license:bsd-3)))
6199 (define-public hiawatha
6206 (uri (string-append "https://www.hiawatha-webserver.org/files/"
6207 "hiawatha-" version ".tar.gz"))
6208 (modules '((guix build utils)))
6210 ;; We use packaged libraries, so delete the bundled copies.
6211 (for-each delete-file-recursively
6212 (list "extra/nghttp2.tgz" "mbedtls"))
6215 (base32 "09wpgilbv13zal71v9lbsqr8c3fignygadykpd1p1pb8blb5vn3r"))))
6216 (build-system cmake-build-system)
6218 `(#:tests? #f ; no tests included
6219 #:configure-flags (list (string-append "-DUSE_SYSTEM_MBEDTLS=on")
6220 (string-append "-DENABLE_HTTP2=on")
6221 (string-append "-DUSE_SYSTEM_NGHTTP2=on")
6222 (string-append "-DENABLE_TOMAHAWK=on")
6223 (string-append "-DLOG_DIR=/var/log/hiawatha")
6224 (string-append "-DPID_DIR=/run")
6225 (string-append "-DWEBROOT_DIR="
6226 (assoc-ref %outputs "out")
6227 "/share/hiawatha/html")
6228 (string-append "-DWORK_DIR=/var/lib/hiawatha"))
6230 (modify-phases %standard-phases
6231 (add-after 'unpack 'install-no-empty-directories
6233 (substitute* "CMakeLists.txt"
6234 (("install\\(DIRECTORY DESTINATION" match)
6235 (string-append "#" match)))
6237 (add-after 'install 'wrap
6238 (lambda* (#:key inputs outputs #:allow-other-keys)
6239 ;; Make sure 'hiawatha' finds 'mbedtls'.
6240 (let* ((out (assoc-ref outputs "out"))
6241 (sbin (string-append out "/sbin"))
6242 (mbed (assoc-ref inputs "mbedtls-apache")))
6243 (wrap-program (string-append sbin "/hiawatha")
6244 `("PATH" ":" prefix (,mbed)))))))))
6246 ;; TODO: package "hiawatha-monitor", an optional dependency of "hiawatha".
6247 `(("libxslt" ,libxslt)
6248 ("libxml2" ,libxml2)
6249 ("mbedtls-apache" ,mbedtls-for-hiawatha)
6250 ("nghttp2" ,nghttp2 "lib")
6252 (home-page "https://www.hiawatha-webserver.org")
6253 (synopsis "Webserver with focus on security")
6255 "Hiawatha has been written with security in mind.
6256 Features include the ability to stop SQL injections, XSS and CSRF attacks and
6258 (license license:gpl2)))
6260 (define-public python-httpbin
6262 (name "python-httpbin")
6267 (uri (pypi-uri "httpbin" version))
6270 "1dc92lnk846hpilslrqnr63x55cxll4qx88gif8fm521gv9cbyvr"))))
6271 (build-system python-build-system)
6273 `(("python-decorator" ,python-decorator)
6274 ("python-flask" ,python-flask)
6275 ("python-itsdangerous" ,python-itsdangerous)
6276 ("python-markupsafe" ,python-markupsafe)
6277 ("python-six" ,python-six)))
6278 (home-page "https://github.com/Runscope/httpbin")
6279 (synopsis "HTTP request and response service")
6280 (description "Testing an HTTP Library can become difficult sometimes.
6281 @code{RequestBin} is fantastic for testing POST requests, but doesn't let you control the
6282 response. This exists to cover all kinds of HTTP scenarios. All endpoint responses are
6284 (license license:isc)))
6286 (define-public python-pytest-httpbin
6288 (name "python-pytest-httpbin")
6293 (uri (pypi-uri "pytest-httpbin" version))
6296 "1y0v2v7xpzpyd4djwp7ad8ifnlxp8r1y6dfbxg5ckzvllkgridn5"))))
6297 (build-system python-build-system)
6299 `(("python-six" ,python-six)
6300 ("python-httpbin" ,python-httpbin)
6301 ("python-pytest" ,python-pytest)))
6303 "https://github.com/kevin1024/pytest-httpbin")
6305 "Test your HTTP library against a local copy of httpbin")
6307 "@code{Pytest-httpbin} creates a @code{pytest} fixture that is dependency-injected
6308 into your tests. It automatically starts up a HTTP server in a separate thread running
6309 @code{httpbin} and provides your test with the URL in the fixture.")
6310 (license license:expat)))
6312 (define-public http-parser
6313 (let ((commit "ec8b5ee63f0e51191ea43bb0c6eac7bfbff3141d")
6316 (name "http-parser")
6317 (version (git-version "2.9.4" revision commit))
6318 (home-page "https://github.com/nodejs/http-parser")
6322 (uri (git-reference (url home-page)
6325 (base32 "0f297hrbx0kvy3qwgm9rhmbnjww6iljlcz9grsc9d4km1qj1071i"))
6326 (file-name (git-file-name name version))
6329 (search-patches "http-parser-CVE-2020-8287.patch")
6332 ;; Treat an empty port (e.g. `http://hostname:/`) when parsing
6333 ;; URLs as if no port were specified. This patch is applied
6334 ;; to Fedora's http-parser and to libgit2's bundled version.
6337 "https://src.fedoraproject.org/rpms/http-parser/raw/"
6338 "e89b4c4e2874c19079a5a1a2d2ccc61b551aa289/"
6339 "f/0001-url-treat-empty-port-as-default.patch"))
6342 "0pbxf2nq9pcn299k2b2ls8ldghaqln9glnp79gi57mamx4iy0f6g"))))))
6343 (modules '((guix build utils)))
6346 ;; This assertion fails when building for i686-linux.
6347 (substitute* "test.c"
6348 (("assert\\(sizeof\\(http_parser\\) == 32\\);")
6351 (build-system gnu-build-system)
6353 `(#:test-target "test"
6355 (list (string-append "PREFIX="
6356 (assoc-ref %outputs "out"))
6358 ,@(if (%current-target-system)
6362 (modify-phases %standard-phases
6363 ,@(if (%current-target-system)
6364 '((replace 'configure
6365 (lambda* (#:key target #:allow-other-keys)
6366 (substitute* (find-files "." "Makefile")
6368 (string-append "CC=" target "-gcc\n"))
6370 (string-append "AR=" target "-ar\n")))
6372 '((delete 'configure))))))
6373 (synopsis "HTTP request/response parser for C")
6374 (description "This is a parser for HTTP messages written in C. It
6375 parses both requests and responses. The parser is designed to be used in
6376 high-performance HTTP applications. It does not make any syscalls nor
6377 allocations, it does not buffer data, it can be interrupted at anytime.
6378 Depending on your architecture, it only requires about 40 bytes of data per
6379 message stream (in a web server that is per connection).")
6380 (license license:expat))))
6382 (define-public python-httpretty
6384 (name "python-httpretty")
6389 (uri (pypi-uri "httpretty" version))
6391 (base32 "1dg0nfl7i9kjnq98ww98x2afzav4mpgiwzvjc43ily1x9my94g75"))))
6392 (build-system python-build-system)
6394 `(#:tests? #f ; Tests require network access.
6396 (modify-phases %standard-phases
6398 (lambda* (#:key tests? #:allow-other-keys)
6400 (invoke "nosetests"))
6403 `(("python-coverage" ,python-coverage)
6404 ("python-eventlet" ,python-eventlet)
6405 ("python-nose" ,python-nose)
6406 ("python-rednose" ,python-rednose)
6407 ("python-requests" ,python-requests)
6408 ("python-sure" ,python-sure)
6409 ("python-tornado" ,python-tornado)))
6410 (home-page "https://httpretty.readthedocs.io")
6411 (synopsis "HTTP client mock for Python")
6412 (description "@code{httpretty} is a helper for faking web requests,
6413 inspired by Ruby's @code{fakeweb}.")
6414 (license license:expat)))
6423 (uri (string-append "https://github.com/jpmens/jo/releases/download/"
6424 version "/jo-" version ".tar.gz"))
6426 (base32 "18jna9xlpxci3cak3z85c448zv2zr41baclgym3hk433p0p4vii4"))))
6427 (build-system gnu-build-system)
6428 (home-page "https://github.com/jpmens/jo")
6429 (synopsis "Output JSON from a shell")
6430 (description "jo is a command-line utility to create JSON objects or
6431 arrays. It creates a JSON string on stdout from words provided as
6432 command-line arguments or read from stdin.")
6433 (license (list license:gpl2+
6434 license:expat)))) ; json.c, json.h
6436 (define-public python-internetarchive
6438 (name "python-internetarchive")
6444 (url "https://github.com/jjjake/internetarchive")
6445 (commit (string-append "v" version))))
6446 (file-name (git-file-name name version))
6449 "0ih7hplv92wbv6cmgc1gs0v35qkajwicalwcq8vcljw30plr24fp"))
6450 (modules '((guix build utils)))
6453 ;; Python 3.7 removed `_pattern_type'.
6454 (for-each (lambda (file)
6457 (("^import re\n" line)
6458 (string-append line "re._pattern_type = re.Pattern\n"))))
6459 (find-files "." "\\.py$"))
6461 (build-system python-build-system)
6464 (modify-phases %standard-phases
6466 (add-after 'install 'check
6467 (lambda* (#:key inputs outputs #:allow-other-keys)
6468 (add-installed-pythonpath inputs outputs)
6469 (setenv "PATH" (string-append (assoc-ref outputs "out") "/bin"
6470 ":" (getenv "PATH")))
6471 (invoke "py.test" "-v" "-k"
6473 ;; These tests attempt to make a connection to
6474 ;; an external web service.
6475 "not test_get_item_with_kwargs"
6476 " and not test_ia")))))))
6478 `(("python-requests" ,python-requests)
6479 ("python-jsonpatch" ,python-jsonpatch-0.4)
6480 ("python-docopt" ,python-docopt)
6481 ("python-clint" ,python-clint)
6482 ("python-six" ,python-six)
6483 ("python-schema" ,python-schema-0.5)
6484 ("python-backports-csv" ,python-backports-csv)))
6486 `(("python-pytest" ,python-pytest)
6487 ("python-pytest-capturelog" ,python-pytest-capturelog)
6488 ("python-responses" ,python-responses)))
6489 (home-page "https://github.com/jjjake/internetarchive")
6490 (synopsis "Command-line interface to archive.org")
6491 (description "@code{ia} is a command-line tool for using
6492 @url{archive.org} from the command-line. It also implements the
6493 internetarchive python module for programmatic access to archive.org.")
6494 (license license:agpl3+)))
6496 (define-public python-clf
6497 (let ((commit-test-clf "d01d25923c599d3261910f79fb948825b4270d07")) ; 0.5.7
6504 (uri (pypi-uri "clf" version))
6507 "0zlkzqnpz7a4iavsq5vaz0nf5nr7qm5znpg1vlpz6rwnx6hikjdb"))))
6508 (build-system python-build-system)
6510 `(("python-docopt" ,python-docopt)
6511 ("python-pygments" ,python-pygments)
6512 ("python-requests" ,python-requests)
6513 ("python-nose" ,python-nose)
6514 ("python-lxml" ,python-lxml)
6515 ("python-pyaml" ,python-pyaml)))
6520 (uri (string-append "https://raw.githubusercontent.com"
6521 "/ncrocfer/clf/" commit-test-clf
6525 "19lr5zdzsmxgkg7wrjq1yzkiahd03wi4k3dskssyhmjls8c10nqd"))))))
6528 (modify-phases %standard-phases
6529 (add-after 'unpack 'get-tests
6531 (copy-file (assoc-ref %build-inputs "test-clf") "test_clf.py")
6536 ;; These tests require an Internet connection.
6537 "--exclude=test_browse"
6538 "--exclude=test_command"
6539 "--exclude=test_search"))))))
6540 (home-page "https://github.com/ncrocfer/clf")
6541 (synopsis "Search code snippets on @url{https://commandlinefu.com}")
6542 (description "@code{clf} is a command line tool for searching code
6543 snippets on @url{https://commandlinefu.com}.")
6544 (license license:expat))))
6546 (define-public python2-clf
6547 (package-with-python2 python-clf))
6549 (define-public rss-bridge
6552 (version "2020-11-10")
6557 (url "https://github.com/RSS-Bridge/rss-bridge")
6559 (file-name (git-file-name name version))
6561 (base32 "1mir6mcm37sbdrhl5kgs6schpp3l4r5mfamhiic0yfbz4hqwmg44"))))
6562 (build-system copy-build-system)
6565 '(("." "share/rss-bridge"))
6567 (modify-phases %standard-phases
6568 ;;Change paths to not use source directory.
6569 (add-before 'install 'patch-paths
6571 (substitute* "lib/rssbridge.php"
6572 (("PATH_ROOT . 'cache/'")
6573 "'/var/cache/rss-bridge/'")
6574 (("PATH_ROOT . 'whitelist.txt'")
6575 "'/etc/rss-bridge/whitelist.txt'")
6576 (("PATH_ROOT . 'config.ini.php'")
6577 "'/etc/rss-bridge/config.ini.php'")))))))
6578 (home-page "https://github.com/RSS-Bridge/rss-bridge")
6579 (synopsis "Generate Atom feeds for social networking websites")
6580 (description "rss-bridge generates Atom feeds for social networking
6581 websites lacking feeds. Supported websites include Facebook, Twitter,
6582 Instagram and YouTube.")
6583 (license (list license:public-domain
6584 license:expat)))) ; vendor/simplehtmldom/simple_html_dom.php
6586 (define-public linkchecker
6588 (name "linkchecker")
6594 (url "https://github.com/linkchecker/linkchecker")
6595 (commit (string-append "v" version))))
6596 (file-name (git-file-name name version))
6599 "1j97dc9a4yhpscwadhv5dxp7036pnrxiaky18l8ddr3pvxdjvkxs"))))
6600 (build-system python-build-system)
6602 `(("python-beautifulsoup4" ,python-beautifulsoup4)
6603 ("python-dnspython" ,python-dnspython)
6604 ("python-pyxdg" ,python-pyxdg)
6605 ("python-requests" ,python-requests)))
6607 `(("gettext" ,gettext-minimal)
6608 ("python-pytest" ,python-pytest)
6609 ("python-miniboa" ,python-miniboa)
6610 ("python-parameterized" ,python-parameterized)))
6613 (modify-phases %standard-phases
6615 (lambda* (#:key tests? #:allow-other-keys)
6617 (invoke "py.test" "tests")))))))
6618 (home-page "https://linkchecker.github.io/linkchecker/")
6619 (synopsis "Check websites for broken links")
6620 (description "LinkChecker is a website validator. It checks for broken
6621 links in websites. It is recursive and multithreaded providing output in
6622 colored or normal text, HTML, SQL, CSV, XML or as a sitemap graph. It
6623 supports checking HTTP/1.1, HTTPS, FTP, mailto, news, nntp, telnet and local
6625 (license (list license:gpl2+
6626 license:bsd-2 ; linkcheck/better_exchook2.py
6627 license:bsd-3 ; linkcheck/colorama.py
6628 license:psfl ; linkcheck/gzip2.py
6629 license:expat)))) ; linkcheck/mem.py
6631 (define-public castor
6639 (url "https://git.sr.ht/~julienxx/castor")
6641 (file-name (git-file-name name version))
6643 (base32 "0rwg1w7srjwa23mkypl8zk6674nhph4xsc6nc01f6g5k959szylr"))))
6644 (build-system cargo-build-system)
6647 (("rust-ansi-parser" ,rust-ansi-parser-0.6)
6648 ("rust-dirs" ,rust-dirs-2)
6649 ("rust-gdk" ,rust-gdk-0.13)
6650 ("rust-gtk" ,rust-gtk-0.8)
6651 ("rust-linkify" ,rust-linkify-0.4)
6652 ("rust-native-tls" ,rust-native-tls-0.2)
6653 ("rust-open" ,rust-open-1)
6654 ("rust-percent-encoding" ,rust-percent-encoding-2)
6655 ("rust-url" ,rust-url-2))))
6657 `(("pkg-config" ,pkg-config)))
6661 ("gdk-pixbuf" ,gdk-pixbuf)
6663 ("libressl" ,libressl)
6665 (home-page "https://git.sr.ht/~julienxx/castor")
6666 (synopsis "Graphical client for plain-text protocols")
6668 "Castor is a graphical client for plain-text protocols written in
6669 Rust with GTK. It currently supports the Gemini, Gopher and Finger
6671 (license license:expat)))
6673 (define-public python-py-ubjson
6675 (name "python-py-ubjson")
6680 (uri (pypi-uri "py-ubjson" version))
6683 "03l9m9w5ip4hw0y69wlys5gzsfb7zcq3a77blj88grgiqhn5vm5n"))))
6684 (build-system python-build-system)
6685 (home-page "https://github.com/Iotic-Labs/py-ubjson")
6686 (synopsis "Universal Binary JSON encoder/decoder")
6688 "Py-ubjson is a Python module providing an Universal Binary JSON
6689 encoder/decoder based on the draft-12 specification for UBJSON.")
6690 (license license:asl2.0)))
6692 (define-public java-tomcat
6694 (name "java-tomcat")
6698 (uri (string-append "mirror://apache/tomcat/tomcat-8/v"
6699 version "/src/apache-tomcat-" version "-src.tar.gz"))
6702 "1wr6mpgbk2gs18vp8mdggiq6vifj68a875dd1fkdf7cs31q54rns"))
6703 (modules '((guix build utils)))
6704 ;; Delete bundled jars.
6707 (for-each delete-file (find-files "." "\\.jar$"))
6708 (for-each delete-file (find-files "." "\\.bat$"))
6710 (build-system ant-build-system)
6712 `(("java-commons-daemon" ,java-commons-daemon)
6713 ("java-ecj" ,java-ecj)))
6715 `(#:build-target "deploy"
6716 #:tests? #f; requires downloading some files.
6718 (modify-phases %standard-phases
6719 (add-after 'unpack 'prevent-download
6721 ;; This directory must exist
6723 ;; We patch build.xml so it doesn't download any dependency, because
6724 ;; we already have all of them.
6725 (substitute* "build.xml"
6726 (("download-compile,") "")
6727 (("depends=\"validate\"") "depends=\"build-prepare\"")
6728 ((",download-validate") ""))
6730 (add-after 'unpack 'strip-timestamps
6732 (substitute* "build.xml"
6733 (("<filter token=\"YEAR\" value=.*")
6734 "<filter token=\"YEAR\" value=\"1970\"/>")
6735 (("<filter token=\"VERSION_BUILT\" value=.*")
6736 "<filter token=\"VERSION_BUILT\" value=\"Jan 1 1970 00:00:00 UTC\"/>"))
6738 (add-after 'unpack 'modify-deploy
6740 ;; The Tomcat build downloads and copies these files to the
6741 ;; bin and lib directory.
6742 ;; We instead symlink to the input (see below).
6743 (substitute* "build.xml"
6744 (("<copy tofile=\"\\$\\{tomcat.build\\}/bin/commons-daemon.jar.*") "")
6745 (("<copy file=\"\\$\\{jdt.jar\\}\" todir=\"\\$\\{tomcat.build\\}/lib\"/>")
6748 (add-after 'install 'symlink-commons-daemon
6749 (lambda* (#:key inputs outputs #:allow-other-keys)
6750 (let* ((commons-daemon (assoc-ref inputs "java-commons-daemon"))
6751 (files (find-files commons-daemon "commons-daemon-.*\\.jar"))
6752 (daemon-jar (car files))
6753 (out-bin (string-append (assoc-ref outputs "out") "/bin"))
6754 (target (string-append out-bin "/commons-daemon.jar")))
6755 (symlink daemon-jar target)
6757 (add-after 'install 'symlink-java-ecj
6758 (lambda* (#:key inputs outputs #:allow-other-keys)
6759 (let* ((java-ecj (assoc-ref inputs "java-ecj"))
6760 (files (find-files java-ecj "ecj.*\\.jar"))
6761 (java-ecj-jar (car files))
6762 (out-lib (string-append (assoc-ref outputs "out") "/lib"))
6763 (target (string-append out-lib "/java-ecj.jar")))
6764 (symlink java-ecj-jar target)
6766 (add-after 'unpack 'generate-properties
6768 ;; This could have been passed to make-flags, but getcwd returns
6769 ;; a different directory then.
6770 (with-output-to-file "build.properties"
6773 (string-append "base.path=" (getcwd) "/downloads\n"))))
6776 (lambda* (#:key outputs #:allow-other-keys)
6777 (let ((out (assoc-ref outputs "out")))
6778 (copy-recursively "output/build" out))
6780 (properties '((cpe-name . "tomcat")))
6781 (home-page "https://tomcat.apache.org")
6782 (synopsis "Java Servlet, JavaServer Pages, Java Expression Language and Java
6784 (description "Apache Tomcat is a free implementation of the Java
6785 Servlet, JavaServer Pages, Java Expression Language and Java WebSocket
6787 (license license:asl2.0)))
6789 (define-public java-eclipse-jetty-test-helper
6791 (name "java-eclipse-jetty-test-helper")
6796 (url "https://github.com/eclipse/jetty.toolchain/")
6797 (commit (string-append "jetty-test-helper-" version))))
6798 (file-name (git-file-name name version))
6801 "1g7cdh03nfwbdxzvwm84ysgvw08xx7431lsjryj2gmf3lrqpizgb"))))
6802 (build-system ant-build-system)
6804 `(#:jar-name "eclipse-jetty-test-helper.jar"
6805 #:source-dir "src/main/java"
6806 #:test-dir "src/test"
6809 (modify-phases %standard-phases
6810 (add-before 'configure 'chdir
6812 (chdir "jetty-test-helper")
6814 (add-before 'build 'fix-paths
6817 ;; This file assumes that the build directory is named "target"
6818 ;; but it is not the case with our ant-build-system. Once we have
6819 ;; maven though, we will have to rebuild this package because this
6820 ;; assumption is correct with maven-build-system.
6822 "src/main/java/org/eclipse/jetty/toolchain/test/MavenTestingUtils.java"
6823 (("\"target\"") "\"build\"")
6824 (("\"tests\"") "\"test-classes\""))
6825 ;; Tests assume we are building with maven, so that the build
6826 ;; directory is named "target", and not "build".
6827 (with-directory-excursion "src/test/java/org/eclipse/jetty/toolchain/test"
6828 (substitute* '("FSTest.java" "OSTest.java" "TestingDirTest.java"
6829 "MavenTestingUtilsTest.java")
6830 (("target/tests") "build/test-classes")
6831 (("\"target") "\"build")))
6834 `(("junit" ,java-junit)
6835 ("hamcrest" ,java-hamcrest-all)))
6836 (home-page "https://www.eclipse.org/jetty/")
6837 (synopsis "Helper classes for jetty tests")
6838 (description "This package contains helper classes for testing the Jetty
6840 ;; This program is licensed under both epl and asl.
6841 (license (list license:epl1.0 license:asl2.0))))
6843 (define-public java-eclipse-jetty-perf-helper
6845 (inherit java-eclipse-jetty-test-helper)
6846 (name "java-eclipse-jetty-perf-helper")
6848 `(#:jar-name "eclipse-jetty-perf-helper.jar"
6849 #:source-dir "src/main/java"
6850 #:tests? #f; no tests
6853 (modify-phases %standard-phases
6854 (add-before 'configure 'chdir
6856 (chdir "jetty-perf-helper")
6859 `(("hdrhistogram" ,java-hdrhistogram)))))
6861 (define-public java-eclipse-jetty-util
6863 (name "java-eclipse-jetty-util")
6867 (uri (string-append "https://github.com/eclipse/jetty.project/"
6868 "archive/jetty-" version ".v20210325.tar.gz"))
6871 "0b4hy4zmdmfbqk9bzmxk7v75y2ysqiappkip4z3hb9lxjvjh0b19"))))
6872 (build-system ant-build-system)
6874 `(#:jar-name "eclipse-jetty-util.jar"
6875 #:source-dir "src/main/java"
6876 #:tests? #f; require junit 5
6878 (list "**/Abstract*.java"
6880 "**/InetAddressSetTest.java"
6881 ;; Assumes we are using maven
6882 "**/TypeUtilTest.java"
6883 ;; Error on the style of log
6884 "**/StdErrLogTest.java")
6887 (modify-phases %standard-phases
6888 (add-before 'configure 'chdir
6890 (chdir "jetty-util")
6893 `(("slf4j" ,java-slf4j-api)
6894 ("servlet" ,java-javaee-servletapi)))
6895 (home-page "https://www.eclipse.org/jetty/")
6896 (synopsis "Utility classes for Jetty")
6897 (description "The Jetty Web Server provides an HTTP server and Servlet
6898 container capable of serving static and dynamic content either from a standalone
6899 or embedded instantiation. This package provides utility classes.")
6900 (license (list license:epl1.0 license:asl2.0))))
6902 ;; This version is required by maven-wagon
6903 (define-public java-eclipse-jetty-util-9.2
6905 (inherit java-eclipse-jetty-util)
6909 (uri (string-append "https://github.com/eclipse/jetty.project/"
6910 "archive/jetty-" version ".v20170606.tar.gz"))
6913 "1i51qlsd7h06d35kx5rqpzbfadbcszycx1iwr6vz7qc9gf9f29la"))))
6915 `(#:jar-name "eclipse-jetty-util.jar"
6916 #:source-dir "src/main/java"
6919 (list "**/Abstract*.java"
6921 "**/InetAddressSetTest.java"
6922 ;; Assumes we are using maven
6923 "**/TypeUtilTest.java"
6924 ;; We don't have an implementation for slf4j
6926 ;; Error on the style of log
6927 "**/StdErrLogTest.java")
6929 (modify-phases %standard-phases
6930 (add-before 'configure 'chdir
6932 (chdir "jetty-util")
6934 (add-before 'build 'fix-test-sources
6936 ;; We need to fix issues caused by changes in newer versions of
6937 ;; jetty-test-helper
6938 (let ((src "src/test/java/org/eclipse/jetty/util/resource"))
6939 (substitute* (string-append src "/AbstractFSResourceTest.java")
6940 (("testdir.getDir\\(\\)") "testdir.getPath().toFile()")
6941 (("testdir.getFile\\(\"foo\"\\)")
6942 "testdir.getPathFile(\"foo\").toFile()")
6943 (("testdir.getFile\\(name\\)")
6944 "testdir.getPathFile(name).toFile()")))
6947 `(("java-junit" ,java-junit)
6948 ("java-hamcrest-all" ,java-hamcrest-all)
6949 ("perf-helper" ,java-eclipse-jetty-perf-helper)
6950 ("test-helper" ,java-eclipse-jetty-test-helper)))))
6952 (define-public java-eclipse-jetty-io
6954 (inherit java-eclipse-jetty-util)
6955 (name "java-eclipse-jetty-io")
6957 `(#:jar-name "eclipse-jetty-io.jar"
6958 #:source-dir "src/main/java"
6960 #:tests? #f; require junit 5
6961 #:test-exclude (list "**/Abstract*.java"
6963 "**/EndPointTest.java")
6965 (modify-phases %standard-phases
6966 (add-before 'configure 'chdir
6971 `(("slf4j" ,java-slf4j-api)
6972 ("servlet" ,java-javaee-servletapi)
6973 ("util" ,java-eclipse-jetty-util)))
6974 (synopsis "Jetty :: IO Utility")
6975 (description "The Jetty Web Server provides an HTTP server and Servlet
6976 container capable of serving static and dynamic content either from a standalone
6977 or embedded instantiation. This package provides IO-related utility classes.")))
6979 (define-public java-eclipse-jetty-io-9.2
6981 (inherit java-eclipse-jetty-io)
6982 (version (package-version java-eclipse-jetty-util-9.2))
6983 (source (package-source java-eclipse-jetty-util-9.2))
6985 `(("util" ,java-eclipse-jetty-util-9.2)
6986 ,@(package-inputs java-eclipse-jetty-util-9.2)))
6988 `(("mockito" ,java-mockito-1)
6989 ("cglib" ,java-cglib)
6990 ("objenesis" ,java-objenesis)
6992 ,@(package-native-inputs java-eclipse-jetty-util-9.2)))))
6994 (define-public java-eclipse-jetty-http
6996 (inherit java-eclipse-jetty-util)
6997 (name "java-eclipse-jetty-http")
6999 `(#:jar-name "eclipse-jetty-http.jar"
7000 #:source-dir "src/main/java"
7002 #:tests? #f; require junit 5
7004 (modify-phases %standard-phases
7005 (add-before 'configure 'chdir
7007 (chdir "jetty-http")
7009 (add-before 'build 'copy-resources
7011 (mkdir-p "build/classes")
7012 (copy-recursively "src/main/resources/" "build/classes/")
7015 `(("slf4j" ,java-slf4j-api)
7016 ("servlet" ,java-javaee-servletapi)
7017 ("io" ,java-eclipse-jetty-io)
7018 ("util" ,java-eclipse-jetty-util)))
7019 (synopsis "Jetty :: Http Utility")
7020 (description "The Jetty Web Server provides an HTTP server and Servlet
7021 container capable of serving static and dynamic content either from a standalone
7022 or embedded instantiation. This package provides HTTP-related utility classes.")))
7024 (define-public java-eclipse-jetty-http-9.2
7026 (inherit java-eclipse-jetty-http)
7027 (version (package-version java-eclipse-jetty-util-9.2))
7028 (source (package-source java-eclipse-jetty-util-9.2))
7030 `(("util" ,java-eclipse-jetty-util-9.2)
7031 ("io" ,java-eclipse-jetty-io-9.2)
7032 ,@(package-inputs java-eclipse-jetty-util-9.2)))))
7034 (define-public java-eclipse-jetty-jmx
7036 (inherit java-eclipse-jetty-util)
7037 (name "java-eclipse-jetty-jmx")
7039 `(#:jar-name "eclipse-jetty-jmx.jar"
7040 #:source-dir "src/main/java"
7042 #:tests? #f; FIXME: requires com.openpojo.validation
7044 (modify-phases %standard-phases
7045 (add-before 'configure 'chdir
7050 `(("slf4j" ,java-slf4j-api)
7051 ("servlet" ,java-javaee-servletapi)
7052 ("util" ,java-eclipse-jetty-util)))
7053 (synopsis "Jetty :: JMX Management")
7054 (description "The Jetty Web Server provides an HTTP server and Servlet
7055 container capable of serving static and dynamic content either from a standalone
7056 or embedded instantiation. This package provides the JMX management.")))
7058 (define-public java-eclipse-jetty-jmx-9.2
7060 (inherit java-eclipse-jetty-jmx)
7061 (version (package-version java-eclipse-jetty-util-9.2))
7062 (source (package-source java-eclipse-jetty-util-9.2))
7064 `(("util" ,java-eclipse-jetty-util-9.2)
7065 ,@(package-inputs java-eclipse-jetty-util-9.2)))))
7067 (define java-eclipse-jetty-http-test-classes
7069 (inherit java-eclipse-jetty-util)
7070 (name "java-eclipse-jetty-http-test-classes")
7072 `(#:jar-name "eclipse-jetty-http.jar"
7073 #:source-dir "src/test"
7077 (modify-phases %standard-phases
7078 (add-before 'configure 'chdir
7080 (chdir "jetty-http")
7083 `(("slf4j" ,java-slf4j-api)
7084 ("java-javaee-servletapi" ,java-javaee-servletapi)
7085 ("http" ,java-eclipse-jetty-http)
7086 ("io" ,java-eclipse-jetty-io)
7087 ("util" ,java-eclipse-jetty-util)))))
7089 (define java-eclipse-jetty-http-test-classes-9.2
7091 (inherit java-eclipse-jetty-http-test-classes)
7092 (version (package-version java-eclipse-jetty-util-9.2))
7093 (source (package-source java-eclipse-jetty-util-9.2))
7095 `(("http" ,java-eclipse-jetty-http-9.2)
7096 ,@(package-inputs java-eclipse-jetty-http-9.2)))
7097 (native-inputs (package-native-inputs java-eclipse-jetty-util-9.2))))
7099 (define-public java-eclipse-jetty-server
7101 (inherit java-eclipse-jetty-util)
7102 (name "java-eclipse-jetty-server")
7104 `(#:jar-name "eclipse-jetty-server.jar"
7105 #:source-dir "src/main/java"
7107 #:tests? #f; requires a mockito version we don't have
7109 (modify-phases %standard-phases
7110 (add-before 'configure 'chdir
7112 (chdir "jetty-server")
7114 (add-before 'build 'fix-source
7116 ;; Explicit casts to prevent build failures
7117 (substitute* "src/main/java/org/eclipse/jetty/server/Request.java"
7118 (("append\\(LazyList")
7119 "append((CharSequence)LazyList"))
7121 "src/main/java/org/eclipse/jetty/server/handler/ContextHandler.java"
7123 "Class<\\? extends EventListener> clazz = _classLoader==null"
7124 "\\?Loader.loadClass\\(ContextHandler.class,className\\):"
7125 "_classLoader.loadClass\\(className\\);"))
7126 (string-append "Class<? extends EventListener> clazz = "
7127 "(Class<? extends EventListener>) "
7128 "(_classLoader==null?Loader.loadClass("
7129 "ContextHandler.class,className):"
7130 "_classLoader.loadClass(className));")))
7133 `(("slf4j" ,java-slf4j-api)
7134 ("servlet" ,java-javaee-servletapi)
7135 ("http" ,java-eclipse-jetty-http)
7136 ("io" ,java-eclipse-jetty-io)
7137 ("jmx" ,java-eclipse-jetty-jmx)
7138 ("util" ,java-eclipse-jetty-util)))
7139 (synopsis "Core jetty server artifact")
7140 (description "The Jetty Web Server provides an HTTP server and Servlet
7141 container capable of serving static and dynamic content either from a standalone
7142 or embedded instantiation. This package provides the core jetty server
7145 (define-public java-eclipse-jetty-server-9.2
7147 (inherit java-eclipse-jetty-server)
7148 (version (package-version java-eclipse-jetty-util-9.2))
7149 (source (package-source java-eclipse-jetty-util-9.2))
7151 `(("util" ,java-eclipse-jetty-util-9.2)
7152 ("jmx" ,java-eclipse-jetty-jmx-9.2)
7153 ("io" ,java-eclipse-jetty-io-9.2)
7154 ("http" ,java-eclipse-jetty-http-9.2)
7155 ,@(package-inputs java-eclipse-jetty-util-9.2)))
7157 `(("test-classes" ,java-eclipse-jetty-http-test-classes-9.2)
7158 ,@(package-native-inputs java-eclipse-jetty-util-9.2)))))
7160 (define-public java-eclipse-jetty-security
7162 (inherit java-eclipse-jetty-util)
7163 (name "java-eclipse-jetty-security")
7165 `(#:jar-name "eclipse-jetty-security.jar"
7166 #:source-dir "src/main/java"
7168 #:tests? #f; require junit 5
7169 #:test-exclude (list "**/ConstraintTest.*") ; This test fails
7171 (modify-phases %standard-phases
7172 (add-before 'configure 'chdir
7174 (chdir "jetty-security")
7177 `(("slf4j" ,java-slf4j-api)
7178 ("servlet" ,java-javaee-servletapi)
7179 ("http" ,java-eclipse-jetty-http)
7180 ("server" ,java-eclipse-jetty-server)
7181 ("util" ,java-eclipse-jetty-util)))
7182 (synopsis "Jetty security infrastructure")
7183 (description "The Jetty Web Server provides an HTTP server and Servlet
7184 container capable of serving static and dynamic content either from a standalone
7185 or embedded instantiation. This package provides the core jetty security
7188 (define-public java-eclipse-jetty-security-9.2
7190 (inherit java-eclipse-jetty-security)
7191 (version (package-version java-eclipse-jetty-util-9.2))
7192 (source (package-source java-eclipse-jetty-util-9.2))
7194 `(("util" ,java-eclipse-jetty-util-9.2)
7195 ("http" ,java-eclipse-jetty-http-9.2)
7196 ("server" ,java-eclipse-jetty-server-9.2)
7197 ,@(package-inputs java-eclipse-jetty-util-9.2)))
7199 `(("io" ,java-eclipse-jetty-io-9.2)
7200 ,@(package-native-inputs java-eclipse-jetty-util-9.2)))))
7202 (define-public java-eclipse-jetty-util-ajax
7204 (inherit java-eclipse-jetty-util)
7205 (name "java-eclipse-jetty-util-ajax")
7207 `(#:jar-name "eclipse-jetty-util-ajax.jar"
7208 #:source-dir "jetty-util-ajax/src/main/java"
7209 #:tests? #f)); require junit 5
7211 `(("java-eclipse-jetty-util" ,java-eclipse-jetty-util)
7212 ("java-javaee-servletapi" ,java-javaee-servletapi)))))
7214 (define-public java-eclipse-jetty-servlet
7216 (inherit java-eclipse-jetty-util)
7217 (name "java-eclipse-jetty-servlet")
7219 `(#:jar-name "eclipse-jetty-servlet.jar"
7220 #:source-dir "src/main/java"
7222 #:tests? #f; require junit 5
7224 (modify-phases %standard-phases
7225 (add-before 'configure 'chdir
7227 (chdir "jetty-servlet")
7230 `(("slf4j" ,java-slf4j-api)
7231 ("java-javaee-servletapi" ,java-javaee-servletapi)
7232 ("java-eclipse-jetty-util-ajax" ,java-eclipse-jetty-util-ajax)
7233 ("http" ,java-eclipse-jetty-http)
7234 ("io" ,java-eclipse-jetty-io)
7235 ("jmx" ,java-eclipse-jetty-jmx)
7236 ("security" ,java-eclipse-jetty-security)
7237 ("server" ,java-eclipse-jetty-server)
7238 ("util" ,java-eclipse-jetty-util)))
7239 (synopsis "Jetty Servlet Container")
7240 (description "The Jetty Web Server provides an HTTP server and Servlet
7241 container capable of serving static and dynamic content either from a standalone
7242 or embedded instantiation. This package provides the core jetty servlet
7245 (define-public java-eclipse-jetty-servlet-9.2
7247 (inherit java-eclipse-jetty-servlet)
7248 (version (package-version java-eclipse-jetty-util-9.2))
7249 (source (package-source java-eclipse-jetty-util-9.2))
7251 `(#:jar-name "eclipse-jetty-servlet.jar"
7252 #:source-dir "src/main/java"
7254 #:tests? #f; doesn't work
7256 (modify-phases %standard-phases
7257 (add-before 'configure 'chdir
7259 (chdir "jetty-servlet")
7262 `(("util" ,java-eclipse-jetty-util-9.2)
7263 ("jmx" ,java-eclipse-jetty-jmx-9.2)
7264 ("io" ,java-eclipse-jetty-io-9.2)
7265 ("http" ,java-eclipse-jetty-http-9.2)
7266 ("security" ,java-eclipse-jetty-security-9.2)
7267 ("http-test" ,java-eclipse-jetty-http-test-classes-9.2)
7268 ("server" ,java-eclipse-jetty-server-9.2)
7269 ,@(package-inputs java-eclipse-jetty-util-9.2)))))
7271 (define-public java-eclipse-jetty-xml
7273 (inherit java-eclipse-jetty-util)
7274 (name "java-eclipse-jetty-xml")
7276 `(#:jar-name "eclipse-jetty-xml.jar"
7277 #:source-dir "src/main/java"
7279 #:tests? #f; most tests require network
7281 (modify-phases %standard-phases
7282 (add-before 'configure 'chdir
7287 `(("java-eclipse-jetty-util" ,java-eclipse-jetty-util)))
7289 `(("java-eclipse-jetty-io" ,java-eclipse-jetty-io)
7290 ,@(package-native-inputs java-eclipse-jetty-util)))))
7292 (define-public java-eclipse-jetty-xml-9.2
7294 (inherit java-eclipse-jetty-xml)
7295 (version (package-version java-eclipse-jetty-util-9.2))
7296 (source (package-source java-eclipse-jetty-util-9.2))
7298 `(#:jar-name "eclipse-jetty-xml.jar"
7299 #:source-dir "src/main/java"
7301 #:tests? #f; most tests require network
7303 (modify-phases %standard-phases
7304 (add-before 'configure 'chdir
7309 `(("java-eclipse-jetty-util-9.2" ,java-eclipse-jetty-util-9.2)
7310 ,@(package-inputs java-eclipse-jetty-util-9.2)))
7312 `(("java-eclipse-jetty-io-9.2" ,java-eclipse-jetty-io-9.2)
7313 ,@(package-native-inputs java-eclipse-jetty-util-9.2)))))
7315 (define-public java-eclipse-jetty-webapp
7317 (inherit java-eclipse-jetty-util)
7318 (name "java-eclipse-jetty-webapp")
7320 `(#:jar-name "eclipse-jetty-webapp.jar"
7321 #:source-dir "src/main/java"
7323 #:tests? #f; require junit 5
7325 #:test-exclude (list "**/WebAppContextTest.java")
7327 (modify-phases %standard-phases
7328 (add-before 'configure 'chdir
7330 (chdir "jetty-webapp")
7333 `(("java-eclipse-jetty-util" ,java-eclipse-jetty-util)
7334 ("java-eclipse-jetty-http" ,java-eclipse-jetty-http)
7335 ("java-eclipse-jetty-io" ,java-eclipse-jetty-io)
7336 ("java-eclipse-jetty-server" ,java-eclipse-jetty-server)
7337 ("java-eclipse-jetty-servlet" ,java-eclipse-jetty-servlet)
7338 ("java-eclipse-jetty-security" ,java-eclipse-jetty-security)
7339 ("java-eclipse-jetty-xml" ,java-eclipse-jetty-xml)
7340 ("java-javaee-servletapi" ,java-javaee-servletapi)))))
7342 (define-public java-eclipse-jetty-webapp-9.2
7344 (inherit java-eclipse-jetty-webapp)
7345 (version (package-version java-eclipse-jetty-util-9.2))
7346 (source (package-source java-eclipse-jetty-util-9.2))
7348 `(#:jar-name "eclipse-jetty-webapp.jar"
7349 #:source-dir "src/main/java"
7351 #:test-exclude (list "**/WebAppContextTest.java")
7353 (modify-phases %standard-phases
7354 (add-before 'configure 'chdir
7356 (chdir "jetty-webapp")
7359 `(("java-eclipse-jetty-util-9.2" ,java-eclipse-jetty-util-9.2)
7360 ("java-eclipse-jetty-http-9.2" ,java-eclipse-jetty-http-9.2)
7361 ("java-eclipse-jetty-server-9.2" ,java-eclipse-jetty-server-9.2)
7362 ("java-eclipse-jetty-servlet-9.2" ,java-eclipse-jetty-servlet-9.2)
7363 ("java-eclipse-jetty-security-9.2" ,java-eclipse-jetty-security-9.2)
7364 ("java-eclipse-jetty-xml-9.2" ,java-eclipse-jetty-xml-9.2)
7365 ("java-javaee-servletapi" ,java-javaee-servletapi)
7366 ,@(package-inputs java-eclipse-jetty-util-9.2)))
7368 `(("java-eclipse-jetty-io-9.2" ,java-eclipse-jetty-io-9.2)
7369 ,@(package-native-inputs java-eclipse-jetty-util-9.2)))))
7371 (define-public java-jsoup
7378 (url "https://github.com/jhy/jsoup")
7379 (commit (string-append "jsoup-" version))))
7380 (file-name (git-file-name name version))
7383 "1hdpdx0x140r5x3yc251v7dj1h4j5a7nh9k885aw9q5vvz49lkf4"))))
7384 (build-system ant-build-system)
7386 `(#:jar-name "jsoup.jar"
7387 #:source-dir "src/main/java"
7389 (modify-phases %standard-phases
7390 (add-before 'build 'copy-resources
7392 (let ((classes-dir (string-append (getcwd) "/build/classes")))
7393 (with-directory-excursion "src/main/java"
7394 (for-each (lambda (file)
7395 (let ((dist (string-append classes-dir "/" file)))
7396 (mkdir-p (dirname dist))
7397 (copy-file file dist)))
7398 (find-files "." ".*.properties"))))
7401 `(("java-junit" ,java-junit)
7402 ("java-hamcrest-core" ,java-hamcrest-core)
7403 ("java-gson" ,java-gson)))
7404 (home-page "https://jsoup.org")
7405 (synopsis "HTML parser")
7406 (description "Jsoup is a Java library for working with real-world HTML. It
7407 provides a very convenient API for extracting and manipulating data, using the
7408 best of DOM, CSS, and jQuery-like methods.")
7409 (license license:expat)))
7411 (define-public java-signpost-core
7413 (name "java-signpost-core")
7418 (url "https://github.com/mttkay/signpost")
7420 (file-name (git-file-name name version))
7423 "1l04yj2znch3hpyw90c4g4jan453w7d88l84bgl0c72i2kbb8z7h"))))
7424 (build-system ant-build-system)
7426 `(#:jar-name "signpost-core.jar"
7427 #:source-dir "signpost-core/src/main/java"
7428 #:test-dir "signpost-core/src/test"
7429 ;; Tests all fail with InstantiationException from mockito
7432 `(("java-commons-codec" ,java-commons-codec)))
7433 (home-page "https://github.com/mttkay/signpost")
7434 (synopsis "Lightweight client-side OAuth library for Java")
7435 (description "Signpost is the easy and intuitive solution for signing
7436 HTTP messages on the Java platform in conformance with the OAuth Core 1.0a
7437 standard. Signpost follows a modular and flexible design, allowing you to
7438 combine it with different HTTP messaging layers.")
7439 (license license:asl2.0)))
7441 (define-public tidyp
7448 (uri (string-append "https://github.com/downloads/petdance/tidyp/tidyp-"
7452 "0f5ky0ih4vap9c6j312jn73vn8m2bj69pl2yd3a5nmv35k9zmc10"))))
7453 (build-system gnu-build-system)
7454 ;; ./test-thing.sh tries to run ./testall.sh, which is not included.
7455 (arguments `(#:tests? #f))
7456 (home-page "http://www.tidyp.com/")
7457 (synopsis "Validate HTML")
7458 (description "Tidyp is a program that can validate your HTML, as well as
7459 modify it to be more clean and standard. tidyp does not validate HTML 5.
7461 libtidyp is the library on which the program is based. It can be used by any
7462 other program that can interface to it. The Perl module @code{HTML::Tidy} is
7463 based on this library, allowing Perl programmers to easily validate HTML.")
7464 ;; See htmldoc/license.html
7465 (license license:bsd-3)))
7467 (define-public perl-html-tidy
7469 (name "perl-html-tidy")
7474 (uri (string-append "mirror://cpan/authors/id/P/PE/PETDANCE/HTML-Tidy-"
7478 "1iyp2fd6j75cn1xvcwl2lxr8qpjxssy2360cyqn6g3kzd1fzdyxw"))))
7479 (build-system perl-build-system)
7482 (modify-phases %standard-phases
7483 (add-after 'unpack 'fix-tidyp-paths
7484 (lambda* (#:key inputs #:allow-other-keys)
7485 (substitute* "Makefile.PL"
7486 (("^my \\$inc = \"" line)
7488 "-I" (assoc-ref inputs "tidyp") "/include/tidyp "))
7491 "-L" (assoc-ref inputs "tidyp") "/lib")))
7494 `(("perl-libwww" ,perl-libwww)
7497 `(("perl-test-exception" ,perl-test-exception)))
7498 (home-page "https://metacpan.org/release/HTML-Tidy")
7499 (synopsis "(X)HTML validation in a Perl object")
7500 (description "@code{HTML::Tidy} is an HTML checker in a handy dandy
7501 object. It's meant as a replacement for @code{HTML::Lint}, which is written
7502 in Perl but is not nearly as capable as @code{HTML::Tidy}.")
7503 (license license:artistic2.0)))
7505 (define-public geomyidae
7513 (url "git://r-36.net/geomyidae")
7514 (commit (string-append "v" version))))
7515 (file-name (git-file-name name version))
7517 (base32 "02afgrk36wkdkflyqr2xgh49v9zq6ma454jshk7igvhpxfb5l3ks"))))
7518 (build-system gnu-build-system)
7520 `(#:make-flags (list "CC=gcc"
7521 (string-append "PREFIX="
7522 (assoc-ref %outputs "out")))
7523 #:tests? #f ; no tests
7524 #:phases (modify-phases %standard-phases
7525 (delete 'configure))))
7526 (home-page "http://r-36.net/scm/geomyidae/file/README.html")
7527 (synopsis "Small Gopher server")
7529 "Geomyidae is a server for distributed hypertext protocol Gopher. Its
7533 @item Gopher menus (see @file{index.gph} for an example);
7534 @item directory listings (if no @file{index.gph} was found);
7535 @item CGI support (@file{.cgi} files are executed);
7536 @item search support in CGI files;
7537 @item logging with multiple log levels.
7539 (license license:expat)))
7541 (define-public cat-avatar-generator
7543 (name "cat-avatar-generator")
7548 (url "https://framagit.org/Deevad/cat-avatar-generator.git")
7549 (commit "71c0c662742cafe8afd2d2d50ec84243113e35ad")))
7550 (file-name (string-append name "-" version))
7553 "0s7b5whqsmfa57prbgl66ym551kg6ly0z14h5dgrlx4lqm70y2yw"))))
7554 (build-system trivial-build-system)
7556 `(#:modules ((guix build utils))
7559 (use-modules (guix build utils)
7563 (let ((source (assoc-ref %build-inputs "source"))
7564 (php-dir (string-append %output "/share/web/" ,name "/")))
7565 ;; The cache directory must not be in the store, but in a writable
7566 ;; location. The webserver will give us this location.
7567 (copy-recursively source php-dir)
7568 (substitute* (string-append php-dir "/cat-avatar-generator.php")
7569 (("\\$cachepath = .*")
7570 "if(isset($_SERVER['CACHE_DIR']))
7571 $cachepath = $_SERVER['CACHE_DIR'];
7573 die('You need to set the CACHE_DIR variable first.');"))
7575 (home-page "https://framagit.org/Deevad/cat-avatar-generator")
7576 (synopsis "Random avatar generator")
7577 (description "Cat avatar generator is a generator of cat pictures optimised
7578 to generate random avatars, or defined avatar from a \"seed\". This is a
7579 derivation by David Revoy from the original MonsterID by Andreas Gohr.")
7580 ;; expat for the code, CC-BY 4.0 for the artwork
7581 (license (list license:expat
7582 license:cc-by4.0))))
7584 (define-public nghttp2
7591 (uri (string-append "https://github.com/nghttp2/nghttp2/"
7592 "releases/download/v" version "/"
7593 "nghttp2-" version ".tar.xz"))
7596 "0p9wvva4g8hwj55x19rbyvnq2dbsnf65rphhxnpqs7ll54xlg6an"))))
7597 (build-system gnu-build-system)
7598 (outputs (list "out"
7599 "lib")) ; only libnghttp2
7601 `(("pkg-config" ,pkg-config)
7603 ;; Required by tests.
7606 ("tzdata" ,tzdata-for-tests)))
7608 ;; Required to build the tools (i.e. without ‘--enable-lib-only’).
7609 `(("c-ares" ,c-ares)
7610 ("jansson" ,jansson) ; for HPACK tools
7611 ,@(if (hurd-target?) '()
7612 `(("jemalloc" ,jemalloc))) ; fight nghttpd{,x} heap fragmentation
7614 ("libxml2" ,libxml2) ; for ‘nghttp -a’
7615 ("openssl" ,openssl)
7616 ,@(if (hurd-target?)
7617 `(("openssl-static" ,openssl "static"))
7621 (list (string-append "--libdir=" (assoc-ref %outputs "lib") "/lib")
7622 "--enable-app" ; build all the tools
7623 "--enable-hpack-tools" ; ...all the tools
7624 "--disable-examples"
7625 "--disable-static") ; don't bother building .a files
7627 (modify-phases %standard-phases
7628 (add-after 'unpack 'break-circular-reference
7629 ;; libnghttp2.pc by default retains a reference to the ‘out’ output,
7630 ;; which is not allowed. Break this cycle. While we could install
7631 ;; only the library to ‘out’ and move everything else to a separate
7632 ;; output, this would inconvenience the majority of (human) users.
7633 (lambda* (#:key outputs #:allow-other-keys)
7634 (substitute* "lib/libnghttp2.pc.in"
7636 (assoc-ref outputs "lib")))
7638 (add-before 'check 'set-timezone-directory
7639 (lambda* (#:key inputs native-inputs #:allow-other-keys)
7640 (setenv "TZDIR" (string-append
7641 (assoc-ref (or native-inputs inputs) "tzdata")
7644 (home-page "https://nghttp2.org/")
7645 (synopsis "HTTP/2 protocol client, proxy, server, and library")
7647 "nghttp2 implements the Hypertext Transfer Protocol, version
7650 A reusable C library provides the HTTP/2 framing layer, with several tools built
7654 @item @command{nghttp}, a command-line HTTP/2 client. It exposes many advanced
7655 and low-level aspects of the protocol and is useful for debugging.
7656 @item @command{nghttpd}, a fast, multi-threaded HTTP/2 static web server that
7657 serves files from a local directory.
7658 @item @command{nghttpx}, a fast, multi-threaded HTTP/2 reverse proxy that can be
7659 deployed in front of existing web servers that don't support HTTP/2.
7660 Both @command{nghttpd} and @command{nghttpx} can fall back to HTTP/1.1 for
7661 backwards compatibility with clients that don't speak HTTP/2.
7662 @item @command{h2load} for benchmarking (only!) your own HTTP/2 servers.
7663 @item HTTP/2 uses a header compression method called @dfn{HPACK}.
7664 nghttp2 provides a HPACK encoder and decoder as part of its public API.
7665 @item @command{deflatehd} converts JSON data or HTTP/1-style header fields to
7666 compressed JSON header blocks.
7667 @item @command{inflatehd} converts such compressed headers back to JSON pairs.
7669 (license license:expat)))
7671 (define-public hpcguix-web
7673 (name "hpcguix-web")
7678 (url "https://github.com/UMCUGenetics/hpcguix-web")
7679 (commit (string-append "v" version))))
7680 (file-name (git-file-name name version))
7683 "02lz5k1hhkwfz3nr3lsd69icsz6n0q82z047d3svi09qpxw6y0cj"))))
7684 (build-system gnu-build-system)
7686 `(#:modules ((guix build gnu-build-system)
7692 (modify-phases %standard-phases
7693 (add-before 'configure 'set-variables
7695 ;; This prevents a few warnings
7696 (setenv "GUILE_AUTO_COMPILE" "0")
7697 (setenv "XDG_CACHE_HOME" (getcwd))))
7698 (add-after 'install 'wrap-program
7699 (lambda* (#:key inputs outputs #:allow-other-keys)
7700 (let* ((out (assoc-ref outputs "out"))
7701 (guix (assoc-ref inputs "guix"))
7702 (guile (assoc-ref inputs "guile"))
7703 (gcrypt (assoc-ref inputs "guile-gcrypt"))
7704 (git (assoc-ref inputs "guile-git"))
7705 (bs (assoc-ref inputs "guile-bytestructures"))
7706 (json (assoc-ref inputs "guile-json"))
7707 (guile-cm (assoc-ref inputs
7708 "guile-commonmark"))
7709 (deps (list guile gcrypt git bs guile-cm guix json))
7712 (open-pipe* OPEN_READ
7713 (string-append guile "/bin/guile")
7714 "-c" "(display (effective-version))")))
7716 (map (cut string-append <>
7717 "/share/guile/site/"
7721 (gopath (string-join
7722 (map (cut string-append <>
7723 "/lib/guile/" effective
7727 (wrap-program (string-append out "/bin/hpcguix-web")
7728 `("GUILE_LOAD_PATH" ":" prefix (,path))
7729 `("GUILE_LOAD_COMPILED_PATH" ":" prefix (,gopath)))))))))
7731 `(("autoconf" ,autoconf)
7732 ("automake" ,automake)
7733 ("uglify-js" ,uglify-js)
7734 ("pkg-config" ,pkg-config)))
7736 `(("guile" ,@(assoc-ref (package-native-inputs guix) "guile"))
7738 ("bash-minimal" ,bash-minimal))) ;for 'wrap-program'
7740 `(("guile" ,@(assoc-ref (package-native-inputs guix) "guile"))
7741 ("guile-commonmark" ,guile-commonmark)
7742 ("guile-json" ,guile-json-4)))
7743 (home-page "https://github.com/UMCUGenetics/hpcguix-web")
7744 (synopsis "Web interface for cluster deployments of Guix")
7745 (description "Hpcguix-web provides a web interface to the list of packages
7746 provided by Guix. The list of packages is searchable and provides
7747 instructions on how to use Guix in a shared HPC environment.")
7748 (license license:agpl3+)))
7750 (define-public httrack
7756 (uri (string-append "https://mirror.httrack.com/historical/"
7757 "httrack-" version ".tar.gz"))
7760 "09a0gm67nml86qby1k1gh7rdxamnrnzwr6l9r5iiq94favjs0xrl"))))
7761 (build-system gnu-build-system)
7763 `(("libressl" ,libressl)
7765 (home-page "https://www.httrack.com/")
7766 (synopsis "Easy-to-use offline browser utility")
7767 (description "HTTrack allows you to download a World Wide Web site from
7768 the Internet to a local directory, building recursively all directories,
7769 getting HTML, images, and other files from the server to your computer.
7771 HTTrack arranges the original site's relative link-structure. Simply open
7772 a page of the @emph{mirrored} website in your browser, and you can browse the
7773 site from link to link, as if you were viewing it online. HTTrack can also
7774 update an existing mirrored site, and resume interrupted downloads.
7776 HTTrack is fully configurable, and has an integrated help system.")
7777 (license license:gpl3+)))
7786 (uri (pypi-uri "buku" version))
7787 (file-name (git-file-name name version))
7789 (base32 "1bk3h2ya34a5livyf6p7kawh50ikbix5szsq2rkb8cp5bwrzsj5i"))))
7790 (build-system python-build-system)
7792 `(#:tests? #f)) ;FIXME: many tests need network access
7794 `(("python-beautifulsoup4" ,python-beautifulsoup4)
7795 ("python-certifi" ,python-certifi)
7796 ("python-cryptography" ,python-cryptography)
7797 ("python-html5lib" ,python-html5lib)
7798 ("python-urllib3" ,python-urllib3)))
7799 (home-page "https://github.com/jarun/buku")
7800 (synopsis "Bookmark manager")
7802 "buku is a powerful bookmark manager written in Python3 and SQLite3.
7803 @command{buku} can auto-import bookmarks from your browser and present them
7804 in an interactive command-line interface that lets you compose and update
7805 bookmarks directly. It can also present them in a web interface with
7806 @command{bukuserver}.")
7807 (license license:gpl3+)))
7809 (define-public anonip
7815 (uri (pypi-uri "anonip" version))
7818 "0ckn9nnfhpdnz8b92q8pkysdqj6pdh71ckfqvfj0z01cq0hzbhd2"))))
7819 (build-system python-build-system)
7820 (home-page "https://github.com/DigitaleGesellschaft/Anonip")
7821 (synopsis "Anonymize IP addresses in log files")
7823 "Anonip masks the last bits of IPv4 and IPv6 addresses in log files.
7824 That way most of the relevant information is preserved, while the IP address
7825 does not match a particular individuum anymore.
7827 Depending on your Web server, the log entries may be piped to Anonip directly
7828 or via a FIFO (named pipe). Thus the unmasked IP addresses will never be
7829 written to any file.
7831 It's also possible to rewrite existing log files.
7833 Anonip can also be uses as a Python module in your own Python application.")
7834 (license license:bsd-3)))
7836 (define-public poussetaches
7838 (name "poussetaches")
7844 (url "https://github.com/tsileo/poussetaches")
7846 (file-name (git-file-name name version))
7849 "0kckcwvqklavd855np9aq5js6mg84isrlwchr504yigwma0sm7hm"))))
7850 (build-system go-build-system)
7852 `(("go-github-com-robfig-cron" ,go-github-com-robfig-cron)
7853 ("go-golang-org-x-time" ,go-golang-org-x-time)))
7855 `(#:import-path "github.com/tsileo/poussetaches"))
7856 (home-page "https://github.com/tsileo/poussetaches")
7857 (synopsis "Lightweight asynchronous task execution service")
7858 (description "Poussetaches (which literally means \"push tasks\" in
7859 French) is a lightweight asynchronous task execution service that aims to
7860 replace Celery and RabbitMQ for small Python applications.
7862 The app posts base64-encoded payload to poussetaches and specifies the
7863 endpoint that will be used to trigger the task. Poussetaches makes HTTP
7864 requests with the registered payload until the right status code is
7866 (license license:isc)))
7868 (define-public htmlcxx
7876 (string-append "mirror://sourceforge/htmlcxx/v"
7877 version "/htmlcxx-" version ".tar.gz"))
7879 (base32 "1j3mzjlczjrk4ahc43s6kzpvzypzjmqz4sillnca5yadrwwgjf2x"))))
7880 (build-system gnu-build-system)
7881 (home-page "http://htmlcxx.sourceforge.net/")
7882 (synopsis "Simple non-validating CSS1 and HTML parser for C++")
7883 (description "htmlcxx is a simple non-validating CSS1 and HTML parser for
7884 C++. Although there are several other HTML parsers available, htmlcxx has some
7885 characteristics that make it unique:
7887 @item STL like navigation of DOM tree, using excelent's tree.hh library from
7889 @item It is possible to reproduce exactly, character by character, the original
7890 document from the parse tree
7891 @item Bundled CSS parser
7892 @item Optional parsing of attributes
7893 @item C++ code that looks like C++ (not so true anymore)
7894 @item Offsets of tags/elements in the original document are stored in the nodes
7897 (license (list license:lgpl2.0
7901 (define-public librocket
7910 (url "https://github.com/libRocket/libRocket")
7911 (commit (string-append "release-" version))))
7912 (file-name (git-file-name name version))
7914 (base32 "1n6gq007vqijyfasfnfg6c8d2rc9qarl4bhzbgkz062m4h5izlfs"))))
7915 (build-system cmake-build-system)
7917 `(#:tests? #f ; No tests.
7919 (modify-phases %standard-phases
7920 (add-after 'unpack 'chdir
7922 (chdir "Build"))))))
7924 `(("freetype" ,freetype)))
7925 (home-page "https://github.com/libRocket/libRocket") ; http://librocket.com/ is down.
7926 (synopsis "HTML/CSS user interface library")
7927 (description "libRocket is a C++ user interface package based on the HTML
7928 and CSS standards. libRocket uses the open standards XHTML1.0 and
7929 CSS2.0 (while borrowing features from HTML5 and CSS3), and extends them with
7930 features suited towards real-time applications. It is designed as a complete
7931 solution for any project's interface needs:
7934 @item Dynamic layout system.
7935 @item Efficient application-wide styling, with a custom-built templating engine.
7936 @item Fully featured control set: buttons, sliders, drop-downs, etc.
7937 @item Runtime visual debugging suite.
7938 @item Easily integrated and extensible with Python or Lua scripting.
7940 (license license:expat)))
7942 (define-public gmnisrv
7943 (let ((commit "32854b79c73b278bf33eb5123abf1c36abdc7c01")
7947 (version (git-version "0" revision commit))
7948 (home-page "https://git.sr.ht/~sircmpwn/gmnisrv")
7956 "0lbb3ablwkdcgm1cjr1hikr55y8gpl420nh8b8g9wn4abhm2xgr9"))
7957 (file-name (git-file-name name version))))
7958 (build-system gnu-build-system)
7960 `(#:tests? #f ; no check target
7961 #:configure-flags (list "--sysconfdir=/etc"
7962 (string-append "--with-mimedb="
7963 (assoc-ref %build-inputs "mailcap")
7965 #:make-flags (list (string-append "CC=" ,(cc-for-target)))))
7967 `(("mailcap" ,mailcap)
7968 ("openssl" ,openssl)))
7970 `(("pkg-config" ,pkg-config)
7972 (synopsis "Simple Gemini protocol server")
7973 (description "gmnisrv is a simple Gemini protocol server written in C.")
7974 (license (list license:gpl3+
7975 license:bsd-3))))) ;; for ini.c and ini.h
7977 (define-public libzim
7984 (url "https://github.com/openzim/libzim")
7988 "00kc4qc0a69jh1jwk5xhi567b7ffpc3p38ffrf2xaax4hvpjwmn6"))
7989 (file-name (git-file-name name version))))
7990 (build-system meson-build-system)
7992 ;; TODO: Find out why tests fail.
7997 ("libuuid" ,util-linux "lib")
7999 ("zstd" ,zstd "lib")))
8001 `(("pkg-config" ,pkg-config)
8002 ("googletest" ,googletest)))
8003 (home-page "https://wiki.openzim.org/wiki/Main_Page")
8004 (synopsis "Reference implementation of the ZIM specification")
8005 (description "The openZIM project proposes offline storage solutions for
8006 content coming from the Web. The zimlib is the standard implementation of the
8007 ZIM specification. It is a library which implements the read and write method
8009 (license license:gpl2)))
8011 (define-public kiwix-lib
8015 (home-page "https://github.com/kiwix/kiwix-lib/")
8023 "034nk6l623v78clrs2d0k1vg69sbzrd8c0q79qiqmlkinck1nkxw"))
8024 (file-name (git-file-name name version))))
8025 (build-system meson-build-system)
8028 (modify-phases %standard-phases
8029 (add-before 'configure 'fix-paths-and-includes
8030 (lambda* (#:key inputs #:allow-other-keys)
8031 (setenv "CPPFLAGS" (string-append "-I" (assoc-ref inputs "mustache")))
8032 (substitute* "src/aria2.cpp"
8033 (("ARIA2_CMD \"aria2c\"")
8034 (string-append "ARIA2_CMD \""
8035 (assoc-ref inputs "aria2")
8042 ("libmicrohttpd" ,libmicrohttpd)
8044 ("pugixml" ,pugixml)
8047 ("zstd" ,zstd "lib")))
8049 `(("mustache" ,(origin
8052 (url "https://github.com/kainjow/Mustache")
8053 ;; XXX: Readme says to use version 3. Can we use 3.2.1?
8055 (file-name (git-file-name "mustache" "4.1"))
8058 "0r9rbk6v1wpld2ismfsk2lkhbyv3dkf0p03hkjivbj05qkfhvlbb"))))
8059 ("pkg-config" ,pkg-config)))
8060 (synopsis "Common code base for all Kiwix ports")
8061 (description "The Kiwix library provides the Kiwix software suite core.
8062 It contains the code shared by all Kiwix ports.")
8063 (license license:gpl3)))
8065 (define-public kiwix-desktop
8067 (name "kiwix-desktop")
8072 "https://download.kiwix.org/release/kiwix-desktop/kiwix-desktop-"
8077 "1a9h4qmh6fkfscyp6lax0ri07dvvzw2wp4kr1sm86n0bdk3cwwha"))))
8078 (build-system gnu-build-system)
8081 (modify-phases %standard-phases
8083 (lambda* (#:key outputs #:allow-other-keys)
8085 (string-append "PREFIX="
8086 (assoc-ref outputs "out")))))
8087 (add-before 'configure 'enable-print-support
8089 (substitute* "kiwix-desktop.pro"
8090 (("webenginewidgets") "webenginewidgets printsupport"))
8092 (add-before 'configure 'substitute-source
8093 ;; Looks like .pro file is missing a feature.
8094 ;; See https://github.com/kiwix/kiwix-desktop/issues/556.
8095 (lambda* (#:key inputs #:allow-other-keys)
8096 (substitute* "kiwix-desktop.pro"
8097 (("webenginewidgets" all) (string-append all " printsupport")))
8099 (add-after 'install 'wrap-qt-process-path
8100 (lambda* (#:key inputs outputs #:allow-other-keys)
8101 (let* ((out (assoc-ref outputs "out"))
8102 (bin (string-append out "/bin/kiwix-desktop"))
8103 (qt-process-path (string-append
8104 (assoc-ref inputs "qtwebengine")
8105 "/lib/qt5/libexec/QtWebEngineProcess")))
8107 `("QTWEBENGINEPROCESS_PATH" = (,qt-process-path)))
8112 ("kiwix-lib" ,kiwix-lib)
8113 ("libmicrohttpd" ,libmicrohttpd)
8115 ("pugixml" ,pugixml)
8116 ("qtbase" ,qtbase-5)
8117 ("qtdeclarative" ,qtdeclarative)
8118 ("qtwebchannel" ,qtwebchannel)
8119 ("qtwebengine" ,qtwebengine)
8122 ("zstd" ,zstd "lib")))
8124 `(("pkg-config" ,pkg-config)
8125 ("qmake" ,qtbase-5)))
8126 (home-page "https://wiki.kiwix.org/wiki/Software")
8127 (synopsis "Viewer and manager of ZIM files")
8128 (description "Kiwix Desktop allows you to enjoy a lot of different content
8129 offline (such as Wikipedia), without any access to Internet.")
8130 (license license:gpl3)))
8132 (define-public uriparser
8133 (let ((commit "25dddb16cf044a7df27884e7ad3911baaaca3d7c")
8137 (version (git-version "0.9.4" revision commit))
8141 (url "https://github.com/uriparser/uriparser")
8143 (file-name (git-file-name name version))
8146 "1ffzia679axcsccx2fxjpxhb0i5xc42zxn446x6c1170w6v69qf6"))))
8147 (build-system cmake-build-system)
8148 (native-inputs `(("gtest" ,googletest)
8149 ("doxygen" ,doxygen)
8150 ("graphviz" ,graphviz)))
8151 (synopsis "Strictly RFC 3986 compliant URI parsing and handling library")
8152 (description "uriparser is a strictly RFC 3986 compliant URI parsing and
8153 handling library written in C89 (\"ANSI C\"). uriparser is fast and supports
8155 (home-page "https://uriparser.github.io/")
8156 (license license:bsd-3))))
8158 (define-public quark
8160 (let ((revision "0")
8161 (commit "c6a9055e5a30be570e30da8d216c39662c3a3f99"))
8164 (version (git-version "0.0.0" revision commit))
8168 (url "https://git.suckless.org/quark/")
8170 (file-name (git-file-name name version))
8173 "1znvnr30xi5vgd6n3wvgv9pwj992zpzzjk0fmq28ydf1l6kqvkm7"))))
8174 (build-system gnu-build-system)
8176 `(#:tests? #f ; no tests
8178 (list (string-append "CC=" ,(cc-for-target))
8179 (string-append "PREFIX=" %output))
8181 (modify-phases %standard-phases
8182 (delete 'configure)))) ; no configure script
8183 (home-page "https://tools.suckless.org/quark/")
8184 (synopsis "Small and simple HTTP GET/HEAD-only web server for static
8186 (description "Quark is an extremely small and simple HTTP GET/HEAD only
8187 web server for static content. TLS is not natively supported and should be
8188 provided by a TLS reverse proxy (e.g. tlstunnel, hitch or stunnel).")
8189 (license license:isc)
8191 ;; XXX: Ignore this CVE to work around a name clash with the unrelated
8192 ;; "cpe:2.3:a:comelz:quark" package. The proper fix is for (guix cve)
8193 ;; to account for "vendor names".
8194 (properties '((lint-hidden-cve . ("CVE-2019-15520")))))))