gnu: git-annex: Update to 7.20191024.
[jackhill/guix/guix.git] / gnu / packages / lisp.scm
CommitLineData
f842bbed
JD
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2014 John Darrington <jmd@gnu.org>
00ab9458 3;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
e396976b 4;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
05f5ce0c 5;;; Copyright © 2016 Federico Beffa <beffa@fbengineering.ch>
47956fa0 6;;; Copyright © 2016, 2017 ng0 <ng0@n0.is>
14afc7b8 7;;; Copyright © 2016, 2017 Andy Patterson <ajpatter@uwaterloo.ca>
e24ef369 8;;; Copyright © 2017, 2019 Ricardo Wurmus <rekado@elephly.net>
f3cd6633 9;;; Copyright © 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
46c1c553 10;;; Copyright © 2017, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
56c240ba 11;;; Copyright © 2018 Benjamin Slade <slade@jnanam.net>
28e32b14 12;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
27ebd5c4 13;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
c894b803 14;;; Copyright © 2018, 2019 Pierre Langlois <pierre.langlois@gmx.com>
5914489d 15;;; Copyright © 2019 Katherine Cox-Buday <cox.katherine.e@gmail.com>
29331827 16;;; Copyright © 2019 Jesse Gildersleve <jessejohngildersleve@protonmail.com>
a0c3a2e3 17;;; Copyright © 2019 Guillaume Le Vaillant <glv@posteo.net>
f842bbed
JD
18;;;
19;;; This file is part of GNU Guix.
20;;;
21;;; GNU Guix is free software; you can redistribute it and/or modify it
22;;; under the terms of the GNU General Public License as published by
23;;; the Free Software Foundation; either version 3 of the License, or (at
24;;; your option) any later version.
25;;;
26;;; GNU Guix is distributed in the hope that it will be useful, but
27;;; WITHOUT ANY WARRANTY; without even the implied warranty of
28;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29;;; GNU General Public License for more details.
30;;;
31;;; You should have received a copy of the GNU General Public License
32;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
33
34(define-module (gnu packages lisp)
35 #:use-module (gnu packages)
b5b73a82 36 #:use-module ((guix licenses) #:prefix license:)
f842bbed 37 #:use-module (guix packages)
f842bbed 38 #:use-module (guix download)
423eef36 39 #:use-module (guix git-download)
a927eb36 40 #:use-module (guix hg-download)
f842bbed 41 #:use-module (guix utils)
00ab9458 42 #:use-module (guix build-system gnu)
28e32b14 43 #:use-module (guix build-system ant)
a72debb7 44 #:use-module (guix build-system asdf)
e3e171ee 45 #:use-module (guix build-system trivial)
5ff15b86 46 #:use-module (gnu packages admin)
ce0614dd 47 #:use-module (gnu packages base)
5ff15b86 48 #:use-module (gnu packages bdw-gc)
a0c3a2e3 49 #:use-module (gnu packages bison)
ef656e11 50 #:use-module (gnu packages c)
05c63898 51 #:use-module (gnu packages compression)
5ff15b86 52 #:use-module (gnu packages ed)
a0c3a2e3 53 #:use-module (gnu packages flex)
05c63898 54 #:use-module (gnu packages fontutils)
5ff15b86
EF
55 #:use-module (gnu packages gcc)
56 #:use-module (gnu packages gettext)
57 #:use-module (gnu packages gl)
58 #:use-module (gnu packages glib)
59 #:use-module (gnu packages m4)
05c63898 60 #:use-module (gnu packages maths)
00ab9458 61 #:use-module (gnu packages multiprecision)
f473b8f1 62 #:use-module (gnu packages ncurses)
560f51d0 63 #:use-module (gnu packages libffcall)
5ff15b86 64 #:use-module (gnu packages libffi)
b702b52d 65 #:use-module (gnu packages libsigsegv)
05c63898 66 #:use-module (gnu packages linux)
5ff15b86 67 #:use-module (gnu packages perl)
05c63898 68 #:use-module (gnu packages pkg-config)
20b96ced
KCB
69 #:use-module (gnu packages python)
70 #:use-module (gnu packages python-xyz)
5ff15b86
EF
71 #:use-module (gnu packages readline)
72 #:use-module (gnu packages sdl)
cd0322a3 73 #:use-module (gnu packages sqlite)
5ff15b86
EF
74 #:use-module (gnu packages tex)
75 #:use-module (gnu packages texinfo)
d1ae5a12 76 #:use-module (gnu packages tls)
531a9aac 77 #:use-module (gnu packages version-control)
05c63898 78 #:use-module (gnu packages xorg)
8f065b47 79 #:use-module (gnu packages databases)
64dcf7d9 80 #:use-module (gnu packages gtk)
24fd7586 81 #:use-module (gnu packages webkit)
2c742a06 82 #:use-module (gnu packages xdisorg)
419fb3f1 83 #:use-module (ice-9 match)
1de50cb7 84 #:use-module (srfi srfi-19))
f842bbed 85
8d0489ae
AP
86(define (asdf-substitutions lisp)
87 ;; Prepend XDG_DATA_DIRS/LISP-bundle-systems to ASDF's
88 ;; 'default-system-source-registry'.
89 `((("\\(,dir \"systems/\"\\)\\)")
90 (format #f
91 "(,dir \"~a-bundle-systems\")))
92
93 ,@(loop :for dir :in (xdg-data-dirs \"common-lisp/\")
94 :collect `(:directory (,dir \"systems\"))"
95 ,lisp))))
96
f842bbed 97(define-public gcl
5a8b00f2
KK
98 (let ((commit "d3335e2b3deb63f930eb0328e9b05377744c9512")
99 (revision "2")) ;Guix package revision
dd0134fc
KK
100 (package
101 (name "gcl")
102 (version (string-append "2.6.12-" revision "."
103 (string-take commit 7)))
104 (source
105 (origin
106 (method git-fetch)
107 (uri (git-reference
108 (url "https://git.savannah.gnu.org/r/gcl.git")
109 (commit commit)))
110 (file-name (string-append "gcl-" version "-checkout"))
111 (sha256
5a8b00f2 112 (base32 "05v86lhvsby05nzvcd3c4k0wljvgdgd0i6arzd2fx1yd67dl6fgj"))))
dd0134fc
KK
113 (build-system gnu-build-system)
114 (arguments
115 `(#:parallel-build? #f ; The build system seems not to be thread safe.
b888396d 116 #:test-target "ansi-tests/test_results"
dd0134fc
KK
117 #:configure-flags '("--enable-ansi") ; required for use by the maxima package
118 #:make-flags (list
119 (string-append "GCL_CC=" (assoc-ref %build-inputs "gcc")
120 "/bin/gcc")
121 (string-append "CC=" (assoc-ref %build-inputs "gcc")
122 "/bin/gcc"))
123 #:phases
124 (modify-phases %standard-phases
125 (add-before 'configure 'pre-conf
126 (lambda* (#:key inputs #:allow-other-keys)
127 (chdir "gcl")
128 (substitute*
129 (append
130 '("pcl/impl/kcl/makefile.akcl"
131 "add-defs"
132 "unixport/makefile.dos"
133 "add-defs.bat"
134 "gcl-tk/makefile.prev"
135 "add-defs1")
136 (find-files "h" "\\.defs"))
137 (("SHELL=/bin/bash")
138 (string-append "SHELL=" (which "bash")))
139 (("SHELL=/bin/sh")
140 (string-append "SHELL=" (which "sh"))))
141 (substitute* "h/linux.defs"
142 (("#CC") "CC")
143 (("-fwritable-strings") "")
144 (("-Werror") ""))
145 (substitute* "lsp/gcl_top.lsp"
146 (("\"cc\"")
147 (string-append "\"" (assoc-ref %build-inputs "gcc")
148 "/bin/gcc\""))
149 (("\\(or \\(get-path \\*cc\\*\\) \\*cc\\*\\)") "*cc*")
150 (("\"ld\"")
151 (string-append "\"" (assoc-ref %build-inputs "binutils")
152 "/bin/ld\""))
153 (("\\(or \\(get-path \\*ld\\*\\) \\*ld\\*\\)") "*ld*")
154 (("\\(get-path \"objdump --source \"\\)")
155 (string-append "\"" (assoc-ref %build-inputs "binutils")
156 "/bin/objdump --source \"")))
157 #t))
158 (add-after 'install 'wrap
159 (lambda* (#:key inputs outputs #:allow-other-keys)
160 (let* ((gcl (assoc-ref outputs "out"))
161 (input-path (lambda (lib path)
162 (string-append
163 (assoc-ref inputs lib) path)))
164 (binaries '("binutils")))
165 ;; GCC and the GNU binutils are necessary for GCL to be
166 ;; able to compile Lisp functions and programs (this is
167 ;; a standard feature in Common Lisp). While the
168 ;; the location of GCC is specified in the make-flags,
169 ;; the GNU binutils must be available in GCL's $PATH.
170 (wrap-program (string-append gcl "/bin/gcl")
171 `("PATH" prefix ,(map (lambda (binary)
172 (input-path binary "/bin"))
173 binaries))))
174 #t))
175 ;; drop strip phase to make maxima build, see
176 ;; https://www.ma.utexas.edu/pipermail/maxima/2008/009769.html
177 (delete 'strip))))
178 (inputs
179 `(("gmp" ,gmp)
180 ("readline" ,readline)))
181 (native-inputs
978154ae 182 `(("m4" ,m4)
27ebd5c4 183 ("texinfo" ,texinfo)))
dd0134fc
KK
184 (home-page "https://www.gnu.org/software/gcl/")
185 (synopsis "A Common Lisp implementation")
186 (description "GCL is an implementation of the Common Lisp language. It
f842bbed
JD
187features the ability to compile to native object code and to load native
188object code modules directly into its lisp core. It also features a
189stratified garbage collection strategy, a source-level debugger and a built-in
190interface to the Tk widget system.")
dd0134fc 191 (license license:lgpl2.0+))))
f842bbed 192
00ab9458
TUBK
193(define-public ecl
194 (package
195 (name "ecl")
108f69c4 196 (version "16.1.3")
00ab9458
TUBK
197 (source
198 (origin
199 (method url-fetch)
e0524511
AP
200 (uri (string-append
201 "https://common-lisp.net/project/ecl/static/files/release/"
202 name "-" version ".tgz"))
00ab9458 203 (sha256
108f69c4 204 (base32 "0m0j24w5d5a9dwwqyrg0d35c0nys16ijb4r0nyk87yp82v38b9bn"))
fb7dc6d6
AP
205 (modules '((guix build utils)))
206 (snippet
207 ;; Add ecl-bundle-systems to 'default-system-source-registry'.
6cbee49d
MW
208 `(begin
209 (substitute* "contrib/asdf/asdf.lisp"
210 ,@(asdf-substitutions name))
211 #t))))
00ab9458 212 (build-system gnu-build-system)
cb03a9b6 213 ;; src/configure uses 'which' to confirm the existence of 'gzip'.
00ab9458
TUBK
214 (native-inputs `(("which" ,which)))
215 (inputs `(("gmp" ,gmp)
216 ("libatomic-ops" ,libatomic-ops)
217 ("libgc" ,libgc)
218 ("libffi" ,libffi)))
219 (arguments
fd0f8860
GLV
220 '(#:configure-flags '("--without-rt")
221 #:tests? #t
60474cd1
AP
222 #:parallel-tests? #f
223 #:phases
224 (modify-phases %standard-phases
225 (delete 'check)
54a43ff4
AP
226 (add-after 'install 'wrap
227 (lambda* (#:key inputs outputs #:allow-other-keys)
228 (let* ((ecl (assoc-ref outputs "out"))
229 (input-path (lambda (lib path)
230 (string-append
231 (assoc-ref inputs lib) path)))
232 (libraries '("gmp" "libatomic-ops" "libgc" "libffi" "libc"))
233 (binaries '("gcc" "ld-wrapper" "binutils"))
234 (library-directories
235 (map (lambda (lib) (input-path lib "/lib"))
236 libraries)))
237
238 (wrap-program (string-append ecl "/bin/ecl")
239 `("PATH" prefix
240 ,(map (lambda (binary)
241 (input-path binary "/bin"))
242 binaries))
243 `("CPATH" suffix
244 ,(map (lambda (lib)
245 (input-path lib "/include"))
932b2ea2 246 `("kernel-headers" ,@libraries)))
54a43ff4
AP
247 `("LIBRARY_PATH" suffix ,library-directories)
248 `("LD_LIBRARY_PATH" suffix ,library-directories)))))
108f69c4
AP
249 (add-after 'wrap 'check (assoc-ref %standard-phases 'check))
250 (add-before 'check 'fix-path-to-ecl
251 (lambda _
252 (substitute* "build/tests/Makefile"
253 (("\\$\\{exec_prefix\\}/") ""))
254 #t)))))
fb7dc6d6
AP
255 (native-search-paths
256 (list (search-path-specification
257 (variable "XDG_DATA_DIRS")
258 (files '("share")))))
00ab9458
TUBK
259 (home-page "http://ecls.sourceforge.net/")
260 (synopsis "Embeddable Common Lisp")
261 (description "ECL is an implementation of the Common Lisp language as
262defined by the ANSI X3J13 specification. Its most relevant features are: a
263bytecode compiler and interpreter, being able to compile Common Lisp with any
264C/C++ compiler, being able to build standalone executables and libraries, and
265supporting ASDF, Sockets, Gray streams, MOP, and other useful components.")
266 ;; Note that the file "Copyright" points to some files and directories
267 ;; which aren't under the lgpl2.0+ and instead contain many different,
268 ;; non-copyleft licenses.
269 (license license:lgpl2.0+)))
560f51d0
TUBK
270
271(define-public clisp
272 (package
273 (name "clisp")
e4c399fe 274 (version "2.49-92")
560f51d0
TUBK
275 (source
276 (origin
e4c399fe
EF
277 (method git-fetch)
278 (uri (git-reference
279 (url "https://gitlab.com/gnu-clisp/clisp")
280 (commit "clisp-2.49.92-2018-02-18")))
281 (file-name (git-file-name name version))
560f51d0 282 (sha256
e4c399fe
EF
283 (base32 "0k2dmgl0miz3767iks4p0mvp6xw0ysyxhjpklyh11j010rmh6hqb"))
284 (patches (search-patches "clisp-remove-failing-test.patch"))))
560f51d0
TUBK
285 (build-system gnu-build-system)
286 (inputs `(("libffcall" ,libffcall)
f473b8f1
EF
287 ("ncurses" ,ncurses)
288 ("readline" ,readline)
560f51d0
TUBK
289 ("libsigsegv" ,libsigsegv)))
290 (arguments
e4c399fe
EF
291 `(#:configure-flags '(,@(if (string-prefix? "armhf-linux"
292 (or (%current-system)
293 (%current-target-system)))
294 '("CFLAGS=-falign-functions=4")
295 '())
296 "--with-dynamic-ffi"
297 "--with-dynamic-modules"
298 "--with-module=rawsock")
f90ef3c3
MW
299 #:build #f
300 #:phases
636c77d0
RW
301 (modify-phases %standard-phases
302 (add-after 'unpack 'patch-sh-and-pwd
303 (lambda _
304 ;; The package is very messy with its references to "/bin/sh" and
305 ;; some other absolute paths to traditional tools. These appear in
306 ;; many places where our automatic patching misses them. Therefore
307 ;; we do the following, in this early (post-unpack) phase, to solve
308 ;; the problem from its root.
e4c399fe
EF
309 (substitute* '("src/clisp-link.in"
310 "src/unix.d"
311 "src/makemake.in")
312 (("/bin/sh") (which "sh")))
636c77d0
RW
313 (substitute* (find-files "." "configure|Makefile")
314 (("/bin/sh") "sh"))
315 (substitute* '("src/clisp-link.in")
316 (("/bin/pwd") "pwd"))
636c77d0 317 #t)))
560f51d0
TUBK
318 ;; Makefiles seem to have race conditions.
319 #:parallel-build? #f))
e4c399fe 320 (home-page "https://clisp.sourceforge.io/")
4cc78cb3
LC
321 (synopsis "A Common Lisp implementation")
322 (description
323 "GNU CLISP is an implementation of ANSI Common Lisp. Common Lisp is a
324high-level, object-oriented functional programming language. CLISP includes
325an interpreter, a compiler, a debugger, and much more.")
4bd2e2a5 326 (license license:gpl2+)))
b702b52d
TUBK
327
328(define-public sbcl
329 (package
330 (name "sbcl")
9b983086 331 (version "1.5.7")
b702b52d
TUBK
332 (source
333 (origin
334 (method url-fetch)
335 (uri (string-append "mirror://sourceforge/sbcl/sbcl/" version "/sbcl-"
336 version "-source.tar.bz2"))
337 (sha256
9b983086 338 (base32 "11cl839512898shxcgjmnn1178pwc8vcfaypmzxm1wzkwasjyx2l"))
8d0489ae
AP
339 (modules '((guix build utils)))
340 (snippet
341 ;; Add sbcl-bundle-systems to 'default-system-source-registry'.
6cbee49d
MW
342 `(begin
343 (substitute* "contrib/asdf/asdf.lisp"
344 ,@(asdf-substitutions name))
345 #t))))
b702b52d 346 (build-system gnu-build-system)
05f5ce0c 347 (outputs '("out" "doc"))
b702b52d 348 (native-inputs
4bddcae9
PN
349 ;; From INSTALL:
350 ;; Supported build hosts are:
351 ;; SBCL
352 ;; CMUCL
353 ;; CCL (formerly known as OpenMCL)
354 ;; ABCL (recent versions only)
355 ;; CLISP (only some versions: 2.44.1 is OK, 2.47 is not)
356 ;; XCL
a3439b0c
PN
357 ;;
358 ;; From NEWS:
359 ;; * build enhancement: new host quirks mechanism, support for building under
360 ;; ABCL and ECL (as well as CCL, CMUCL, CLISP and SBCL itself)
361 ;;
362 ;; CCL is not bootstrappable so it won't do. CLISP 2.49 seems to work.
363 ;; ECL too. ECL builds SBCL about 20% slower than CLISP. As of
364 ;; 2019-09-05, ECL was last updated in 2016 while CLISP was last update
365 ;; in 2010.
366 ;;
367 ;; For now we stick to CLISP for all systems. We keep the `match' in to
368 ;; make it easier to change the host compiler for various architectures.
76d520fa
EF
369 `(,@(match (%current-system)
370 ((or "x86_64-linux" "i686-linux")
a3439b0c 371 `(("clisp" ,clisp)))
76d520fa
EF
372 (_
373 `(("clisp" ,clisp))))
b702b52d
TUBK
374 ("which" ,which)
375 ("inetutils" ,inetutils) ;for hostname(1)
05f5ce0c 376 ("ed" ,ed)
4bddcae9 377 ("texlive" ,(texlive-union (list texlive-tex-texinfo)))
5c8b9a43
PN
378 ("texinfo" ,texinfo)
379 ("zlib" ,zlib)))
b702b52d 380 (arguments
76d520fa 381 `(#:modules ((guix build gnu-build-system)
f0b7dc7e
ST
382 (guix build utils)
383 (srfi srfi-1))
384 #:phases
1ee131df
FB
385 (modify-phases %standard-phases
386 (delete 'configure)
387 (add-before 'build 'patch-unix-tool-paths
388 (lambda* (#:key outputs inputs #:allow-other-keys)
389 (let ((out (assoc-ref outputs "out"))
390 (bash (assoc-ref inputs "bash"))
391 (coreutils (assoc-ref inputs "coreutils"))
392 (ed (assoc-ref inputs "ed")))
393 (define (quoted-path input path)
394 (string-append "\"" input path "\""))
395 ;; Patch absolute paths in string literals. Note that this
396 ;; occurs in some .sh files too (which contain Lisp code). Use
397 ;; ISO-8859-1 because some of the files are ISO-8859-1 encoded.
398 (with-fluids ((%default-port-encoding #f))
1925a879
AP
399 ;; The removed file is utf-16-be encoded, which gives substitute*
400 ;; trouble. It does not contain references to the listed programs.
401 (substitute* (delete
402 "./tests/data/compile-file-pos-utf16be.lisp"
403 (find-files "." "\\.(lisp|sh)$"))
1ee131df
FB
404 (("\"/bin/sh\"") (quoted-path bash "/bin/sh"))
405 (("\"/usr/bin/env\"") (quoted-path coreutils "/usr/bin/env"))
406 (("\"/bin/cat\"") (quoted-path coreutils "/bin/cat"))
407 (("\"/bin/ed\"") (quoted-path ed "/bin/ed"))
408 (("\"/bin/echo\"") (quoted-path coreutils "/bin/echo"))
409 (("\"/bin/uname\"") (quoted-path coreutils "/bin/uname"))))
410 ;; This one script has a non-string occurrence of /bin/sh.
411 (substitute* '("tests/foreign.test.sh")
412 ;; Leave whitespace so we don't match the shebang.
413 ((" /bin/sh ") " sh "))
414 ;; This file contains a module that can create executable files
415 ;; which depend on the presence of SBCL. It generates shell
416 ;; scripts doing "exec sbcl ..." to achieve this. We patch both
417 ;; the shebang and the reference to "sbcl", tying the generated
418 ;; executables to the exact SBCL package that generated them.
419 (substitute* '("contrib/sb-executable/sb-executable.lisp")
420 (("/bin/sh") (string-append bash "/bin/sh"))
421 (("exec sbcl") (string-append "exec " out "/bin/sbcl")))
422 ;; Disable some tests that fail in our build environment.
423 (substitute* '("contrib/sb-bsd-sockets/tests.lisp")
424 ;; This requires /etc/protocols.
425 (("\\(deftest get-protocol-by-name/error" all)
426 (string-append "#+nil ;disabled by Guix\n" all)))
427 (substitute* '("contrib/sb-posix/posix-tests.lisp")
428 ;; These assume some users/groups which we don't have.
429 (("\\(deftest pwent\\.[12]" all)
430 (string-append "#+nil ;disabled by Guix\n" all))
431 (("\\(deftest grent\\.[12]" all)
432 (string-append "#+nil ;disabled by Guix\n" all))))))
4bddcae9
PN
433 ;; FIXME: the texlive-union insists on regenerating fonts. It stores
434 ;; them in HOME, so it needs to be writeable.
435 (add-before 'build 'set-HOME
436 (lambda _ (setenv "HOME" "/tmp") #t))
1ee131df
FB
437 (replace 'build
438 (lambda* (#:key outputs #:allow-other-keys)
439 (setenv "CC" "gcc")
76d520fa
EF
440 (invoke "sh" "make.sh" ,@(match (%current-system)
441 ((or "x86_64-linux" "i686-linux")
a3439b0c 442 `("clisp"))
76d520fa
EF
443 (_
444 `("clisp")))
4bddcae9 445 (string-append "--prefix="
5c8b9a43
PN
446 (assoc-ref outputs "out"))
447 "--with-sb-core-compression"
448 "--with-sb-xref-for-internals")))
1ee131df 449 (replace 'install
b702b52d 450 (lambda _
4bddcae9 451 (invoke "sh" "install.sh")))
05f5ce0c
FB
452 (add-after 'build 'build-doc
453 (lambda _
454 (with-directory-excursion "doc/manual"
4bddcae9
PN
455 (and (invoke "make" "info")
456 (invoke "make" "dist")))))
d0480ca1
PN
457 (add-after 'build 'build-source
458 (lambda* (#:key outputs #:allow-other-keys)
459 (let* ((out (assoc-ref outputs "out"))
460 (rc (string-append out "/lib/sbcl/sbclrc"))
461 (source-dir (string-append out "/share/sbcl")))
462 (for-each (lambda (p)
463 (copy-recursively p (string-append source-dir "/" p)))
464 '("src" "contrib"))
465 (mkdir-p (dirname rc))
466 (with-output-to-file rc
467 (lambda ()
468 (display
469 (string-append "(sb-ext:set-sbcl-source-location \""
470 source-dir "\")") )))
471 #t)))
05f5ce0c
FB
472 (add-after 'install 'install-doc
473 (lambda* (#:key outputs #:allow-other-keys)
474 (let* ((out (assoc-ref outputs "out"))
475 (doc (assoc-ref outputs "doc"))
476 (old-doc-dir (string-append out "/share/doc"))
477 (new-doc/sbcl-dir (string-append doc "/share/doc/sbcl")))
478 (rmdir (string-append old-doc-dir "/sbcl/html"))
479 (mkdir-p new-doc/sbcl-dir)
480 (copy-recursively (string-append old-doc-dir "/sbcl")
481 new-doc/sbcl-dir)
482 (delete-file-recursively old-doc-dir)
483 #t))))
1ee131df
FB
484 ;; No 'check' target, though "make.sh" (build phase) runs tests.
485 #:tests? #f))
8d0489ae
AP
486 (native-search-paths
487 (list (search-path-specification
488 (variable "XDG_DATA_DIRS")
489 (files '("share")))))
b702b52d
TUBK
490 (home-page "http://www.sbcl.org/")
491 (synopsis "Common Lisp implementation")
492 (description "Steel Bank Common Lisp (SBCL) is a high performance Common
493Lisp compiler. In addition to the compiler and runtime system for ANSI Common
494Lisp, it provides an interactive environment including a debugger, a
495statistical profiler, a code coverage tool, and many other extensions.")
496 ;; Public domain in jurisdictions that allow it, bsd-2 otherwise. MIT
497 ;; loop macro has its own license. See COPYING file for further notes.
498 (license (list license:public-domain license:bsd-2
499 (license:x11-style "file://src/code/loop.lisp")))))
531a9aac
TUBK
500
501(define-public ccl
a3439b0c
PN
502 ;; Warning: according to upstream, CCL is not bootstrappable.
503 ;; See https://github.com/Clozure/ccl/issues/222 from 2019-09-02:
504 ;;
505 ;; "As far as I know, there is no way to build CCL without an existing
506 ;; running CCL image. It was bootstrapped back in 1986 or so as
507 ;; Macintosh Common Lisp, by Gary Byers, I believe, who is no longer on
508 ;; the planet to tell us the story. It SHOULD be possible to port the
509 ;; CCL compiler to portable Common Lisp, so that ANY lisp could build
510 ;; it, as is the case for SBCL, but I know of no attempt to do so."
531a9aac
TUBK
511 (package
512 (name "ccl")
04ab38b7 513 (version "1.11.5")
531a9aac
TUBK
514 (source #f)
515 (build-system gnu-build-system)
516 ;; CCL consists of a "lisp kernel" and "heap image", both of which are
517 ;; shipped in precompiled form in source tarballs. The former is a C
518 ;; program which we can rebuild from scratch, but the latter cannot be
519 ;; generated without an already working copy of CCL, and is platform
520 ;; dependent, so we need to fetch the correct tarball for the platform.
521 (inputs
522 `(("ccl"
523 ,(origin
524 (method url-fetch)
525 (uri (string-append
04ab38b7 526 "https://github.com/Clozure/ccl/releases/download/v" version
3701f014 527 "/ccl-" version "-"
531a9aac
TUBK
528 (match (%current-system)
529 ((or "i686-linux" "x86_64-linux") "linuxx86")
42f11801
MW
530 ("armhf-linux" "linuxarm")
531 ;; Prevent errors when querying this package on unsupported
532 ;; platforms, e.g. when running "guix package --search="
533 (_ "UNSUPPORTED"))
531a9aac
TUBK
534 ".tar.gz"))
535 (sha256
536 (base32
537 (match (%current-system)
538 ((or "i686-linux" "x86_64-linux")
04ab38b7 539 "0hs1f3z7crgzvinpj990kv9gvbsipxvcvwbmk54n51nasvc5025q")
42f11801 540 ("armhf-linux"
04ab38b7 541 "0p0l1dzsygb6i1xxgbipjpxkn46xhq3jm41a34ga1qqp4x8lkr62")
42f11801 542 (_ ""))))))))
531a9aac
TUBK
543 (native-inputs
544 `(("m4" ,m4)
545 ("subversion" ,subversion)))
546 (arguments
547 `(#:tests? #f ;no 'check' target
fc7d5a34
AP
548 #:modules ((srfi srfi-26)
549 (guix build utils)
550 (guix build gnu-build-system))
531a9aac 551 #:phases
dc1d3cde
KK
552 (modify-phases %standard-phases
553 (replace 'unpack
554 (lambda* (#:key inputs #:allow-other-keys)
7d416066
RW
555 (invoke "tar" "xzvf" (assoc-ref inputs "ccl"))
556 (chdir "ccl")
557 #t))
dc1d3cde
KK
558 (delete 'configure)
559 (add-before 'build 'pre-build
560 ;; Enter the source directory for the current platform's lisp
561 ;; kernel, and run 'make clean' to remove the precompiled one.
562 (lambda _
bcc65510
EF
563 (substitute* "lisp-kernel/m4macros.m4"
564 (("/bin/pwd") (which "pwd")))
dc1d3cde
KK
565 (chdir (string-append
566 "lisp-kernel/"
567 ,(match (or (%current-target-system) (%current-system))
568 ("i686-linux" "linuxx8632")
569 ("x86_64-linux" "linuxx8664")
570 ("armhf-linux" "linuxarm")
571 ;; Prevent errors when querying this package
572 ;; on unsupported platforms, e.g. when running
573 ;; "guix package --search="
574 (_ "UNSUPPORTED"))))
575 (substitute* '("Makefile")
576 (("/bin/rm") "rm"))
577 (setenv "CC" "gcc")
7d416066 578 (invoke "make" "clean")))
dc1d3cde
KK
579 ;; XXX Do we need to recompile the heap image as well for Guix?
580 ;; For now just use the one we already got in the tarball.
581 (replace 'install
531a9aac
TUBK
582 (lambda* (#:key outputs inputs #:allow-other-keys)
583 ;; The lisp kernel built by running 'make' in lisp-kernel/$system
584 ;; is put back into the original directory, so go back. The heap
585 ;; image is there as well.
586 (chdir "../..")
587 (let* ((out (assoc-ref outputs "out"))
588 (libdir (string-append out "/lib/"))
589 (bindir (string-append out "/bin/"))
590 (wrapper (string-append bindir "ccl"))
591 (bash (assoc-ref inputs "bash"))
592 (kernel
593 ,(match (or (%current-target-system) (%current-system))
76eb7266 594 ("i686-linux" "lx86cl")
531a9aac 595 ("x86_64-linux" "lx86cl64")
76eb7266
MW
596 ("armhf-linux" "armcl")
597 ;; Prevent errors when querying this package
598 ;; on unsupported platforms, e.g. when running
599 ;; "guix package --search="
600 (_ "UNSUPPORTED")))
531a9aac 601 (heap (string-append kernel ".image")))
fc7d5a34
AP
602 (install-file kernel libdir)
603 (install-file heap libdir)
604
910ac0ef
PN
605 (let ((dirs '("lib" "library" "examples" "tools" "objc-bridge"
606 ,@(match (%current-system)
607 ("x86_64-linux"
608 '("x86-headers64"))
609 ("i686-linux"
610 '("x86-headers"))
611 (_ '())))))
fc7d5a34
AP
612 (for-each copy-recursively
613 dirs
614 (map (cut string-append libdir <>) dirs)))
615
531a9aac 616 (mkdir-p bindir)
531a9aac
TUBK
617 (with-output-to-file wrapper
618 (lambda ()
619 (display
620 (string-append
621 "#!" bash "/bin/sh\n"
eff8e0b4
PN
622 "export CCL_DEFAULT_DIRECTORY=" libdir "\n"
623 "exec -a \"$0\" " libdir kernel " \"$@\"\n"))))
dc1d3cde
KK
624 (chmod wrapper #o755))
625 #t)))))
531a9aac 626 (supported-systems '("i686-linux" "x86_64-linux" "armhf-linux"))
910ac0ef 627 (home-page "https://ccl.clozure.com/")
531a9aac
TUBK
628 (synopsis "Common Lisp implementation")
629 (description "Clozure CL (often called CCL for short) is a Common Lisp
630implementation featuring fast compilation speed, native threads, a precise,
631generational, compacting garbage collector, and a convenient foreign-function
632interface.")
633 ;; See file doc/LICENSE for clarifications it makes regarding how the LGPL
634 ;; applies to Lisp code according to them.
635 (license (list license:lgpl2.1
636 license:clarified-artistic)))) ;TRIVIAL-LDAP package
423eef36 637
05c63898 638(define-public lush2
639 (package
640 (name "lush2")
641 (version "2.0.1")
642 (source
643 (origin
644 (method url-fetch)
645 (uri (string-append "mirror://sourceforge/lush/lush2/lush-"
646 version ".tar.gz"))
647 (modules '((guix build utils)))
648 (snippet
649 '(begin
650 (substitute* "src/unix.c"
6cbee49d
MW
651 (("\\{ \"LUSH_DATE\", __DATE__ \\},") "")
652 (("\\{ \"LUSH_TIME\", __TIME__ \\},") ""))
653 (substitute* "src/main.c"
654 (("\" \\(built \" __DATE__ \"\\)\"") ""))
655 #t))
05c63898 656 (sha256
657 (base32
658 "02pkfn3nqdkm9fm44911dbcz0v3r0l53vygj8xigl6id5g3iwi4k"))))
659 (build-system gnu-build-system)
660 (arguments
661 `(;; We have to add these LIBS so that they are found.
662 #:configure-flags (list "LIBS=-lz"
663 "X_EXTRA_LIBS=-lfontconfig"
664 "--with-x")
665 #:tests? #f)) ; No make check.
666 (native-inputs `(("intltool" ,intltool)))
667 (inputs
668 `(("alsa-lib" ,alsa-lib)
669 ("sdl" ,sdl)
670 ("sdl-image" ,sdl-image)
671 ("sdl-mixer" ,sdl-mixer)
672 ("sdl-net" ,sdl-net)
673 ("sdl-ttf" ,sdl-ttf)
674 ("lapack" ,lapack)
675 ("libxft" ,libxft)
676 ("fontconfig" ,fontconfig)
677 ("gsl" ,gsl)
678 ("openblas" ,openblas)
679 ("glu" ,glu)
680 ("mesa" ,mesa)
681 ("mesa-utils" ,mesa-utils)
682 ("binutils" ,binutils)
683 ("libiberty" ,libiberty)
684 ("readline" ,readline)
685 ("zlib" ,zlib)
686 ("gettext-minimal" ,gettext-minimal)))
687 (synopsis "Lisp Universal Shell")
688 (description
689 "Lush is an object-oriented Lisp interpreter/compiler with features
690designed to please people who want to prototype large numerical
691applications. Lush includes an extensive library of
692vector/matrix/tensor manipulation, numerous numerical libraries
693(including GSL, LAPACK, and BLAS), a set of graphic functions, a
694simple GUI toolkit, and interfaces to various graphic and multimedia
695libraries such as OpenGL, SDL, Video4Linux, and ALSA (video/audio
696grabbing), and others. Lush is an ideal frontend script language for
697programming projects written in C or other languages. Lush also has
698libraries for Machine Learning, Neural Nets and statistical estimation.")
699 (home-page "http://lush.sourceforge.net/")
700 (license license:lgpl2.1+)))
701
a72debb7
AP
702(define-public sbcl-alexandria
703 (let ((revision "1")
f65f7138 704 (commit "3b849bc0116ea70f215ee6b2fbf354e862aaa9dd"))
a72debb7
AP
705 (package
706 (name "sbcl-alexandria")
f65f7138 707 (version (git-version "1.0.0" revision commit))
a72debb7
AP
708 (source
709 (origin
710 (method git-fetch)
711 (uri (git-reference
712 (url "https://gitlab.common-lisp.net/alexandria/alexandria.git")
713 (commit commit)))
714 (sha256
715 (base32
f65f7138
GLV
716 "04amwvx2vl691f0plcfbqqwxgib9zimih7jrn5zl7mbwvrxy022b"))
717 (file-name (git-file-name name version))))
a72debb7 718 (build-system asdf-build-system/sbcl)
f65f7138
GLV
719 (native-inputs
720 `(("rt" ,sbcl-rt)))
a72debb7
AP
721 (synopsis "Collection of portable utilities for Common Lisp")
722 (description
723 "Alexandria is a collection of portable utilities. It does not contain
724conceptual extensions to Common Lisp. It is conservative in scope, and
725portable between implementations.")
726 (home-page "https://common-lisp.net/project/alexandria/")
727 (license license:public-domain))))
728
729(define-public cl-alexandria
730 (sbcl-package->cl-source-package sbcl-alexandria))
731
732(define-public ecl-alexandria
733 (sbcl-package->ecl-package sbcl-alexandria))
86022c92 734
0403d01f
PN
735(define-public sbcl-net.didierverna.asdf-flv
736 (package
737 (name "sbcl-net.didierverna.asdf-flv")
738 (version "2.1")
739 (source
740 (origin
741 (method git-fetch)
742 (uri (git-reference
743 (url "https://github.com/didierverna/asdf-flv")
744 (commit (string-append "version-" version))))
745 (file-name (git-file-name "asdf-flv" version))
746 (sha256
747 (base32 "1fi2y4baxan103jbg4idjddzihy03kwnj2mzbwrknw4d4x7xlgwj"))))
748 (build-system asdf-build-system/sbcl)
749 (synopsis "Common Lisp ASDF extension to provide support for file-local variables")
750 (description "ASDF-FLV provides support for file-local variables through
751ASDF. A file-local variable behaves like @code{*PACKAGE*} and
752@code{*READTABLE*} with respect to @code{LOAD} and @code{COMPILE-FILE}: a new
753dynamic binding is created before processing the file, so that any
754modification to the variable becomes essentially file-local.
755
756In order to make one or several variables file-local, use the macros
757@code{SET-FILE-LOCAL-VARIABLE(S)}.")
758 (home-page "https://www.lrde.epita.fr/~didier/software/lisp/misc.php#asdf-flv")
759 (license (license:non-copyleft
760 "https://www.gnu.org/prep/maintain/html_node/License-Notices-for-Other-Files.html"
761 "GNU All-Permissive License"))))
762
763(define-public cl-net.didierverna.asdf-flv
764 (sbcl-package->cl-source-package sbcl-net.didierverna.asdf-flv))
765
61acb764 766(define-public ecl-net.didierverna.asdf-flv
0403d01f
PN
767 (sbcl-package->ecl-package sbcl-net.didierverna.asdf-flv))
768
86022c92
AP
769(define-public sbcl-fiveam
770 (package
771 (name "sbcl-fiveam")
0b2396b6 772 (version "1.4.1")
86022c92
AP
773 (source
774 (origin
02fbb5c3
TGR
775 (method git-fetch)
776 (uri (git-reference
777 (url "https://github.com/sionescu/fiveam.git")
778 (commit (string-append "v" version))))
779 (file-name (git-file-name "fiveam" version))
86022c92 780 (sha256
0b2396b6
PN
781 (base32 "1q3d38pwafnwnw42clq0f8g5xw7pbzr287jl9jsqmb1vb0n1vrli"))))
782 (inputs
783 `(("alexandria" ,sbcl-alexandria)
784 ("net.didierverna.asdf-flv" ,sbcl-net.didierverna.asdf-flv)
785 ("trivial-backtrace" ,sbcl-trivial-backtrace)))
86022c92
AP
786 (build-system asdf-build-system/sbcl)
787 (synopsis "Common Lisp testing framework")
788 (description "FiveAM is a simple (as far as writing and running tests
789goes) regression testing framework. It has been designed with Common Lisp's
790interactive development model in mind.")
791 (home-page "https://common-lisp.net/project/fiveam/")
792 (license license:bsd-3)))
793
794(define-public cl-fiveam
795 (sbcl-package->cl-source-package sbcl-fiveam))
796
797(define-public ecl-fiveam
798 (sbcl-package->ecl-package sbcl-fiveam))
8662809d
AP
799
800(define-public sbcl-bordeaux-threads
29331827 801 (let ((commit "5dce49fbc829f4d136a734f5ef4f5d599660984f")
543cf6fd
AP
802 (revision "1"))
803 (package
804 (name "sbcl-bordeaux-threads")
29331827 805 (version (git-version "0.8.6" revision commit))
543cf6fd
AP
806 (source (origin
807 (method git-fetch)
808 (uri (git-reference
809 (url "https://github.com/sionescu/bordeaux-threads.git")
810 (commit commit)))
811 (sha256
29331827 812 (base32 "1gkh9rz7zw57n3110ikcf4835950wr4hgp8l79id5ai6nd86x7wv"))
543cf6fd
AP
813 (file-name
814 (git-file-name "bordeaux-threads" version))))
815 (inputs `(("alexandria" ,sbcl-alexandria)))
816 (native-inputs `(("fiveam" ,sbcl-fiveam)))
817 (build-system asdf-build-system/sbcl)
818 (synopsis "Portable shared-state concurrency library for Common Lisp")
819 (description "BORDEAUX-THREADS is a proposed standard for a minimal
8662809d
AP
820MP/Threading interface. It is similar to the CLIM-SYS threading and lock
821support.")
543cf6fd
AP
822 (home-page "https://common-lisp.net/project/bordeaux-threads/")
823 (license license:x11))))
8662809d
AP
824
825(define-public cl-bordeaux-threads
826 (sbcl-package->cl-source-package sbcl-bordeaux-threads))
827
828(define-public ecl-bordeaux-threads
829 (sbcl-package->ecl-package sbcl-bordeaux-threads))
059cab30
AP
830
831(define-public sbcl-trivial-gray-streams
832 (let ((revision "1")
833 (commit "0483ade330508b4b2edeabdb47d16ec9437ee1cb"))
834 (package
835 (name "sbcl-trivial-gray-streams")
836 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
837 (source
838 (origin
839 (method git-fetch)
840 (uri
841 (git-reference
842 (url "https://github.com/trivial-gray-streams/trivial-gray-streams.git")
843 (commit commit)))
844 (sha256
845 (base32 "0m3rpf2x0zmdk3nf1qfa01j6a55vj7gkwhyw78qslcgbjlgh8p4d"))
846 (file-name
847 (string-append "trivial-gray-streams-" version "-checkout"))))
848 (build-system asdf-build-system/sbcl)
849 (synopsis "Compatibility layer for Gray streams implementations")
850 (description "Gray streams is an interface proposed for inclusion with
851ANSI CL by David N. Gray. The proposal did not make it into ANSI CL, but most
852popular CL implementations implement it. This package provides an extremely
853thin compatibility layer for gray streams.")
854 (home-page "http://www.cliki.net/trivial-gray-streams")
855 (license license:x11))))
856
857(define-public cl-trivial-gray-streams
858 (sbcl-package->cl-source-package sbcl-trivial-gray-streams))
859
860(define-public ecl-trivial-gray-streams
861 (sbcl-package->ecl-package sbcl-trivial-gray-streams))
3c55c780 862
1075623a
PL
863(define-public sbcl-fiasco
864 (let ((commit "d62f7558b21addc89f87e306f65d7f760632655f")
865 (revision "1"))
866 (package
867 (name "sbcl-fiasco")
868 (version (git-version "0.0.1" revision commit))
869 (source
870 (origin
871 (method git-fetch)
872 (uri (git-reference
873 (url "https://github.com/joaotavora/fiasco.git")
874 (commit commit)))
875 (file-name (git-file-name "fiasco" version))
876 (sha256
877 (base32
878 "1zwxs3d6iswayavcmb49z2892xhym7n556d8dnmvalc32pm9bkjh"))))
879 (build-system asdf-build-system/sbcl)
880 (inputs
881 `(("alexandria" ,sbcl-alexandria)
882 ("trivial-gray-streams" ,sbcl-trivial-gray-streams)))
883 (synopsis "Simple and powerful test framework for Common Lisp")
884 (description "A Common Lisp test framework that treasures your failures,
885logical continuation of Stefil. It focuses on interactive debugging.")
886 (home-page "https://github.com/joaotavora/fiasco")
887 ;; LICENCE specifies this is public-domain unless the legislation
888 ;; doesn't allow or recognize it. In that case it falls back to a
889 ;; permissive licence.
890 (license (list license:public-domain
891 (license:x11-style "file://LICENCE"))))))
892
893(define-public cl-fiasco
894 (sbcl-package->cl-source-package sbcl-fiasco))
895
896(define-public ecl-fiasco
897 (sbcl-package->ecl-package sbcl-fiasco))
898
3c55c780
AP
899(define-public sbcl-flexi-streams
900 (package
901 (name "sbcl-flexi-streams")
5dff0752 902 (version "1.0.16")
3c55c780
AP
903 (source
904 (origin
574edcc0
TGR
905 (method git-fetch)
906 (uri (git-reference
907 (url "https://github.com/edicl/flexi-streams.git")
908 (commit (string-append "v" version))))
909 (file-name (git-file-name "flexi-streams" version))
3c55c780 910 (sha256
574edcc0 911 (base32 "0gvykjlmja060zqq6nn6aqxlshh6r6ijahmmgf20q0d839rwpgxc"))))
3c55c780 912 (build-system asdf-build-system/sbcl)
574edcc0
TGR
913 (arguments
914 `(#:phases
915 (modify-phases %standard-phases
916 (add-after 'unpack 'make-git-checkout-writable
917 (lambda _
918 (for-each make-file-writable (find-files "."))
919 #t)))))
0e1371be 920 (inputs `(("trivial-gray-streams" ,sbcl-trivial-gray-streams)))
3c55c780
AP
921 (synopsis "Implementation of virtual bivalent streams for Common Lisp")
922 (description "Flexi-streams is an implementation of \"virtual\" bivalent
923streams that can be layered atop real binary or bivalent streams and that can
924be used to read and write character data in various single- or multi-octet
925encodings which can be changed on the fly. It also supplies in-memory binary
926streams which are similar to string streams.")
927 (home-page "http://weitz.de/flexi-streams/")
928 (license license:bsd-3)))
929
930(define-public cl-flexi-streams
931 (sbcl-package->cl-source-package sbcl-flexi-streams))
932
933(define-public ecl-flexi-streams
934 (sbcl-package->ecl-package sbcl-flexi-streams))
5aa608a7
AP
935
936(define-public sbcl-cl-ppcre
937 (package
938 (name "sbcl-cl-ppcre")
939 (version "2.0.11")
940 (source
941 (origin
eabcf02e
TGR
942 (method git-fetch)
943 (uri (git-reference
944 (url "https://github.com/edicl/cl-ppcre.git")
945 (commit (string-append "v" version))))
946 (file-name (git-file-name "cl-ppcre" version))
5aa608a7 947 (sha256
eabcf02e 948 (base32 "0q3iany07vgqm144lw6pj0af2d3vsikpbkwcxr30fci3kzsq4f49"))))
5aa608a7 949 (build-system asdf-build-system/sbcl)
0e1371be 950 (native-inputs `(("flexi-streams" ,sbcl-flexi-streams)))
5aa608a7
AP
951 (synopsis "Portable regular expression library for Common Lisp")
952 (description "CL-PPCRE is a portable regular expression library for Common
953Lisp, which is compatible with perl. It is pretty fast, thread-safe, and
954compatible with ANSI-compliant Common Lisp implementations.")
955 (home-page "http://weitz.de/cl-ppcre/")
956 (license license:bsd-2)))
957
958(define-public cl-ppcre
959 (sbcl-package->cl-source-package sbcl-cl-ppcre))
960
961(define-public ecl-cl-ppcre
962 (sbcl-package->ecl-package sbcl-cl-ppcre))
4b51b21c 963
ac259253
RW
964(define sbcl-cl-unicode-base
965 (let ((revision "1")
966 (commit "9fcd06fba1ddc9e66aed2f2d6c32dc9b764f03ea"))
967 (package
968 (name "sbcl-cl-unicode-base")
969 (version (string-append "0.1.5-" revision "." (string-take commit 7)))
970 (source (origin
971 (method git-fetch)
972 (uri (git-reference
973 (url "https://github.com/edicl/cl-unicode.git")
974 (commit commit)))
975 (file-name (string-append "cl-unicode-" version "-checkout"))
976 (sha256
977 (base32
978 "1jicprb5b3bv57dy1kg03572gxkcaqdjhak00426s76g0plmx5ki"))))
979 (build-system asdf-build-system/sbcl)
980 (arguments
981 '(#:asd-file "cl-unicode.asd"
982 #:asd-system-name "cl-unicode/base"))
983 (inputs
984 `(("cl-ppcre" ,sbcl-cl-ppcre)))
985 (home-page "http://weitz.de/cl-unicode/")
986 (synopsis "Portable Unicode library for Common Lisp")
987 (description "CL-UNICODE is a portable Unicode library Common Lisp, which
988is compatible with perl. It is pretty fast, thread-safe, and compatible with
989ANSI-compliant Common Lisp implementations.")
990 (license license:bsd-2))))
991
992(define-public sbcl-cl-unicode
993 (package
994 (inherit sbcl-cl-unicode-base)
995 (name "sbcl-cl-unicode")
996 (inputs
997 `(("cl-unicode/base" ,sbcl-cl-unicode-base)
998 ,@(package-inputs sbcl-cl-unicode-base)))
999 (native-inputs
1000 `(("flexi-streams" ,sbcl-flexi-streams)))
1001 (arguments '())))
1002
1003(define-public ecl-cl-unicode
1004 (sbcl-package->ecl-package sbcl-cl-unicode))
1005
1006(define-public cl-unicode
1007 (sbcl-package->cl-source-package sbcl-cl-unicode))
1008
4b51b21c 1009(define-public sbcl-clx
c894b803
PL
1010 (package
1011 (name "sbcl-clx")
1012 (version "0.7.5")
1013 (source
1014 (origin
1015 (method git-fetch)
1016 (uri
1017 (git-reference
1018 (url "https://github.com/sharplispers/clx.git")
1019 (commit version)))
1020 (sha256
1021 (base32
1022 "1vi67z9hpj5rr4xcmfbfwzmlcc0ah7hzhrmfid6lqdkva238v2wf"))
1023 (file-name (string-append "clx-" version))))
1024 (build-system asdf-build-system/sbcl)
1025 (native-inputs
1026 `(("fiasco" ,sbcl-fiasco)))
1027 (home-page "http://www.cliki.net/portable-clx")
1028 (synopsis "X11 client library for Common Lisp")
1029 (description "CLX is an X11 client library for Common Lisp. The code was
4b51b21c
AP
1030originally taken from a CMUCL distribution, was modified somewhat in order to
1031make it compile and run under SBCL, then a selection of patches were added
1032from other CLXes around the net.")
c894b803 1033 (license license:x11)))
4b51b21c
AP
1034
1035(define-public cl-clx
1036 (sbcl-package->cl-source-package sbcl-clx))
1037
1038(define-public ecl-clx
1039 (sbcl-package->ecl-package sbcl-clx))
d075960f 1040
b693aa6e
RW
1041(define-public sbcl-cl-ppcre-unicode
1042 (package (inherit sbcl-cl-ppcre)
1043 (name "sbcl-cl-ppcre-unicode")
1044 (arguments
1045 `(#:tests? #f ; tests fail with "Component :CL-PPCRE-TEST not found"
1046 #:asd-file "cl-ppcre-unicode.asd"))
1047 (inputs
1048 `(("sbcl-cl-ppcre" ,sbcl-cl-ppcre)
1049 ("sbcl-cl-unicode" ,sbcl-cl-unicode)))))
1050
4b193da3 1051(define-public stumpwm
d075960f 1052 (package
4b193da3 1053 (name "stumpwm")
ba9ba64d 1054 (version "18.11")
4d2c51de
TGR
1055 (source
1056 (origin
1057 (method git-fetch)
1058 (uri (git-reference
1059 (url "https://github.com/stumpwm/stumpwm.git")
1060 (commit version)))
1061 (file-name (git-file-name "stumpwm" version))
1062 (sha256
1063 (base32 "003g1fmh7446ws49866kzny4lrk1wf034dq5fa4m9mq1nzc7cwv7"))
1064 (patches
1065 ;; This patch is included in the post-18.11 git master tree
1066 ;; and can be removed when we move to the next release.
1067 (search-patches "stumpwm-fix-broken-read-one-line.patch"))))
d075960f 1068 (build-system asdf-build-system/sbcl)
46c1c553
TGR
1069 (native-inputs `(("fiasco" ,sbcl-fiasco)
1070 ("texinfo" ,texinfo)))
0e1371be 1071 (inputs `(("cl-ppcre" ,sbcl-cl-ppcre)
abf818bc
OP
1072 ("clx" ,sbcl-clx)
1073 ("alexandria" ,sbcl-alexandria)))
290bf612 1074 (outputs '("out" "lib"))
d075960f 1075 (arguments
4b193da3
PL
1076 '(#:asd-system-name "stumpwm"
1077 #:phases
d075960f
AP
1078 (modify-phases %standard-phases
1079 (add-after 'create-symlinks 'build-program
b4c9f0c5 1080 (lambda* (#:key outputs #:allow-other-keys)
d075960f 1081 (build-program
290bf612 1082 (string-append (assoc-ref outputs "out") "/bin/stumpwm")
4209c31b 1083 outputs
d075960f
AP
1084 #:entry-program '((stumpwm:stumpwm) 0))))
1085 (add-after 'build-program 'create-desktop-file
290bf612
AP
1086 (lambda* (#:key outputs #:allow-other-keys)
1087 (let* ((out (assoc-ref outputs "out"))
1088 (xsessions (string-append out "/share/xsessions")))
1089 (mkdir-p xsessions)
1090 (call-with-output-file
1091 (string-append xsessions "/stumpwm.desktop")
1092 (lambda (file)
1093 (format file
d075960f
AP
1094 "[Desktop Entry]~@
1095 Name=stumpwm~@
1096 Comment=The Stump Window Manager~@
1097 Exec=~a/bin/stumpwm~@
1098 TryExec=~@*~a/bin/stumpwm~@
1099 Icon=~@
1100 Type=Application~%"
290bf612 1101 out)))
46c1c553
TGR
1102 #t)))
1103 (add-after 'install 'install-manual
1104 (lambda* (#:key outputs #:allow-other-keys)
1105 ;; The proper way to the manual is bootstrapping a full autotools
1106 ;; build system and running ‘./configure && make stumpwm.info’ to
1107 ;; do some macro substitution. We can get away with much less.
1108 (let* ((out (assoc-ref outputs "out"))
1109 (info (string-append out "/share/info")))
1110 (invoke "makeinfo" "stumpwm.texi.in")
1111 (install-file "stumpwm.info" info)
d075960f
AP
1112 #t))))))
1113 (synopsis "Window manager written in Common Lisp")
1114 (description "Stumpwm is a window manager written entirely in Common Lisp.
1115It attempts to be highly customizable while relying entirely on the keyboard
1116for input. These design decisions reflect the growing popularity of
1117productive, customizable lisp based systems.")
7bf837fd 1118 (home-page "https://github.com/stumpwm/stumpwm")
d075960f 1119 (license license:gpl2+)
4b193da3 1120 (properties `((cl-source-variant . ,(delay cl-stumpwm))))))
d075960f 1121
4b193da3
PL
1122(define-public sbcl-stumpwm
1123 (deprecated-package "sbcl-stumpwm" stumpwm))
d075960f 1124
4b193da3
PL
1125(define-public cl-stumpwm
1126 (package
1127 (inherit (sbcl-package->cl-source-package stumpwm))
1128 (name "cl-stumpwm")))
e3e171ee 1129
75e8b3af
AP
1130;; The slynk that users expect to install includes all of slynk's contrib
1131;; modules. Therefore, we build the base module and all contribs first; then
1132;; we expose the union of these as `sbcl-slynk'. The following variable
1133;; describes the base module.
e3e171ee 1134(define sbcl-slynk-boot0
1d98b44e
AP
1135 (let ((revision "2")
1136 (commit "cbf84c36c4eca8b032e3fd16177a7bc02df3ec4c"))
e3e171ee 1137 (package
f56da605 1138 (name "sbcl-slynk-boot0")
e3e171ee
AP
1139 (version (string-append "1.0.0-beta-" revision "." (string-take commit 7)))
1140 (source
1141 (origin
1142 (method git-fetch)
1143 (uri
1144 (git-reference
1145 (url "https://github.com/joaotavora/sly.git")
1146 (commit commit)))
1147 (sha256
1d98b44e 1148 (base32 "13dyhsravn591p7g6is01mp2ynzjnnj7pwgi57r6xqmd4611y9vh"))
e3e171ee
AP
1149 (file-name (string-append "slynk-" version "-checkout"))
1150 (modules '((guix build utils)
1151 (ice-9 ftw)))
1152 (snippet
1153 '(begin
1154 ;; Move the contribs into the main source directory for easier
1155 ;; access
1156 (substitute* "slynk/slynk.asd"
1157 (("\\.\\./contrib")
1158 "contrib")
1d98b44e
AP
1159 (("\\(defsystem :slynk/util")
1160 "(defsystem :slynk/util :depends-on (:slynk)")
1161 ((":depends-on \\(:slynk :slynk/util\\)")
1162 ":depends-on (:slynk :slynk-util)"))
e3e171ee
AP
1163 (substitute* "contrib/slynk-trace-dialog.lisp"
1164 (("\\(slynk::reset-inspector\\)") ; Causes problems on load
1165 "nil"))
1166 (substitute* "contrib/slynk-profiler.lisp"
1167 (("slynk:to-line")
1168 "slynk-pprint-to-line"))
1d98b44e
AP
1169 (substitute* "contrib/slynk-fancy-inspector.lisp"
1170 (("slynk/util") "slynk-util")
1171 ((":compile-toplevel :load-toplevel") ""))
e3e171ee
AP
1172 (rename-file "contrib" "slynk/contrib")
1173 ;; Move slynk's contents into the base directory for easier
1174 ;; access
6cbee49d
MW
1175 (for-each (lambda (file)
1176 (unless (string-prefix? "." file)
1177 (rename-file (string-append "slynk/" file)
1178 (string-append "./" (basename file)))))
1179 (scandir "slynk"))
1180 #t))))
e3e171ee
AP
1181 (build-system asdf-build-system/sbcl)
1182 (arguments
f56da605
AP
1183 `(#:tests? #f ; No test suite
1184 #:asd-system-name "slynk"))
e3e171ee 1185 (synopsis "Common Lisp IDE for Emacs")
14afc7b8
AP
1186 (description "SLY is a fork of SLIME, an IDE backend for Common Lisp.
1187It also features a completely redesigned REPL based on Emacs's own
1188full-featured comint.el, live code annotations, and a consistent interactive
1189button interface. Everything can be copied to the REPL. One can create
1190multiple inspectors with independent history.")
e3e171ee
AP
1191 (home-page "https://github.com/joaotavora/sly")
1192 (license license:public-domain)
1193 (properties `((cl-source-variant . ,(delay cl-slynk)))))))
1194
1195(define-public cl-slynk
f56da605
AP
1196 (package
1197 (inherit (sbcl-package->cl-source-package sbcl-slynk-boot0))
1198 (name "cl-slynk")))
e3e171ee
AP
1199
1200(define ecl-slynk-boot0
1201 (sbcl-package->ecl-package sbcl-slynk-boot0))
1202
1203(define sbcl-slynk-arglists
1204 (package
1205 (inherit sbcl-slynk-boot0)
1206 (name "sbcl-slynk-arglists")
0e1371be 1207 (inputs `(("slynk" ,sbcl-slynk-boot0)))
e3e171ee 1208 (arguments
f56da605
AP
1209 (substitute-keyword-arguments (package-arguments sbcl-slynk-boot0)
1210 ((#:asd-file _ "") "slynk.asd")
1d98b44e 1211 ((#:asd-system-name _ #f) "slynk/arglists")))))
e3e171ee
AP
1212
1213(define ecl-slynk-arglists
1214 (sbcl-package->ecl-package sbcl-slynk-arglists))
1215
1216(define sbcl-slynk-util
1217 (package
1d98b44e
AP
1218 (inherit sbcl-slynk-boot0)
1219 (name "sbcl-slynk-util")
1220 (inputs `(("slynk" ,sbcl-slynk-boot0)))
1221 (arguments
1222 (substitute-keyword-arguments (package-arguments sbcl-slynk-boot0)
1223 ((#:asd-file _ "") "slynk.asd")
1224 ((#:asd-system-name _ #f) "slynk/util")))))
e3e171ee
AP
1225
1226(define ecl-slynk-util
1227 (sbcl-package->ecl-package sbcl-slynk-util))
1228
1229(define sbcl-slynk-fancy-inspector
1230 (package
1231 (inherit sbcl-slynk-arglists)
1232 (name "sbcl-slynk-fancy-inspector")
0e1371be 1233 (inputs `(("slynk-util" ,sbcl-slynk-util)
1d98b44e
AP
1234 ,@(package-inputs sbcl-slynk-arglists)))
1235 (arguments
1236 (substitute-keyword-arguments (package-arguments sbcl-slynk-arglists)
1237 ((#:asd-system-name _ #f) "slynk/fancy-inspector")))))
e3e171ee
AP
1238
1239(define ecl-slynk-fancy-inspector
1240 (sbcl-package->ecl-package sbcl-slynk-fancy-inspector))
1241
1242(define sbcl-slynk-package-fu
1243 (package
1244 (inherit sbcl-slynk-arglists)
1d98b44e
AP
1245 (name "sbcl-slynk-package-fu")
1246 (arguments
1247 (substitute-keyword-arguments (package-arguments sbcl-slynk-arglists)
1248 ((#:asd-system-name _ #f) "slynk/package-fu")))))
e3e171ee
AP
1249
1250(define ecl-slynk-package-fu
1251 (sbcl-package->ecl-package sbcl-slynk-package-fu))
1252
1253(define sbcl-slynk-mrepl
1254 (package
1d98b44e
AP
1255 (inherit sbcl-slynk-fancy-inspector)
1256 (name "sbcl-slynk-mrepl")
1257 (arguments
1258 (substitute-keyword-arguments (package-arguments sbcl-slynk-arglists)
1259 ((#:asd-system-name _ #f) "slynk/mrepl")))))
e3e171ee
AP
1260
1261(define ecl-slynk-mrepl
1262 (sbcl-package->ecl-package sbcl-slynk-mrepl))
1263
1264(define sbcl-slynk-trace-dialog
1265 (package
1266 (inherit sbcl-slynk-arglists)
1d98b44e
AP
1267 (name "sbcl-slynk-trace-dialog")
1268 (arguments
1269 (substitute-keyword-arguments (package-arguments sbcl-slynk-arglists)
1270 ((#:asd-system-name _ #f) "slynk/trace-dialog")))))
e3e171ee
AP
1271
1272(define ecl-slynk-trace-dialog
1273 (sbcl-package->ecl-package sbcl-slynk-trace-dialog))
1274
1275(define sbcl-slynk-profiler
1276 (package
1277 (inherit sbcl-slynk-arglists)
1d98b44e
AP
1278 (name "sbcl-slynk-profiler")
1279 (arguments
1280 (substitute-keyword-arguments (package-arguments sbcl-slynk-arglists)
1281 ((#:asd-system-name _ #f) "slynk/profiler")))))
e3e171ee
AP
1282
1283(define ecl-slynk-profiler
1284 (sbcl-package->ecl-package sbcl-slynk-profiler))
1285
1286(define sbcl-slynk-stickers
1287 (package
1288 (inherit sbcl-slynk-arglists)
1d98b44e
AP
1289 (name "sbcl-slynk-stickers")
1290 (arguments
1291 (substitute-keyword-arguments (package-arguments sbcl-slynk-arglists)
1292 ((#:asd-system-name _ #f) "slynk/stickers")))))
e3e171ee
AP
1293
1294(define ecl-slynk-stickers
1295 (sbcl-package->ecl-package sbcl-slynk-stickers))
1296
1297(define sbcl-slynk-indentation
1298 (package
1299 (inherit sbcl-slynk-arglists)
1d98b44e
AP
1300 (name "sbcl-slynk-indentation")
1301 (arguments
1302 (substitute-keyword-arguments (package-arguments sbcl-slynk-arglists)
1303 ((#:asd-system-name _ #f) "slynk/indentation")))))
e3e171ee
AP
1304
1305(define ecl-slynk-indentation
1306 (sbcl-package->ecl-package sbcl-slynk-indentation))
1307
1308(define sbcl-slynk-retro
1309 (package
1310 (inherit sbcl-slynk-arglists)
1d98b44e
AP
1311 (name "sbcl-slynk-retro")
1312 (arguments
1313 (substitute-keyword-arguments (package-arguments sbcl-slynk-arglists)
1314 ((#:asd-system-name _ #f) "slynk/retro")))))
e3e171ee
AP
1315
1316(define ecl-slynk-retro
1317 (sbcl-package->ecl-package sbcl-slynk-retro))
1318
1319(define slynk-systems
1320 '("slynk"
1321 "slynk-util"
1322 "slynk-arglists"
1323 "slynk-fancy-inspector"
1324 "slynk-package-fu"
1325 "slynk-mrepl"
1326 "slynk-profiler"
1327 "slynk-trace-dialog"
1328 "slynk-stickers"
1329 "slynk-indentation"
1330 "slynk-retro"))
1331
1332(define-public sbcl-slynk
1333 (package
1334 (inherit sbcl-slynk-boot0)
f56da605 1335 (name "sbcl-slynk")
e3e171ee
AP
1336 (inputs
1337 `(("slynk" ,sbcl-slynk-boot0)
1338 ("slynk-util" ,sbcl-slynk-util)
1339 ("slynk-arglists" ,sbcl-slynk-arglists)
1340 ("slynk-fancy-inspector" ,sbcl-slynk-fancy-inspector)
1341 ("slynk-package-fu" ,sbcl-slynk-package-fu)
1342 ("slynk-mrepl" ,sbcl-slynk-mrepl)
1343 ("slynk-profiler" ,sbcl-slynk-profiler)
1344 ("slynk-trace-dialog" ,sbcl-slynk-trace-dialog)
1345 ("slynk-stickers" ,sbcl-slynk-stickers)
1346 ("slynk-indentation" ,sbcl-slynk-indentation)
1347 ("slynk-retro" ,sbcl-slynk-retro)))
1348 (native-inputs `(("sbcl" ,sbcl)))
1349 (build-system trivial-build-system)
1350 (source #f)
1351 (outputs '("out" "image"))
1352 (arguments
1353 `(#:modules ((guix build union)
1354 (guix build utils)
1355 (guix build lisp-utils))
1356 #:builder
1357 (begin
1358 (use-modules (ice-9 match)
1359 (srfi srfi-1)
1360 (guix build union)
1361 (guix build lisp-utils))
1362
1363 (union-build
1364 (assoc-ref %outputs "out")
1365 (filter-map
1366 (match-lambda
1367 ((name . path)
1368 (if (string-prefix? "slynk" name) path #f)))
1369 %build-inputs))
1370
1371 (prepend-to-source-registry
1372 (string-append (assoc-ref %outputs "out") "//"))
b4c9f0c5
AP
1373
1374 (parameterize ((%lisp-type "sbcl")
1375 (%lisp (string-append (assoc-ref %build-inputs "sbcl")
1376 "/bin/sbcl")))
1377 (build-image (string-append
1378 (assoc-ref %outputs "image")
1379 "/bin/slynk")
4209c31b 1380 %outputs
e3cfef22
MW
1381 #:dependencies ',slynk-systems))
1382 #t)))))
e3e171ee
AP
1383
1384(define-public ecl-slynk
1385 (package
1386 (inherit sbcl-slynk)
1387 (name "ecl-slynk")
1388 (inputs
1389 (map (match-lambda
1390 ((name pkg . _)
1391 (list name (sbcl-package->ecl-package pkg))))
1392 (package-inputs sbcl-slynk)))
1393 (native-inputs '())
1394 (outputs '("out"))
1395 (arguments
1396 '(#:modules ((guix build union))
1397 #:builder
1398 (begin
1399 (use-modules (ice-9 match)
1400 (guix build union))
1401 (match %build-inputs
1402 (((names . paths) ...)
1403 (union-build (assoc-ref %outputs "out")
e3cfef22
MW
1404 paths)
1405 #t)))))))
96784438 1406
4b193da3 1407(define-public stumpwm+slynk
96784438 1408 (package
4b193da3
PL
1409 (inherit stumpwm)
1410 (name "stumpwm-with-slynk")
96784438 1411 (outputs '("out"))
4209c31b 1412 (inputs
4b193da3 1413 `(("stumpwm" ,stumpwm "lib")
96784438
AP
1414 ("slynk" ,sbcl-slynk)))
1415 (arguments
4b193da3 1416 (substitute-keyword-arguments (package-arguments stumpwm)
96784438
AP
1417 ((#:phases phases)
1418 `(modify-phases ,phases
1419 (replace 'build-program
4209c31b 1420 (lambda* (#:key inputs outputs #:allow-other-keys)
96784438
AP
1421 (let* ((out (assoc-ref outputs "out"))
1422 (program (string-append out "/bin/stumpwm")))
4209c31b 1423 (build-program program outputs
96784438
AP
1424 #:entry-program '((stumpwm:stumpwm) 0)
1425 #:dependencies '("stumpwm"
4209c31b
AP
1426 ,@slynk-systems)
1427 #:dependency-prefixes
1428 (map (lambda (input) (assoc-ref inputs input))
1429 '("stumpwm" "slynk")))
96784438
AP
1430 ;; Remove unneeded file.
1431 (delete-file (string-append out "/bin/stumpwm-exec.fasl"))
1432 #t)))
1433 (delete 'copy-source)
1434 (delete 'build)
1435 (delete 'check)
290bf612 1436 (delete 'create-asd-file)
96784438
AP
1437 (delete 'cleanup)
1438 (delete 'create-symlinks)))))))
d00c96d7 1439
4b193da3
PL
1440(define-public sbcl-stumpwm+slynk
1441 (deprecated-package "sbcl-stumpwm-with-slynk" stumpwm+slynk))
1442
d00c96d7
RW
1443(define-public sbcl-parse-js
1444 (let ((commit "fbadc6029bec7039602abfc06c73bb52970998f6")
1445 (revision "1"))
1446 (package
1447 (name "sbcl-parse-js")
1448 (version (string-append "0.0.0-" revision "." (string-take commit 9)))
1449 (source
1450 (origin
1451 (method git-fetch)
1452 (uri (git-reference
1453 (url "http://marijn.haverbeke.nl/git/parse-js")
1454 (commit commit)))
1455 (file-name (string-append name "-" commit "-checkout"))
1456 (sha256
1457 (base32
1458 "1wddrnr5kiya5s3gp4cdq6crbfy9fqcz7fr44p81502sj3bvdv39"))))
1459 (build-system asdf-build-system/sbcl)
1460 (home-page "http://marijnhaverbeke.nl/parse-js/")
1461 (synopsis "Parse JavaScript")
1462 (description "Parse-js is a Common Lisp package for parsing
1463JavaScript (ECMAScript 3). It has basic support for ECMAScript 5.")
1464 (license license:zlib))))
d0eec99a 1465
6c16f1a5
PN
1466(define-public cl-parse-js
1467 (sbcl-package->cl-source-package sbcl-parse-js))
1468
d0eec99a
RW
1469(define-public sbcl-parse-number
1470 (package
1471 (name "sbcl-parse-number")
1472 (version "1.5")
1473 (source
1474 (origin
1475 (method url-fetch)
1476 (uri (string-append "https://github.com/sharplispers/parse-number/"
1477 "archive/v" version ".tar.gz"))
1478 (file-name (string-append name "-" version ".tar.gz"))
1479 (sha256
1480 (base32
1481 "1k6s4v65ksc1j5i0dprvzfvj213v6nah7i0rgd0726ngfjisj9ir"))))
1482 (build-system asdf-build-system/sbcl)
1483 (home-page "http://www.cliki.net/PARSE-NUMBER")
1484 (synopsis "Parse numbers")
1485 (description "@code{parse-number} is a library of functions for parsing
1486strings into one of the standard Common Lisp number types without using the
1487reader. @code{parse-number} accepts an arbitrary string and attempts to parse
1488the string into one of the standard Common Lisp number types, if possible, or
1489else @code{parse-number} signals an error of type @code{invalid-number}.")
1490 (license license:bsd-3)))
1491
6c16f1a5
PN
1492(define-public cl-parse-number
1493 (sbcl-package->cl-source-package sbcl-parse-number))
1494
476b583f
RW
1495(define-public sbcl-iterate
1496 (package
1497 (name "sbcl-iterate")
1498 ;; The latest official release (1.4.3) fails to build so we have to take
1499 ;; the current darcs tarball from quicklisp.
1500 (version "20160825")
1501 (source
1502 (origin
1503 (method url-fetch)
1504 (uri (string-append "http://beta.quicklisp.org/archive/iterate/"
1505 "2016-08-25/iterate-"
1506 version "-darcs.tgz"))
1507 (sha256
1508 (base32
1509 "0kvz16gnxnkdz0fy1x8y5yr28nfm7i2qpvix7mgwccdpjmsb4pgm"))))
1510 (build-system asdf-build-system/sbcl)
5bb3272e
GLV
1511 (native-inputs
1512 `(("rt" ,sbcl-rt)))
476b583f
RW
1513 (home-page "https://common-lisp.net/project/iterate/")
1514 (synopsis "Iteration construct for Common Lisp")
1515 (description "@code{iterate} is an iteration construct for Common Lisp.
1516It is similar to the @code{CL:LOOP} macro, with these distinguishing marks:
1517
1518@itemize
1519@item it is extensible,
1520@item it helps editors like Emacs indent iterate forms by having a more
1521 lisp-like syntax, and
1522@item it isn't part of the ANSI standard for Common Lisp.
1523@end itemize\n")
1524 (license license:expat)))
52650a4d 1525
6c16f1a5
PN
1526(define-public cl-iterate
1527 (sbcl-package->cl-source-package sbcl-iterate))
1528
93b27394
GLV
1529(define-public ecl-iterate
1530 (sbcl-package->ecl-package sbcl-iterate))
1531
52650a4d
RW
1532(define-public sbcl-cl-uglify-js
1533 ;; There have been many bug fixes since the 2010 release.
1534 (let ((commit "429c5e1d844e2f96b44db8fccc92d6e8e28afdd5")
1535 (revision "1"))
1536 (package
1537 (name "sbcl-cl-uglify-js")
1538 (version (string-append "0.1-" revision "." (string-take commit 9)))
1539 (source
1540 (origin
1541 (method git-fetch)
1542 (uri (git-reference
1543 (url "https://github.com/mishoo/cl-uglify-js.git")
1544 (commit commit)))
03e8182b 1545 (file-name (git-file-name name version))
52650a4d
RW
1546 (sha256
1547 (base32
1548 "0k39y3c93jgxpr7gwz7w0d8yknn1fdnxrjhd03057lvk5w8js27a"))))
1549 (build-system asdf-build-system/sbcl)
1550 (inputs
1551 `(("sbcl-parse-js" ,sbcl-parse-js)
1552 ("sbcl-cl-ppcre" ,sbcl-cl-ppcre)
1553 ("sbcl-cl-ppcre-unicode" ,sbcl-cl-ppcre-unicode)
1554 ("sbcl-parse-number" ,sbcl-parse-number)
1555 ("sbcl-iterate" ,sbcl-iterate)))
1556 (home-page "https://github.com/mishoo/cl-uglify-js")
1557 (synopsis "JavaScript compressor library for Common Lisp")
1558 (description "This is a Common Lisp version of UglifyJS, a JavaScript
1559compressor. It works on data produced by @code{parse-js} to generate a
1560@dfn{minified} version of the code. Currently it can:
1561
1562@itemize
1563@item reduce variable names (usually to single letters)
1564@item join consecutive @code{var} statements
1565@item resolve simple binary expressions
36a4366d 1566@item group most consecutive statements using the @code{sequence} operator (comma)
52650a4d
RW
1567@item remove unnecessary blocks
1568@item convert @code{IF} expressions in various ways that result in smaller code
1569@item remove some unreachable code
1570@end itemize\n")
1571 (license license:zlib))))
dd35abfe 1572
6c16f1a5
PN
1573(define-public cl-uglify-js
1574 (sbcl-package->cl-source-package sbcl-cl-uglify-js))
1575
dd35abfe
RW
1576(define-public uglify-js
1577 (package
1578 (inherit sbcl-cl-uglify-js)
1579 (name "uglify-js")
1580 (build-system trivial-build-system)
1581 (arguments
1582 `(#:modules ((guix build utils))
1583 #:builder
1584 (let* ((bin (string-append (assoc-ref %outputs "out") "/bin/"))
1585 (script (string-append bin "uglify-js")))
1586 (use-modules (guix build utils))
1587 (mkdir-p bin)
1588 (with-output-to-file script
1589 (lambda _
1590 (format #t "#!~a/bin/sbcl --script
1591 (require :asdf)
1592 (push (truename \"~a/lib/sbcl\") asdf:*central-registry*)"
1593 (assoc-ref %build-inputs "sbcl")
1594 (assoc-ref %build-inputs "sbcl-cl-uglify-js"))
1595 ;; FIXME: cannot use progn here because otherwise it fails to
1596 ;; find cl-uglify-js.
1597 (for-each
1598 write
1599 '(;; Quiet, please!
1600 (let ((*standard-output* (make-broadcast-stream))
1601 (*error-output* (make-broadcast-stream)))
1602 (asdf:load-system :cl-uglify-js))
1603 (let ((file (cadr *posix-argv*)))
1604 (if file
1605 (format t "~a"
1606 (cl-uglify-js:ast-gen-code
1607 (cl-uglify-js:ast-mangle
1608 (cl-uglify-js:ast-squeeze
1609 (with-open-file (in file)
1610 (parse-js:parse-js in))))
1611 :beautify nil))
1612 (progn
1613 (format *error-output*
1614 "Please provide a JavaScript file.~%")
1615 (sb-ext:exit :code 1))))))))
1616 (chmod script #o755)
1617 #t)))
1618 (inputs
1619 `(("sbcl" ,sbcl)
1620 ("sbcl-cl-uglify-js" ,sbcl-cl-uglify-js)))
1621 (synopsis "JavaScript compressor")))
56c240ba
LC
1622
1623(define-public confusion-mdl
1624 (let* ((commit "12a055581fc262225272df43287dae48281900f5"))
1625 (package
1626 (name "confusion-mdl")
1627 (version "0.2")
1628 (source (origin
1629 (method git-fetch)
1630 (uri (git-reference
1631 (url (string-append "https://gitlab.com/emacsomancer/" name))
1632 (commit commit)))
1633 (sha256
1634 (base32
1635 "1zi8kflzvwqg97ha1sa5xjisbjs5z1mvbpa772vfxiv5ksnpxp0d"))
1636 (file-name (git-file-name name version))))
1637 (build-system gnu-build-system)
1638 (arguments
1639 `(#:tests? #f ; there are no tests
1640 #:phases
1641 (modify-phases %standard-phases
1642 (delete 'configure)
1643 (replace 'build
1644 (lambda* (#:key (make-flags '()) #:allow-other-keys)
1645 (apply invoke "make" "CC=gcc" make-flags)))
1646 (replace 'install
1647 (lambda* (#:key outputs #:allow-other-keys)
1648 (let* ((out (assoc-ref outputs "out"))
1649 (bin (string-append out "/bin")))
1650 (install-file "mdli" bin)
1651 #t))))))
1652 (native-inputs
1653 `(("perl" ,perl)))
1654 (inputs
1655 `(("libgc" ,libgc)))
1656 (synopsis "Interpreter for the MIT Design Language (MDL)")
1657 (description "MDL (the MIT Design Language) is a descendant of Lisp. It
1658was originally developed in 1971 on the PDP-10 computer under the Incompatible
1659Timesharing System (ITS) to provide high level language support for the
1660Dynamic Modeling Group at MIT's Project MAC. Infocom built the original
1661PDP-10 Zork in MDL and their later ZIL (Zork Implementation Language) was
1662based on a subset of MDL. Confusion is a MDL interpreter that works just well
1663enough to play the original mainframe Zork all the way through.")
1664 (home-page "http://www.russotto.net/git/mrussotto/confusion/src/master/src/README")
1665 (license license:gpl3+))))
99c61242
PN
1666
1667(define-public sbcl-cl-strings
1668 (let ((revision "1")
1669 (commit "c5c5cbafbf3e6181d03c354d66e41a4f063f00ae"))
1670 (package
1671 (name "sbcl-cl-strings")
1672 (version (git-version "0.0.0" revision commit))
1673 (source
1674 (origin
1675 (method git-fetch)
1676 (uri (git-reference
1677 (url "https://github.com/diogoalexandrefranco/cl-strings")
1678 (commit commit)))
1679 (sha256
1680 (base32
1681 "00754mfaqallj480lwd346nkfb6ra8pa8xcxcylf4baqn604zlmv"))
1682 (file-name (string-append "cl-strings-" version "-checkout"))))
1683 (build-system asdf-build-system/sbcl)
1684 (synopsis "Portable, dependency-free set of utilities to manipulate strings in Common Lisp")
1685 (description
1686 "@command{cl-strings} is a small, portable, dependency-free set of
1687utilities that make it even easier to manipulate text in Common Lisp. It has
1688100% test coverage and works at least on sbcl, ecl, ccl, abcl and clisp.")
1689 (home-page "https://github.com/diogoalexandrefranco/cl-strings")
1690 (license license:expat))))
1691
1692(define-public cl-strings
1693 (sbcl-package->cl-source-package sbcl-cl-strings))
1694
1695(define-public ecl-cl-strings
1696 (sbcl-package->ecl-package sbcl-cl-strings))
8c661ff1
PN
1697
1698(define-public sbcl-trivial-features
1699 (package
1700 (name "sbcl-trivial-features")
1701 (version "0.8")
1702 (source
1703 (origin
9769caa9
TGR
1704 (method git-fetch)
1705 (uri (git-reference
1706 (url "https://github.com/trivial-features/trivial-features.git")
1707 (commit (string-append "v" version))))
1708 (file-name (git-file-name "trivial-features" version))
8c661ff1 1709 (sha256
9769caa9 1710 (base32 "0ccv7dqyrk55xga78i5vzlic7mdwp28in3g1a8fqhlk6626scsq9"))))
8c661ff1
PN
1711 (build-system asdf-build-system/sbcl)
1712 (arguments '(#:tests? #f))
1713 (home-page "http://cliki.net/trivial-features")
1714 (synopsis "Ensures consistency of @code{*FEATURES*} in Common Lisp")
1715 (description "Trivial-features ensures that @code{*FEATURES*} is
1716consistent across multiple Common Lisp implementations.")
1717 (license license:expat)))
1718
1719(define-public cl-trivial-features
1720 (sbcl-package->cl-source-package sbcl-trivial-features))
1721
1722(define-public ecl-trivial-features
1723 (sbcl-package->ecl-package sbcl-trivial-features))
0cd6fb49
PN
1724
1725(define-public sbcl-hu.dwim.asdf
7273b3b2
GLV
1726 (package
1727 (name "sbcl-hu.dwim.asdf")
1728 (version "20190521")
1729 (source
1730 (origin
1731 (method url-fetch)
1732 (uri (string-append "http://beta.quicklisp.org/archive/hu.dwim.asdf/"
1733 "2019-05-21/hu.dwim.asdf-" version "-darcs.tgz"))
1734 (sha256
1735 (base32
1736 "0rsbv71vyszy8w35yjwb5h6zcmknjq223hkzir79y72qdsc6sabn"))))
1737 (build-system asdf-build-system/sbcl)
1738 (home-page "https://hub.darcs.net/hu.dwim/hu.dwim.asdf")
1739 (synopsis "Extensions to ASDF")
1740 (description "Various ASDF extensions such as attached test and
0cd6fb49 1741documentation system, explicit development support, etc.")
7273b3b2 1742 (license license:public-domain)))
0cd6fb49
PN
1743
1744(define-public cl-hu.dwim.asdf
1745 (sbcl-package->cl-source-package sbcl-hu.dwim.asdf))
1746
1747(define-public ecl-hu.dwim.asdf
1748 (sbcl-package->ecl-package sbcl-hu.dwim.asdf))
4ef9ddbd
PN
1749
1750(define-public sbcl-hu.dwim.stefil
1751 (let ((commit "ab6d1aa8995878a1b66d745dfd0ba021090bbcf9"))
1752 (package
1753 (name "sbcl-hu.dwim.stefil")
1754 (version (git-version "0.0.0" "1" commit))
1755 (source
1756 (origin
1757 (method git-fetch)
1758 (uri
1759 (git-reference
1760 (url "https://gitlab.common-lisp.net/xcvb/hu.dwim.stefil.git")
1761 (commit commit)))
1762 (sha256
1763 (base32 "1d8yccw65zj3zh46cbi3x6nmn1dwdb76s9d0av035077mvyirqqp"))
1764 (file-name (git-file-name "hu.dwim.stefil" version))))
1765 (build-system asdf-build-system/sbcl)
1766 (native-inputs
1767 `(("asdf:cl-hu.dwim.asdf" ,sbcl-hu.dwim.asdf)))
1768 (inputs
1769 `(("sbcl-alexandria" ,sbcl-alexandria)))
1770 (home-page "https://hub.darcs.net/hu.dwim/hu.dwim.stefil")
1771 (synopsis "Simple test framework")
1772 (description "Stefil is a simple test framework for Common Lisp,
1773with a focus on interactive development.")
1774 (license license:public-domain))))
1775
1776(define-public cl-hu.dwim.stefil
1777 (sbcl-package->cl-source-package sbcl-hu.dwim.stefil))
1778
1779(define-public ecl-hu.dwim.stefil
1780 (sbcl-package->ecl-package sbcl-hu.dwim.stefil))
2d418bfa
PN
1781
1782(define-public sbcl-babel
1783 (package
1784 (name "sbcl-babel")
1785 (version "0.5.0")
1786 (source
1787 (origin
0471c001
TGR
1788 (method git-fetch)
1789 (uri (git-reference
1790 (url "https://github.com/cl-babel/babel.git")
1791 (commit (string-append "v" version))))
1792 (file-name (git-file-name "babel" version))
2d418bfa 1793 (sha256
0471c001 1794 (base32 "139a8rn2gnhj082n8jg01gc8fyr63hkj57hgrnmb3d1r327yc77f"))))
2d418bfa
PN
1795 (build-system asdf-build-system/sbcl)
1796 (native-inputs
1797 `(("tests:cl-hu.dwim.stefil" ,sbcl-hu.dwim.stefil)))
1798 (inputs
1799 `(("sbcl-alexandria" ,sbcl-alexandria)
1800 ("sbcl-trivial-features" ,sbcl-trivial-features)))
1801 (home-page "https://common-lisp.net/project/babel/")
1802 (synopsis "Charset encoding and decoding library")
1803 (description "Babel is a charset encoding and decoding library, not unlike
1804GNU libiconv, but completely written in Common Lisp.")
1805 (license license:expat)))
1806
1807(define-public cl-babel
1808 (sbcl-package->cl-source-package sbcl-babel))
1809
1810(define-public ecl-babel
1811 (sbcl-package->ecl-package sbcl-babel))
ef091e91
PN
1812
1813(define-public sbcl-cl-yacc
1814 (package
1815 (name "sbcl-cl-yacc")
1816 (version "0.3")
1817 (source
1818 (origin
1819 (method git-fetch)
1820 (uri (git-reference
1821 (url "https://github.com/jech/cl-yacc")
1822 (commit (string-append "cl-yacc-" version))))
1823 (sha256
1824 (base32
1825 "16946pzf8vvadnyfayvj8rbh4zjzw90h0azz2qk1mxrvhh5wklib"))
1826 (file-name (string-append "cl-yacc-" version "-checkout"))))
1827 (build-system asdf-build-system/sbcl)
1828 (arguments
1829 `(#:asd-file "yacc.asd"
1830 #:asd-system-name "yacc"))
1831 (synopsis "LALR(1) parser generator for Common Lisp, similar in spirit to Yacc")
1832 (description
1833 "CL-Yacc is a LALR(1) parser generator for Common Lisp, similar in spirit
1834to AT&T Yacc, Berkeley Yacc, GNU Bison, Zebu, lalr.cl or lalr.scm.
1835
1836CL-Yacc uses the algorithm due to Aho and Ullman, which is the one also used
1837by AT&T Yacc, Berkeley Yacc and Zebu. It does not use the faster algorithm due
1838to DeRemer and Pennello, which is used by Bison and lalr.scm (not lalr.cl).")
1839 (home-page "https://www.irif.fr/~jch//software/cl-yacc/")
1840 (license license:expat)))
1841
1842(define-public cl-yacc
1843 (sbcl-package->cl-source-package sbcl-cl-yacc))
1844
1845(define-public ecl-cl-yacc
1846 (sbcl-package->ecl-package sbcl-cl-yacc))
232e1abc
PN
1847
1848(define-public sbcl-jpl-util
1849 (let ((commit "0311ed374e19a49d43318064d729fe3abd9a3b62"))
1850 (package
1851 (name "sbcl-jpl-util")
1852 (version "20151005")
1853 (source
1854 (origin
1855 (method git-fetch)
1856 (uri (git-reference
1857 ;; Quicklisp uses this fork.
1858 (url "https://github.com/hawkir/cl-jpl-util")
1859 (commit commit)))
1860 (file-name
1861 (git-file-name "jpl-util" version))
1862 (sha256
1863 (base32
1864 "0nc0rk9n8grkg3045xsw34whmcmddn2sfrxki4268g7kpgz0d2yz"))))
1865 (build-system asdf-build-system/sbcl)
1866 (synopsis "Collection of Common Lisp utility functions and macros")
1867 (description
1868 "@command{cl-jpl-util} is a collection of Common Lisp utility functions
1869and macros, primarily for software projects written in CL by the author.")
1870 (home-page "https://www.thoughtcrime.us/software/cl-jpl-util/")
1871 (license license:isc))))
1872
1873(define-public cl-jpl-util
1874 (sbcl-package->cl-source-package sbcl-jpl-util))
1875
1876(define-public ecl-jpl-util
1877 (sbcl-package->ecl-package sbcl-jpl-util))
8f41fa06
PN
1878
1879(define-public sbcl-jpl-queues
1880 (package
1881 (name "sbcl-jpl-queues")
1882 (version "0.1")
1883 (source
1884 (origin
1885 (method url-fetch)
1886 (uri (string-append
1887 "http://www.thoughtcrime.us/software/jpl-queues/jpl-queues-"
1888 version
1889 ".tar.gz"))
1890 (sha256
1891 (base32
1892 "1wvvv7j117h9a42qaj1g4fh4mji28xqs7s60rn6d11gk9jl76h96"))))
1893 (build-system asdf-build-system/sbcl)
1894 (inputs
1895 `(("jpl-util" ,sbcl-jpl-util)
1896 ("bordeaux-threads" ,sbcl-bordeaux-threads)))
1897 (arguments
1898 ;; Tests seem to be broken.
1899 `(#:tests? #f))
1900 (synopsis "Common Lisp library implementing a few different kinds of queues")
1901 (description
1902 "A Common Lisp library implementing a few different kinds of queues:
1903
1904@itemize
1905@item Bounded and unbounded FIFO queues.
1906@item Lossy bounded FIFO queues that drop elements when full.
1907@item Unbounded random-order queues that use less memory than unbounded FIFO queues.
1908@end itemize
1909
1910Additionally, a synchronization wrapper is provided to make any queue
1911conforming to the @command{jpl-queues} API thread-safe for lightweight
1912multithreading applications. (See Calispel for a more sophisticated CL
1913multithreaded message-passing library with timeouts and alternation among
1914several blockable channels.)")
1915 (home-page "https://www.thoughtcrime.us/software/jpl-queues/")
1916 (license license:isc)))
1917
1918(define-public cl-jpl-queues
1919 (sbcl-package->cl-source-package sbcl-jpl-queues))
1920
1921(define-public ecl-jpl-queues
1922 (sbcl-package->ecl-package sbcl-jpl-queues))
989cd79b
PN
1923
1924(define-public sbcl-eos
1925 (let ((commit "b0faca83781ead9a588661e37bd47f90362ccd94"))
1926 (package
1927 (name "sbcl-eos")
1928 (version (git-version "0.0.0" "1" commit))
1929 (source
1930 (origin
1931 (method git-fetch)
1932 (uri (git-reference
1933 (url "https://github.com/adlai/Eos")
1934 (commit commit)))
1935 (sha256
1936 (base32
1937 "1bq8cfg087iyxmxi1mwgx5cfgy3b8ydrf81xljcis8qbgb2vszph"))
1938 (file-name (git-file-name "eos" version))))
1939 (build-system asdf-build-system/sbcl)
1940 (synopsis "Unit Testing for Common Lisp")
1941 (description
1942 "Eos was a unit testing library for Common Lisp.
1943It began as a fork of FiveAM; however, FiveAM development has continued, while
1944that of Eos has not. Thus, Eos is now deprecated in favor of FiveAM.")
1945 (home-page "https://github.com/adlai/Eos")
1946 (license license:expat))))
1947
1948(define-public cl-eos
1949 (sbcl-package->cl-source-package sbcl-eos))
1950
1951(define-public ecl-eos
1952 (sbcl-package->ecl-package sbcl-eos))
bdf83297
PN
1953
1954(define-public sbcl-esrap
1955 (let ((commit "133be8b05c2aae48696fe5b739eea2fa573fa48d"))
1956 (package
1957 (name "sbcl-esrap")
1958 (version (git-version "0.0.0" "1" commit))
1959 (source
1960 (origin
1961 (method git-fetch)
1962 (uri (git-reference
1963 (url "https://github.com/nikodemus/esrap")
1964 (commit commit)))
1965 (sha256
1966 (base32
1967 "02d5clihsdryhf7pix8c5di2571fdsffh75d40fkzhws90r5mksl"))
1968 (file-name (git-file-name "esrap" version))))
1969 (build-system asdf-build-system/sbcl)
1970 (native-inputs
1971 `(("eos" ,sbcl-eos))) ;For testing only.
1972 (inputs
1973 `(("alexandria" ,sbcl-alexandria)))
1974 (synopsis "Common Lisp packrat parser")
1975 (description
1976 "A packrat parser for Common Lisp.
1977In addition to regular Packrat / Parsing Grammar / TDPL features ESRAP supports:
1978
1979@itemize
1980@item dynamic redefinition of nonterminals
1981@item inline grammars
1982@item semantic predicates
1983@item introspective facilities (describing grammars, tracing, setting breaks)
1984@end itemize\n")
1985 (home-page "https://nikodemus.github.io/esrap/")
1986 (license license:expat))))
1987
1988(define-public cl-esrap
1989 (sbcl-package->cl-source-package sbcl-esrap))
1990
1991(define-public ecl-esrap
1992 (sbcl-package->ecl-package sbcl-esrap))
14100159
PN
1993
1994(define-public sbcl-split-sequence
1995 (package
1996 (name "sbcl-split-sequence")
1997 (version "1.4.1")
1998 (source
1999 (origin
2000 (method git-fetch)
2001 (uri (git-reference
2002 (url "https://github.com/sharplispers/split-sequence")
2003 (commit (string-append "v" version))))
2004 (sha256
2005 (base32
2006 "0c3zp6b7fmmp93sfhq112ind4zkld49ycw68z409xpnz3gc0wpf0"))
2007 (file-name (git-file-name "split-sequence" version))))
2008 (build-system asdf-build-system/sbcl)
2009 (arguments
2010 ;; TODO: Tests seem to be broken.
2011 ;; https://github.com/sharplispers/split-sequence/issues/8
2012 `(#:tests? #f))
2013 (synopsis "Member of the Common Lisp Utilities family of programs")
2014 (description
2015 "Splits sequence into a list of subsequences delimited by objects
2016satisfying the test.")
2017 (home-page "https://cliki.net/split-sequence")
2018 (license license:expat)))
2019
2020(define-public cl-split-sequence
2021 (sbcl-package->cl-source-package sbcl-split-sequence))
2022
2023(define-public ecl-split-sequence
2024 (sbcl-package->ecl-package sbcl-split-sequence))
6a1761cb
PN
2025
2026(define-public sbcl-html-encode
2027 (package
2028 (name "sbcl-html-encode")
2029 (version "1.2")
2030 (source
2031 (origin
2032 (method url-fetch)
2033 (uri (string-append
2034 "http://beta.quicklisp.org/archive/html-encode/2010-10-06/html-encode-"
2035 version ".tgz"))
2036 (sha256
2037 (base32
2038 "06mf8wn95yf5swhmzk4vp0xr4ylfl33dgfknkabbkd8n6jns8gcf"))
2039 (file-name (string-append "colorize" version "-checkout"))))
2040 (build-system asdf-build-system/sbcl)
2041 (synopsis "Common Lisp library for encoding text in various web-savvy encodings")
2042 (description
2043 "A library for encoding text in various web-savvy encodings.")
2044 (home-page "http://quickdocs.org/html-encode/")
2045 (license license:expat)))
2046
2047(define-public cl-html-encode
2048 (sbcl-package->cl-source-package sbcl-html-encode))
2049
2050(define-public ecl-html-encode
2051 (sbcl-package->ecl-package sbcl-html-encode))
b4ba1c0a
PN
2052
2053(define-public sbcl-colorize
2054 (let ((commit "ea676b584e0899cec82f21a9e6871172fe3c0eb5"))
2055 (package
2056 (name "sbcl-colorize")
2057 (version (git-version "0.0.0" "1" commit))
2058 (source
2059 (origin
2060 (method git-fetch)
2061 (uri (git-reference
2062 (url "https://github.com/kingcons/colorize")
2063 (commit commit)))
2064 (sha256
2065 (base32
2066 "1pdg4kiaczmr3ivffhirp7m3lbr1q27rn7dhaay0vwghmi31zcw9"))
2067 (file-name (git-file-name "colorize" version))))
2068 (build-system asdf-build-system/sbcl)
2069 (inputs
2070 `(("alexandria" ,sbcl-alexandria)
2071 ("split-sequence" ,sbcl-split-sequence)
2072 ("html-encode" ,sbcl-html-encode)))
2073 (synopsis "Common Lisp for syntax highlighting")
2074 (description
2075 "@command{colorize} is a Lisp library for syntax highlighting
2076supporting the following languages: Common Lisp, Emacs Lisp, Scheme, Clojure,
2077C, C++, Java, Python, Erlang, Haskell, Objective-C, Diff, Webkit.")
2078 (home-page "https://github.com/kingcons/colorize")
2079 ;; TODO: Missing license?
2080 (license license:expat))))
2081
2082(define-public cl-colorize
2083 (sbcl-package->cl-source-package sbcl-colorize))
2084
2085(define-public ecl-colorize
2086 (sbcl-package->ecl-package sbcl-colorize))
ef0c3e14
PN
2087
2088(define-public sbcl-3bmd
2089 (let ((commit "192ea13435b605a96ef607df51317056914cabbd"))
2090 (package
2091 (name "sbcl-3bmd")
2092 (version (git-version "0.0.0" "1" commit))
2093 (source
2094 (origin
2095 (method git-fetch)
2096 (uri (git-reference
2097 (url "https://github.com/3b/3bmd")
2098 (commit commit)))
2099 (sha256
2100 (base32
2101 "1rgv3gi7wf963ikmmpk132wgn0icddf226gq3bmcnk1fr3v9gf2f"))
2102 (file-name (git-file-name "3bmd" version))))
2103 (build-system asdf-build-system/sbcl)
2104 (arguments
2105 ;; FIXME: We need to specify the name because the build-system thinks
2106 ;; "3" is a version marker.
2107 `(#:asd-system-name "3bmd"))
2108 (inputs
2109 `(("esrap" ,sbcl-esrap)
2110 ("split-sequence" ,sbcl-split-sequence)))
2111 (synopsis "Markdown processor in Command Lisp using esrap parser")
2112 (description
2113 "Common Lisp Markdown -> HTML converter, using @command{esrap} for
2114parsing, and grammar based on @command{peg-markdown}.")
2115 (home-page "https://github.com/3b/3bmd")
2116 (license license:expat))))
2117
2118(define-public cl-3bmd
2119 (sbcl-package->cl-source-package sbcl-3bmd))
2120
2121(define-public ecl-3bmd
2122 (sbcl-package->ecl-package sbcl-3bmd))
1a3d39c4
PN
2123
2124(define-public sbcl-3bmd-ext-code-blocks
2125 (let ((commit "192ea13435b605a96ef607df51317056914cabbd"))
2126 (package
2127 (inherit sbcl-3bmd)
2128 (name "sbcl-3bmd-ext-code-blocks")
2129 (arguments
2130 `(#:asd-system-name "3bmd-ext-code-blocks"
2131 #:asd-file "3bmd-ext-code-blocks.asd"))
2132 (inputs
2133 `(("3bmd" ,sbcl-3bmd)
2134 ("colorize" ,sbcl-colorize)))
2135 (synopsis "3bmd extension which adds support for GitHub-style fenced
2136code blocks")
2137 (description
2138 "3bmd extension which adds support for GitHub-style fenced code blocks,
2139with @command{colorize} support."))))
2140
2141(define-public cl-3bmd-ext-code-blocks
2142 (sbcl-package->cl-source-package sbcl-3bmd-ext-code-blocks))
2143
2144(define-public ecl-3bmd-ext-code-blocks
2145 (sbcl-package->ecl-package sbcl-3bmd-ext-code-blocks))
18554968
PN
2146
2147(define-public sbcl-cl-fad
2148 (package
2149 (name "sbcl-cl-fad")
2150 (version "0.7.5")
2151 (source
2152 (origin
2153 (method git-fetch)
2154 (uri (git-reference
2155 (url "https://github.com/edicl/cl-fad/")
2156 (commit (string-append "v" version))))
2157 (sha256
2158 (base32
2159 "1l1qmk9z57q84bz5r04sxsksggsnd7dgkxlybzh9imz6ma7sm52m"))
2160 (file-name (string-append "cl-fad" version "-checkout"))))
2161 (build-system asdf-build-system/sbcl)
2162 (inputs
2163 `(("bordeaux-threads" ,sbcl-bordeaux-threads)))
2164 (synopsis "Portable pathname library for Common Lisp")
2165 (description
2166 "CL-FAD (for \"Files and Directories\") is a thin layer atop Common
2167Lisp's standard pathname functions. It is intended to provide some
2168unification between current CL implementations on Windows, OS X, Linux, and
2169Unix. Most of the code was written by Peter Seibel for his book Practical
2170Common Lisp.")
2171 (home-page "https://edicl.github.io/cl-fad/")
2172 (license license:bsd-2)))
2173
2174(define-public cl-fad
2175 (sbcl-package->cl-source-package sbcl-cl-fad))
2176
2177(define-public ecl-cl-fad
2178 (sbcl-package->ecl-package sbcl-cl-fad))
5800c538
PN
2179
2180(define-public sbcl-rt
2181 (package
2182 (name "sbcl-rt")
2183 (version "1990.12.19")
2184 (source
2185 (origin
2186 (method url-fetch)
2187 (uri (string-append "http://beta.quicklisp.org/archive/rt/2010-10-06/rt-"
2188 "20101006-git" ".tgz"))
2189 (sha256
2190 (base32
2191 "1jncar0xwkqk8yrc2dln389ivvgzs7ijdhhs3zpfyi5d21f0qa1v"))))
2192 (build-system asdf-build-system/sbcl)
2193 (synopsis "MIT Regression Tester")
2194 (description
2195 "RT provides a framework for writing regression test suites.")
2196 (home-page "https://github.com/sharplispers/nibbles")
2197 (license license:unlicense)))
2198
2199(define-public cl-rt
2200 (sbcl-package->cl-source-package sbcl-rt))
2201
2202(define-public ecl-rt
2203 (sbcl-package->ecl-package sbcl-rt))
fbdd9b2c
PN
2204
2205(define-public sbcl-nibbles
2206 (package
2207 (name "sbcl-nibbles")
2208 (version "0.14")
2209 (source
2210 (origin
2211 (method git-fetch)
2212 (uri (git-reference
2213 (url "https://github.com/sharplispers/nibbles/")
2214 (commit (string-append "v" version))))
2215 (sha256
2216 (base32
2217 "1v7qfgpvdr6nz7v63dj69d26dis0kff3rd8xamr1llfdvza2pm8f"))
2218 (file-name (git-file-name "nibbles" version))))
2219 (build-system asdf-build-system/sbcl)
2220 (native-inputs
2221 ;; Tests only.
2222 `(("rt" ,sbcl-rt)))
2223 (synopsis "Common Lisp library for accessing octet-addressed blocks of data")
2224 (description
2225 "When dealing with network protocols and file formats, it's common to
2226have to read or write 16-, 32-, or 64-bit datatypes in signed or unsigned
2227flavors. Common Lisp sort of supports this by specifying :element-type for
2228streams, but that facility is underspecified and there's nothing similar for
2229read/write from octet vectors. What most people wind up doing is rolling their
2230own small facility for their particular needs and calling it a day.
2231
2232This library attempts to be comprehensive and centralize such
2233facilities. Functions to read 16-, 32-, and 64-bit quantities from octet
2234vectors in signed or unsigned flavors are provided; these functions are also
2235SETFable. Since it's sometimes desirable to read/write directly from streams,
2236functions for doing so are also provided. On some implementations,
2237reading/writing IEEE singles/doubles (i.e. single-float and double-float) will
2238also be supported.")
2239 (home-page "https://github.com/sharplispers/nibbles")
2240 (license license:bsd-3)))
2241
2242(define-public cl-nibbles
2243 (sbcl-package->cl-source-package sbcl-nibbles))
2244
2245(define-public ecl-nibbles
2246 (sbcl-package->ecl-package sbcl-nibbles))
e549ba05
PN
2247
2248(define-public sbcl-ironclad
2249 (package
2250 (name "sbcl-ironclad")
97ce5964 2251 (version "0.46")
e549ba05
PN
2252 (source
2253 (origin
2254 (method git-fetch)
2255 (uri (git-reference
2256 (url "https://github.com/sharplispers/ironclad/")
2257 (commit (string-append "v" version))))
2258 (sha256
2259 (base32
97ce5964
GLV
2260 "1s391awi2lsl7m1dbjirgpkm4p9p8wd076pakgvsvpn1rrznisnd"))
2261 (file-name (git-file-name name version))))
e549ba05
PN
2262 (build-system asdf-build-system/sbcl)
2263 (native-inputs
2264 ;; Tests only.
2265 `(("rt" ,sbcl-rt)))
2266 (inputs
97ce5964
GLV
2267 `(("bordeaux-threads" ,sbcl-bordeaux-threads)
2268 ("flexi-streams" ,sbcl-flexi-streams)
e549ba05
PN
2269 ("nibbles" ,sbcl-nibbles)))
2270 (synopsis "Cryptographic toolkit written in Common Lisp")
2271 (description
2272 "Ironclad is a cryptography library written entirely in Common Lisp.
2273It includes support for several popular ciphers, digests, MACs and public key
2274cryptography algorithms. For several implementations that support Gray
2275streams, support is included for convenient stream wrappers.")
2276 (home-page "https://github.com/sharplispers/ironclad")
2277 (license license:bsd-3)))
2278
2279(define-public cl-ironclad
2280 (sbcl-package->cl-source-package sbcl-ironclad))
2281
2282(define-public ecl-ironclad
2283 (sbcl-package->ecl-package sbcl-ironclad))
fb8c4bc6
PN
2284
2285(define-public sbcl-named-readtables
2286 (let ((commit "4dfb89fa1af6b305b6492b8af042f5190c11e9fc")
2287 (revision "1"))
2288 (package
2289 (name "sbcl-named-readtables")
2290 (version (string-append "0.9-" revision "." (string-take commit 7)))
2291 (source
2292 (origin
2293 (method git-fetch)
2294 (uri (git-reference
2295 (url "https://github.com/melisgl/named-readtables.git")
2296 (commit commit)))
2297 (sha256
2298 (base32 "083kgh5462iqbb4px6kq8s7sggvpvkm36hx4qi9rnaw53b6ilqkk"))
2299 (file-name (git-file-name "named-readtables" version))))
2300 (build-system asdf-build-system/sbcl)
2301 (arguments
2302 ;; Tests seem to be broken.
2303 `(#:tests? #f))
2304 (home-page "https://github.com/melisgl/named-readtables/")
2305 (synopsis "Library that creates a namespace for named readtables")
2306 (description "Named readtables is a library that creates a namespace for
2307named readtables, which is akin to package namespacing in Common Lisp.")
2308 (license license:bsd-3))))
2309
2310(define-public cl-named-readtables
2311 (sbcl-package->cl-source-package sbcl-named-readtables))
2312
2313(define-public ecl-named-readtables
2314 (sbcl-package->ecl-package sbcl-named-readtables))
f07efbf1
PN
2315
2316(define-public sbcl-pythonic-string-reader
2317 (let ((commit "47a70ba1e32362e03dad6ef8e6f36180b560f86a"))
2318 (package
2319 (name "sbcl-pythonic-string-reader")
2320 (version (git-version "0.0.0" "1" commit))
2321 (source
2322 (origin
2323 (method git-fetch)
2324 (uri (git-reference
2325 (url "https://github.com/smithzvk/pythonic-string-reader/")
2326 (commit commit)))
2327 (sha256
2328 (base32 "1b5iryqw8xsh36swckmz8rrngmc39k92si33fgy5pml3n9l5rq3j"))
2329 (file-name (git-file-name "pythonic-string-reader" version))))
2330 (build-system asdf-build-system/sbcl)
2331 (inputs
2332 `(("named-readtables" ,sbcl-named-readtables)))
2333 (home-page "https://github.com/smithzvk/pythonic-string-reader")
2334 (synopsis "Read table modification inspired by Python's three quote strings")
2335 (description "This piece of code sets up some reader macros that make it
2336simpler to input string literals which contain backslashes and double quotes
2337This is very useful for writing complicated docstrings and, as it turns out,
2338writing code that contains string literals that contain code themselves.")
2339 (license license:bsd-3))))
2340
2341(define-public cl-pythonic-string-reader
2342 (sbcl-package->cl-source-package sbcl-pythonic-string-reader))
2343
2344(define-public ecl-pythonic-string-reader
2345 (sbcl-package->ecl-package sbcl-pythonic-string-reader))
8d8d1c8d 2346
2026204a
PN
2347;; SLIME does not have a ASDF system definition to build all of Swank. As a
2348;; result, the asdf-build-system/sbcl will produce an almost empty package.
2349;; Some work was done to fix this at
2350;; https://github.com/sionescu/slime/tree/swank-asdf but it was never merged
2351;; and is now lagging behind. Building SBCL fasls might not be worth the
2352;; hassle, so let's just ship the source then.
2353(define-public cl-slime-swank
c4d4ae1e 2354 (package
2026204a
PN
2355 (name "cl-slime-swank")
2356 (version "2.24")
c4d4ae1e
PN
2357 (source
2358 (origin
2359 (file-name (string-append name "-" version ".tar.gz"))
2360 (method git-fetch)
2361 (uri (git-reference
2026204a
PN
2362 (url "https://github.com/slime/slime/")
2363 (commit (string-append "v" version))))
c4d4ae1e
PN
2364 (sha256
2365 (base32
2026204a
PN
2366 "0js24x42m7b5iymb4rxz501dff19vav5pywnzv50b673rbkaaqvh"))))
2367 (build-system asdf-build-system/source)
c4d4ae1e
PN
2368 (home-page "https://github.com/slime/slime")
2369 (synopsis "Common Lisp Swank server")
2370 (description
2371 "This is only useful if you want to start a Swank server in a Lisp
2372processes that doesn't run under Emacs. Lisp processes created by
2373@command{M-x slime} automatically start the server.")
0ee6692a 2374 (license (list license:gpl2+ license:public-domain))))
c4d4ae1e 2375
2026204a
PN
2376(define-public sbcl-slime-swank
2377 (deprecated-package "sbcl-slime-swank" cl-slime-swank))
2378
8d8d1c8d
PN
2379(define-public sbcl-mgl-pax
2380 (let ((commit "818448418d6b9de74620f606f5b23033c6082769"))
2381 (package
2382 (name "sbcl-mgl-pax")
2383 (version (git-version "0.0.0" "1" commit))
2384 (source
2385 (origin
2386 (method git-fetch)
2387 (uri (git-reference
2388 (url "https://github.com/melisgl/mgl-pax")
2389 (commit commit)))
2390 (sha256
2391 (base32
2392 "1p97zfkh130bdxqqxwaw2j9psv58751wakx7czbfpq410lg7dd7i"))
2393 (file-name (git-file-name "mgl-pax" version))))
2394 (build-system asdf-build-system/sbcl)
2395 (inputs
2396 `(("3bmd" ,sbcl-3bmd)
2397 ("3bmd-ext-code-blocks" ,sbcl-3bmd-ext-code-blocks)
2398 ("babel" ,sbcl-babel)
2399 ("cl-fad" ,sbcl-cl-fad)
2400 ("ironclad" ,sbcl-ironclad)
2401 ("named-readtables" ,sbcl-named-readtables)
2402 ("pythonic-string-reader" ,sbcl-pythonic-string-reader)
2026204a 2403 ("swank" ,cl-slime-swank)))
8d8d1c8d
PN
2404 (synopsis "Exploratory programming environment and documentation generator")
2405 (description
2406 "PAX provides an extremely poor man's Explorable Programming
2407environment. Narrative primarily lives in so called sections that mix markdown
2408docstrings with references to functions, variables, etc, all of which should
2409probably have their own docstrings.
2410
2411The primary focus is on making code easily explorable by using SLIME's
2412@command{M-.} (@command{slime-edit-definition}). See how to enable some
2413fanciness in Emacs Integration. Generating documentation from sections and all
2414the referenced items in Markdown or HTML format is also implemented.
2415
2416With the simplistic tools provided, one may accomplish similar effects as with
2417Literate Programming, but documentation is generated from code, not vice versa
2418and there is no support for chunking yet. Code is first, code must look
2419pretty, documentation is code.")
2420 (home-page "http://quotenil.com/")
2421 (license license:expat))))
2422
2423(define-public cl-mgl-pax
2424 (sbcl-package->cl-source-package sbcl-mgl-pax))
2425
2426(define-public ecl-mgl-pax
2427 (sbcl-package->ecl-package sbcl-mgl-pax))
a927eb36 2428
19a1c3be
PN
2429(define-public sbcl-lisp-unit
2430 (let ((commit "89653a232626b67400bf9a941f9b367da38d3815"))
2431 (package
2432 (name "sbcl-lisp-unit")
2433 (version (git-version "0.0.0" "1" commit))
2434 (source
2435 (origin
2436 (method git-fetch)
2437 (uri (git-reference
2438 (url "https://github.com/OdonataResearchLLC/lisp-unit")
2439 (commit commit)))
2440 (sha256
2441 (base32
2442 "0p6gdmgr7p383nvd66c9y9fp2bjk4jx1lpa5p09g43hr9y9pp9ry"))
2443 (file-name (git-file-name "lisp-unit" version))))
2444 (build-system asdf-build-system/sbcl)
2445 (synopsis "Common Lisp Test framework inspired by JUnit to be simple of use")
2446 (description
2447 "@command{lisp-unit} is a Common Lisp library that supports unit
2448testing. It is an extension of the library written by Chris Riesbeck.")
2449 (home-page "https://github.com/OdonataResearchLLC/lisp-unit")
2450 (license license:expat))))
2451
2452(define-public cl-lisp-unit
2453 (sbcl-package->cl-source-package sbcl-lisp-unit))
2454
2455(define-public ecl-lisp-unit
2456 (sbcl-package->ecl-package sbcl-lisp-unit))
2457
9f3000cc
PN
2458(define-public sbcl-anaphora
2459 (package
2460 (name "sbcl-anaphora")
2461 (version "0.9.6")
2462 (source
2463 (origin
2464 (method git-fetch)
2465 (uri (git-reference
2466 (url "https://github.com/tokenrove/anaphora")
2467 (commit version)))
2468 (sha256
2469 (base32
2470 "19wfrk3asimznkli0x2rfy637hwpdgqyvwj3vhq9x7vjvyf5vv6x"))
2471 (file-name (git-file-name "anaphora" version))))
2472 (build-system asdf-build-system/sbcl)
2473 (native-inputs
2474 `(("rt" ,sbcl-rt)))
2475 (synopsis "The anaphoric macro collection from Hell")
2476 (description
2477 "Anaphora is the anaphoric macro collection from Hell: it includes many
2478new fiends in addition to old friends like @command{aif} and
2479@command{awhen}.")
2480 (home-page "https://github.com/tokenrove/anaphora")
2481 (license license:public-domain)))
2482
2483(define-public cl-anaphora
2484 (sbcl-package->cl-source-package sbcl-anaphora))
2485
2486(define-public ecl-anaphora
2487 (sbcl-package->ecl-package sbcl-anaphora))
2488
5b8a801d
PN
2489(define-public sbcl-lift
2490 (let ((commit "7d49a66c62759535624037826891152223d4206c"))
2491 (package
2492 (name "sbcl-lift")
5f33f9aa 2493 (version (git-version "1.7.1" "1" commit))
5b8a801d
PN
2494 (source
2495 (origin
2496 (method git-fetch)
2497 (uri (git-reference
2498 (url "https://github.com/gwkkwg/lift")
2499 (commit commit)))
2500 (sha256
2501 (base32
2502 "127v5avpz1i4m0lkaxqrq8hrl69rdazqaxf6s8awf0nd7wj2g4dp"))
e9f305a1
EF
2503 (file-name (git-file-name "lift" version))
2504 (modules '((guix build utils)))
2505 (snippet
2506 ;; Don't keep the bundled website
2507 `(begin
2508 (delete-file-recursively "website")
2509 #t))))
5b8a801d
PN
2510 (build-system asdf-build-system/sbcl)
2511 (arguments
2512 ;; The tests require a debugger, but we run with the debugger disabled.
e9f305a1 2513 '(#:tests? #f))
5b8a801d
PN
2514 (synopsis "LIsp Framework for Testing")
2515 (description
2516 "The LIsp Framework for Testing (LIFT) is a unit and system test tool for LISP.
2517Though inspired by SUnit and JUnit, it's built with Lisp in mind. In LIFT,
2518testcases are organized into hierarchical testsuites each of which can have
2519its own fixture. When run, a testcase can succeed, fail, or error. LIFT
2520supports randomized testing, benchmarking, profiling, and reporting.")
2521 (home-page "https://github.com/gwkkwg/lift")
fdf02484 2522 (license license:expat))))
5b8a801d
PN
2523
2524(define-public cl-lift
2525 (sbcl-package->cl-source-package sbcl-lift))
2526
2527(define-public ecl-lift
2528 (sbcl-package->ecl-package sbcl-lift))
2529
d4142232
PN
2530(define-public sbcl-let-plus
2531 (let ((commit "5f14af61d501ecead02ec6b5a5c810efc0c9fdbb"))
2532 (package
2533 (name "sbcl-let-plus")
2534 (version (git-version "0.0.0" "1" commit))
2535 (source
2536 (origin
2537 (method git-fetch)
2538 (uri (git-reference
2539 (url "https://github.com/sharplispers/let-plus")
2540 (commit commit)))
2541 (sha256
2542 (base32
2543 "0i050ca2iys9f5mb7dgqgqdxfnc3b0rnjdwv95sqd490vkiwrsaj"))
2544 (file-name (git-file-name "let-plus" version))))
2545 (build-system asdf-build-system/sbcl)
2546 (inputs
2547 `(("alexandria" ,sbcl-alexandria)
2548 ("anaphora" ,sbcl-anaphora)))
2549 (native-inputs
2550 `(("lift" ,sbcl-lift)))
2551 (synopsis "Destructuring extension of let*")
2552 (description
2553 "This library implements the let+ macro, which is a dectructuring
2554extension of let*. It features:
2555
2556@itemize
2557@item Clean, consistent syntax and small implementation (less than 300 LOC,
2558not counting tests)
2559@item Placeholder macros allow editor hints and syntax highlighting
2560@item @command{&ign} for ignored values (in forms where that makes sense)
2561@item Very easy to extend
2562@end itemize\n")
2563 (home-page "https://github.com/sharplispers/let-plus")
2564 (license license:boost1.0))))
2565
2566(define-public cl-let-plus
2567 (sbcl-package->cl-source-package sbcl-let-plus))
2568
2569(define-public ecl-let-plus
2570 (sbcl-package->ecl-package sbcl-let-plus))
2571
8caa928d
PN
2572(define-public sbcl-cl-colors
2573 (let ((commit "827410584553f5c717eec6182343b7605f707f75"))
2574 (package
2575 (name "sbcl-cl-colors")
2576 (version (git-version "0.0.0" "1" commit))
2577 (source
2578 (origin
2579 (method git-fetch)
2580 (uri (git-reference
2581 (url "https://github.com/tpapp/cl-colors")
2582 (commit commit)))
2583 (sha256
2584 (base32
2585 "0l446lday4hybsm9bq3jli97fvv8jb1d33abg79vbylpwjmf3y9a"))
2586 (file-name (git-file-name "cl-colors" version))))
2587 (build-system asdf-build-system/sbcl)
2588 (inputs
2589 `(("alexandria" ,sbcl-alexandria)
2590 ("let-plus" ,sbcl-let-plus)))
2591 (synopsis "Simple color library for Common Lisp")
2592 (description
2593 "This is a very simple color library for Common Lisp, providing
2594
2595@itemize
2596@item Types for representing colors in HSV and RGB spaces.
2597@item Simple conversion functions between the above types (and also
2598hexadecimal representation for RGB).
2599@item Some predefined colors (currently X11 color names – of course the
2600library does not depend on X11).Because color in your terminal is nice.
2601@end itemize
2602
2603This library is no longer supported by its author.")
2604 (home-page "https://github.com/tpapp/cl-colors")
2605 (license license:boost1.0))))
2606
2607(define-public cl-colors
2608 (sbcl-package->cl-source-package sbcl-cl-colors))
2609
2610(define-public ecl-cl-colors
2611 (sbcl-package->ecl-package sbcl-cl-colors))
2612
68a7b929
PN
2613(define-public sbcl-cl-ansi-text
2614 (let ((commit "53badf7878f27f22f2d4a2a43e6df458e43acbe9"))
2615 (package
2616 (name "sbcl-cl-ansi-text")
2617 (version (git-version "1.0.0" "1" commit))
2618 (source
2619 (origin
2620 (method git-fetch)
2621 (uri (git-reference
2622 (url "https://github.com/pnathan/cl-ansi-text")
2623 (commit commit)))
2624 (sha256
2625 (base32
2626 "11i27n0dbz5lmygiw65zzr8lx0rac6b6yysqranphn31wls6ja3v"))
2627 (file-name (git-file-name "cl-ansi-text" version))))
2628 (build-system asdf-build-system/sbcl)
2629 (inputs
2630 `(("alexandria" ,sbcl-alexandria)
2631 ("cl-colors" ,sbcl-cl-colors)))
2632 (native-inputs
2633 `(("fiveam" ,sbcl-fiveam)))
2634 (synopsis "ANSI terminal color implementation for Common Lisp")
2635 (description
2636 "@command{cl-ansi-text} provides utilities which enable printing to an
2637ANSI terminal with colored text. It provides the macro @command{with-color}
2638which causes everything printed in the body to be displayed with the provided
2639color. It further provides functions which will print the argument with the
2640named color.")
2641 (home-page "https://github.com/pnathan/cl-ansi-text")
5914489d 2642 (license license:llgpl))))
68a7b929
PN
2643
2644(define-public cl-ansi-text
2645 (sbcl-package->cl-source-package sbcl-cl-ansi-text))
2646
2647(define-public ecl-cl-ansi-text
2648 (sbcl-package->ecl-package sbcl-cl-ansi-text))
2649
1a42bb80
PN
2650(define-public sbcl-prove-asdf
2651 (let ((commit "4f9122bd393e63c5c70c1fba23070622317cfaa0"))
2652 (package
2653 (name "sbcl-prove-asdf")
2654 (version (git-version "1.0.0" "1" commit))
2655 (source
2656 (origin
2657 (method git-fetch)
2658 (uri (git-reference
2659 (url "https://github.com/fukamachi/prove")
2660 (commit commit)))
2661 (sha256
2662 (base32
2663 "07sbfw459z8bbjvx1qlmfa8qk2mvbjnnzi2mi0x72blaj8bkl4vc"))
2664 (file-name (git-file-name "prove" version))))
2665 (build-system asdf-build-system/sbcl)
2666 (arguments
2667 `(#:asd-file "prove-asdf.asd"))
2668 (synopsis "Test requirement for the Common Lisp 'prove' library")
2669 (description
2670 "Test requirement for the Common Lisp @command{prove} library.")
2671 (home-page "https://github.com/fukamachi/prove")
2672 (license license:expat))))
2673
2674(define-public cl-prove-asdf
2675 (sbcl-package->cl-source-package sbcl-prove-asdf))
2676
2677(define-public ecl-prove-asdf
2678 (sbcl-package->ecl-package sbcl-prove-asdf))
2679
86afb0a2
PN
2680(define-public sbcl-prove
2681 (package
2682 (inherit sbcl-prove-asdf)
2683 (name "sbcl-prove")
2684 (inputs
2685 `(("alexandria" ,sbcl-alexandria)
2686 ("cl-ppcre" ,sbcl-cl-ppcre)
2687 ("cl-ansi-text" ,sbcl-cl-ansi-text)))
2688 (native-inputs
2689 `(("prove-asdf" ,sbcl-prove-asdf)))
2690 (arguments
2691 `(#:asd-file "prove.asd"))
2692 (synopsis "Yet another unit testing framework for Common Lisp")
2693 (description
2694 "This project was originally called @command{cl-test-more}.
2695@command{prove} is yet another unit testing framework for Common Lisp. The
2696advantages of @command{prove} are:
2697
2698@itemize
2699@item Various simple functions for testing and informative error messages
2700@item ASDF integration
2701@item Extensible test reporters
2702@item Colorizes the report if it's available (note for SLIME)
2703@item Reports test durations
2704@end itemize\n")))
2705
2706(define-public cl-prove
2707 (sbcl-package->cl-source-package sbcl-prove))
2708
2709(define-public ecl-prove
2710 (sbcl-package->ecl-package sbcl-prove))
2711
41b3b866
PN
2712(define-public sbcl-proc-parse
2713 (let ((commit "ac3636834d561bdc2686c956dbd82494537285fd"))
2714 (package
2715 (name "sbcl-proc-parse")
2716 (version (git-version "0.0.0" "1" commit))
2717 (source
2718 (origin
2719 (method git-fetch)
2720 (uri (git-reference
2721 (url "https://github.com/fukamachi/proc-parse")
2722 (commit commit)))
2723 (sha256
2724 (base32
2725 "06rnl0h4cx6xv2wj3jczmmcxqn2703inmmvg1s4npbghmijsybfh"))
2726 (file-name (git-file-name "proc-parse" version))))
2727 (build-system asdf-build-system/sbcl)
2728 (inputs
2729 `(("alexandria" ,sbcl-alexandria)
2730 ("babel" ,sbcl-babel)))
2731 (native-inputs
2732 `(("prove" ,sbcl-prove)
2733 ("prove-asdf" ,sbcl-prove-asdf)))
2734 (arguments
2735 ;; TODO: Tests don't find "proc-parse-test", why?
2736 `(#:tests? #f))
2737 (synopsis "Procedural vector parser")
2738 (description
2739 "This is a string/octets parser library for Common Lisp with speed and
2740readability in mind. Unlike other libraries, the code is not a
2741pattern-matching-like, but a char-by-char procedural parser.")
2742 (home-page "https://github.com/fukamachi/proc-parse")
2743 (license license:bsd-2))))
2744
2745(define-public cl-proc-parse
2746 (sbcl-package->cl-source-package sbcl-proc-parse))
2747
2748(define-public ecl-proc-parse
2749 (sbcl-package->ecl-package sbcl-proc-parse))
2750
28b52970
PN
2751(define-public sbcl-parse-float
2752 (let ((commit "2aae569f2a4b2eb3bfb5401a959425dcf151b09c"))
2753 (package
2754 (name "sbcl-parse-float")
2755 (version (git-version "0.0.0" "1" commit))
2756 (source
2757 (origin
2758 (method git-fetch)
2759 (uri (git-reference
2760 (url "https://github.com/soemraws/parse-float")
2761 (commit commit)))
2762 (sha256
2763 (base32
2764 "08xw8cchhmqcc0byng69m3f5a2izc9y2290jzz2k0qrbibp1fdk7"))
2765 (file-name (git-file-name "proc-parse" version))))
2766 (build-system asdf-build-system/sbcl)
2767 (inputs
2768 `(("alexandria" ,sbcl-alexandria)
2769 ("babel" ,sbcl-babel)))
2770 (native-inputs
2771 `(("prove" ,sbcl-prove)
2772 ("prove-asdf" ,sbcl-prove-asdf)))
2773 (arguments
2774 ;; TODO: Tests don't find "proc-parse-test", why?
2775 `(#:tests? #f))
2776 (synopsis "Parse a floating point value from a string in Common Lisp")
2777 (description
2778 "This package exports the following function to parse floating-point
2779values from a string in Common Lisp.")
2780 (home-page "https://github.com/soemraws/parse-float")
28b52970
PN
2781 (license license:public-domain))))
2782
2783(define-public cl-parse-float
2784 (sbcl-package->cl-source-package sbcl-parse-float))
2785
2786(define-public ecl-parse-float
2787 (sbcl-package->ecl-package sbcl-parse-float))
2788
a927eb36
PN
2789(define-public sbcl-ascii-strings
2790 (let ((revision "1")
2791 (changeset "5048480a61243e6f1b02884012c8f25cdbee6d97"))
2792 (package
2793 (name "sbcl-ascii-strings")
2794 (version (string-append "0-" revision "." (string-take changeset 7)))
2795 (source
2796 (origin
2797 (method hg-fetch)
2798 (uri (hg-reference
2799 (url "https://bitbucket.org/vityok/cl-string-match/")
2800 (changeset changeset)))
2801 (sha256
2802 (base32
2803 "01wn5qx562w43ssy92xlfgv79w7p0nv0wbl76mpmba131n9ziq2y"))
2804 (file-name (git-file-name "cl-string-match" version))))
2805 (build-system asdf-build-system/sbcl)
2806 (inputs
2807 `(("alexandria" ,sbcl-alexandria)
2808 ("babel" ,sbcl-babel)))
2809 (arguments
2810 `(#:asd-file "ascii-strings.asd"))
2811 (synopsis "Operations on ASCII strings")
2812 (description
2813 "Operations on ASCII strings. Essentially this can be any kind of
2814single-byte encoded strings.")
2815 (home-page "https://bitbucket.org/vityok/cl-string-match/")
2816 (license license:bsd-3))))
2817
2818(define-public cl-ascii-strings
2819 (sbcl-package->cl-source-package sbcl-ascii-strings))
2820
2821(define-public ecl-ascii-strings
2822 (sbcl-package->ecl-package sbcl-ascii-strings))
109ce303 2823
a28d00d9
PN
2824(define-public sbcl-simple-scanf
2825 (package
2826 (inherit sbcl-ascii-strings)
2827 (name "sbcl-simple-scanf")
2828 (inputs
2829 `(("alexandria" ,sbcl-alexandria)
2830 ("iterate" ,sbcl-iterate)
2831 ("proc-parse" ,sbcl-proc-parse)
2832 ("parse-float" ,sbcl-parse-float)))
2833 (arguments
2834 `(#:asd-file "simple-scanf.asd"))
2835 (synopsis "Simple scanf-like functionality implementation")
2836 (description
2837 "A simple scanf-like functionality implementation.")))
2838
2839(define-public cl-simple-scanf
2840 (sbcl-package->cl-source-package sbcl-simple-scanf))
2841
2842(define-public ecl-simple-scanf
2843 (sbcl-package->ecl-package sbcl-simple-scanf))
2844
109ce303
PN
2845(define-public sbcl-cl-string-match
2846 (package
2847 (inherit sbcl-ascii-strings)
2848 (name "sbcl-cl-string-match")
2849 (inputs
2850 `(("alexandria" ,sbcl-alexandria)
2851 ("ascii-strings" ,sbcl-ascii-strings)
2852 ("yacc" ,sbcl-cl-yacc)
2853 ("jpl-util" ,sbcl-jpl-util)
2854 ("jpl-queues" ,sbcl-jpl-queues)
2855 ("mgl-pax" ,sbcl-mgl-pax)
2856 ("iterate" ,sbcl-iterate)))
2857 ;; TODO: Tests are not evaluated properly.
2858 (native-inputs
2859 ;; For testing:
2860 `(("lisp-unit" ,sbcl-lisp-unit)
2861 ("simple-scanf" ,sbcl-simple-scanf)))
2862 (arguments
2863 `(#:tests? #f
2864 #:asd-file "cl-string-match.asd"))
2865 (synopsis "Portable, dependency-free set of utilities to manipulate strings in Common Lisp")
2866 (description
2867 "@command{cl-strings} is a small, portable, dependency-free set of
2868utilities that make it even easier to manipulate text in Common Lisp. It has
2869100% test coverage and works at least on sbcl, ecl, ccl, abcl and clisp.")))
2870
2871(define-public cl-string-match
2872 (sbcl-package->cl-source-package sbcl-cl-string-match))
2873
2874(define-public ecl-cl-string-match
2875 (sbcl-package->ecl-package sbcl-cl-string-match))
1de50cb7
PN
2876
2877(define-public sbcl-ptester
2878 (package
2879 (name "sbcl-ptester")
2880 (version "20160929")
2881 (source
2882 (origin
2883 (method url-fetch)
2884 (uri (string-append "http://beta.quicklisp.org/archive/ptester/"
2885 (date->string (string->date version "~Y~m~d") "~Y-~m-~d")
2886 "/ptester-"
2887 version
2888 "-git.tgz"))
2889 (sha256
2890 (base32
2891 "04rlq1zljhxc65pm31bah3sq3as24l0sdivz440s79qlnnyh13hz"))))
2892 (build-system asdf-build-system/sbcl)
2893 (home-page "http://quickdocs.org/ptester/")
2894 (synopsis "Portable test harness package")
2895 (description
2896 "@command{ptester} is a portable testing framework based on Franz's
2897tester module.")
2898 (license license:lgpl3+)))
2899
2900(define-public cl-ptester
2901 (sbcl-package->cl-source-package sbcl-ptester))
2902
2903(define-public ecl-ptester
2904 (sbcl-package->ecl-package sbcl-ptester))
3f4c21c5
PN
2905
2906(define-public sbcl-puri
2907 (package
2908 (name "sbcl-puri")
2909 (version "20180228")
2910 (source
2911 (origin
2912 (method url-fetch)
2913 (uri (string-append "http://beta.quicklisp.org/archive/puri/"
2914 (date->string (string->date version "~Y~m~d") "~Y-~m-~d")
2915 "/puri-"
2916 version
2917 "-git.tgz"))
2918 (sha256
2919 (base32
2920 "1s4r5adrjy5asry45xbcbklxhdjydvf6n55z897nvyw33bigrnbz"))))
2921 (build-system asdf-build-system/sbcl)
2922 ;; REVIEW: Webiste down?
2923 (native-inputs
2924 `(("ptester" ,sbcl-ptester)))
2925 (home-page "http://files.kpe.io/puri/")
2926 (synopsis "Portable URI Library")
2927 (description
2928 "This is portable Universal Resource Identifier library for Common Lisp
2929programs. It parses URI according to the RFC 2396 specification")
2930 (license license:lgpl3+)))
2931
2932(define-public cl-puri
2933 (sbcl-package->cl-source-package sbcl-puri))
2934
2935(define-public ecl-puri
2936 (sbcl-package->ecl-package sbcl-puri))
eb766dfe
PN
2937
2938(define-public sbcl-queues
2939 (let ((commit "47d4da65e9ea20953b74aeeab7e89a831b66bc94"))
2940 (package
2941 (name "sbcl-queues")
2942 (version (git-version "0.0.0" "1" commit))
2943 (source
2944 (origin
2945 (method git-fetch)
2946 (uri (git-reference
2947 (url "https://github.com/oconnore/queues")
2948 (commit commit)))
2949 (file-name (git-file-name "queues" version))
2950 (sha256
2951 (base32
2952 "0wdhfnzi4v6d97pggzj2aw55si94w4327br94jrmyvwf351wqjvv"))))
2953 (build-system asdf-build-system/sbcl)
2954 (home-page "https://github.com/oconnore/queues")
2955 (synopsis "Common Lisp queue library")
2956 (description
2957 "This is a simple queue library for Common Lisp with features such as
2958non-consing thread safe queues and fibonacci priority queues.")
2959 (license license:expat))))
2960
2961(define-public cl-queues
2962 (sbcl-package->cl-source-package sbcl-queues))
2963
2964(define-public ecl-queues
2965 (sbcl-package->ecl-package sbcl-queues))
6fef7c0e
PN
2966
2967(define-public sbcl-queues.simple-queue
2968 (package
2969 (inherit sbcl-queues)
2970 (name "sbcl-queues.simple-queue")
2971 (inputs
2972 `(("sbcl-queues" ,sbcl-queues)))
2973 (arguments
2974 `(#:asd-file "queues.simple-queue.asd"))
2975 (synopsis "Simple queue implementation")
2976 (description
2977 "This is a simple queue library for Common Lisp with features such as
2978non-consing thread safe queues and fibonacci priority queues.")
2979 (license license:expat)))
2980
2981(define-public cl-queues.simple-queue
2982 (sbcl-package->cl-source-package sbcl-queues.simple-queue))
2983
2984(define-public ecl-queues.simple-queue
2985 (sbcl-package->ecl-package sbcl-queues.simple-queue))
a889ba99
PN
2986
2987(define-public sbcl-queues.simple-cqueue
2988 (package
2989 (inherit sbcl-queues)
2990 (name "sbcl-queues.simple-cqueue")
2991 (inputs
2992 `(("sbcl-queues" ,sbcl-queues)
2993 ("sbcl-queues.simple-queue" ,sbcl-queues.simple-queue)
2994 ("bordeaux-threads" ,sbcl-bordeaux-threads)))
2995 (arguments
2996 `(#:asd-file "queues.simple-cqueue.asd"))
2997 (synopsis "Thread safe queue implementation")
2998 (description
2999 "This is a simple queue library for Common Lisp with features such as
3000non-consing thread safe queues and fibonacci priority queues.")
3001 (license license:expat)))
3002
3003(define-public cl-queues.simple-cqueue
3004 (sbcl-package->cl-source-package sbcl-queues.simple-cqueue))
3005
3006(define-public ecl-queues.simple-cqueue
3007 (sbcl-package->ecl-package sbcl-queues.simple-cqueue))
144085cd
PN
3008
3009(define-public sbcl-queues.priority-queue
3010 (package
3011 (inherit sbcl-queues)
3012 (name "sbcl-queues.priority-queue")
3013 (inputs
3014 `(("sbcl-queues" ,sbcl-queues)))
3015 (arguments
3016 `(#:asd-file "queues.priority-queue.asd"))
3017 (synopsis "Priority queue (Fibonacci) implementation")
3018 (description
3019 "This is a simple queue library for Common Lisp with features such as
3020non-consing thread safe queues and fibonacci priority queues.")
3021 (license license:expat)))
3022
3023(define-public cl-queues.priority-queue
3024 (sbcl-package->cl-source-package sbcl-queues.priority-queue))
3025
3026(define-public ecl-queues.priority-queue
3027 (sbcl-package->ecl-package sbcl-queues.priority-queue))
92b1d09b
PN
3028
3029(define-public sbcl-queues.priority-cqueue
3030 (package
3031 (inherit sbcl-queues)
3032 (name "sbcl-queues.priority-cqueue")
3033 (inputs
3034 `(("sbcl-queues" ,sbcl-queues)
3035 ("sbcl-queues.priority-queue" ,sbcl-queues.priority-queue)
3036 ("bordeaux-threads" ,sbcl-bordeaux-threads)))
3037 (arguments
3038 `(#:asd-file "queues.priority-cqueue.asd"))
3039 (synopsis "Thread safe fibonacci priority queue implementation")
3040 (description
3041 "This is a simple queue library for Common Lisp with features such as
3042non-consing thread safe queues and fibonacci priority queues.")
3043 (license license:expat)))
3044
3045(define-public cl-queues.priority-cqueue
3046 (sbcl-package->cl-source-package sbcl-queues.priority-cqueue))
3047
3048(define-public ecl-queues.priority-cqueue
3049 (sbcl-package->ecl-package sbcl-queues.priority-cqueue))
5d9bf762
PN
3050
3051(define sbcl-cffi-bootstrap
3052 (package
3053 (name "sbcl-cffi-bootstrap")
3054 (version "0.19.0")
3055 (source
3056 (origin
0924b5bc
TGR
3057 (method git-fetch)
3058 (uri (git-reference
3059 (url "https://github.com/cffi/cffi.git")
3060 (commit (string-append "v" version))))
3061 (file-name (git-file-name "cffi-bootstrap" version))
5d9bf762 3062 (sha256
0924b5bc 3063 (base32 "09sfgc6r7ihmbkwfpvkq5fxc7h45cabpvgbvs47i5cvnmv3k72xy"))))
5d9bf762
PN
3064 (build-system asdf-build-system/sbcl)
3065 (inputs
3066 `(("libffi" ,libffi)
3067 ("alexandria" ,sbcl-alexandria)
3068 ("babel" ,sbcl-babel)
3069 ("trivial-features" ,sbcl-trivial-features)))
3070 (native-inputs
3071 `(("pkg-config" ,pkg-config)))
3072 (arguments
3073 '(#:phases
3074 (modify-phases %standard-phases
3075 (add-after 'unpack 'fix-paths
3076 (lambda* (#:key inputs #:allow-other-keys)
3077 (substitute* "libffi/libffi.lisp"
3078 (("libffi.so.6" all) (string-append
3079 (assoc-ref inputs "libffi")
3080 "/lib/" all)))
3081 (substitute* "toolchain/c-toolchain.lisp"
3082 (("\"cc\"") (format #f "~S" (which "gcc")))))))
3083 #:asd-system-name "cffi"
3084 #:tests? #f))
3085 (home-page "https://common-lisp.net/project/cffi/")
3086 (synopsis "Common Foreign Function Interface for Common Lisp")
3087 (description "The Common Foreign Function Interface (CFFI)
3088purports to be a portable foreign function interface for Common Lisp.
3089The CFFI library is composed of a Lisp-implementation-specific backend
3090in the CFFI-SYS package, and a portable frontend in the CFFI
3091package.")
3092 (license license:expat)))
99b3d203
PN
3093
3094(define-public sbcl-cffi-toolchain
3095 (package
3096 (inherit sbcl-cffi-bootstrap)
3097 (name "sbcl-cffi-toolchain")
3098 (inputs
3099 `(("libffi" ,libffi)
3100 ("sbcl-cffi" ,sbcl-cffi-bootstrap)))
3101 (arguments
3102 (substitute-keyword-arguments (package-arguments sbcl-cffi-bootstrap)
3103 ((#:asd-system-name _) #f)
3104 ((#:tests? _) #t)))))
9eea4e03
PN
3105
3106(define-public sbcl-cffi-libffi
3107 (package
3108 (inherit sbcl-cffi-toolchain)
3109 (name "sbcl-cffi-libffi")
3110 (inputs
3111 `(("cffi" ,sbcl-cffi-bootstrap)
3112 ("cffi-grovel" ,sbcl-cffi-grovel)
3113 ("trivial-features" ,sbcl-trivial-features)
3114 ("libffi" ,libffi)))))
d3142f2f
PN
3115
3116(define-public sbcl-cffi-grovel
3117 (package
3118 (inherit sbcl-cffi-toolchain)
3119 (name "sbcl-cffi-grovel")
3120 (inputs
3121 `(("libffi" ,libffi)
3122 ("cffi" ,sbcl-cffi-bootstrap)
3123 ("cffi-toolchain" ,sbcl-cffi-toolchain)
3124 ("alexandria" ,sbcl-alexandria)))
3125 (arguments
3126 (substitute-keyword-arguments (package-arguments sbcl-cffi-toolchain)
3127 ((#:phases phases)
3128 `(modify-phases ,phases
3129 (add-after 'build 'install-headers
3130 (lambda* (#:key outputs #:allow-other-keys)
3131 (install-file "grovel/common.h"
3132 (string-append
3133 (assoc-ref outputs "out")
3134 "/include/grovel"))))))))))
41123072
PN
3135
3136(define-public sbcl-cffi
3137 (package
3138 (inherit sbcl-cffi-toolchain)
3139 (name "sbcl-cffi")
3140 (inputs (package-inputs sbcl-cffi-bootstrap))
3141 (native-inputs
3142 `(("cffi-grovel" ,sbcl-cffi-grovel)
3143 ("cffi-libffi" ,sbcl-cffi-libffi)
3144 ("rt" ,sbcl-rt)
3145 ("bordeaux-threads" ,sbcl-bordeaux-threads)
3146 ,@(package-native-inputs sbcl-cffi-bootstrap)))))
8f065b47 3147
6c16f1a5
PN
3148(define-public cl-cffi
3149 (sbcl-package->cl-source-package sbcl-cffi))
3150
8f065b47
PN
3151(define-public sbcl-cl-sqlite
3152 (let ((commit "c738e66d4266ef63a1debc4ef4a1b871a068c112"))
3153 (package
3154 (name "sbcl-cl-sqlite")
3155 (version (git-version "0.2" "1" commit))
3156 (source
3157 (origin
3158 (method git-fetch)
3159 (uri (git-reference
3160 (url "https://github.com/dmitryvk/cl-sqlite")
3161 (commit commit)))
3162 (file-name (git-file-name "cl-sqlite" version))
3163 (sha256
3164 (base32
3165 "1ng45k1hdb84sqjryrfx93g66bsbybmpy301wd0fdybnc5jzr36q"))))
3166 (build-system asdf-build-system/sbcl)
3167 (inputs
3168 `(("iterate" ,sbcl-iterate)
3169 ("cffi" ,sbcl-cffi)
3170 ("sqlite" ,sqlite)))
3171 (native-inputs
3172 `(("fiveam" ,sbcl-fiveam)
3173 ("bordeaux-threads" ,sbcl-bordeaux-threads)))
3174 (arguments
3175 `(#:tests? #f ; Upstream seems to have issues with tests: https://github.com/dmitryvk/cl-sqlite/issues/7
3176 #:asd-file "sqlite.asd"
3177 #:asd-system-name "sqlite"
3178 #:phases
3179 (modify-phases %standard-phases
3180 (add-after 'unpack 'fix-paths
3181 (lambda* (#:key inputs #:allow-other-keys)
3182 (substitute* "sqlite-ffi.lisp"
3183 (("libsqlite3" all) (string-append
3184 (assoc-ref inputs "sqlite")"/lib/" all))))))))
3185 (home-page "https://common-lisp.net/project/cl-sqlite/")
3186 (synopsis "Common Lisp binding for SQLite")
3187 (description
3188 "The @command{cl-sqlite} package is an interface to the SQLite embedded
3189relational database engine.")
3190 (license license:public-domain))))
4624d2e2 3191
6c16f1a5
PN
3192(define-public cl-sqlite
3193 (sbcl-package->cl-source-package sbcl-cl-sqlite))
3194
4624d2e2
PN
3195(define-public sbcl-parenscript
3196 (let ((commit "061d8e286c81c3f45c84fb2b11ee7d83f590a8f8"))
3197 (package
3198 (name "sbcl-parenscript")
3199 (version (git-version "2.6" "1" commit))
3200 (source
3201 (origin
3202 (method git-fetch)
3203 (uri (git-reference
3204 (url "https://gitlab.common-lisp.net/parenscript/parenscript")
3205 (commit commit)))
3206 (file-name (git-file-name "parenscript" version))
3207 (sha256
3208 (base32
3209 "1kbhgsjbikc73m5cwdp4d4fdafyqcr1b7b630qjrziql0nh6mi3k"))))
3210 (build-system asdf-build-system/sbcl)
3211 (inputs
3212 `(("cl-ppcre" ,sbcl-cl-ppcre)
3213 ("anaphora" ,sbcl-anaphora)
3214 ("named-readtables" ,sbcl-named-readtables)))
3215 (home-page "https://common-lisp.net/project/parenscript/")
3216 (synopsis "Translator from a subset of Common Lisp to JavaScript")
3217 (description
3218 "Parenscript is a translator from an extended subset of Common Lisp to
3219JavaScript. Parenscript code can run almost identically on both the
3220browser (as JavaScript) and server (as Common Lisp).
3221
3222Parenscript code is treated the same way as Common Lisp code, making the full
3223power of Lisp macros available for JavaScript. This provides a web
3224development environment that is unmatched in its ability to reduce code
3225duplication and provide advanced meta-programming facilities to web
3226developers.
3227
3228At the same time, Parenscript is different from almost all other \"language
3229X\" to JavaScript translators in that it imposes almost no overhead:
3230
3231@itemize
3232@item No run-time dependencies: Any piece of Parenscript code is runnable
3233as-is. There are no JavaScript files to include.
3234@item Native types: Parenscript works entirely with native JavaScript data
3235types. There are no new types introduced, and object prototypes are not
3236touched.
3237@item Native calling convention: Any JavaScript code can be called without the
3238need for bindings. Likewise, Parenscript can be used to make efficient,
3239self-contained JavaScript libraries.
3240@item Readable code: Parenscript generates concise, formatted, idiomatic
3241JavaScript code. Identifier names are preserved. This enables seamless
3242debugging in tools like Firebug.
3243@item Efficiency: Parenscript introduces minimal overhead for advanced Common
3244Lisp features. The generated code is almost as fast as hand-written
3245JavaScript.
3246@end itemize\n")
3247 (license license:bsd-3))))
3248
3249(define-public cl-parenscript
3250 (sbcl-package->cl-source-package sbcl-parenscript))
3251
3252(define-public ecl-parenscript
3253 (sbcl-package->ecl-package sbcl-parenscript))
dedbf37e
PN
3254
3255(define-public sbcl-cl-json
3256 (let ((commit "6dfebb9540bfc3cc33582d0c03c9ec27cb913e79"))
3257 (package
3258 (name "sbcl-cl-json")
3259 (version (git-version "0.5" "1" commit))
3260 (source
3261 (origin
3262 (method git-fetch)
3263 (uri (git-reference
3264 (url "https://github.com/hankhero/cl-json")
3265 (commit commit)))
3266 (file-name (git-file-name "cl-json" version))
3267 (sha256
3268 (base32
3269 "0fx3m3x3s5ji950yzpazz4s0img3l6b3d6l3jrfjv0lr702496lh"))))
3270 (build-system asdf-build-system/sbcl)
3271 (native-inputs
3272 `(("fiveam" ,sbcl-fiveam)))
3273 (home-page "https://github.com/hankhero/cl-json")
3274 (synopsis "JSON encoder and decoder for Common-Lisp")
3275 (description
3276 "@command{cl-json} provides an encoder of Lisp objects to JSON format
3277and a corresponding decoder of JSON data to Lisp objects. Both the encoder
3278and the decoder are highly customizable; at the same time, the default
3279settings ensure a very simple mode of operation, similar to that provided by
3280@command{yason} or @command{st-json}.")
3281 (license license:expat))))
3282
3283(define-public cl-json
3284 (sbcl-package->cl-source-package sbcl-cl-json))
3285
3286(define-public ecl-cl-json
3287 (sbcl-package->ecl-package sbcl-cl-json))
2cc931db
PN
3288
3289(define-public sbcl-unix-opts
3290 (package
3291 (name "sbcl-unix-opts")
3292 (version "0.1.7")
3293 (source
3294 (origin
3295 (method git-fetch)
3296 (uri (git-reference
3297 (url "https://github.com/libre-man/unix-opts")
3298 (commit version)))
3299 (file-name (git-file-name "unix-opts" version))
3300 (sha256
3301 (base32
3302 "08djdi1ard09fijb7w9bdmhmwd98b1hzmcnjw9fqjiqa0g3b44rr"))))
3303 (build-system asdf-build-system/sbcl)
3304 (home-page "https://github.com/hankhero/cl-json")
3305 (synopsis "Unix-style command line options parser")
3306 (description
3307 "This is a minimalistic parser of command line options. The main
3308advantage of the library is the ability to concisely define command line
3309options once and then use this definition for parsing and extraction of
3310command line arguments, as well as printing description of command line
3311options (you get --help for free). This way you don't need to repeat
3312yourself. Also, @command{unix-opts} doesn't depend on anything and allows to
3313precisely control behavior of the parser via Common Lisp restarts.")
3314 (license license:expat)))
3315
3316(define-public cl-unix-opts
3317 (sbcl-package->cl-source-package sbcl-unix-opts))
3318
3319(define-public ecl-unix-opts
3320 (sbcl-package->ecl-package sbcl-unix-opts))
4aa23420
PN
3321
3322(define-public sbcl-trivial-garbage
3323 (package
3324 (name "sbcl-trivial-garbage")
3325 (version "0.21")
3326 (source
3327 (origin
f86b4b56
TGR
3328 (method git-fetch)
3329 (uri (git-reference
3330 (url "https://github.com/trivial-garbage/trivial-garbage.git")
3331 (commit (string-append "v" version))))
3332 (file-name (git-file-name "trivial-garbage" version))
4aa23420 3333 (sha256
f86b4b56 3334 (base32 "0122jicfg7pca1wxw8zak1n92h5friqy60988ns0ysksj3fphw9n"))))
4aa23420
PN
3335 (build-system asdf-build-system/sbcl)
3336 (native-inputs
3337 `(("rt" ,sbcl-rt)))
3338 (home-page "https://common-lisp.net/project/trivial-garbage/")
3339 (synopsis "Portable GC-related APIs for Common Lisp")
3340 (description "@command{trivial-garbage} provides a portable API to
3341finalizers, weak hash-tables and weak pointers on all major implementations of
3342the Common Lisp programming language.")
3343 (license license:public-domain)))
3344
3345(define-public cl-trivial-garbage
3346 (sbcl-package->cl-source-package sbcl-trivial-garbage))
3347
3348(define-public ecl-trivial-garbage
3349 (sbcl-package->ecl-package sbcl-trivial-garbage))
85be9191
PN
3350
3351(define-public sbcl-closer-mop
3352 (let ((commit "fac29ce90e3a46e1fc6cf182190e193526fa9dbc"))
3353 (package
3354 (name "sbcl-closer-mop")
3355 (version (git-version "1.0.0" "1" commit))
3356 (source
3357 (origin
3358 (method git-fetch)
3359 (uri (git-reference
3360 (url "https://github.com/pcostanza/closer-mop")
3361 (commit commit)))
3362 (sha256
3363 (base32 "0hvh77y869h8fg9di5snyg85fxq6fdh9gj1igmx1g6j6j5x915dl"))
3364 (file-name (git-file-name "closer-mop" version ))))
3365 (build-system asdf-build-system/sbcl)
3366 (home-page "https://github.com/pcostanza/closer-mop")
3367 (synopsis "Rectifies absent or incorrect CLOS MOP features")
3368 (description "Closer to MOP is a compatibility layer that rectifies many
3369of the absent or incorrect CLOS MOP features across a broad range of Common
3370Lisp implementations.")
3371 (license license:expat))))
3372
3373(define-public cl-closer-mop
3374 (sbcl-package->cl-source-package sbcl-closer-mop))
3375
3376(define-public ecl-closer-mop
3377 (sbcl-package->ecl-package sbcl-closer-mop))
c88985d9
PN
3378
3379(define sbcl-cl-cffi-gtk-boot0
3380 (let ((commit "29443c5aaca975709df8025c4649366d882033cb"))
3381 (package
3382 (name "sbcl-cl-cffi-gtk-boot0")
3383 (version (git-version "0.11.2" "1" commit))
3384 (source
3385 (origin
3386 (method git-fetch)
3387 (uri (git-reference
3388 (url "https://github.com/Ferada/cl-cffi-gtk/")
3389 (commit commit)))
3390 (file-name (git-file-name "cl-cffi-gtk" version))
3391 (sha256
3392 (base32
3393 "0f6s92sf8xyzh1yksqx8bsy1sv0zmy0c13j3b8bavaba5hlxpxah"))))
3394 (build-system asdf-build-system/sbcl)
3395 (inputs
3396 `(("iterate" ,sbcl-iterate)
3397 ("cffi" ,sbcl-cffi)
3398 ("trivial-features" ,sbcl-trivial-features)))
3399 (home-page "https://github.com/Ferada/cl-cffi-gtk/")
3400 (synopsis "Common Lisp binding for GTK+3")
3401 (description
3402 "@command{cl-cffi-gtk} is a Lisp binding to GTK+ 3 (GIMP Toolkit) which
3403is a library for creating graphical user interfaces.")
3404 (license license:lgpl3))))
64dcf7d9
PN
3405
3406(define-public sbcl-cl-cffi-gtk-glib
3407 (package
3408 (inherit sbcl-cl-cffi-gtk-boot0)
3409 (name "sbcl-cl-cffi-gtk-glib")
3410 (inputs
3411 `(("glib" ,glib)
3412 ,@(package-inputs sbcl-cl-cffi-gtk-boot0)))
3413 (arguments
3414 `(#:asd-file "glib/cl-cffi-gtk-glib.asd"
3415 #:phases
3416 (modify-phases %standard-phases
3417 (add-after 'unpack 'fix-paths
3418 (lambda* (#:key inputs #:allow-other-keys)
3419 (substitute* "glib/glib.init.lisp"
3420 (("libglib|libgthread" all) (string-append
3421 (assoc-ref inputs "glib") "/lib/" all))))))))))
77a5461c
PN
3422
3423(define-public sbcl-cl-cffi-gtk-gobject
3424 (package
3425 (inherit sbcl-cl-cffi-gtk-boot0)
3426 (name "sbcl-cl-cffi-gtk-gobject")
3427 (inputs
3428 `(("glib" ,glib)
3429 ("cl-cffi-gtk-glib" ,sbcl-cl-cffi-gtk-glib)
3430 ("trivial-garbage" ,sbcl-trivial-garbage)
3431 ("bordeaux-threads" ,sbcl-bordeaux-threads)
3432 ("closer-mop" ,sbcl-closer-mop)
3433 ,@(package-inputs sbcl-cl-cffi-gtk-boot0)))
3434 (arguments
3435 `(#:asd-file "gobject/cl-cffi-gtk-gobject.asd"
3436 #:phases
3437 (modify-phases %standard-phases
3438 (add-after 'unpack 'fix-paths
3439 (lambda* (#:key inputs #:allow-other-keys)
3440 (substitute* "gobject/gobject.init.lisp"
3441 (("libgobject" all) (string-append
3442 (assoc-ref inputs "glib") "/lib/" all))))))))))
867b3f47
PN
3443
3444(define-public sbcl-cl-cffi-gtk-gio
3445 (package
3446 (inherit sbcl-cl-cffi-gtk-boot0)
3447 (name "sbcl-cl-cffi-gtk-gio")
3448 (inputs
3449 `(("glib" ,glib)
3450 ("cl-cffi-gtk-glib" ,sbcl-cl-cffi-gtk-glib)
3451 ("cl-cffi-gtk-gobject" ,sbcl-cl-cffi-gtk-gobject)
3452 ,@(package-inputs sbcl-cl-cffi-gtk-boot0)))
3453 (arguments
3454 `(#:asd-file "gio/cl-cffi-gtk-gio.asd"
3455 #:phases
3456 (modify-phases %standard-phases
3457 (add-after 'unpack 'fix-paths
3458 (lambda* (#:key inputs #:allow-other-keys)
3459 (substitute* "gio/gio.init.lisp"
3460 (("libgio" all)
3461 (string-append
3462 (assoc-ref inputs "glib") "/lib/" all))))))))))
7176fe7c
PN
3463
3464(define-public sbcl-cl-cffi-gtk-cairo
3465 (package
3466 (inherit sbcl-cl-cffi-gtk-boot0)
3467 (name "sbcl-cl-cffi-gtk-cairo")
3468 (inputs
3469 `(("cairo" ,cairo)
3470 ("cl-cffi-gtk-glib" ,sbcl-cl-cffi-gtk-glib)
3471 ,@(package-inputs sbcl-cl-cffi-gtk-boot0)))
3472 (arguments
3473 `(#:asd-file "cairo/cl-cffi-gtk-cairo.asd"
3474 #:phases
3475 (modify-phases %standard-phases
3476 (add-after 'unpack 'fix-paths
3477 (lambda* (#:key inputs #:allow-other-keys)
3478 (substitute* "cairo/cairo.init.lisp"
3479 (("libcairo" all)
3480 (string-append
3481 (assoc-ref inputs "cairo") "/lib/" all))))))))))
9ecc457b
PN
3482
3483(define-public sbcl-cl-cffi-gtk-pango
3484 (package
3485 (inherit sbcl-cl-cffi-gtk-boot0)
3486 (name "sbcl-cl-cffi-gtk-pango")
3487 (inputs
3488 `(("pango" ,pango)
3489 ("cl-cffi-gtk-glib" ,sbcl-cl-cffi-gtk-glib)
3490 ("cl-cffi-gtk-gobject" ,sbcl-cl-cffi-gtk-gobject)
3491 ("cl-cffi-gtk-cairo" ,sbcl-cl-cffi-gtk-cairo)
3492 ,@(package-inputs sbcl-cl-cffi-gtk-boot0)))
3493 (arguments
3494 `(#:asd-file "pango/cl-cffi-gtk-pango.asd"
3495 #:phases
3496 (modify-phases %standard-phases
3497 (add-after 'unpack 'fix-paths
3498 (lambda* (#:key inputs #:allow-other-keys)
3499 (substitute* "pango/pango.init.lisp"
3500 (("libpango" all)
3501 (string-append
3502 (assoc-ref inputs "pango") "/lib/" all))))))))))
a3bdddc3
PN
3503
3504(define-public sbcl-cl-cffi-gtk-gdk-pixbuf
3505 (package
3506 (inherit sbcl-cl-cffi-gtk-boot0)
3507 (name "sbcl-cl-cffi-gtk-gdk-pixbuf")
3508 (inputs
3509 `(("gdk-pixbuf" ,gdk-pixbuf)
3510 ("cl-cffi-gtk-gobject" ,sbcl-cl-cffi-gtk-gobject)
3511 ,@(package-inputs sbcl-cl-cffi-gtk-boot0)))
3512 (arguments
3513 `(#:asd-file "gdk-pixbuf/cl-cffi-gtk-gdk-pixbuf.asd"
3514 #:phases
3515 (modify-phases %standard-phases
3516 (add-after 'unpack 'fix-paths
3517 (lambda* (#:key inputs #:allow-other-keys)
3518 (substitute* "gdk-pixbuf/gdk-pixbuf.init.lisp"
3519 (("libgdk_pixbuf" all)
3520 (string-append
3521 (assoc-ref inputs "gdk-pixbuf") "/lib/" all))))))))))
7b5b8c44
PN
3522
3523(define-public sbcl-cl-cffi-gtk-gdk
3524 (package
3525 (inherit sbcl-cl-cffi-gtk-boot0)
3526 (name "sbcl-cl-cffi-gtk-gdk")
3527 (inputs
3528 `(("gtk" ,gtk+)
3529 ("cl-cffi-gtk-gobject" ,sbcl-cl-cffi-gtk-gobject)
3530 ("cl-cffi-gtk-gio" ,sbcl-cl-cffi-gtk-gio)
3531 ("cl-cffi-gtk-gdk-pixbuf" ,sbcl-cl-cffi-gtk-gdk-pixbuf)
3532 ("cl-cffi-gtk-cairo" ,sbcl-cl-cffi-gtk-cairo)
3533 ("cl-cffi-gtk-pango" ,sbcl-cl-cffi-gtk-pango)
3534 ,@(package-inputs sbcl-cl-cffi-gtk-boot0)))
3535 (arguments
3536 `(#:asd-file "gdk/cl-cffi-gtk-gdk.asd"
3537 #:phases
3538 (modify-phases %standard-phases
3539 (add-after 'unpack 'fix-paths
3540 (lambda* (#:key inputs #:allow-other-keys)
3541 (substitute* "gdk/gdk.init.lisp"
3542 (("libgdk" all)
3543 (string-append
3544 (assoc-ref inputs "gtk") "/lib/" all)))
3545 (substitute* "gdk/gdk.package.lisp"
3546 (("libgtk" all)
3547 (string-append
3548 (assoc-ref inputs "gtk") "/lib/" all))))))))))
c80dfee9
PN
3549
3550(define-public sbcl-cl-cffi-gtk
3551 (package
3552 (inherit sbcl-cl-cffi-gtk-boot0)
3553 (name "sbcl-cl-cffi-gtk")
3554 (inputs
3555 `(("cl-cffi-gtk-glib" ,sbcl-cl-cffi-gtk-glib)
3556 ("cl-cffi-gtk-gobject" ,sbcl-cl-cffi-gtk-gobject)
3557 ("cl-cffi-gtk-gio" ,sbcl-cl-cffi-gtk-gio)
3558 ("cl-cffi-gtk-gdk" ,sbcl-cl-cffi-gtk-gdk)
3559 ,@(package-inputs sbcl-cl-cffi-gtk-boot0)))
3560 (native-inputs
3561 `(("fiveam" ,sbcl-fiveam)))
3562 (arguments
3563 `(#:asd-file "gtk/cl-cffi-gtk.asd"
3564 #:test-asd-file "test/cl-cffi-gtk-test.asd"
3565 ;; TODO: Tests fail with memory fault.
3566 ;; See https://github.com/Ferada/cl-cffi-gtk/issues/24.
3567 #:tests? #f))))
24fd7586 3568
6c16f1a5
PN
3569(define-public cl-cffi-gtk
3570 (sbcl-package->cl-source-package sbcl-cl-cffi-gtk))
3571
24fd7586
PN
3572(define-public sbcl-cl-webkit
3573 (let ((commit "cd2a9008e0c152e54755e8a7f07b050fe36bab31"))
3574 (package
3575 (name "sbcl-cl-webkit")
3576 (version (git-version "2.4" "1" commit))
3577 (source
3578 (origin
3579 (method git-fetch)
3580 (uri (git-reference
f6e95280 3581 (url "https://github.com/jmercouris/cl-webkit")
24fd7586
PN
3582 (commit commit)))
3583 (file-name (git-file-name "cl-webkit" version))
3584 (sha256
3585 (base32
3586 "0f5lyn9i7xrn3g1bddga377mcbawkbxydijpg389q4n04gqj0vwf"))))
3587 (build-system asdf-build-system/sbcl)
3588 (inputs
3589 `(("cffi" ,sbcl-cffi)
3590 ("cl-cffi-gtk" ,sbcl-cl-cffi-gtk)
3591 ("webkitgtk" ,webkitgtk)))
3592 (arguments
3593 `(#:asd-file "webkit2/cl-webkit2.asd"
3594 #:asd-system-name "cl-webkit2"
3595 #:phases
3596 (modify-phases %standard-phases
3597 (add-after 'unpack 'fix-paths
3598 (lambda* (#:key inputs #:allow-other-keys)
3599 (substitute* "webkit2/webkit2.init.lisp"
3600 (("libwebkit2gtk" all)
3601 (string-append
3602 (assoc-ref inputs "webkitgtk") "/lib/" all))))))))
f6e95280 3603 (home-page "https://github.com/jmercouris/cl-webkit")
24fd7586
PN
3604 (synopsis "Binding to WebKitGTK+ for Common Lisp")
3605 (description
3606 "@command{cl-webkit} is a binding to WebKitGTK+ for Common Lisp,
3607currently targeting WebKit version 2. The WebKitGTK+ library adds web
3608browsing capabilities to an application, leveraging the full power of the
3609WebKit browsing engine.")
3610 (license license:expat))))
e2e5004f 3611
6c16f1a5
PN
3612(define-public cl-webkit
3613 (sbcl-package->cl-source-package sbcl-cl-webkit))
3614
e2e5004f
PN
3615(define-public sbcl-lparallel
3616 (package
3617 (name "sbcl-lparallel")
3618 (version "2.8.4")
3619 (source
3620 (origin
3621 (method git-fetch)
3622 (uri (git-reference
3623 (url "https://github.com/lmj/lparallel/")
3624 (commit (string-append "lparallel-" version))))
3625 (file-name (git-file-name "lparallel" version))
3626 (sha256
3627 (base32
3628 "0g0aylrbbrqsz0ahmwhvnk4cmc2931fllbpcfgzsprwnqqd7vwq9"))))
3629 (build-system asdf-build-system/sbcl)
3630 (inputs
3631 `(("alexandria" ,sbcl-alexandria)
3632 ("bordeaux-threads" ,sbcl-bordeaux-threads)
3633 ("trivial-garbage" ,sbcl-trivial-garbage)))
3634 (home-page "https://lparallel.org/")
3635 (synopsis "Parallelism for Common Lisp")
3636 (description
3637 "@command{lparallel} is a library for parallel programming in Common
3638Lisp, featuring:
3639
3640@itemize
3641@item a simple model of task submission with receiving queue,
3642@item constructs for expressing fine-grained parallelism,
3643@item asynchronous condition handling across thread boundaries,
3644@item parallel versions of map, reduce, sort, remove, and many others,
3645@item promises, futures, and delayed evaluation constructs,
3646@item computation trees for parallelizing interconnected tasks,
3647@item bounded and unbounded FIFO queues,
3648@item high and low priority tasks,
3649@item task killing by category,
3650@item integrated timeouts.
3651@end itemize\n")
3652 (license license:expat)))
3653
3654(define-public cl-lparallel
3655 (sbcl-package->cl-source-package sbcl-lparallel))
3656
3657(define-public ecl-lparallel
3658 (sbcl-package->ecl-package sbcl-lparallel))
96ce8b55
PN
3659
3660(define-public sbcl-cl-markup
3661 (let ((commit "e0eb7debf4bdff98d1f49d0f811321a6a637b390"))
3662 (package
3663 (name "sbcl-cl-markup")
3664 (version (git-version "0.1" "1" commit))
3665 (source
3666 (origin
3667 (method git-fetch)
3668 (uri (git-reference
3669 (url "https://github.com/arielnetworks/cl-markup/")
3670 (commit commit)))
3671 (file-name (git-file-name "cl-markup" version))
3672 (sha256
3673 (base32
3674 "10l6k45971dl13fkdmva7zc6i453lmq9j4xax2ci6pjzlc6xjhp7"))))
3675 (build-system asdf-build-system/sbcl)
3676 (home-page "https://github.com/arielnetworks/cl-markup/")
3677 (synopsis "Markup generation library for Common Lisp")
3678 (description
3679 "A modern markup generation library for Common Lisp that features:
3680
3681@itemize
3682@item Fast (even faster through compiling the code)
3683@item Safety
3684@item Support for multiple document types (markup, xml, html, html5, xhtml)
3685@item Output with doctype
3686@item Direct output to stream
3687@end itemize\n")
3688 (license license:lgpl3+))))
3689
3690(define-public cl-markup
3691 (sbcl-package->cl-source-package sbcl-cl-markup))
3692
3693(define-public ecl-cl-markup
3694 (sbcl-package->ecl-package sbcl-cl-markup))
9eeef6ab
PN
3695
3696(define-public sbcl-cl-css
3697 (let ((commit "8fe654c8f0cf95b300718101cce4feb517f78e2f"))
3698 (package
3699 (name "sbcl-cl-css")
3700 (version (git-version "0.1" "1" commit))
3701 (source
3702 (origin
3703 (method git-fetch)
3704 (uri (git-reference
3705 (url "https://github.com/inaimathi/cl-css/")
3706 (commit commit)))
3707 (file-name (git-file-name "cl-css" version))
3708 (sha256
3709 (base32
3710 "1lc42zi2sw11fl2589sc19nr5sd2p0wy7wgvgwaggxa5f3ajhsmd"))))
3711 (build-system asdf-build-system/sbcl)
3712 (home-page "https://github.com/inaimathi/cl-css/")
3713 (synopsis "Non-validating, inline CSS generator for Common Lisp")
3714 (description
3715 "This is a dead-simple, non validating, inline CSS generator for Common
3716Lisp. Its goals are axiomatic syntax, simple implementation to support
3717portability, and boilerplate reduction in CSS.")
3718 (license license:expat))))
3719
3720(define-public cl-css
3721 (sbcl-package->cl-source-package sbcl-cl-css))
3722
e24ef369 3723(define-public ecl-cl-css
9eeef6ab 3724 (sbcl-package->ecl-package sbcl-cl-css))
9fabcb6c
PN
3725
3726(define-public sbcl-portable-threads
3727 (let ((commit "c0e61a1faeb0583c80fd3f20b16cc4c555226920"))
3728 (package
3729 (name "sbcl-portable-threads")
3730 (version (git-version "2.3" "1" commit))
3731 (source
3732 (origin
3733 (method git-fetch)
3734 (uri (git-reference
3735 (url "https://github.com/binghe/portable-threads/")
3736 (commit commit)))
3737 (file-name (git-file-name "portable-threads" version))
3738 (sha256
3739 (base32
3740 "03fmxyarc0xf4kavwkfa0a2spkyfrz6hbgbi9y4q7ny5aykdyfaq"))))
3741 (build-system asdf-build-system/sbcl)
3742 (arguments
3743 `(;; Tests seem broken.
3744 #:tests? #f))
3745 (home-page "https://github.com/binghe/portable-threads")
3746 (synopsis "Portable threads (and scheduled and periodic functions) API for Common Lisp")
3747 (description
3748 "Portable Threads (and Scheduled and Periodic Functions) API for Common
3749Lisp (from GBBopen project).")
3750 (license license:asl2.0))))
3751
3752(define-public cl-portable-threads
3753 (sbcl-package->cl-source-package sbcl-portable-threads))
3754
3755(define-public ecl-portable-threada
3756 (sbcl-package->ecl-package sbcl-portable-threads))
75c95c76
PN
3757
3758(define-public sbcl-usocket-boot0
3759 ;; usocket's test rely on usocket-server which depends on usocket itself.
3760 ;; We break this cyclic dependency with -boot0 that packages usocket.
3761 (let ((commit "86e7efbfe50101931edf4b67cdcfa7e221ecfde9"))
3762 (package
3763 (name "sbcl-usocket-boot0")
3764 (version (git-version "0.7.1" "1" commit))
3765 (source
3766 (origin
3767 (method git-fetch)
3768 (uri (git-reference
3769 (url "https://github.com/usocket/usocket/")
3770 (commit commit)))
3771 (file-name (git-file-name "usocket" version))
3772 (sha256
3773 (base32
3774 "1lk6ipakrib7kdgzw44hrgmls9akp5pz4h35yynw0k5zwmmq6374"))))
3775 (build-system asdf-build-system/sbcl)
3776 (inputs
3777 `(("split-sequence" ,sbcl-split-sequence)))
3778 (arguments
3779 `(#:tests? #f
3780 #:asd-system-name "usocket"))
3781 (home-page "https://common-lisp.net/project/usocket/")
3782 (synopsis "Universal socket library for Common Lisp (server side)")
3783 (description
3784 "This library strives to provide a portable TCP/IP and UDP/IP socket
3785interface for as many Common Lisp implementations as possible, while keeping
3786the abstraction and portability layer as thin as possible.")
3787 (license license:expat))))
be01e79c
PN
3788
3789(define-public sbcl-usocket-server
3790 (package
3791 (inherit sbcl-usocket-boot0)
3792 (name "sbcl-usocket-server")
3793 (inputs
3794 `(("usocket" ,sbcl-usocket-boot0)
3795 ("portable-threads" ,sbcl-portable-threads)))
3796 (arguments
3797 '(#:asd-system-name "usocket-server"))
3798 (synopsis "Universal socket library for Common Lisp (server side)")))
3799
3800(define-public cl-usocket-server
3801 (sbcl-package->cl-source-package sbcl-usocket-server))
3802
3803(define-public ecl-socket-server
3804 (sbcl-package->ecl-package sbcl-usocket-server))
79dc47c9
PN
3805
3806(define-public sbcl-usocket
3807 (package
3808 (inherit sbcl-usocket-boot0)
3809 (name "sbcl-usocket")
3810 (arguments
3811 ;; FIXME: Tests need network access?
3812 `(#:tests? #f))
3813 (native-inputs
3814 ;; Testing only.
3815 `(("usocket-server" ,sbcl-usocket-server)
3816 ("rt" ,sbcl-rt)))))
3817
3818(define-public cl-usocket
3819 (sbcl-package->cl-source-package sbcl-usocket))
3820
3821(define-public ecl-socket
3822 (sbcl-package->ecl-package sbcl-usocket))
c931f809
PN
3823
3824(define-public sbcl-s-xml
3825 (package
3826 (name "sbcl-s-xml")
3827 (version "3")
3828 (source
3829 (origin
3830 (method url-fetch)
3831 (uri "https://common-lisp.net/project/s-xml/s-xml.tgz")
3832 (sha256
3833 (base32
3834 "061qcr0dzshsa38s5ma4ay924cwak2nq9gy59dw6v9p0qb58nzjf"))))
3835 (build-system asdf-build-system/sbcl)
3836 (home-page "https://common-lisp.net/project/s-xml/")
3837 (synopsis "Simple XML parser implemented in Common Lisp")
3838 (description
3839 "S-XML is a simple XML parser implemented in Common Lisp. This XML
3840parser implementation has the following features:
3841
3842@itemize
3843@item It works (handling many common XML usages).
3844@item It is very small (the core is about 700 lines of code, including
3845comments and whitespace).
3846@item It has a core API that is simple, efficient and pure functional, much
3847like that from SSAX (see also http://ssax.sourceforge.net).
3848@item It supports different DOM models: an XSML-based one, an LXML-based one
3849and a classic xml-element struct based one.
3850@item It is reasonably time and space efficient (internally avoiding garbage
3851generatation as much as possible).
3852@item It does support CDATA.
3853@item It should support the same character sets as your Common Lisp
3854implementation.
3855@item It does support XML name spaces.
3856@end itemize
3857
3858This XML parser implementation has the following limitations:
3859
3860@itemize
3861@item It does not support any special tags (like processing instructions).
3862@item It is not validating, even skips DTD's all together.
3863@end itemize\n")
3864 (license license:lgpl3+)))
3865
3866(define-public cl-s-xml
3867 (sbcl-package->cl-source-package sbcl-s-xml))
3868
3869(define-public ecl-s-xml
3870 (sbcl-package->ecl-package sbcl-s-xml))
8c5160db
PN
3871
3872(define-public sbcl-s-xml-rpc
3873 (package
3874 (name "sbcl-s-xml-rpc")
3875 (version "7")
3876 (source
3877 (origin
3878 (method url-fetch)
3879 (uri "https://common-lisp.net/project/s-xml-rpc/s-xml-rpc.tgz")
3880 (sha256
3881 (base32
3882 "02z7k163d51v0pzk8mn1xb6h5s6x64gjqkslhwm3a5x26k2gfs11"))))
3883 (build-system asdf-build-system/sbcl)
3884 (inputs
3885 `(("s-xml" ,sbcl-s-xml)))
3886 (home-page "https://common-lisp.net/project/s-xml-rpc/")
3887 (synopsis "Implementation of XML-RPC in Common Lisp for both client and server")
3888 (description
3889 "S-XML-RPC is an implementation of XML-RPC in Common Lisp for both
3890client and server.")
3891 (license license:lgpl3+)))
3892
3893(define-public cl-s-xml-rpc
3894 (sbcl-package->cl-source-package sbcl-s-xml-rpc))
3895
3896(define-public ecl-s-xml-rpc
3897 (sbcl-package->ecl-package sbcl-s-xml-rpc))
2c742a06
PN
3898
3899(define-public sbcl-trivial-clipboard
6693cdd6 3900 (let ((commit "5af3415d1484e6d69a1b5c178f24680d9fd01796"))
2c742a06
PN
3901 (package
3902 (name "sbcl-trivial-clipboard")
6693cdd6 3903 (version (git-version "0.0.0.0" "2" commit))
2c742a06
PN
3904 (source
3905 (origin
3906 (method git-fetch)
3907 (uri (git-reference
3908 (url "https://github.com/snmsts/trivial-clipboard")
3909 (commit commit)))
6693cdd6 3910 (file-name (git-file-name "trivial-clipboard" version))
2c742a06
PN
3911 (sha256
3912 (base32
6693cdd6 3913 "1gb515z5yq6h5548pb1fwhmb0hhq1ssyb78pvxh4alq799xipxs9"))))
2c742a06
PN
3914 (build-system asdf-build-system/sbcl)
3915 (inputs
3916 `(("xclip" ,xclip)))
3917 (native-inputs
3918 `(("fiveam" ,sbcl-fiveam)))
3919 (arguments
3920 `(#:phases
3921 (modify-phases %standard-phases
3922 (add-after 'unpack 'fix-paths
3923 (lambda* (#:key inputs #:allow-other-keys)
3924 (substitute* "src/text.lisp"
6693cdd6
PN
3925 (("\\(executable-find \"xclip\"\\)")
3926 (string-append "(executable-find \""
3927 (assoc-ref inputs "xclip")
3928 "/bin/xclip\")"))))))))
2c742a06
PN
3929 (home-page "https://github.com/snmsts/trivial-clipboard")
3930 (synopsis "Access system clipboard in Common Lisp")
3931 (description
3932 "@command{trivial-clipboard} gives access to the system clipboard.")
3933 (license license:expat))))
3934
3935(define-public cl-trivial-clipboard
3936 (sbcl-package->cl-source-package sbcl-trivial-clipboard))
3937
3938(define-public ecl-trivial-clipboard
3939 (sbcl-package->ecl-package sbcl-trivial-clipboard))
d1ae5a12 3940
977b0db4
KCB
3941(define-public sbcl-trivial-backtrace
3942 (let ((commit "ca81c011b86424a381a7563cea3b924f24e6fbeb")
3943 (revision "1"))
3944 (package
3945 (name "sbcl-trivial-backtrace")
3946 (version (git-version "0.0.0" revision commit))
3947 (source
3948 (origin
3949 (method git-fetch)
3950 (uri (git-reference
3951 (url "https://github.com/gwkkwg/trivial-backtrace.git")
3952 (commit commit)))
5924f621 3953 (file-name (git-file-name "trivial-backtrace" version))
977b0db4
KCB
3954 (sha256
3955 (base32 "10p41p43skj6cimdg8skjy7372s8v2xpkg8djjy0l8rm45i654k1"))))
3956 (build-system asdf-build-system/sbcl)
3957 (inputs
3958 `(("sbcl-lift" ,sbcl-lift)))
3959 (home-page "https://common-lisp.net/project/trivial-backtrace/")
3960 (synopsis "Portable simple API to work with backtraces in Common Lisp")
3961 (description
3962 "On of the many things that didn't quite get into the Common Lisp
3963standard was how to get a Lisp to output its call stack when something has
3964gone wrong. As such, each Lisp has developed its own notion of what to
3965display, how to display it, and what sort of arguments can be used to
3966customize it. @code{trivial-backtrace} is a simple solution to generating a
3967backtrace portably.")
4f6172f1 3968 (license license:expat))))
977b0db4
KCB
3969
3970(define-public cl-trivial-backtrace
3971 (sbcl-package->cl-source-package sbcl-trivial-backtrace))
3972
d2137182
KCB
3973(define-public sbcl-rfc2388
3974 (let ((commit "591bcf7e77f2c222c43953a80f8c297751dc0c4e")
3975 (revision "1"))
3976 (package
3977 (name "sbcl-rfc2388")
3978 (version (git-version "0.0.0" revision commit))
3979 (source
3980 (origin
3981 (method git-fetch)
3982 (uri (git-reference
3983 (url "https://github.com/jdz/rfc2388.git")
3984 (commit commit)))
0abf2d91 3985 (file-name (git-file-name "rfc2388" version))
d2137182
KCB
3986 (sha256
3987 (base32 "0phh5n3clhl9ji8jaxrajidn22d3f0aq87mlbfkkxlnx2pnw694k"))))
3988 (build-system asdf-build-system/sbcl)
3989 (home-page "https://github.com/jdz/rfc2388/")
3990 (synopsis "An implementation of RFC 2388 in Common Lisp")
3991 (description
3992 "This package contains an implementation of RFC 2388, which is used to
3993process form data posted with HTTP POST method using enctype
3994\"multipart/form-data\".")
3995 (license license:bsd-2))))
3996
3997(define-public cl-rfc2388
3998 (sbcl-package->cl-source-package sbcl-rfc2388))
3999
66c84d20
KCB
4000(define-public sbcl-md5
4001 (package
4002 (name "sbcl-md5")
4003 (version "2.0.4")
4004 (source
4005 (origin
4006 (method url-fetch)
4007 (uri (string-append
4008 "https://github.com/pmai/md5/archive/release-" version ".tar.gz"))
4009 (sha256
4010 (base32 "19yl9n0pjdz5gw4qi711lka97xcd9f81ylg434hk7jwn9f2s6w11"))))
4011 (build-system asdf-build-system/sbcl)
4012 (home-page "https://github.com/pmai/md5")
4013 (synopsis
4014 "Common Lisp implementation of the MD5 Message-Digest Algorithm (RFC 1321)")
4015 (description
4016 "This package implements The MD5 Message-Digest Algorithm, as defined in
4017RFC 1321 by R. Rivest, published April 1992.")
4018 (license license:public-domain)))
4019
4020(define-public cl-md5
4021 (sbcl-package->cl-source-package sbcl-md5))
4022
d1ae5a12 4023(define-public sbcl-cl+ssl
3de20310 4024 (let ((commit "141ae91416bc40f1618dc07e48429b84388aa599")
d1ae5a12
KCB
4025 (revision "1"))
4026 (package
4027 (name "sbcl-cl+ssl")
4028 (version (git-version "0.0.0" revision commit))
4029 (source
4030 (origin
4031 (method git-fetch)
4032 (uri (git-reference
4033 (url "https://github.com/cl-plus-ssl/cl-plus-ssl.git")
4034 (commit commit)))
e976e199 4035 (file-name (git-file-name "cl+ssl" version))
d1ae5a12 4036 (sha256
3de20310 4037 (base32 "1s0hg1h9sf8q89v0yrxmzg5f5sng29rgx3n21r9h9yql8351myan"))))
d1ae5a12
KCB
4038 (build-system asdf-build-system/sbcl)
4039 (arguments
4040 '(#:phases
4041 (modify-phases %standard-phases
4042 (add-after 'unpack 'fix-paths
4043 (lambda* (#:key inputs #:allow-other-keys)
4044 (substitute* "src/reload.lisp"
4045 (("libssl.so" all)
4046 (string-append
4047 (assoc-ref inputs "openssl") "/lib/" all))))))))
4048 (inputs
4049 `(("openssl" ,openssl)
4050 ("sbcl-cffi" ,sbcl-cffi)
4051 ("sbcl-trivial-gray-streams" ,sbcl-trivial-gray-streams)
4052 ("sbcl-flexi-streams" ,sbcl-flexi-streams)
4053 ("sbcl-bordeaux-threads" ,sbcl-bordeaux-threads)
3de20310
GLV
4054 ("sbcl-trivial-garbage" ,sbcl-trivial-garbage)
4055 ("sbcl-alexandria" ,sbcl-alexandria)
4056 ("sbcl-trivial-features" ,sbcl-trivial-features)))
d1ae5a12
KCB
4057 (home-page "http://common-lisp.net/project/cl-plus-ssl/")
4058 (synopsis "Common Lisp bindings to OpenSSL")
4059 (description
4060 "This library is a fork of SSL-CMUCL. The original SSL-CMUCL source
4061code was written by Eric Marsden and includes contributions by Jochen Schmidt.
4062Development into CL+SSL was done by David Lichteblau.")
4063 (license license:expat))))
4064
4065(define-public cl-cl+ssl
4066 (sbcl-package->cl-source-package sbcl-cl+ssl))
610ee80a
KCB
4067
4068(define-public sbcl-kmrcl
4069 (let ((version "1.109.0")
4070 (commit "5260068b2eb735af6796740c2db4955afac21636")
4071 (revision "1"))
4072 (package
4073 (name "sbcl-kmrcl")
4074 (version (git-version version revision commit))
4075 (source
4076 (origin
4077 (method git-fetch)
4078 (uri (git-reference
4079 (url "http://git.kpe.io/kmrcl.git/")
4080 (commit commit)))
4081 (file-name (git-file-name name version))
4082 (sha256
4083 (base32 "1va7xjgzfv674bpsli674i7zj3f7wg5kxic41kz18r6hh4n52dfv"))))
4084 (build-system asdf-build-system/sbcl)
4085 (arguments
4086 ;; Tests fail with: :FORCE and :FORCE-NOT arguments not allowed in a
4087 ;; nested call to ASDF/OPERATE:OPERATE unless identically to toplevel
4088 '(#:tests? #f))
4089 (inputs
4090 `(("sbcl-rt" ,sbcl-rt)))
4091 (home-page "http://files.kpe.io/kmrcl/")
4092 (synopsis "General utilities for Common Lisp programs")
4093 (description
4094 "KMRCL is a collection of utilities used by a number of Kevin
4095Rosenberg's CL packages.")
4096 (license license:llgpl))))
4097
4098(define-public cl-kmrcl
4099 (sbcl-package->cl-source-package sbcl-kmrcl))
9945a170
KCB
4100
4101(define-public sbcl-cl-base64
4102 (let ((version "3.3.3"))
4103 (package
4104 (name "sbcl-cl-base64")
4105 (version version)
4106 (source
4107 (origin
4108 (method git-fetch)
4109 (uri (git-reference
4110 (url "http://git.kpe.io/cl-base64.git")
4111 (commit (string-append "v" version))))
45ea12f3 4112 (file-name (git-file-name "cl-base64" version))
9945a170
KCB
4113 (sha256
4114 (base32 "1dw6j7n6gsd2qa0p0rbsjxj00acxx3i9ca1qkgl0liy8lpnwkypl"))))
4115 (build-system asdf-build-system/sbcl)
4116 (arguments
4117 ;; Tests fail with: :FORCE and :FORCE-NOT arguments not allowed
4118 ;; in a nested call to ASDF/OPERATE:OPERATE unless identically
4119 ;; to toplevel
4120 '(#:tests? #f))
4121 (inputs
4122 `(("sbcl-ptester" ,sbcl-ptester)
4123 ("sbcl-kmrcl" ,sbcl-kmrcl)))
4124 (home-page "http://files.kpe.io/cl-base64/")
4125 (synopsis
4126 "Common Lisp package to encode and decode base64 with URI support")
4127 (description
4128 "This package provides highly optimized base64 encoding and decoding.
4129Besides conversion to and from strings, integer conversions are supported.
4130Encoding with Uniform Resource Identifiers is supported by using a modified
4131encoding table that uses only URI-compatible characters.")
4132 (license license:bsd-3))))
4133
4134(define-public cl-base64
4135 (sbcl-package->cl-source-package sbcl-cl-base64))
990724c8
KCB
4136
4137(define-public sbcl-chunga
4138 (package
4139 (name "sbcl-chunga")
4140 (version "1.1.7")
4141 (source
4142 (origin
4143 (method url-fetch)
4144 (uri (string-append
4145 "https://github.com/edicl/chunga/archive/v" version ".tar.gz"))
4146 (sha256
4147 (base32 "0ra17kyc9l7qbaw003ly111r1cbn4zixbfq1ydr9cxw10v30q1n7"))))
4148 (build-system asdf-build-system/sbcl)
4149 (inputs
4150 `(("sbcl-trivial-gray-streams" ,sbcl-trivial-gray-streams)))
4151 (home-page "https://edicl.github.io/chunga/")
4152 (synopsis "Portable chunked streams for Common Lisp")
4153 (description
4154 "Chunga implements streams capable of chunked encoding on demand as
4155defined in RFC 2616.")
4156 (license license:bsd-2)))
4157
4158(define-public cl-chunga
4159 (sbcl-package->cl-source-package sbcl-chunga))
a4aefc1b
KCB
4160
4161(define-public sbcl-cl-who
4162 (let ((version "1.1.4")
4163 (commit "2c08caa4bafba720409af9171feeba3f32e86d32")
4164 (revision "1"))
4165 (package
4166 (name "sbcl-cl-who")
4167 (version (git-version version revision commit))
4168 (source
4169 (origin
4170 (method git-fetch)
4171 (uri (git-reference
4172 (url "https://github.com/edicl/cl-who.git")
4173 (commit commit)))
4174 (file-name (git-file-name name version))
4175 (sha256
4176 (base32
4177 "0yjb6sr3yazm288m318kqvj9xk8rm9n1lpimgf65ymqv0i5agxsb"))))
4178 (build-system asdf-build-system/sbcl)
4179 (native-inputs
4180 `(("sbcl-flexi-streams" ,sbcl-flexi-streams)))
4181 (home-page "https://edicl.github.io/cl-who/")
4182 (synopsis "Yet another Lisp markup language")
4183 (description
4184 "There are plenty of Lisp Markup Languages out there - every Lisp
4185programmer seems to write at least one during his career - and CL-WHO (where
4186WHO means \"with-html-output\" for want of a better acronym) is probably just
4187as good or bad as the next one.")
4188 (license license:bsd-2))))
4189
4190(define-public cl-cl-who
4191 (sbcl-package->cl-source-package sbcl-cl-who))
50fe395d
KCB
4192
4193(define-public sbcl-chipz
4194 (let ((version "0.8")
4195 (commit "75dfbc660a5a28161c57f115adf74c8a926bfc4d")
4196 (revision "1"))
4197 (package
4198 (name "sbcl-chipz")
4199 (version (git-version version revision commit))
4200 (source
4201 (origin
4202 (method git-fetch)
4203 (uri (git-reference
4204 (url "https://github.com/froydnj/chipz.git")
4205 (commit commit)))
4206 (file-name (git-file-name name version))
4207 (sha256
4208 (base32
4209 "0plx4rs39zbs4gjk77h4a2q11zpy75fh9v8hnxrvsf8fnakajhwg"))))
4210 (build-system asdf-build-system/sbcl)
4211 (native-inputs
4212 `(("sbcl-flexi-streams" ,sbcl-flexi-streams)))
4213 (home-page "http://method-combination.net/lisp/chipz/")
4214 (synopsis
4215 "Common Lisp library for decompressing deflate, zlib, gzip, and bzip2
4216data")
4217 (description
4218 "DEFLATE data, defined in RFC1951, forms the core of popular
4219compression formats such as zlib (RFC 1950) and gzip (RFC 1952). As such,
4220Chipz also provides for decompressing data in those formats as well. BZIP2 is
4221the format used by the popular compression tool bzip2.")
4222 ;; The author describes it as "MIT-like"
4223 (license license:expat))))
4224
4225(define-public cl-chipz
4226 (sbcl-package->cl-source-package sbcl-chipz))
5ceb1492
KCB
4227
4228(define-public sbcl-drakma
4229 (let ((version "2.0.4")
4230 (commit "7647c0ae842ff2058624e53979c7f297760c97a7")
4231 (revision "1"))
4232 (package
4233 (name "sbcl-drakma")
4234 (version (git-version version revision commit))
4235 (source
4236 (origin
4237 (method git-fetch)
4238 (uri (git-reference
4239 (url "https://github.com/edicl/drakma.git")
4240 (commit commit)))
4241 (file-name (git-file-name name version))
4242 (sha256
4243 (base32
4244 "1c4i9wakhj5pxfyyykxshdmv3180sbkrx6fcyynikmc0jd0rh84r"))))
4245 (build-system asdf-build-system/sbcl)
4246 (inputs
4247 `(("sbcl-puri" ,sbcl-puri)
4248 ("sbcl-cl-base64" ,sbcl-cl-base64)
4249 ("sbcl-chunga" ,sbcl-chunga)
4250 ("sbcl-flexi-streams" ,sbcl-flexi-streams)
4251 ("sbcl-cl-ppcre" ,sbcl-cl-ppcre)
4252 ("sbcl-chipz" ,sbcl-chipz)
4253 ("sbcl-usocket" ,sbcl-usocket)
4254 ("sbcl-cl+ssl" ,sbcl-cl+ssl)))
4255 (native-inputs
4256 `(("sbcl-fiveam" ,sbcl-fiveam)))
4257 (home-page "https://edicl.github.io/drakma/")
4258 (synopsis "HTTP client written in Common Lisp")
4259 (description
4260 "Drakma is a full-featured HTTP client implemented in Common Lisp. It
4261knows how to handle HTTP/1.1 chunking, persistent connections, re-usable
4262sockets, SSL, continuable uploads, file uploads, cookies, and more.")
4263 (license license:bsd-2))))
4264
4265(define-public cl-drakma
4266 (sbcl-package->cl-source-package sbcl-drakma))
155fc436
KCB
4267
4268(define-public sbcl-hunchentoot
4269 (package
4270 (name "sbcl-hunchentoot")
4271 (version "1.2.38")
4272 (source
4273 (origin
0458ec2b
TGR
4274 (method git-fetch)
4275 (uri (git-reference
4276 (url "https://github.com/edicl/hunchentoot.git")
4277 (commit (string-append "v" version))))
4278 (file-name (git-file-name "hunchentoot" version))
155fc436 4279 (sha256
0458ec2b 4280 (base32 "1anpcad7w045m4rsjs1f3xdhjwx5cppq1h0vlb3q7dz81fi3i6yq"))))
155fc436
KCB
4281 (build-system asdf-build-system/sbcl)
4282 (native-inputs
4283 `(("sbcl-cl-who" ,sbcl-cl-who)
4284 ("sbcl-drakma" ,sbcl-drakma)))
4285 (inputs
4286 `(("sbcl-chunga" ,sbcl-chunga)
4287 ("sbcl-cl-base64" ,sbcl-cl-base64)
4288 ("sbcl-cl-fad" ,sbcl-cl-fad)
4289 ("sbcl-cl-ppcre" ,sbcl-cl-ppcre)
4290 ("sbcl-flexi-streams" ,sbcl-flexi-streams)
4291 ("sbcl-cl+ssl" ,sbcl-cl+ssl)
4292 ("sbcl-md5" ,sbcl-md5)
4293 ("sbcl-rfc2388" ,sbcl-rfc2388)
4294 ("sbcl-trivial-backtrace" ,sbcl-trivial-backtrace)
4295 ("sbcl-usocket" ,sbcl-usocket)))
4296 (home-page "https://edicl.github.io/hunchentoot/")
4297 (synopsis "Web server written in Common Lisp")
4298 (description
4299 "Hunchentoot is a web server written in Common Lisp and at the same
4300time a toolkit for building dynamic websites. As a stand-alone web server,
4301Hunchentoot is capable of HTTP/1.1 chunking (both directions), persistent
4302connections (keep-alive), and SSL.")
4303 (license license:bsd-2)))
4304
4305(define-public cl-hunchentoot
4306 (sbcl-package->cl-source-package sbcl-hunchentoot))
47a8aaa8
KCB
4307
4308(define-public sbcl-trivial-types
4309 (package
4310 (name "sbcl-trivial-types")
4311 (version "0.0.1")
4312 (source
4313 (origin
4314 (method git-fetch)
4315 (uri (git-reference
4316 (url "https://github.com/m2ym/trivial-types.git")
4317 (commit "ee869f2b7504d8aa9a74403641a5b42b16f47d88")))
4318 (file-name (git-file-name name version))
4319 (sha256
4320 (base32 "1s4cp9bdlbn8447q7w7f1wkgwrbvfzp20mgs307l5pxvdslin341"))))
4321 (build-system asdf-build-system/sbcl)
4322 (home-page "https://github.com/m2ym/trivial-types")
4323 (synopsis "Trivial type definitions for Common Lisp")
4324 (description
4325 "TRIVIAL-TYPES provides missing but important type definitions such as
4326PROPER-LIST, ASSOCIATION-LIST, PROPERTY-LIST and TUPLE.")
4327 (license license:llgpl)))
4328
4329(define-public cl-trivial-types
4330 (sbcl-package->cl-source-package sbcl-trivial-types))
85d1c705 4331
3f3dfd84 4332(define-public sbcl-cl-syntax
85d1c705 4333 (package
3f3dfd84 4334 (name "sbcl-cl-syntax")
85d1c705
KCB
4335 (version "0.0.3")
4336 (source
4337 (origin
4338 (method git-fetch)
4339 (uri (git-reference
4340 (url "https://github.com/m2ym/cl-syntax.git")
4341 (commit "03f0c329bbd55b8622c37161e6278366525e2ccc")))
ad09f3b0 4342 (file-name (git-file-name "cl-syntax" version))
85d1c705
KCB
4343 (sha256
4344 (base32 "17ran8xp77asagl31xv8w819wafh6whwfc9p6dgx22ca537gyl4y"))))
4345 (build-system asdf-build-system/sbcl)
4346 (arguments
4347 '(#:asd-file "cl-syntax.asd"
4348 #:asd-system-name "cl-syntax"))
4349 (inputs `(("sbcl-trivial-types" ,sbcl-trivial-types)
4350 ("sbcl-named-readtables" ,sbcl-named-readtables)))
4351 (home-page "https://github.com/m2ym/cl-syntax")
4352 (synopsis "Reader Syntax Coventions for Common Lisp and SLIME")
4353 (description
4354 "CL-SYNTAX provides Reader Syntax Coventions for Common Lisp and SLIME.")
4355 (license license:llgpl)))
4356
4357(define-public cl-syntax
3f3dfd84 4358 (sbcl-package->cl-source-package sbcl-cl-syntax))
7408b219 4359
3f3dfd84 4360(define-public sbcl-cl-annot
7408b219
KCB
4361 (let ((commit "c99e69c15d935eabc671b483349a406e0da9518d")
4362 (revision "1"))
4363 (package
3f3dfd84 4364 (name "sbcl-cl-annot")
7408b219
KCB
4365 (version (git-version "0.0.0" revision commit))
4366 (source
4367 (origin
4368 (method git-fetch)
4369 (uri (git-reference
4370 (url "https://github.com/m2ym/cl-annot.git")
4371 (commit commit)))
4372 (file-name (git-file-name name version))
4373 (sha256
4374 (base32 "1wq1gs9jjd5m6iwrv06c2d7i5dvqsfjcljgbspfbc93cg5xahk4n"))))
4375 (build-system asdf-build-system/sbcl)
4376 (arguments
4377 '(#:asd-file "cl-annot.asd"
4378 #:asd-system-name "cl-annot"))
4379 (inputs
4380 `(("sbcl-alexandria" ,sbcl-alexandria)))
4381 (home-page "https://github.com/m2ym/cl-annot")
4382 (synopsis "Python-like Annotation Syntax for Common Lisp.")
4383 (description
4384 "@code{cl-annot} is an general annotation library for Common Lisp.")
4385 (license license:llgpl))))
4386
4387(define-public cl-annot
3f3dfd84 4388 (sbcl-package->cl-source-package sbcl-cl-annot))
2005104e 4389
3f3dfd84 4390(define-public sbcl-cl-syntax-annot
2005104e 4391 (package
3f3dfd84 4392 (name "sbcl-cl-syntax-annot")
2005104e
KCB
4393 (version "0.0.3")
4394 (source
4395 (origin
4396 (method git-fetch)
4397 (uri (git-reference
4398 (url "https://github.com/m2ym/cl-syntax.git")
4399 (commit "03f0c329bbd55b8622c37161e6278366525e2ccc")))
4400 (file-name (git-file-name name version))
4401 (sha256
4402 (base32 "17ran8xp77asagl31xv8w819wafh6whwfc9p6dgx22ca537gyl4y"))))
4403 (build-system asdf-build-system/sbcl)
4404 (arguments
4405 '(#:asd-file "cl-syntax-annot.asd"
4406 #:asd-system-name "cl-syntax-annot"))
4407 (inputs
3f3dfd84
SB
4408 `(("sbcl-cl-syntax" ,sbcl-cl-syntax)
4409 ("sbcl-cl-annot" ,sbcl-cl-annot)))
2005104e
KCB
4410 (home-page "https://github.com/m2ym/cl-syntax")
4411 (synopsis "Reader Syntax Coventions for Common Lisp and SLIME")
4412 (description
4413 "CL-SYNTAX provides Reader Syntax Coventions for Common Lisp and
4414SLIME.")
4415 (license license:llgpl)))
4416
4417(define-public cl-syntax-annot
3f3dfd84 4418 (sbcl-package->cl-source-package sbcl-cl-syntax-annot))
a7b1ae38 4419
3f3dfd84 4420(define-public sbcl-cl-utilities
a7b1ae38
KCB
4421 (let ((commit "dce2d2f6387091ea90357a130fa6d13a6776884b")
4422 (revision "1"))
4423 (package
3f3dfd84 4424 (name "sbcl-cl-utilities")
a7b1ae38
KCB
4425 (version (git-version "0.0.0" revision commit))
4426 (source
4427 (origin
4428 (method url-fetch)
4429 (uri
4430 (string-append
4431 "https://gitlab.common-lisp.net/cl-utilities/cl-utilities/-/"
4432 "archive/" commit "/cl-utilities-" commit ".tar.gz"))
4433 (sha256
4434 (base32 "1r46v730yf96nk2vb24qmagv9x96xvd08abqwhf02ghgydv1a7z2"))))
4435 (build-system asdf-build-system/sbcl)
4436 (arguments
4437 '(#:asd-file "cl-utilities.asd"
4438 #:asd-system-name "cl-utilities"
4439 #:phases
4440 (modify-phases %standard-phases
4441 (add-after 'unpack 'fix-paths
4442 (lambda* (#:key inputs #:allow-other-keys)
4443 (substitute* "rotate-byte.lisp"
4444 (("in-package :cl-utilities)" all)
4445 "in-package :cl-utilities)\n\n#+sbcl\n(require :sb-rotate-byte)")))))))
4446 (home-page "http://common-lisp.net/project/cl-utilities")
4447 (synopsis "A collection of semi-standard utilities")
4448 (description
4449 "On Cliki.net <http://www.cliki.net/Common%20Lisp%20Utilities>, there
4450is a collection of Common Lisp Utilities, things that everybody writes since
4451they're not part of the official standard. There are some very useful things
4452there; the only problems are that they aren't implemented as well as you'd
4453like (some aren't implemented at all) and they aren't conveniently packaged
4454and maintained. It takes quite a bit of work to carefully implement utilities
4455for common use, commented and documented, with error checking placed
4456everywhere some dumb user might make a mistake.")
4457 (license license:public-domain))))
4458
4459(define-public cl-utilities
3f3dfd84 4460 (sbcl-package->cl-source-package sbcl-cl-utilities))
9e005948
KCB
4461
4462(define-public sbcl-map-set
4463 (let ((commit "7b4b545b68b8")
4464 (revision "1"))
4465 (package
4466 (name "sbcl-map-set")
4467 (version (git-version "0.0.0" revision commit))
4468 (source
4469 (origin
4470 (method url-fetch)
4471 (uri (string-append
4472 "https://bitbucket.org/tarballs_are_good/map-set/get/"
4473 commit ".tar.gz"))
4474 (sha256
4475 (base32 "1sx5j5qdsy5fklspfammwb16kjrhkggdavm922a9q86jm5l0b239"))))
4476 (build-system asdf-build-system/sbcl)
4477 (home-page "https://bitbucket.org/tarballs_are_good/map-set")
4478 (synopsis "Set-like data structure")
4479 (description
4480 "Implementation of a set-like data structure with constant time
4481addition, removal, and random selection.")
4482 (license license:bsd-3))))
4483
4484(define-public cl-map-set
4485 (sbcl-package->cl-source-package sbcl-map-set))
5a4b0f63
KCB
4486
4487(define-public sbcl-quri
4488 (let ((commit "76b75103f21ead092c9f715512fa82441ef61185")
4489 (revision "1"))
4490 (package
4491 (name "sbcl-quri")
4492 (version (git-version "0.1.0" revision commit))
4493 (source
4494 (origin
4495 (method git-fetch)
4496 (uri (git-reference
4497 (url "https://github.com/fukamachi/quri.git")
4498 (commit commit)))
4499 (file-name (git-file-name name version))
4500 (sha256
4501 (base32 "1ccbxsgzdibmzq33mmbmmz9vwl6l03xh6nbpsh1hkdvdcl7q0a60"))))
4502 (build-system asdf-build-system/sbcl)
4503 (arguments
4504 ;; Tests fail with: Component QURI-ASD::QURI-TEST not found,
4505 ;; required by #<SYSTEM "quri">. Why?
4506 '(#:tests? #f))
4507 (native-inputs `(("sbcl-prove-asdf" ,sbcl-prove-asdf)
4508 ("sbcl-prove" ,sbcl-prove)))
4509 (inputs `(("sbcl-babel" ,sbcl-babel)
4510 ("sbcl-split-sequence" ,sbcl-split-sequence)
3f3dfd84 4511 ("sbcl-cl-utilities" ,sbcl-cl-utilities)
5a4b0f63
KCB
4512 ("sbcl-alexandria" ,sbcl-alexandria)))
4513 (home-page "https://github.com/fukamachi/quri")
4514 (synopsis "Yet another URI library for Common Lisp")
4515 (description
4516 "QURI (pronounced \"Q-ree\") is yet another URI library for Common
4517Lisp. It is intended to be a replacement of PURI.")
4518 (license license:bsd-3))))
4519
4520(define-public cl-quri
4521 (sbcl-package->cl-source-package sbcl-quri))
33a58556
KCB
4522
4523(define-public sbcl-myway
4524 (let ((commit "286230082a11f879c18b93f17ca571c5f676bfb7")
4525 (revision "1"))
4526 (package
4527 (name "sbcl-myway")
4528 (version (git-version "0.1.0" revision commit))
4529 (source
4530 (origin
4531 (method git-fetch)
4532 (uri (git-reference
4533 (url "https://github.com/fukamachi/myway.git")
4534 (commit commit)))
a97fc9cd 4535 (file-name (git-file-name "myway" version))
33a58556
KCB
4536 (sha256
4537 (base32 "0briia9bk3lbr0frnx39d1qg6i38dm4j6z9w3yga3d40k6df4a90"))))
4538 (build-system asdf-build-system/sbcl)
4539 (arguments
4540 ;; Tests fail with: Component MYWAY-ASD::MYWAY-TEST not found, required
4541 ;; by #<SYSTEM "myway">. Why?
4542 '(#:tests? #f))
4543 (native-inputs
4544 `(("sbcl-prove-asdf" ,sbcl-prove-asdf)
4545 ("sbcl-prove" ,sbcl-prove)))
4546 (inputs
4547 `(("sbcl-cl-ppcre" ,sbcl-cl-ppcre)
4548 ("sbcl-quri" ,sbcl-quri)
4549 ("sbcl-map-set" ,sbcl-map-set)))
4550 (home-page "https://github.com/fukamachi/myway")
4551 (synopsis "Sinatra-compatible URL routing library for Common Lisp")
4552 (description "My Way is a Sinatra-compatible URL routing library.")
4553 (license license:llgpl))))
4554
4555(define-public cl-myway
4556 (sbcl-package->cl-source-package sbcl-myway))
b45acc34
KCB
4557
4558(define-public sbcl-xsubseq
4559 (let ((commit "5ce430b3da5cda3a73b9cf5cee4df2843034422b")
4560 (revision "1"))
4561 (package
4562 (name "sbcl-xsubseq")
4563 (version (git-version "0.0.1" revision commit))
4564 (source
4565 (origin
4566 (method git-fetch)
4567 (uri (git-reference
4568 (url "https://github.com/fukamachi/xsubseq")
4569 (commit commit)))
4570 (file-name (git-file-name name version))
4571 (sha256
4572 (base32 "1xz79q0p2mclf3sqjiwf6izdpb6xrsr350bv4mlmdlm6rg5r99px"))))
4573 (build-system asdf-build-system/sbcl)
4574 (arguments
4575 ;; Tests fail with: Component XSUBSEQ-ASD::XSUBSEQ-TEST not found,
4576 ;; required by #<SYSTEM "xsubseq">. Why?
4577 '(#:tests? #f))
4578 (native-inputs
4579 `(("sbcl-prove-asdf" ,sbcl-prove-asdf)
4580 ("sbcl-prove" ,sbcl-prove)))
4581 (home-page "https://github.com/fukamachi/xsubseq")
4582 (synopsis "Efficient way to use \"subseq\"s in Common Lisp")
4583 (description
4584 "XSubseq provides functions to be able to handle \"subseq\"s more
4585effieiently.")
4586 (license license:bsd-2))))
4587
4588(define-public cl-xsubseq
4589 (sbcl-package->cl-source-package sbcl-xsubseq))
1f2dd0da
KCB
4590
4591(define-public sbcl-smart-buffer
4592 (let ((commit "09b9a9a0b3abaa37abe9a730f5aac2643dca4e62")
4593 (revision "1"))
4594 (package
4595 (name "sbcl-smart-buffer")
4596 (version (git-version "0.0.1" revision commit))
4597 (source
4598 (origin
4599 (method git-fetch)
4600 (uri (git-reference
4601 (url "https://github.com/fukamachi/smart-buffer")
4602 (commit commit)))
4603 (file-name (git-file-name name version))
4604 (sha256
4605 (base32 "0qz1zzxx0wm5ff7gpgsq550a59p0qj594zfmm2rglj97dahj54l7"))))
4606 (build-system asdf-build-system/sbcl)
4607 (arguments
4608 ;; Tests fail with: Component SMART-BUFFER-ASD::SMART-BUFFER-TEST not
4609 ;; found, required by #<SYSTEM "smart-buffer">. Why?
4610 `(#:tests? #f))
4611 (native-inputs
4612 `(("sbcl-prove-asdf" ,sbcl-prove-asdf)
4613 ("sbcl-prove" ,sbcl-prove)))
4614 (inputs
4615 `(("sbcl-xsubseq" ,sbcl-xsubseq)
4616 ("sbcl-flexi-streams" ,sbcl-flexi-streams)))
4617 (home-page "https://github.com/fukamachi/smart-buffer")
4618 (synopsis "Smart octets buffer")
4619 (description
4620 "Smart-buffer provides an output buffer which changes the destination
4621depending on content size.")
4622 (license license:bsd-3))))
4623
4624(define-public cl-smart-buffer
4625 (sbcl-package->cl-source-package sbcl-smart-buffer))
d75d5dd5
KCB
4626
4627(define-public sbcl-fast-http
4628 (let ((commit "f9e7597191bae380503e20724fd493a24d024935")
4629 (revision "1"))
4630 (package
4631 (name "sbcl-fast-http")
4632 (version (git-version "0.2.0" revision commit))
4633 (source
4634 (origin
4635 (method git-fetch)
4636 (uri (git-reference
4637 (url "https://github.com/fukamachi/fast-http")
4638 (commit commit)))
4639 (file-name (git-file-name name version))
4640 (sha256
4641 (base32 "0qdmwv2zm0sizxdb8nnclgwl0nfjcbjaimbakavikijw7lr9b4jp"))))
4642 (build-system asdf-build-system/sbcl)
4643 (arguments
4644 ;; Tests fail with: Component FAST-HTTP-ASD::FAST-HTTP-TEST not found,
4645 ;; required by #<SYSTEM "fast-http">. Why?
4646 `(#:tests? #f))
4647 (native-inputs
4648 `(("sbcl-prove-asdf" ,sbcl-prove-asdf)
4649 ("sbcl-prove" ,sbcl-prove)))
4650 (inputs
4651 `(("sbcl-alexandria" ,sbcl-alexandria)
4652 ("sbcl-proc-parse" ,sbcl-proc-parse)
4653 ("sbcl-xsubseq" ,sbcl-xsubseq)
4654 ("sbcl-smart-buffer" ,sbcl-smart-buffer)
3f3dfd84 4655 ("sbcl-cl-utilities" ,sbcl-cl-utilities)))
d75d5dd5
KCB
4656 (home-page "https://github.com/fukamachi/fast-http")
4657 (synopsis "HTTP request/response parser for Common Lisp")
4658 (description
4659 "@code{fast-http} is a HTTP request/response protocol parser for Common
4660Lisp.")
4661 ;; Author specified the MIT license
4662 (license license:expat))))
4663
4664(define-public cl-fast-http
4665 (sbcl-package->cl-source-package sbcl-fast-http))
6ae60f04
KCB
4666
4667(define-public sbcl-static-vectors
4668 (let ((commit "0681eac1f49370cde03e64b077251e8abf47d702")
4669 (revision "1"))
4670 (package
4671 (name "sbcl-static-vectors")
4672 (version (git-version "1.8.3" revision commit))
4673 (source
4674 (origin
4675 (method git-fetch)
4676 (uri (git-reference
4677 (url "https://github.com/sionescu/static-vectors.git")
4678 (commit commit)))
4679 (file-name (git-file-name name version))
4680 (sha256
4681 (base32 "138nlsq14hv8785ycjm6jw3i6ablhq8vcwys7q09y80arcgrg6r3"))))
4682 (native-inputs
4683 `(("sbcl-fiveam" ,sbcl-fiveam)))
4684 (inputs
4685 `(("sbcl-cffi-grovel" ,sbcl-cffi-grovel)
4686 ("sbcl-cffi" ,sbcl-cffi)))
4687 (build-system asdf-build-system/sbcl)
4688 (home-page "http://common-lisp.net/projects/iolib/")
4689 (synopsis "Allocate SIMPLE-ARRAYs in static memory")
4690 (description
4691 "With @code{static-vectors}, you can create vectors allocated in static
4692memory.")
4693 (license license:expat))))
4694
4695(define-public cl-static-vectors
4696 (sbcl-package->cl-source-package sbcl-static-vectors))
135984ef
KCB
4697
4698(define-public sbcl-marshal
4699 (let ((commit "eff1b15f2b0af2f26f71ad6a4dd5c4beab9299ec")
4700 (revision "1"))
4701 (package
4702 (name "sbcl-marshal")
4703 (version (git-version "1.3.0" revision commit))
4704 (source
4705 (origin
4706 (method git-fetch)
4707 (uri (git-reference
4708 (url "https://github.com/wlbr/cl-marshal.git")
4709 (commit commit)))
4710 (file-name (git-file-name name version))
4711 (sha256
4712 (base32 "08qs6fhk38xpkkjkpcj92mxx0lgy4ygrbbzrmnivdx281syr0gwh"))))
4713 (build-system asdf-build-system/sbcl)
4714 (home-page "https://github.com/wlbr/cl-marshal")
4715 (synopsis "Simple (de)serialization of Lisp datastructures")
4716 (description
4717 "Simple and fast marshalling of Lisp datastructures. Convert any object
4718into a string representation, put it on a stream an revive it from there.
4719Only minimal changes required to make your CLOS objects serializable.")
4720 (license license:expat))))
4721
4722(define-public cl-marshal
4723 (sbcl-package->cl-source-package sbcl-marshal))
e7dcdd9f
KCB
4724
4725(define-public sbcl-checkl
4726 (let ((commit "80328800d047fef9b6e32dfe6bdc98396aee3cc9")
4727 (revision "1"))
4728 (package
4729 (name "sbcl-checkl")
4730 (version (git-version "0.0.0" revision commit))
4731 (source
4732 (origin
4733 (method git-fetch)
4734 (uri (git-reference
4735 (url "https://github.com/rpav/CheckL.git")
4736 (commit commit)))
4737 (file-name (git-file-name name version))
4738 (sha256
4739 (base32 "0bpisihx1gay44xmyr1dmhlwh00j0zzi04rp9fy35i95l2r4xdlx"))))
4740 (build-system asdf-build-system/sbcl)
4741 (arguments
4742 ;; Error while trying to load definition for system checkl-test from
4743 ;; pathname [...]/checkl-test.asd: The function CHECKL:DEFINE-TEST-OP
4744 ;; is undefined.
4745 '(#:tests? #f))
4746 (native-inputs
4747 `(("sbcl-fiveam" ,sbcl-fiveam)))
4748 (inputs
4749 `(("sbcl-marshal" ,sbcl-marshal)))
4750 (home-page "https://github.com/rpav/CheckL/")
4751 (synopsis "Dynamic testing for Common Lisp")
4752 (description
4753 "CheckL lets you write tests dynamically, it checks resulting values
4754against the last run.")
4755 ;; The author specifies both LLGPL and "BSD", but the "BSD" license
4756 ;; isn't specified anywhere, so I don't know which kind. LLGPL is the
4757 ;; stronger of the two and so I think only listing this should suffice.
4758 (license license:llgpl))))
4759
4760(define-public cl-checkl
4761 (sbcl-package->cl-source-package sbcl-checkl))
4a290afb
KCB
4762
4763(define-public sbcl-fast-io
4764 (let ((commit "dc3a71db7e9b756a88781ae9c342fe9d4bbab51c")
4765 (revision "1"))
4766 (package
4767 (name "sbcl-fast-io")
4768 (version (git-version "1.0.0" revision commit))
4769 (source
4770 (origin
4771 (method git-fetch)
4772 (uri (git-reference
4773 (url "https://github.com/rpav/fast-io.git")
4774 (commit commit)))
4775 (file-name (git-file-name name version))
4776 (sha256
4777 (base32 "1jsp6xvi26ln6fdy5j5zi05xvan8jsqdhisv552dy6xg6ws8i1yq"))))
4778 (build-system asdf-build-system/sbcl)
4779 (arguments
4780 ;; Error while trying to load definition for system fast-io-test from
4781 ;; pathname [...]/fast-io-test.asd: The function CHECKL:DEFINE-TEST-OP
4782 ;; is undefined.
4783 '(#:tests? #f))
4784 (native-inputs
4785 `(("sbcl-fiveam" ,sbcl-fiveam)
4786 ("sbcl-checkl" ,sbcl-checkl)))
4787 (inputs
4788 `(("sbcl-alexandria" ,sbcl-alexandria)
4789 ("sbcl-trivial-gray-streams" ,sbcl-trivial-gray-streams)
4790 ("sbcl-static-vectors" ,sbcl-static-vectors)))
4791 (home-page "https://github.com/rpav/fast-io")
4792 (synopsis "Fast octet-vector/stream I/O for Common Lisp")
4793 (description
4794 "Fast-io is about improving performance to octet-vectors and octet
4795streams (though primarily the former, while wrapping the latter).")
4796 ;; Author specifies this as NewBSD which is an alias
4797 (license license:bsd-3))))
4798
4799(define-public cl-fast-io
4800 (sbcl-package->cl-source-package sbcl-fast-io))
0fecb86c
KCB
4801
4802(define-public sbcl-jonathan
4803 (let ((commit "1f448b4f7ac8265e56e1c02b32ce383e65316300")
4804 (revision "1"))
4805 (package
4806 (name "sbcl-jonathan")
4807 (version (git-version "0.1.0" revision commit))
4808 (source
4809 (origin
4810 (method git-fetch)
4811 (uri (git-reference
4812 (url "https://github.com/Rudolph-Miller/jonathan.git")
4813 (commit commit)))
4814 (file-name (git-file-name name version))
4815 (sha256
4816 (base32 "14x4iwz3mbag5jzzzr4sb6ai0m9r4q4kyypbq32jmsk2dx1hi807"))))
4817 (build-system asdf-build-system/sbcl)
4818 (arguments
4819 ;; Tests fail with: Component JONATHAN-ASD::JONATHAN-TEST not found,
4820 ;; required by #<SYSTEM "jonathan">. Why?
4821 `(#:tests? #f))
4822 (native-inputs
4823 `(("sbcl-prove-asdf" ,sbcl-prove-asdf)
4824 ("sbcl-prove" ,sbcl-prove)))
4825 (inputs
3f3dfd84
SB
4826 `(("sbcl-cl-syntax" ,sbcl-cl-syntax)
4827 ("sbcl-cl-syntax-annot" ,sbcl-cl-syntax-annot)
0fecb86c
KCB
4828 ("sbcl-fast-io" ,sbcl-fast-io)
4829 ("sbcl-proc-parse" ,sbcl-proc-parse)
4830 ("sbcl-cl-ppcre" ,sbcl-cl-ppcre)))
4831 (home-page "http://rudolph-miller.github.io/jonathan/overview.html")
4832 (synopsis "JSON encoder and decoder")
4833 (description
4834 "High performance JSON encoder and decoder. Currently support: SBCL,
4835CCL.")
4836 ;; Author specifies the MIT license
4837 (license license:expat))))
4838
4839(define-public cl-jonathan
4840 (sbcl-package->cl-source-package sbcl-jonathan))
5ca7143f
KCB
4841
4842(define-public sbcl-http-body
4843 (let ((commit "dd01dc4f5842e3d29728552e5163acce8386eb73")
4844 (revision "1"))
4845 (package
4846 (name "sbcl-http-body")
4847 (version (git-version "0.1.0" revision commit))
4848 (source
4849 (origin
4850 (method git-fetch)
4851 (uri (git-reference
4852 (url "https://github.com/fukamachi/http-body")
4853 (commit commit)))
4854 (file-name (git-file-name name version))
4855 (sha256
4856 (base32 "1jd06snjvxcprhapgfq8sx0y5lrldkvhf206ix6d5a23dd6zcmr0"))))
4857 (build-system asdf-build-system/sbcl)
4858 (arguments
4859 ;; Tests fail with: Component HTTP-BODY-ASD::HTTP-BODY-TEST not
4860 ;; found, required by #<SYSTEM "http-body">. Why?
4861 `(#:tests? #f))
4862 (native-inputs
4863 `(("sbcl-prove-asdf" ,sbcl-prove-asdf)
4864 ("sbcl-prove" ,sbcl-prove)))
4865 (inputs
4866 `(("sbcl-fast-http" ,sbcl-fast-http)
4867 ("sbcl-jonathan" ,sbcl-jonathan)
4868 ("sbcl-quri" ,sbcl-quri)))
4869 (home-page "https://github.com/fukamachi/http-body")
4870 (synopsis "HTTP POST data parser")
4871 (description
4872 "HTTP-Body parses HTTP POST data and returns POST parameters. It
4873supports application/x-www-form-urlencoded, application/json, and
4874multipart/form-data.")
4875 (license license:bsd-2))))
4876
4877(define-public cl-http-body
4878 (sbcl-package->cl-source-package sbcl-http-body))
a2c4a055
KCB
4879
4880(define-public sbcl-circular-streams
4881 (let ((commit "e770bade1919c5e8533dd2078c93c3d3bbeb38df")
4882 (revision "1"))
4883 (package
4884 (name "sbcl-circular-streams")
4885 (version (git-version "0.1.0" revision commit))
4886 (source
4887 (origin
4888 (method git-fetch)
4889 (uri (git-reference
4890 (url "https://github.com/fukamachi/circular-streams")
4891 (commit commit)))
4892 (file-name (git-file-name name version))
4893 (sha256
4894 (base32 "1wpw6d5cciyqcf92f7mvihak52pd5s47kk4qq6f0r2z2as68p5rs"))))
4895 (build-system asdf-build-system/sbcl)
4896 (arguments
4897 ;; The tests depend on cl-test-more which is now prove. Prove
4898 ;; tests aren't working for some reason.
4899 `(#:tests? #f))
4900 (inputs
4901 `(("sbcl-fast-io" ,sbcl-fast-io)
4902 ("sbcl-trivial-gray-streams" ,sbcl-trivial-gray-streams)))
4903 (home-page "https://github.com/fukamachi/circular-streams")
4904 (synopsis "Circularly readable streams for Common Lisp")
4905 (description
4906 "Circular-Streams allows you to read streams circularly by wrapping real
4907streams. Once you reach end-of-file of a stream, it's file position will be
4908reset to 0 and you're able to read it again.")
4909 (license license:llgpl))))
4910
4911(define-public cl-circular-streams
4912 (sbcl-package->cl-source-package sbcl-circular-streams))
d98d1485
KCB
4913
4914(define-public sbcl-lack-request
4915 (let ((commit "abff8efeb0c3a848e6bb0022f2b8b7fa3a1bc88b")
4916 (revision "1"))
4917 (package
4918 (name "sbcl-lack-request")
4919 (version (git-version "0.1.0" revision commit))
4920 (source
4921 (origin
4922 (method git-fetch)
4923 (uri (git-reference
4924 (url "https://github.com/fukamachi/lack.git")
4925 (commit commit)))
4926 (sha256
4927 (base32 "1avh4ygcj9xcx4m17nj0wnxxaisk26w4ljs2bibzxaln24x7pi85"))))
4928 (build-system asdf-build-system/sbcl)
4929 (arguments
4930 '(#:asd-file "lack-request.asd"
4931 #:asd-system-name "lack-request"
4932 #:test-asd-file "t-lack-request.asd"
4933 ;; XXX: Component :CLACK-TEST not found
4934 #:tests? #f))
4935 (native-inputs
4936 `(("sbcl-prove-asdf" ,sbcl-prove-asdf)
4937 ("sbcl-prove" ,sbcl-prove)))
4938 (inputs
4939 `(("sbcl-quri" ,sbcl-quri)
4940 ("sbcl-http-body" ,sbcl-http-body)
4941 ("sbcl-circular-streams" ,sbcl-circular-streams)))
4942 (home-page "https://github.com/fukamachi/lack")
4943 (synopsis "Lack, the core of Clack")
4944 (description
4945 "Lack is a Common Lisp library which allows web applications to be
4946constructed of modular components. It was originally a part of Clack, however
4947it's going to be rewritten as an individual project since Clack v2 with
4948performance and simplicity in mind.")
4949 (license license:llgpl))))
4950
4951(define-public cl-lack-request
4952 (sbcl-package->cl-source-package sbcl-lack-request))
ffc1d945
KCB
4953
4954(define-public sbcl-local-time
4955 (let ((commit "beac054eef428552b63d4ae7820c32ffef9a3015")
4956 (revision "1"))
4957 (package
4958 (name "sbcl-local-time")
4959 (version (git-version "1.0.6" revision commit))
4960 (source
4961 (origin
4962 (method git-fetch)
4963 (uri (git-reference
4964 (url "https://github.com/dlowe-net/local-time.git")
4965 (commit commit)))
4966 (file-name (git-file-name name version))
4967 (sha256
4968 (base32 "0xhkmgxh41dg2wwlsp0h2l41jp144xn4gpxhh0lna6kh0560w2cc"))))
4969 (build-system asdf-build-system/sbcl)
4970 (arguments
4971 ;; TODO: Component :STEFIL not found, required by #<SYSTEM
4972 ;; "local-time/test">
4973 '(#:tests? #f))
4974 (native-inputs
4975 `(("stefil" ,sbcl-hu.dwim.stefil)))
4976 (inputs
4977 `(("sbcl-cl-fad" ,sbcl-cl-fad)))
4978 (home-page "https://common-lisp.net/project/local-time/")
4979 (synopsis "Time manipulation library for Common Lisp")
4980 (description
4981 "The LOCAL-TIME library is a Common Lisp library for the manipulation of
4982dates and times. It is based almost entirely upon Erik Naggum's paper \"The
4983Long Painful History of Time\".")
4984 (license license:expat))))
4985
4986(define-public cl-local-time
4987 (sbcl-package->cl-source-package sbcl-local-time))
fb383668
KCB
4988
4989(define-public sbcl-lack-response
4990 (let ((commit "abff8efeb0c3a848e6bb0022f2b8b7fa3a1bc88b")
4991 (revision "1"))
4992 (package
4993 (name "sbcl-lack-response")
4994 (version (git-version "0.1.0" revision commit))
4995 (source
4996 (origin
4997 (method git-fetch)
4998 (uri (git-reference
4999 (url "https://github.com/fukamachi/lack.git")
5000 (commit commit)))
5001 (file-name (git-file-name name version))
5002 (sha256
5003 (base32 "1avh4ygcj9xcx4m17nj0wnxxaisk26w4ljs2bibzxaln24x7pi85"))))
5004 (build-system asdf-build-system/sbcl)
5005 (arguments
5006 '(#:asd-file "lack-response.asd"
5007 #:asd-system-name "lack-response"
5008 ;; XXX: no tests for lack-response.
5009 #:tests? #f))
5010 (native-inputs
5011 `(("sbcl-prove-asdf" ,sbcl-prove-asdf)
5012 ("sbcl-prove" ,sbcl-prove)))
5013 (inputs
5014 `(("sbcl-quri" ,sbcl-quri)
5015 ("sbcl-http-body" ,sbcl-http-body)
5016 ("sbcl-circular-streams" ,sbcl-circular-streams)
5017 ("sbcl-local-time" ,sbcl-local-time)))
5018 (home-page "https://github.com/fukamachi/lack")
5019 (synopsis "Lack, the core of Clack")
5020 (description
5021 "Lack is a Common Lisp library which allows web applications to be
5022constructed of modular components. It was originally a part of Clack, however
5023it's going to be rewritten as an individual project since Clack v2 with
5024performance and simplicity in mind.")
5025 (license license:llgpl))))
5026
5027(define-public cl-lack-response
5028 (sbcl-package->cl-source-package sbcl-lack-response))
3583ba04
KCB
5029
5030(define-public sbcl-lack-component
5031 (let ((commit "abff8efeb0c3a848e6bb0022f2b8b7fa3a1bc88b")
5032 (revision "1"))
5033 (package
5034 (name "sbcl-lack-component")
5035 (version (git-version "0.0.0" revision commit))
5036 (source
5037 (origin
5038 (method git-fetch)
5039 (uri (git-reference
5040 (url "https://github.com/fukamachi/lack.git")
5041 (commit commit)))
5042 (sha256
5043 (base32 "1avh4ygcj9xcx4m17nj0wnxxaisk26w4ljs2bibzxaln24x7pi85"))))
5044 (build-system asdf-build-system/sbcl)
5045 (arguments
5046 '(#:asd-file "lack-component.asd"
5047 #:asd-system-name "lack-component"
5048 #:test-asd-file "t-lack-component.asd"
5049 ;; XXX: Component :LACK-TEST not found
5050 #:tests? #f))
5051 (native-inputs
5052 `(("prove-asdf" ,sbcl-prove-asdf)))
5053 (home-page "https://github.com/fukamachi/lack")
5054 (synopsis "Lack, the core of Clack")
5055 (description
5056 "Lack is a Common Lisp library which allows web applications to be
5057constructed of modular components. It was originally a part of Clack, however
5058it's going to be rewritten as an individual project since Clack v2 with
5059performance and simplicity in mind.")
5060 (license license:llgpl))))
5061
5062(define-public cl-lack-component
5063 (sbcl-package->cl-source-package sbcl-lack-component))
08295e6f
KCB
5064
5065(define-public sbcl-lack-util
5066 (let ((commit "abff8efeb0c3a848e6bb0022f2b8b7fa3a1bc88b")
5067 (revision "1"))
5068 (package
5069 (name "sbcl-lack-util")
5070 (version (git-version "0.1.0" revision commit))
5071 (source
5072 (origin
5073 (method git-fetch)
5074 (uri (git-reference
5075 (url "https://github.com/fukamachi/lack.git")
5076 (commit commit)))
5077 (sha256
5078 (base32 "1avh4ygcj9xcx4m17nj0wnxxaisk26w4ljs2bibzxaln24x7pi85"))))
5079 (build-system asdf-build-system/sbcl)
5080 (arguments
5081 '(#:asd-file "lack-util.asd"
5082 #:asd-system-name "lack-util"
5083 #:test-asd-file "t-lack-util.asd"
5084 ;; XXX: Component :LACK-TEST not found
5085 #:tests? #f))
5086 (native-inputs
5087 `(("prove-asdf" ,sbcl-prove-asdf)))
5088 (inputs
5089 `(("sbcl-ironclad" ,sbcl-ironclad)))
5090 (home-page "https://github.com/fukamachi/lack")
5091 (synopsis "Lack, the core of Clack")
5092 (description
5093 "Lack is a Common Lisp library which allows web applications to be
5094constructed of modular components. It was originally a part of Clack, however
5095it's going to be rewritten as an individual project since Clack v2 with
5096performance and simplicity in mind.")
5097 (license license:llgpl))))
5098
5099(define-public cl-lack-util
5100 (sbcl-package->cl-source-package sbcl-lack-util))
d3da4b37
KCB
5101
5102(define-public sbcl-lack-middleware-backtrace
5103 (let ((commit "abff8efeb0c3a848e6bb0022f2b8b7fa3a1bc88b")
5104 (revision "1"))
5105 (package
5106 (name "sbcl-lack-middleware-backtrace")
5107 (version (git-version "0.1.0" revision commit))
5108 (source
5109 (origin
5110 (method git-fetch)
5111 (uri (git-reference
5112 (url "https://github.com/fukamachi/lack.git")
5113 (commit commit)))
5114 (sha256
5115 (base32 "1avh4ygcj9xcx4m17nj0wnxxaisk26w4ljs2bibzxaln24x7pi85"))))
5116 (build-system asdf-build-system/sbcl)
5117 (arguments
5118 '(#:asd-file "lack-middleware-backtrace.asd"
5119 #:asd-system-name "lack-middleware-backtrace"
5120 #:test-asd-file "t-lack-middleware-backtrace.asd"
5121 ;; XXX: Component :LACK not found
5122 #:tests? #f))
5123 (native-inputs
5124 `(("prove-asdf" ,sbcl-prove-asdf)))
5125 (home-page "https://github.com/fukamachi/lack")
5126 (synopsis "Lack, the core of Clack")
5127 (description
5128 "Lack is a Common Lisp library which allows web applications to be
5129constructed of modular components. It was originally a part of Clack, however
5130it's going to be rewritten as an individual project since Clack v2 with
5131performance and simplicity in mind.")
5132 (license license:llgpl))))
5133
5134(define-public cl-lack-middleware-backtrace
5135 (sbcl-package->cl-source-package sbcl-lack-middleware-backtrace))
ac99157f
KCB
5136
5137(define-public sbcl-trivial-mimes
5138 (let ((commit "303f8ac0aa6ca0bc139aa3c34822e623c3723fab")
5139 (revision "1"))
5140 (package
5141 (name "sbcl-trivial-mimes")
5142 (version (git-version "1.1.0" revision commit))
5143 (source
5144 (origin
5145 (method git-fetch)
5146 (uri (git-reference
5147 (url "https://github.com/Shinmera/trivial-mimes.git")
5148 (commit commit)))
5149 (file-name (git-file-name name version))
5150 (sha256
5151 (base32 "17jxgl47r695bvsb7wi3n2ws5rp1zzgvw0zii8cy5ggw4b4ayv6m"))))
5152 (build-system asdf-build-system/sbcl)
5153 (arguments
5154 '(#:phases
5155 (modify-phases %standard-phases
5156 (add-after
5157 'unpack 'fix-paths
5158 (lambda* (#:key inputs #:allow-other-keys)
5159 (let ((anchor "#p\"/etc/mime.types\""))
5160 (substitute* "mime-types.lisp"
5161 ((anchor all)
5162 (string-append
5163 anchor "\n"
55af9fe0
GLV
5164 "(asdf:system-relative-pathname :trivial-mimes "
5165 "\"../../share/common-lisp/" (%lisp-type)
5166 "-source/trivial-mimes/mime.types\")")))))))))
ac99157f
KCB
5167 (native-inputs
5168 `(("stefil" ,sbcl-hu.dwim.stefil)))
5169 (inputs
5170 `(("sbcl-cl-fad" ,sbcl-cl-fad)))
5171 (home-page "http://shinmera.github.io/trivial-mimes/")
5172 (synopsis "Tiny Common Lisp library to detect mime types in files")
5173 (description
5174 "This is a teensy library that provides some functions to determine the
5175mime-type of a file.")
5176 (license license:artistic2.0))))
5177
5178(define-public cl-trivial-mimes
5179 (sbcl-package->cl-source-package sbcl-trivial-mimes))
dba50058 5180
85a89853
GLV
5181(define-public ecl-trivial-mimes
5182 (sbcl-package->ecl-package sbcl-trivial-mimes))
5183
dba50058
KCB
5184(define-public sbcl-lack-middleware-static
5185 (let ((commit "abff8efeb0c3a848e6bb0022f2b8b7fa3a1bc88b")
5186 (revision "1"))
5187 (package
5188 (name "sbcl-lack-middleware-static")
5189 (version (git-version "0.1.0" revision commit))
5190 (source
5191 (origin
5192 (method git-fetch)
5193 (uri (git-reference
5194 (url "https://github.com/fukamachi/lack.git")
5195 (commit commit)))
5196 (sha256
5197 (base32 "1avh4ygcj9xcx4m17nj0wnxxaisk26w4ljs2bibzxaln24x7pi85"))))
5198 (build-system asdf-build-system/sbcl)
5199 (arguments
5200 '(#:asd-file "lack-middleware-static.asd"
5201 #:asd-system-name "lack-middleware-static"
5202 #:test-asd-file "t-lack-middleware-static.asd"
5203 ;; XXX: Component :LACK not found
5204 #:tests? #f))
5205 (native-inputs
5206 `(("prove-asdf" ,sbcl-prove-asdf)))
5207 (inputs
5208 `(("sbcl-ironclad" ,sbcl-ironclad)
5209 ("sbcl-trivial-mimes" ,sbcl-trivial-mimes)
5210 ("sbcl-local-time" ,sbcl-local-time)))
5211 (home-page "https://github.com/fukamachi/lack")
5212 (synopsis "Lack, the core of Clack")
5213 (description
5214 "Lack is a Common Lisp library which allows web applications to be
5215constructed of modular components. It was originally a part of Clack, however
5216it's going to be rewritten as an individual project since Clack v2 with
5217performance and simplicity in mind.")
5218 (license license:llgpl))))
5219
5220(define-public cl-lack-middleware-static
5221 (sbcl-package->cl-source-package sbcl-lack-middleware-static))
77a5b9fe
KCB
5222
5223(define-public sbcl-lack
5224 (let ((commit "abff8efeb0c3a848e6bb0022f2b8b7fa3a1bc88b")
5225 (revision "1"))
5226 (package
5227 (name "sbcl-lack")
5228 (version (git-version "0.1.0" revision commit))
5229 (source
5230 (origin
5231 (method git-fetch)
5232 (uri (git-reference
5233 (url "https://github.com/fukamachi/lack.git")
5234 (commit commit)))
5235 (sha256
5236 (base32 "1avh4ygcj9xcx4m17nj0wnxxaisk26w4ljs2bibzxaln24x7pi85"))))
5237 (build-system asdf-build-system/sbcl)
5238 (arguments
5239 '(#:test-asd-file "t-lack.asd"
5240 ;; XXX: Component :CLACK not found
5241 #:tests? #f))
5242 (native-inputs
5243 `(("prove-asdf" ,sbcl-prove-asdf)))
5244 (inputs
5245 `(("sbcl-lack-component" ,sbcl-lack-component)
5246 ("sbcl-lack-util" ,sbcl-lack-util)))
5247 (home-page "https://github.com/fukamachi/lack")
5248 (synopsis "Lack, the core of Clack")
5249 (description
5250 "Lack is a Common Lisp library which allows web applications to be
5251constructed of modular components. It was originally a part of Clack, however
5252it's going to be rewritten as an individual project since Clack v2 with
5253performance and simplicity in mind.")
5254 (license license:llgpl))))
5255
5256(define-public cl-lack
5257 (sbcl-package->cl-source-package sbcl-lack))
7e2404a5
KCB
5258
5259(define-public sbcl-ningle
5260 (let ((commit "50bd4f09b5a03a7249bd4d78265d6451563b25ad")
5261 (revision "1"))
5262 (package
5263 (name "sbcl-ningle")
5264 (version (git-version "0.3.0" revision commit))
5265 (source
5266 (origin
5267 (method git-fetch)
5268 (uri (git-reference
5269 (url "https://github.com/fukamachi/ningle.git")
5270 (commit commit)))
5271 (file-name (git-file-name name version))
5272 (sha256
5273 (base32 "1bsl8cnxhacb8p92z9n89vhk1ikmij5zavk0m2zvmj7iqm79jzgw"))))
5274 (build-system asdf-build-system/sbcl)
5275 (arguments
5276 ;; TODO: pull in clack-test
5277 '(#:tests? #f
5278 #:phases
5279 (modify-phases %standard-phases
5280 (delete 'cleanup-files)
5281 (delete 'cleanup)
5282 (add-before 'cleanup 'combine-fasls
5283 (lambda* (#:key outputs #:allow-other-keys)
5284 (let* ((out (assoc-ref outputs "out"))
5285 (lib (string-append out "/lib/sbcl"))
5286 (ningle-path (string-append lib "/ningle"))
5287 (fasl-files (find-files out "\\.fasl$")))
5288 (mkdir-p ningle-path)
5289 (let ((fasl-path (lambda (name)
5290 (string-append ningle-path
5291 "/"
5292 (basename name)
5293 "--system.fasl"))))
5294 (for-each (lambda (file)
5295 (rename-file file
5296 (fasl-path
5297 (basename file ".fasl"))))
5298 fasl-files))
5299 fasl-files)
5300 #t)))))
5301 (native-inputs
5302 `(("sbcl-prove-asdf" ,sbcl-prove-asdf)
5303 ("sbcl-prove" ,sbcl-prove)))
5304 (inputs
5305 `(("sbcl-cl-syntax" ,sbcl-cl-syntax)
5306 ("sbcl-cl-syntax-annot" ,sbcl-cl-syntax-annot)
5307 ("sbcl-myway" ,sbcl-myway)
5308 ("sbcl-lack-request" ,sbcl-lack-request)
5309 ("sbcl-lack-response" ,sbcl-lack-response)
5310 ("sbcl-lack-component" ,sbcl-lack-component)
5311 ("sbcl-alexandria" ,sbcl-alexandria)
5312 ("sbcl-babel" ,sbcl-babel)))
5313 (home-page "http://8arrow.org/ningle/")
5314 (synopsis "Super micro framework for Common Lisp")
5315 (description
5316 "Ningle is a lightweight web application framework for Common Lisp.")
5317 (license license:llgpl))))
5318
5319(define-public cl-ningle
5320 (sbcl-package->cl-source-package sbcl-ningle))
d3715a30
KCB
5321
5322(define-public sbcl-clack
5323 (let ((commit "e3e032843bb1220ab96263c411aa7f2feb4746e0")
5324 (revision "1"))
5325 (package
5326 (name "sbcl-clack")
5327 (version (git-version "2.0.0" revision commit))
5328 (source
5329 (origin
5330 (method git-fetch)
5331 (uri (git-reference
5332 (url "https://github.com/fukamachi/clack.git")
5333 (commit commit)))
5334 (file-name (git-file-name name version))
5335 (sha256
5336 (base32 "1ymzs6qyrwhlj6cgqsnpyn6g5cbp7a3s1vgxwna20y2q7y4iacy0"))))
5337 (build-system asdf-build-system/sbcl)
5338 (inputs
5339 `(("sbcl-lack" ,sbcl-lack)
5340 ("sbcl-lack-middleware-backtrace" ,sbcl-lack-middleware-backtrace)
5341 ("sbcl-bordeaux-threads" ,sbcl-bordeaux-threads)))
5342 (home-page "https://github.com/fukamachi/clack")
5343 (synopsis "Web Application Environment for Common Lisp")
5344 (description
5345 "Clack is a web application environment for Common Lisp inspired by
5346Python's WSGI and Ruby's Rack.")
5347 (license license:llgpl))))
5348
5349(define-public cl-clack
5350 (sbcl-package->cl-source-package sbcl-clack))
b8b1e4d9 5351
5352(define-public sbcl-log4cl
5353 (let ((commit "611e094458504b938d49de904eab141285328c7c")
5354 (revision "1"))
5355 (package
5356 (name "sbcl-log4cl")
5357 (build-system asdf-build-system/sbcl)
5358 (version "1.1.2")
5359 (source
5360 (origin
5361 (method git-fetch)
5362 (uri (git-reference
5363 (url "https://github.com/sharplispers/log4cl")
5364 (commit commit)))
5365 (file-name (git-file-name name version))
5366 (sha256
5367 (base32
5368 "08jly0s0g26b56hhpfizxsb4j0yvbh946sd205gr42dkzv8l7dsc"))))
5369 ;; FIXME: tests require stefil, sbcl-hu.dwim.stefil wont work
5370 (arguments
5371 `(#:tests? #f))
5372 (inputs `(("bordeaux-threads" ,sbcl-bordeaux-threads)))
5373 (synopsis "Common Lisp logging framework, modeled after Log4J")
5374 (home-page "https://github.com/7max/log4cl")
5375 (description "This is a Common Lisp logging framework that can log at
5376various levels and mix text with expressions.")
5377 (license license:asl2.0))))
5378
5379(define-public cl-log4cl
5380 (sbcl-package->cl-source-package sbcl-log4cl))
5381
5382(define-public ecl-log4cl
5383 (sbcl-package->ecl-package sbcl-log4cl))
bdd30bf0
PN
5384
5385(define-public sbcl-find-port
5386 (let ((commit "00c96a25af93a0f8681d34ec548861f2d7485478")
5387 (revision "1"))
5388 (package
5389 (name "sbcl-find-port")
5390 (build-system asdf-build-system/sbcl)
5391 (version "0.1")
5392 (home-page "https://github.com/eudoxia0/find-port")
5393 (source
5394 (origin
5395 (method git-fetch)
5396 (uri (git-reference
5397 (url home-page)
5398 (commit commit)))
5399 (file-name (git-file-name name version))
5400 (sha256
5401 (base32
5402 "0d6dzbb45jh0rx90wgs6v020k2xa87mvzas3mvfzvivjvqqlpryq"))))
5403 (native-inputs
5404 `(("fiveam" ,sbcl-fiveam)))
5405 (inputs
5406 `(("sbcl-usocket" ,sbcl-usocket)))
5407 (synopsis "Find open ports programmatically in Common Lisp")
5408 (description "This is a small Common Lisp library that finds an open
5409port within a range.")
5410 (license license:expat))))
5411
5412(define-public cl-find-port
5413 (sbcl-package->cl-source-package sbcl-find-port))
5414
5415(define-public ecl-find-port
5416 (sbcl-package->ecl-package sbcl-find-port))
a0c3a2e3
GLV
5417
5418(define-public txr
5419 (package
5420 (name "txr")
37c08f42 5421 (version "224")
a0c3a2e3
GLV
5422 (source
5423 (origin
37c08f42
GLV
5424 (method git-fetch)
5425 (uri (git-reference
5426 (url "http://www.kylheku.com/git/txr/")
5427 (commit (string-append "txr-" version))))
5428 (file-name (git-file-name name version))
a0c3a2e3
GLV
5429 (patches (search-patches "txr-shell.patch"))
5430 (sha256
5431 (base32
37c08f42 5432 "1036k71f6mffy9rjwzmhr5nnp1n0wzb0rqvilpzvb8jc5yxv0810"))))
a0c3a2e3
GLV
5433 (build-system gnu-build-system)
5434 (arguments
5435 '(#:configure-flags '("cc=gcc")
5436 #:phases (modify-phases %standard-phases
5437 (add-after 'configure 'fix-tests
5438 (lambda _
5439 (substitute* "tests/017/realpath.tl"
5440 (("/usr/bin") "/"))
5441 (substitute* "tests/017/realpath.expected"
5442 (("/usr/bin") "/"))
5443 #t))
5444 (replace 'check
5445 (lambda _
66d14663 5446 (invoke "make" "tests"))))))
a0c3a2e3
GLV
5447 (native-inputs
5448 `(("bison" ,bison)
5449 ("flex" ,flex)))
5450 (inputs
5451 `(("libffi" ,libffi)))
5452 (synopsis "General-purpose, multi-paradigm programming language")
5453 (description
5454 "TXR is a general-purpose, multi-paradigm programming language. It
5455comprises two languages integrated into a single tool: a text scanning and
5456extraction language referred to as the TXR Pattern Language (sometimes just
5457\"TXR\"), and a general-purpose dialect of Lisp called TXR Lisp. TXR can be
5458used for everything from \"one liner\" data transformation tasks at the
5459command line, to data scanning and extracting scripts, to full application
5460development in a wide-range of areas.")
5461 (home-page "https://nongnu.org/txr/")
5462 (license license:bsd-2)))
9f8311ad
KCB
5463
5464(define-public sbcl-clunit
5465 (let ((commit "6f6d72873f0e1207f037470105969384f8380628")
5466 (revision "1"))
5467 (package
5468 (name "sbcl-clunit")
5469 (version (git-version "0.2.3" revision commit))
5470 (source
5471 (origin
5472 (method git-fetch)
5473 (uri (git-reference
5474 (url "https://github.com/tgutu/clunit.git")
5475 (commit commit)))
5476 (file-name (git-file-name name version))
5477 (sha256
5478 (base32
5479 "1idf2xnqzlhi8rbrqmzpmb3i1l6pbdzhhajkmhwbp6qjkmxa4h85"))))
5480 (build-system asdf-build-system/sbcl)
5481 (synopsis "CLUnit is a Common Lisp unit testing framework")
5482 (description
5483 "CLUnit is a Common Lisp unit testing framework. It is designed
5484to be easy to use so that you can quickly start testing. CLUnit
5485provides a rich set of features aimed at improving your unit testing
5486experience.")
5487 (home-page "http://tgutu.github.io/clunit/")
5488 ;; MIT License
5489 (license license:expat))))
5490
5491(define-public cl-clunit
5492 (sbcl-package->cl-source-package sbcl-clunit))
5493
5494(define-public ecl-clunit
5495 (sbcl-package->ecl-package sbcl-clunit))
20b96ced
KCB
5496
5497(define-public sbcl-py4cl
5498 (let ((commit "4c8a2b0814fd311f978964f825ce012290f60136")
5499 (revision "1"))
5500 (package
5501 (name "sbcl-py4cl")
5502 (version (git-version "0.0.0" revision commit))
5503 (source
5504 (origin
5505 (method git-fetch)
5506 (uri (git-reference
5507 (url "https://github.com/bendudson/py4cl.git")
5508 (commit commit)))
5509 (file-name (git-file-name name version))
5510 (sha256
5511 (base32
5512 "15mk7qdqjkj56gdnbyrdyz6r7m1h26ldvn6ch96pmvg5vmr1m45r"))
5513 (modules '((guix build utils)))))
5514 (build-system asdf-build-system/sbcl)
5515 (native-inputs
5516 `(("sbcl-clunit" ,sbcl-clunit)))
5517 (inputs
5518 `(("sbcl-trivial-garbage" ,sbcl-trivial-garbage)))
5519 (propagated-inputs
5520 ;; This package doesn't do anything without python available
5521 `(("python" ,python)
5522 ;; For multi-dimensional array support
5523 ("python-numpy" ,python-numpy)))
5524 (arguments
5525 '(#:phases
5526 (modify-phases %standard-phases
5527 (add-after 'unpack 'replace-*base-directory*-var
5528 (lambda* (#:key outputs #:allow-other-keys)
5529 ;; In the ASD, the author makes an attempt to
5530 ;; programatically determine the location of the
5531 ;; source-code so lisp can call into "py4cl.py". We can
5532 ;; hard-code this since we know where this file will
5533 ;; reside.
5534 (substitute* "src/callpython.lisp"
5535 (("py4cl/config:\\*base-directory\\*")
5536 (string-append
5537 "\""
5538 (assoc-ref outputs "out")
5539 "/share/common-lisp/sbcl-source/py4cl/"
5540 "\""))))))))
5541 (synopsis "Call python from Common Lisp")
5542 (description
5543 "Py4CL is a bridge between Common Lisp and Python, which enables Common
5544Lisp to interact with Python code. It uses streams to communicate with a
5545separate python process, the approach taken by cl4py. This is different to
5546the CFFI approach used by burgled-batteries, but has the same goal.")
5547 (home-page "https://github.com/bendudson/py4cl")
5548 ;; MIT License
5549 (license license:expat))))
5550
5551(define-public cl-py4cl
5552 (sbcl-package->cl-source-package sbcl-py4cl))
5553
5554(define-public ecl-py4cl
5555 (sbcl-package->ecl-package sbcl-py4cl))
ab84ea9e
KCB
5556
5557(define-public sbcl-parse-declarations
5558 (package
5559 (name "sbcl-parse-declarations")
5560 (version "1.0.0")
5561 (source
5562 (origin
5563 (method url-fetch)
5564 (uri (string-append
5565 "http://beta.quicklisp.org/archive/parse-declarations/"
5566 "2010-10-06/parse-declarations-20101006-darcs.tgz"))
5567 (sha256
5568 (base32
5569 "0r85b0jfacd28kr65kw9c13dx4i6id1dpmby68zjy63mqbnyawrd"))))
5570 (build-system asdf-build-system/sbcl)
5571 (arguments
5572 `(#:asd-file "parse-declarations-1.0.asd"
5573 #:asd-system-name "parse-declarations-1.0"))
5574 (home-page "https://common-lisp.net/project/parse-declarations/")
5575 (synopsis "Parse, filter, and build declarations")
5576 (description
5577 "Parse-Declarations is a Common Lisp library to help writing
5578macros which establish bindings. To be semantically correct, such
5579macros must take user declarations into account, as these may affect
5580the bindings they establish. Yet the ANSI standard of Common Lisp does
5581not provide any operators to work with declarations in a convenient,
5582high-level way. This library provides such operators.")
5583 ;; MIT License
5584 (license license:expat)))
5585
5586(define-public cl-parse-declarations
5587 (sbcl-package->cl-source-package sbcl-parse-declarations))
5588
5589(define-public ecl-parse-declarations
5590 (sbcl-package->ecl-package sbcl-parse-declarations))
2ddc55c6
KCB
5591
5592(define-public sbcl-cl-quickcheck
5593 (let ((commit "807b2792a30c883a2fbecea8e7db355b50ba662f")
5594 (revision "1"))
5595 (package
5596 (name "sbcl-cl-quickcheck")
5597 (version (git-version "0.0.4" revision commit))
5598 (source
5599 (origin
5600 (method git-fetch)
5601 (uri (git-reference
5602 (url "https://github.com/mcandre/cl-quickcheck.git")
5603 (commit commit)))
5604 (file-name (git-file-name name version))
5605 (sha256
5606 (base32
5607 "165lhypq5xkcys6hvzb3jq7ywnmqvzaflda29qk2cbs3ggas4767"))))
5608 (build-system asdf-build-system/sbcl)
5609 (synopsis
5610 "Common Lisp port of the QuickCheck unit test framework")
5611 (description
5612 "Common Lisp port of the QuickCheck unit test framework")
5613 (home-page "https://github.com/mcandre/cl-quickcheck")
5614 ;; MIT
5615 (license license:expat))))
5616
5617(define-public cl-cl-quickcheck
5618 (sbcl-package->cl-source-package sbcl-cl-quickcheck))
5619
5620(define-public ecl-cl-quickcheck
5621 (sbcl-package->ecl-package sbcl-cl-quickcheck))
245b19ca
KCB
5622
5623(define-public sbcl-burgled-batteries3
5624 (let ((commit "9c0f6667e1a71ddf77e21793a0bea524710fef6e")
5625 (revision "1"))
5626 (package
5627 (name "sbcl-burgled-batteries3")
5628 (version (git-version "0.0.0" revision commit))
5629 (source
5630 (origin
5631 (method git-fetch)
5632 (uri (git-reference
5633 (url "https://github.com/snmsts/burgled-batteries3.git")
5634 (commit commit)))
5635 (file-name (git-file-name name version))
5636 (sha256
5637 (base32
5638 "0b726kz2xxcg5l930gz035rsdvhxrzmp05iwfwympnb4z4ammicb"))))
5639 (build-system asdf-build-system/sbcl)
5640 (arguments
5641 '(#:tests? #f
5642 #:phases
5643 (modify-phases %standard-phases
5644 (add-after 'unpack 'set-*cpython-include-dir*-var
5645 (lambda* (#:key inputs #:allow-other-keys)
5646 (substitute* "grovel-include-dir.lisp"
5647 (("\\(defparameter \\*cpython-include-dir\\* \\(detect-python\\)\\)")
5648 (string-append
5649 "(defparameter *cpython-include-dir* \""
5650 (assoc-ref inputs "python")
5651 "/include/python3.7m"
5652 "\")")))
5653 (substitute* "ffi-interface.lisp"
5654 (("\\*cpython-lib\\*")
5655 (format #f "'(\"~a/lib/libpython3.so\")"
5656 (assoc-ref inputs "python"))))
5657 #t)))))
5658 (native-inputs
5659 `(("python" ,python)
5660 ("sbcl-cl-fad" ,sbcl-cl-fad)
5661 ("sbcl-lift" ,sbcl-lift)
5662 ("sbcl-cl-quickcheck" ,sbcl-cl-quickcheck)))
5663 (inputs
5664 `(("sbcl-cffi" ,sbcl-cffi)
5665 ("sbcl-cffi-grovel" ,sbcl-cffi-grovel)
5666 ("sbcl-alexandria" , sbcl-alexandria)
5667 ("sbcl-parse-declarations-1.0" ,sbcl-parse-declarations)
5668 ("sbcl-trivial-garbage" ,sbcl-trivial-garbage)))
5669 (synopsis "Bridge between Python and Lisp (FFI bindings, etc.)")
5670 (description
5671 "This package provides a shim between Python3 (specifically, the
5672CPython implementation of Python) and Common Lisp.")
5673 (home-page "https://github.com/snmsts/burgled-batteries3")
5674 ;; MIT
5675 (license license:expat))))
5676
5677(define-public cl-burgled-batteries3
5678 (sbcl-package->cl-source-package sbcl-burgled-batteries3))
5679
5680(define-public ecl-burgled-batteries3
5681 (sbcl-package->ecl-package sbcl-burgled-batteries3))
98b9409c
KCB
5682
5683(define-public sbcl-metabang-bind
5684 (let ((commit "c93b7f7e1c18c954c2283efd6a7fdab36746ab5e")
5685 (revision "1"))
5686 (package
5687 (name "sbcl-metabang-bind")
5688 (version (git-version "0.8.0" revision commit))
5689 (source
5690 (origin
5691 (method git-fetch)
5692 (uri (git-reference
5693 (url "https://github.com/gwkkwg/metabang-bind.git")
5694 (commit commit)))
5695 (file-name (git-file-name name version))
5696 (sha256
5697 (base32
5698 "0hd0kr91795v77akpbcyqiss9p0p7ypa9dznrllincnmgvsxlmf0"))))
5699 (build-system asdf-build-system/sbcl)
5700 (native-inputs
5701 `(("sbcl-lift" ,sbcl-lift)))
5702 (synopsis "Macro that generalizes @code{multiple-value-bind} etc.")
5703 (description
5704 "Bind extends the idea of of let and destructing to provide a uniform
5705syntax for all your accessor needs. It combines @code{let},
5706@code{destructuring-bind}, @code{with-slots}, @code{with-accessors}, structure
5707editing, property or association-lists, and @code{multiple-value-bind} and a
5708whole lot more into a single form.")
5709 (home-page "https://common-lisp.net/project/metabang-bind/")
5710 ;; MIT License
5711 (license license:expat))))
5712
5713(define-public cl-metabang-bind
5714 (sbcl-package->cl-source-package sbcl-metabang-bind))
5715
5716(define-public ecl-metabang-bind
5717 (sbcl-package->ecl-package sbcl-metabang-bind))
31263ec2
KCB
5718
5719(define-public sbcl-fare-utils
5720 (let ((commit "66e9c6f1499140bc00ccc22febf2aa528cbb5724")
5721 (revision "1"))
5722 (package
5723 (name "sbcl-fare-utils")
5724 (version (git-version "1.0.0.5" revision commit))
5725 (source
5726 (origin
5727 (method git-fetch)
5728 (uri
5729 (git-reference
5730 (url
5731 "https://gitlab.common-lisp.net/frideau/fare-utils.git")
5732 (commit commit)))
5733 (file-name (git-file-name name version))
5734 (sha256
5735 (base32
5736 "01wsr1aap3jdzhn4hrqjbhsjx6qci9dbd3gh4gayv1p49rbg8aqr"))))
5737 (build-system asdf-build-system/sbcl)
5738 (arguments
5739 `(#:test-asd-file "test/fare-utils-test.asd"))
5740 (native-inputs
5741 `(("sbcl-hu.dwim.stefil" ,sbcl-hu.dwim.stefil)))
5742 (synopsis "Collection of utilities and data structures")
5743 (description
5744 "fare-utils is a small collection of utilities. It contains a lot of
5745basic everyday functions and macros.")
5746 (home-page "https://gitlab.common-lisp.net/frideau/fare-utils")
5747 ;; MIT License
5748 (license license:expat))))
5749
5750(define-public cl-fare-utils
5751 (sbcl-package->cl-source-package sbcl-fare-utils))
5752
5753(define-public ecl-fare-utils
5754 (sbcl-package->ecl-package sbcl-fare-utils))
d2a93264 5755
c5ab5320
KCB
5756(define-public sbcl-trivial-utf-8
5757 (let ((commit "4d427cfbb1c452436a0efb71c3205c9da67f718f")
5758 (revision "1"))
5759 (package
5760 (name "sbcl-trivial-utf-8")
5761 (version (git-version "0.0.0" revision commit))
5762 (source
5763 (origin
5764 (method git-fetch)
5765 (uri
5766 (git-reference
5767 (url (string-append "https://gitlab.common-lisp.net/"
5768 "trivial-utf-8/trivial-utf-8.git"))
5769 (commit commit)))
5770 (file-name (git-file-name name version))
5771 (sha256
5772 (base32
5773 "1jz27gz8gvqdmvp3k9bxschs6d5b3qgk94qp2bj6nv1d0jc3m1l1"))))
5774 (arguments
5775 ;; Guix incorrectly assumes the "8" is part of the version
5776 ;; number and lobs it off.
5777 `(#:asd-file "trivial-utf-8.asd"
5778 #:asd-system-name "trivial-utf-8"))
5779 (build-system asdf-build-system/sbcl)
5780 (synopsis "UTF-8 input/output library")
5781 (description
5782 "The Babel library solves a similar problem while understanding more
5783encodings. Trivial UTF-8 was written before Babel existed, but for new
5784projects you might be better off going with Babel. The one plus that Trivial
5785UTF-8 has is that it doesn't depend on any other libraries.")
5786 (home-page "https://common-lisp.net/project/trivial-utf-8/")
5787 (license license:bsd-3))))
5788
5789(define-public cl-trivial-utf-8
5790 (sbcl-package->cl-source-package sbcl-trivial-utf-8))
5791
5792(define-public ecl-trivial-utf-8
5793 (sbcl-package->ecl-package sbcl-trivial-utf-8))
5794
d2a93264
PN
5795(define-public sbcl-idna
5796 (package
5797 (name "sbcl-idna")
5798 (build-system asdf-build-system/sbcl)
5799 (version "0.2.2")
5800 (home-page "https://github.com/antifuchs/idna")
5801 (source
5802 (origin
5803 (method git-fetch)
5804 (uri (git-reference
5805 (url home-page)
5806 (commit version)))
5807 (file-name (git-file-name name version))
5808 (sha256
5809 (base32
5810 "00nbr3mffxhlq14gg9d16pa6691s4qh35inyw76v906s77khm5a2"))))
5811 (inputs
5812 `(("split-sequence" ,sbcl-split-sequence)))
5813 (synopsis "IDNA string encoding and decoding routines for Common Lisp")
5814 (description "This Common Lisp library provides string encoding and
5815decoding routines for IDNA, the International Domain Names in Applications.")
5816 (license license:expat)))
5817
5818(define-public cl-idna
5819 (sbcl-package->cl-source-package sbcl-idna))
5820
5821(define-public ecl-idna
5822 (sbcl-package->ecl-package sbcl-idna))
ccba380a
PN
5823
5824(define-public sbcl-swap-bytes
5825 (package
5826 (name "sbcl-swap-bytes")
5827 (build-system asdf-build-system/sbcl)
5828 (version "1.1")
5829 (home-page "https://github.com/sionescu/swap-bytes")
5830 (source
5831 (origin
5832 (method git-fetch)
5833 (uri (git-reference
5834 (url home-page)
5835 (commit (string-append "v" version))))
5836 (file-name (git-file-name name version))
5837 (sha256
5838 (base32
5839 "1qysbv0jngdfkv53y874qjhcxc4qi8ixaqq6j8bzxh5z0931wv55"))))
5840 (inputs
5841 `(("trivial-features" ,sbcl-trivial-features)))
5842 (native-inputs
5843 `(("fiveam" ,sbcl-fiveam)))
5844 (arguments
5845 ;; TODO: Tests fail, why?
5846 `(#:tests? #f))
5847 (synopsis "Efficient endianness conversion for Common Lisp")
5848 (description "This Common Lisp library provides optimized byte-swapping
5849primitives. The library can change endianness of unsigned integers of length
58501/2/4/8. Very useful in implementing various network protocols and file
5851formats.")
5852 (license license:expat)))
5853
5854(define-public cl-swap-bytes
5855 (sbcl-package->cl-source-package sbcl-swap-bytes))
5856
5857(define-public ecl-swap-bytes
5858 (sbcl-package->ecl-package sbcl-swap-bytes))
69c68b47
PN
5859
5860(define-public sbcl-iolib.asdf
5861 ;; Latest release is from June 2017.
5862 (let ((commit "81e20614c0d27f9605bf9766214e236fd31b99b4")
5863 (revision "1"))
5864 (package
5865 (name "sbcl-iolib.asdf")
5866 (build-system asdf-build-system/sbcl)
5867 (version "0.8.3")
5868 (home-page "https://github.com/sionescu/iolib")
5869 (source
5870 (origin
5871 (method git-fetch)
5872 (uri (git-reference
5873 (url home-page)
5874 (commit commit)))
5875 (file-name (git-file-name name version))
5876 (sha256
5877 (base32
5878 "1j81r0wm7nfbwl991f26s4npcy7kybzybd3m47rbxy31h0cfcmdm"))))
5879 (inputs
5880 `(("alexandria" ,sbcl-alexandria)))
5881 (arguments
5882 '(#:asd-file "iolib.asdf.asd"))
5883 (synopsis "ASDF component classes for IOLib, a Common Lisp I/O library")
5884 (description "IOlib is to be a better and more modern I/O library than
5885the standard Common Lisp library. It contains a socket library, a DNS
5886resolver, an I/O multiplexer(which supports @code{select(2)}, @code{epoll(4)}
5887and @code{kqueue(2)}), a pathname library and file-system utilities.")
5888 (license license:expat))))
63158bf6
PN
5889
5890(define-public sbcl-iolib.conf
5891 (package
5892 (inherit sbcl-iolib.asdf)
5893 (name "sbcl-iolib.conf")
5894 (inputs
5895 `(("iolib.asdf" ,sbcl-iolib.asdf)))
5896 (arguments
5897 '(#:asd-file "iolib.conf.asd"))
5898 (synopsis "Compile-time configuration for IOLib, a Common Lisp I/O library")))
213937fb
PN
5899
5900(define-public sbcl-iolib.common-lisp
5901 (package
5902 (inherit sbcl-iolib.asdf)
5903 (name "sbcl-iolib.common-lisp")
5904 (inputs
5905 `(("iolib.asdf" ,sbcl-iolib.asdf)
5906 ("iolib.conf" ,sbcl-iolib.conf)))
5907 (arguments
5908 '(#:asd-file "iolib.common-lisp.asd"))
5909 (synopsis "Slightly modified Common Lisp for IOLib, a Common Lisp I/O library")))
5dffca33
PN
5910
5911(define-public sbcl-iolib.base
5912 (package
5913 (inherit sbcl-iolib.asdf)
5914 (name "sbcl-iolib.base")
5915 (inputs
5916 `(("iolib.asdf" ,sbcl-iolib.asdf)
5917 ("iolib.conf" ,sbcl-iolib.conf)
5918 ("iolib.common-lisp" ,sbcl-iolib.common-lisp)
5919 ("split-sequence" ,sbcl-split-sequence)))
5920 (arguments
5921 '(#:asd-file "iolib.base.asd"))
5922 (synopsis "Base package for IOLib, a Common Lisp I/O library")))
216dd6f6
PN
5923
5924(define-public sbcl-iolib.grovel
5925 (package
5926 (inherit sbcl-iolib.asdf)
5927 (name "sbcl-iolib.grovel")
5928 (inputs
5929 `(("iolib.asdf" ,sbcl-iolib.asdf)
5930 ("iolib.conf" ,sbcl-iolib.conf)
5931 ("iolib.base", sbcl-iolib.base)
5932 ("cffi", sbcl-cffi)))
5933 (arguments
5934 '(#:asd-file "iolib.grovel.asd"
5935 #:phases
5936 (modify-phases %standard-phases
5937 (add-after 'install 'install-header
5938 (lambda* (#:key outputs #:allow-other-keys)
5939 ;; This header is required by sbcl-iolib.
5940 (install-file "src/grovel/grovel-common.h"
5941 (string-append (assoc-ref outputs "out")
5942 "/lib/sbcl"))
5943 #t)))))
5944 (synopsis "CFFI Groveller for IOLib, a Common Lisp I/O library")))
ef656e11
PN
5945
5946(define-public sbcl-iolib
5947 (package
5948 (inherit sbcl-iolib.asdf)
5949 (name "sbcl-iolib")
5950 (inputs
5951 `(("iolib.asdf" ,sbcl-iolib.asdf)
5952 ("iolib.conf" ,sbcl-iolib.conf)
5953 ("iolib.grovel" ,sbcl-iolib.grovel)
1d8d87dd
PN
5954 ("iolib.base" ,sbcl-iolib.base)
5955 ("bordeaux-threads" ,sbcl-bordeaux-threads)
5956 ("idna" ,sbcl-idna)
5957 ("swap-bytes" ,sbcl-swap-bytes)
5958 ("libfixposix" ,libfixposix)
5959 ("cffi" ,sbcl-cffi)))
ef656e11
PN
5960 (native-inputs
5961 `(("fiveam" ,sbcl-fiveam)))
5962 (arguments
5963 '(#:asd-file "iolib.asd"
5964 #:asd-system-name "iolib"
5965 #:test-asd-file "iolib.tests.asd"
5966 #:phases
5967 (modify-phases %standard-phases
5968 (add-after 'unpack 'fix-paths
5969 (lambda* (#:key inputs #:allow-other-keys)
5970 (substitute* "src/syscalls/ffi-functions-unix.lisp"
5971 (("\\(:default \"libfixposix\"\\)")
5972 (string-append
5973 "(:default \""
5974 (assoc-ref inputs "libfixposix") "/lib/libfixposix\")")))
5975 ;; Socket tests need Internet access, disable them.
5976 (substitute* "iolib.tests.asd"
5977 (("\\(:file \"sockets\" :depends-on \\(\"pkgdcl\" \"defsuites\"\\)\\)")
5978 "")))))))
5979 (synopsis "Common Lisp I/O library")))
a3531660 5980
6c16f1a5
PN
5981(define-public cl-iolib
5982 (sbcl-package->cl-source-package sbcl-iolib))
5983
a3531660
PN
5984(define sbcl-iolib+multiplex
5985 (package
5986 (inherit sbcl-iolib)
5987 (name "sbcl-iolib+multiplex")
5988 (arguments
5989 (substitute-keyword-arguments (package-arguments sbcl-iolib)
5990 ((#:asd-system-name _) "iolib/multiplex")))))
5b686054
PN
5991
5992(define sbcl-iolib+syscalls
5993 (package
5994 (inherit sbcl-iolib)
5995 (name "sbcl-iolib+syscalls")
5996 (arguments
5997 (substitute-keyword-arguments (package-arguments sbcl-iolib)
5998 ((#:asd-system-name _) "iolib/syscalls")))))
28f3e3b1
PN
5999
6000(define sbcl-iolib+streams
6001 (package
6002 (inherit sbcl-iolib)
6003 (name "sbcl-iolib+streams")
6004 (arguments
6005 (substitute-keyword-arguments (package-arguments sbcl-iolib)
6006 ((#:asd-system-name _) "iolib/streams")))))
9f641dd7
PN
6007
6008(define sbcl-iolib+sockets
6009 (package
6010 (inherit sbcl-iolib)
6011 (name "sbcl-iolib+sockets")
6012 (arguments
6013 (substitute-keyword-arguments (package-arguments sbcl-iolib)
6014 ((#:asd-system-name _) "iolib/sockets")))))
6ac69aae
PN
6015
6016(define-public sbcl-ieee-floats
6017 (let ((commit "566b51a005e81ff618554b9b2f0b795d3b29398d")
6018 (revision "1"))
6019 (package
6020 (name "sbcl-ieee-floats")
6021 (build-system asdf-build-system/sbcl)
6022 (version (git-version "20170924" revision commit))
6023 (home-page "https://github.com/marijnh/ieee-floats/")
6024 (source
6025 (origin
6026 (method git-fetch)
6027 (uri (git-reference
6028 (url home-page)
6029 (commit commit)))
6030 (file-name (git-file-name name version))
6031 (sha256
6032 (base32
6033 "1xyj49j9x3lc84cv3dhbf9ja34ywjk1c46dklx425fxw9mkwm83m"))))
6034 (native-inputs
6035 `(("fiveam" ,sbcl-fiveam)))
6036 (synopsis "IEEE 754 binary representation for floats in Common Lisp")
6037 (description "This is a Common Lisp library that allows to convert
6038floating point values to IEEE 754 binary representation.")
6039 (license license:bsd-3))))
63015205 6040
6c16f1a5
PN
6041(define-public cl-ieee-floats
6042 (sbcl-package->cl-source-package sbcl-ieee-floats))
6043
63015205
PN
6044(define sbcl-closure-common
6045 (let ((commit "e3c5f5f454b72b01b89115e581c3c52a7e201e5c")
6046 (revision "1"))
6047 (package
6048 (name "sbcl-closure-common")
6049 (build-system asdf-build-system/sbcl)
6050 (version (git-version "20101006" revision commit))
c51db1dd 6051 (home-page "https://common-lisp.net/project/cxml/")
63015205
PN
6052 (source
6053 (origin
6054 (method git-fetch)
6055 (uri (git-reference
c51db1dd 6056 (url "https://github.com/sharplispers/closure-common")
63015205
PN
6057 (commit commit)))
6058 (file-name (git-file-name name version))
6059 (sha256
6060 (base32
6061 "0k5r2qxn122pxi301ijir3nayi9sg4d7yiy276l36qmzwhp4mg5n"))))
6062 (inputs
6063 `(("trivial-gray-streams" ,sbcl-trivial-gray-streams)
6064 ("babel" ,sbcl-babel)))
6065 (synopsis "Support Common Lisp library for CXML")
6066 (description "Closure-common is an internal helper library. The name
6067Closure is a reference to the web browser it was originally written for.")
6068 ;; TODO: License?
6069 (license #f))))
167fec29 6070
075e3220
PN
6071(define-public sbcl-cxml+xml
6072 (let ((commit "00b22bf4c4cf11c993d5866fae284f95ab18e6bf")
6073 (revision "1"))
6074 (package
6075 (name "sbcl-cxml+xml")
6076 (build-system asdf-build-system/sbcl)
6077 (version (git-version "0.0.0" revision commit))
6078 (home-page "https://common-lisp.net/project/cxml/")
6079 (source
6080 (origin
6081 (method git-fetch)
6082 (uri (git-reference
6083 (url "https://github.com/sharplispers/cxml")
6084 (commit commit)))
6085 (file-name (git-file-name name version))
6086 (sha256
6087 (base32
6088 "13kif7rf3gqdycsk9zq0d7y0g9y81krkl0z87k0p2fkbjfgrph37"))))
6089 (inputs
6090 `(("closure-common" ,sbcl-closure-common)
6091 ("puri" ,sbcl-puri)
6092 ("trivial-gray-streams" ,sbcl-trivial-gray-streams)))
6093 (arguments
6094 `(#:asd-file "cxml.asd"
6095 #:asd-system-name "cxml/xml"))
6096 (synopsis "Common Lisp XML parser")
6097 (description "CXML implements a namespace-aware, validating XML 1.0
6098parser as well as the DOM Level 2 Core interfaces. Two parser interfaces are
6099offered, one SAX-like, the other similar to StAX.")
6100 (license license:llgpl))))
6101
53270eb9
PN
6102(define sbcl-cxml+dom
6103 (package
6104 (inherit sbcl-cxml+xml)
6105 (name "sbcl-cxml+dom")
6106 (inputs
6107 `(("closure-common" ,sbcl-closure-common)
6108 ("puri" ,sbcl-puri)
6109 ("cxml+xml" ,sbcl-cxml+xml)))
6110 (arguments
6111 `(#:asd-file "cxml.asd"
6112 #:asd-system-name "cxml/dom"))))
6113
d22b47aa
PN
6114(define sbcl-cxml+klacks
6115 (package
6116 (inherit sbcl-cxml+xml)
6117 (name "sbcl-cxml+klacks")
6118 (inputs
6119 `(("closure-common" ,sbcl-closure-common)
6120 ("puri" ,sbcl-puri)
6121 ("cxml+xml" ,sbcl-cxml+xml)))
6122 (arguments
6123 `(#:asd-file "cxml.asd"
6124 #:asd-system-name "cxml/klacks"))))
6125
9a08c0a5
PN
6126(define sbcl-cxml+test
6127 (package
6128 (inherit sbcl-cxml+xml)
6129 (name "sbcl-cxml+test")
6130 (inputs
6131 `(("closure-common" ,sbcl-closure-common)
6132 ("puri" ,sbcl-puri)
6133 ("cxml+xml" ,sbcl-cxml+xml)))
6134 (arguments
6135 `(#:asd-file "cxml.asd"
6136 #:asd-system-name "cxml/test"))))
6137
4f541387
PN
6138(define-public sbcl-cxml
6139 (package
6140 (inherit sbcl-cxml+xml)
6141 (name "sbcl-cxml")
6142 (inputs
6143 `(("closure-common" ,sbcl-closure-common)
6144 ("puri" ,sbcl-puri)
6145 ("trivial-gray-streams" ,sbcl-trivial-gray-streams)
6146 ("cxml+dom" ,sbcl-cxml+dom)
6147 ("cxml+klacks" ,sbcl-cxml+klacks)
6148 ("cxml+test" ,sbcl-cxml+test)))
6149 (arguments
6150 `(#:asd-file "cxml.asd"
6151 #:asd-system-name "cxml"
6152 #:phases
6153 (modify-phases %standard-phases
6154 (add-after 'build 'install-dtd
6155 (lambda* (#:key outputs #:allow-other-keys)
6156 (install-file "catalog.dtd"
6157 (string-append
6158 (assoc-ref outputs "out")
6159 "/lib/" (%lisp-type)))))
6160 (add-after 'create-asd 'remove-component
6161 ;; XXX: The original .asd has no components, but our build system
6162 ;; creates an entry nonetheless. We need to remove it for the
6163 ;; generated .asd to load properly. See trivia.trivial for a
6164 ;; similar problem.
6165 (lambda* (#:key outputs #:allow-other-keys)
6166 (let* ((out (assoc-ref outputs "out"))
6167 (asd (string-append out "/lib/sbcl/cxml.asd")))
6168 (substitute* asd
6169 ((" :components
6170")
6171 ""))
6172 (substitute* asd
6173 ((" *\\(\\(:compiled-file \"cxml--system\"\\)\\)")
6174 ""))))))))))
6175
6c16f1a5
PN
6176(define-public cl-cxml
6177 (sbcl-package->cl-source-package sbcl-cxml))
6178
167fec29
PN
6179(define-public sbcl-cl-reexport
6180 (let ((commit "312f3661bbe187b5f28536cd7ec2956e91366c3b")
6181 (revision "1"))
6182 (package
6183 (name "sbcl-cl-reexport")
6184 (build-system asdf-build-system/sbcl)
6185 (version (git-version "0.1" revision commit))
6186 (home-page "https://github.com/takagi/cl-reexport")
6187 (source
6188 (origin
6189 (method git-fetch)
6190 (uri (git-reference
6191 (url home-page)
6192 (commit commit)))
6193 (file-name (git-file-name name version))
6194 (sha256
6195 (base32
6196 "1cwpn1m3wrl0fl9plznn7p464db646gnfc8zkyk97dyxski2aq0x"))))
6197 (inputs
6198 `(("alexandria" ,sbcl-alexandria)))
6199 (arguments
6200 ;; TODO: Tests fail because cl-test-more is missing, but I can't find it online.
6201 `(#:tests? #f))
6202 (synopsis "HTTP cookie manager for Common Lisp")
6203 (description "cl-cookie is a Common Lisp library featuring parsing of
6204cookie headers, cookie creation, cookie jar creation and more.")
6205 (license license:llgpl))))
536dcafb 6206
6c16f1a5
PN
6207(define-public cl-reexport
6208 (sbcl-package->cl-source-package sbcl-cl-reexport))
6209
536dcafb
PN
6210(define-public sbcl-cl-cookie
6211 (let ((commit "cea55aed8b9ad25fafd13defbcb9fe8f41b29546")
6212 (revision "1"))
6213 (package
6214 (name "sbcl-cl-cookie")
6215 (build-system asdf-build-system/sbcl)
6216 (version (git-version "0.9.10" revision commit))
6217 (home-page "https://github.com/fukamachi/cl-cookie")
6218 (source
6219 (origin
6220 (method git-fetch)
6221 (uri (git-reference
6222 (url home-page)
6223 (commit commit)))
6224 (file-name (git-file-name name version))
6225 (sha256
6226 (base32
6227 "090g7z75h98zvc1ldx0vh4jn4086dhjm2w30jcwkq553qmyxwl8h"))))
6228 (inputs
6229 `(("proc-parse" ,sbcl-proc-parse)
6230 ("alexandria" ,sbcl-alexandria)
6231 ("quri" ,sbcl-quri)
6232 ("cl-ppcre" ,sbcl-cl-ppcre)
6233 ("local-time" ,sbcl-local-time)))
6234 (native-inputs
6235 `(("prove-asdf" ,sbcl-prove-asdf)
6236 ("prove" ,sbcl-prove)))
6237 (arguments
6238 ;; TODO: Tests fail because cl-cookie depends on cl-cookie-test.
6239 `(#:tests? #f))
6240 (synopsis "HTTP cookie manager for Common Lisp")
6241 (description "cl-cookie is a Common Lisp library featuring parsing of
6242cookie headers, cookie creation, cookie jar creation and more.")
6243 (license license:bsd-2))))
fc3f1492 6244
6c16f1a5
PN
6245(define-public cl-cookie
6246 (sbcl-package->cl-source-package sbcl-cl-cookie))
6247
fc3f1492
PN
6248(define-public sbcl-dexador
6249 (let ((commit "a2714d126cc94bc7a9a6e1e3c08de455b3a66378")
6250 (revision "1"))
6251 (package
6252 (name "sbcl-dexador")
6253 (build-system asdf-build-system/sbcl)
6254 (version (git-version "0.9.10" revision commit))
6255 (home-page "https://github.com/fukamachi/dexador")
6256 (source
6257 (origin
6258 (method git-fetch)
6259 (uri (git-reference
6260 (url home-page)
6261 (commit commit)))
6262 (file-name (git-file-name name version))
6263 (sha256
6264 (base32
6265 "0nbqgn4v3l2z6m1k1bdxfnqpfrk84nxdmz7csz11zzcfs4flkv79"))))
6266 (inputs
6267 `(("trivial-gray-streams" ,sbcl-trivial-gray-streams)
6268 ("babel" ,sbcl-babel)
6269 ("usocket" ,sbcl-usocket)
6270 ("fast-http" ,sbcl-fast-http)
6271 ("quri" ,sbcl-quri)
6272 ("fast-io" ,sbcl-fast-io)
6273 ("chunga" ,sbcl-chunga)
6274 ("cl-ppcre" ,sbcl-cl-ppcre)
6275 ("cl-cookie" ,sbcl-cl-cookie)
6276 ("trivial-mimes" ,sbcl-trivial-mimes)
6277 ("chipz" ,sbcl-chipz)
6278 ("cl-base64" ,sbcl-cl-base64)
6279 ("cl-reexport" ,sbcl-cl-reexport)
6280 ("cl+ssl" ,sbcl-cl+ssl)
6281 ("bordeaux-threads" ,sbcl-bordeaux-threads)
6282 ("alexandria" ,sbcl-alexandria)))
6283 (native-inputs
6284 `(("prove" ,sbcl-prove)
6285 ("prove-asdf" ,sbcl-prove-asdf)
6286 ("lack-request" ,sbcl-lack-request)
6287 ("clack" ,sbcl-clack)
6288 ("babel" ,sbcl-babel)
6289 ("alexandria" ,sbcl-alexandria)
fc3f1492
PN
6290 ("cl-ppcre" ,sbcl-cl-ppcre)
6291 ("local-time" ,sbcl-local-time)))
6292 (arguments
6293 ;; TODO: Circular dependency: tests depend on clack-test which depends on dexador.
6294 `(#:tests? #f
6295 #:phases
6296 (modify-phases %standard-phases
6297 (add-after 'unpack 'fix-permissions
6298 (lambda _ (make-file-writable "t/data/test.gz") #t)))))
6299 (synopsis "Yet another HTTP client for Common Lisp")
6300 (description "Dexador is yet another HTTP client for Common Lisp with
6301neat APIs and connection-pooling. It is meant to supersede Drakma.")
6302 (license license:expat))))
e3750dc7 6303
6c16f1a5
PN
6304(define-public cl-dexador
6305 (package
6306 (inherit (sbcl-package->cl-source-package sbcl-dexador))
6307 (arguments
6308 `(#:phases
6309 ;; asdf-build-system/source has its own phases and does not inherit
6310 ;; from asdf-build-system/sbcl phases.
6311 (modify-phases %standard-phases/source
6312 (add-after 'unpack 'fix-permissions
6313 (lambda _ (make-file-writable "t/data/test.gz") #t)))))))
6314
63729d92
GLV
6315(define-public ecl-dexador
6316 (sbcl-package->ecl-package sbcl-dexador))
6317
e3750dc7
PN
6318(define-public sbcl-lisp-namespace
6319 (let ((commit "28107cafe34e4c1c67490fde60c7f92dc610b2e0")
6320 (revision "1"))
6321 (package
6322 (name "sbcl-lisp-namespace")
6323 (build-system asdf-build-system/sbcl)
6324 (version (git-version "0.1" revision commit))
6325 (home-page "https://github.com/guicho271828/lisp-namespace")
6326 (source
6327 (origin
6328 (method git-fetch)
6329 (uri (git-reference
6330 (url home-page)
6331 (commit commit)))
6332 (file-name (git-file-name name version))
6333 (sha256
6334 (base32
6335 "1jw2wykp06z2afb9nm1lgfzll5cjlj36pnknjx614057zkkxq4iy"))))
6336 (inputs
6337 `(("alexandria" ,sbcl-alexandria)))
6338 (native-inputs
6339 `(("fiveam" ,sbcl-fiveam)))
6340 (arguments
6341 `(#:test-asd-file "lisp-namespace.test.asd"
6342 ;; XXX: Component LISP-NAMESPACE-ASD::LISP-NAMESPACE.TEST not found
6343 #:tests? #f))
6344 (synopsis "LISP-N, or extensible namespaces in Common Lisp")
6345 (description "Common Lisp already has major 2 namespaces, function
6346namespace and value namespace (or variable namespace), but there are actually
6347more — e.g., class namespace.
6348This library offers macros to deal with symbols from any namespace.")
6349 (license license:llgpl))))
9526af92 6350
6c16f1a5
PN
6351(define-public cl-lisp-namespace
6352 (sbcl-package->cl-source-package sbcl-lisp-namespace))
6353
9526af92
PN
6354(define-public sbcl-trivial-cltl2
6355 (let ((commit "8eec8407df833e8f27df8a388bc10913f16d9e83")
6356 (revision "1"))
6357 (package
6358 (name "sbcl-trivial-cltl2")
6359 (build-system asdf-build-system/sbcl)
6360 (version (git-version "0.1.1" revision commit))
6361 (home-page "https://github.com/Zulu-Inuoe/trivial-cltl2")
6362 (source
6363 (origin
6364 (method git-fetch)
6365 (uri (git-reference
6366 (url home-page)
6367 (commit commit)))
6368 (file-name (git-file-name name version))
6369 (sha256
6370 (base32
6371 "1dyyxz17vqv8hlfwq287gl8xxbvcnq798ajb7p5jdjz91wqf4bgk"))))
6372 (synopsis "Simple CLtL2 compatibility layer for Common Lisp")
6373 (description "This library is a portable compatibility layer around
6374\"Common Lisp the Language, 2nd
6375Edition\" (@url{https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node102.html})
6376and it exports symbols from implementation-specific packages.")
6377 (license license:llgpl))))
f4a7653e 6378
6c16f1a5
PN
6379(define-public cl-trivial-cltl2
6380 (sbcl-package->cl-source-package sbcl-trivial-cltl2))
6381
f4a7653e
PN
6382(define-public sbcl-introspect-environment
6383 (let ((commit "fff42f8f8fd0d99db5ad6c5812e53de7d660020b")
6384 (revision "1"))
6385 (package
6386 (name "sbcl-introspect-environment")
6387 (build-system asdf-build-system/sbcl)
6388 (version (git-version "0.1" revision commit))
6389 (home-page "https://github.com/Bike/introspect-environment")
6390 (source
6391 (origin
6392 (method git-fetch)
6393 (uri (git-reference
6394 (url home-page)
6395 (commit commit)))
6396 (file-name (git-file-name name version))
6397 (sha256
6398 (base32
6399 "1i305n0wfmpac63ni4i3vixnnkl8daw5ncxy0k3dv92krgx6qzhp"))))
6400 (native-inputs
6401 `(("fiveam" ,sbcl-fiveam)))
6402 (synopsis "Common Lisp environment introspection portability layer")
6403 (description "This library is a small interface to portable but
6404nonstandard introspection of Common Lisp environments. It is intended to
6405allow a bit more compile-time introspection of environments in Common Lisp.
6406
6407Quite a bit of information is available at the time a macro or compiler-macro
6408runs; inlining info, type declarations, that sort of thing. This information
6409is all standard - any Common Lisp program can @code{(declare (integer x))} and
6410such.
6411
6412This info ought to be accessible through the standard @code{&environment}
6413parameters, but it is not. Several implementations keep the information for
6414their own purposes but do not make it available to user programs, because
6415there is no standard mechanism to do so.
6416
6417This library uses implementation-specific hooks to make information available
6418to users. This is currently supported on SBCL, CCL, and CMUCL. Other
6419implementations have implementations of the functions that do as much as they
6420can and/or provide reasonable defaults.")
6421 (license license:wtfpl2))))
b0c1007d 6422
6c16f1a5
PN
6423(define-public cl-introspect-environment
6424 (sbcl-package->cl-source-package sbcl-introspect-environment))
6425
b0c1007d
PN
6426(define-public sbcl-type-i
6427 (let ((commit "dea233f45f94064105ec09f0767de338f67dcbe2")
6428 (revision "1"))
6429 (package
6430 (name "sbcl-type-i")
6431 (build-system asdf-build-system/sbcl)
6432 (version (git-version "0.1" revision commit))
6433 (home-page "https://github.com/guicho271828/type-i")
6434 (source
6435 (origin
6436 (method git-fetch)
6437 (uri (git-reference
6438 (url home-page)
6439 (commit commit)))
6440 (file-name (git-file-name name version))
6441 (sha256
6442 (base32
6443 "039g5pbrhh65s0bhr9314gmd2nwc2y5lp2377c5qrc2lxky89qs3"))))
6444 (inputs
6445 `(("alexandria" ,sbcl-alexandria)
6446 ("introspect-environment" ,sbcl-introspect-environment)
6447 ("trivia.trivial" ,sbcl-trivia.trivial)))
6448 (native-inputs
6449 `(("fiveam" ,sbcl-fiveam)))
6450 (arguments
6451 `(#:test-asd-file "type-i.test.asd"))
6452 (synopsis "Type inference utility on unary predicates for Common Lisp")
6453 (description "This library tries to provide a way to detect what kind of
6454type the given predicate is trying to check. This is different from inferring
6455the return type of a function.")
6456 (license license:llgpl))))
f1eb7961 6457
6c16f1a5
PN
6458(define-public cl-type-i
6459 (sbcl-package->cl-source-package sbcl-type-i))
6460
f1eb7961
PN
6461(define-public sbcl-optima
6462 (let ((commit "373b245b928c1a5cce91a6cb5bfe5dd77eb36195")
6463 (revision "1"))
6464 (package
6465 (name "sbcl-optima")
6466 (build-system asdf-build-system/sbcl)
85747bab 6467 (version (git-version "1.0" revision commit))
f1eb7961
PN
6468 (home-page "https://github.com/m2ym/optima")
6469 (source
6470 (origin
6471 (method git-fetch)
6472 (uri (git-reference
6473 (url home-page)
6474 (commit commit)))
6475 (file-name (git-file-name name version))
6476 (sha256
6477 (base32
6478 "1yw4ymq7ms89342kkvb3aqxgv0w38m9kd8ikdqxxzyybnkjhndal"))))
6479 (inputs
6480 `(("alexandria" ,sbcl-alexandria)
6481 ("closer-mop" ,sbcl-closer-mop)))
6482 (native-inputs
6483 `(("eos" ,sbcl-eos)))
6484 (arguments
6485 ;; XXX: Circular dependencies: tests depend on optima.ppcre which depends on optima.
6486 `(#:tests? #f
6487 #:test-asd-file "optima.test.asd"))
6488 (synopsis "Optimized pattern matching library for Common Lisp")
6489 (description "Optima is a fast pattern matching library which uses
6490optimizing techniques widely used in the functional programming world.")
6491 (license license:expat))))
41c42e16 6492
6c16f1a5
PN
6493(define-public cl-optima
6494 (sbcl-package->cl-source-package sbcl-optima))
6495
41c42e16
PN
6496(define-public sbcl-fare-quasiquote
6497 (package
6498 (name "sbcl-fare-quasiquote")
6499 (build-system asdf-build-system/sbcl)
6500 (version "20171130")
6501 (home-page "http://common-lisp.net/project/fare-quasiquote")
6502 (source
6503 (origin
6504 (method url-fetch)
6505 (uri (string-append "http://beta.quicklisp.org/archive/fare-quasiquote/"
6506 (date->string (string->date version "~Y~m~d") "~Y-~m-~d")
6507 "/fare-quasiquote-"
6508 version
6509 "-git.tgz"))
6510 (sha256
6511 (base32
6512 "00brmh7ndsi0c97nibi8cy10j3l4gmkyrfrr5jr5lzkfb7ngyfqa"))))
6513 (inputs
6514 `(("fare-utils" ,sbcl-fare-utils)))
6515 (arguments
6516 ;; XXX: Circular dependencies: Tests depend on subsystems, which depend on the main systems.
6517 `(#:tests? #f
6518 #:phases
6519 (modify-phases %standard-phases
6520 ;; XXX: Require 1.0.0 version of fare-utils, and we package some
6521 ;; commits after 1.0.0.5, but ASDF fails to read the
6522 ;; "-REVISION-COMMIT" part generated by Guix.
6523 (add-after 'unpack 'patch-requirement
6524 (lambda _
6525 (substitute* "fare-quasiquote.asd"
6526 (("\\(:version \"fare-utils\" \"1.0.0\"\\)") "\"fare-utils\"")))))))
6527 (synopsis "Pattern-matching friendly implementation of quasiquote for Common Lisp")
6528 (description "The main purpose of this n+2nd reimplementation of
6529quasiquote is enable matching of quasiquoted patterns, using Optima or
6530Trivia.")
6531 (license license:expat)))
b7231496 6532
7baaf7f3
PN
6533(define-public cl-fare-quasiquote
6534 (sbcl-package->cl-source-package sbcl-fare-quasiquote))
6535
06e2da71
PN
6536(define-public sbcl-fare-quasiquote-optima
6537 (package
6538 (inherit sbcl-fare-quasiquote)
6539 (name "sbcl-fare-quasiquote-optima")
6540 (inputs
6541 `(("optima" ,sbcl-optima)
6542 ("fare-quasiquote" ,sbcl-fare-quasiquote)))
6543 (arguments
6544 '(#:phases
6545 (modify-phases %standard-phases
6546 (add-after 'unpack 'patch-requirement
6547 (lambda _
6548 (substitute* "fare-quasiquote-optima.asd"
6549 (("\\(:version \"optima\" \"1\\.0\"\\)")
6550 "\"optima\""))
6551 #t)))))))
6552
6553(define-public cl-fare-quasiquote-optima
6554 (sbcl-package->cl-source-package sbcl-fare-quasiquote-optima))
6555
b7231496
PN
6556(define-public sbcl-fare-quasiquote-readtable
6557 (package
6558 (inherit sbcl-fare-quasiquote)
6559 (name "sbcl-fare-quasiquote-readtable")
6560 (inputs
6561 `(("fare-quasiquote" ,sbcl-fare-quasiquote)
6562 ("named-readtables" ,sbcl-named-readtables)))
6563 (description "The main purpose of this n+2nd reimplementation of
6564quasiquote is enable matching of quasiquoted patterns, using Optima or
6565Trivia.
6566
f74b6983 6567This package uses fare-quasiquote with named-readtable.")))
5163929e 6568
7b9cb9c0
PN
6569(define-public cl-fare-quasiquote-readtable
6570 (sbcl-package->cl-source-package sbcl-fare-quasiquote-readtable))
6571
6fdb5b79
PN
6572;; TODO: Add support for component-less system in asdf-build-system/sbcl.
6573(define-public cl-fare-quasiquote-extras
6574 (package
6575 (inherit cl-fare-quasiquote)
6576 (name "cl-fare-quasiquote-extras")
6577 (build-system asdf-build-system/source)
6578 (propagated-inputs
6579 `(("fare-quasiquote" ,cl-fare-quasiquote)
6580 ("fare-quasiquote-optima" ,cl-fare-quasiquote-optima)
6581 ("fare-quasiquote-readtable" ,cl-fare-quasiquote-readtable)))
6582 (description "This library combines @code{fare-quasiquote-readtable} and
6583@code{fare-quasiquote-optima}.")))
6584
5163929e
PN
6585(define-public sbcl-trivia.level0
6586 (let ((commit "902e0c65602bbfe96ae82e679330b3771ddc7603")
6587 (revision "1"))
6588 (package
6589 (name "sbcl-trivia.level0")
6590 (build-system asdf-build-system/sbcl)
6591 (version (git-version "0.0.0" revision commit))
6592 (home-page "https://github.com/guicho271828/trivia")
6593 (source
6594 (origin
6595 (method git-fetch)
6596 (uri (git-reference
6597 (url home-page)
6598 (commit commit)))
6599 (file-name (git-file-name name version))
6600 (sha256
6601 (base32
6602 "11qbab30qqnfy9mx3x9fvgcw1jbvh1qn2cqv3p8xdn2m8981jvhr"))))
6603 (inputs
6604 `(("alexandria" ,sbcl-alexandria)))
6605 (synopsis "Pattern matching in Common Lisp")
6606 (description "Trivia is a pattern matching compiler that is compatible
6607with Optima, another pattern matching library for Common Lisp. It is meant to
6608be faster and more extensible than Optima.")
6609 (license license:llgpl))))
e4e84e3d
PN
6610
6611(define-public sbcl-trivia.level1
6612 (package
6613 (inherit sbcl-trivia.level0)
6614 (name "sbcl-trivia.level1")
6615 (inputs
6616 `(("trivia.level0" ,sbcl-trivia.level0)))
6617 (description "Trivia is a pattern matching compiler that is compatible
6618with Optima, another pattern matching library for Common Lisp. It is meant to
6619be faster and more extensible than Optima.
6620
6621This system contains the core patterns of Trivia.")))
49df8a0a
PN
6622
6623(define-public sbcl-trivia.level2
6624 (package
6625 (inherit sbcl-trivia.level0)
6626 (name "sbcl-trivia.level2")
6627 (inputs
6628 `(("trivia.level1" ,sbcl-trivia.level1)
6629 ("lisp-namespace" ,sbcl-lisp-namespace)
6630 ("trivial-cltl2" ,sbcl-trivial-cltl2)
6631 ("closer-mop" ,sbcl-closer-mop)))
6632 (description "Trivia is a pattern matching compiler that is compatible
6633with Optima, another pattern matching library for Common Lisp. It is meant to
6634be faster and more extensible than Optima.
6635
6636This system contains a non-optimized pattern matcher compatible with Optima,
6637with extensible optimizer interface.")))
02a8324b
PN
6638
6639(define-public sbcl-trivia.trivial
6640 (package
6641 (inherit sbcl-trivia.level0)
6642 (name "sbcl-trivia.trivial")
6643 (inputs
6644 `(("trivia.level2" ,sbcl-trivia.level2)))
6645 (arguments
6646 `(#:phases
6647 (modify-phases %standard-phases
6648 (replace 'create-asd-file
6649 (lambda* (#:key outputs inputs #:allow-other-keys)
6650 (let* ((out (assoc-ref outputs "out"))
57f815cb 6651 (lib (string-append out "/lib/" (%lisp-type)))
02a8324b
PN
6652 (level2 (assoc-ref inputs "trivia.level2")))
6653 (mkdir-p lib)
6654 (install-file "trivia.trivial.asd" lib)
6655 ;; XXX: This .asd does not have any component and the build
6656 ;; system fails to work in this case. We should update the
6657 ;; build system to handle component-less .asd.
6658 ;; TODO: How do we append to file in Guile? It seems that
6659 ;; (open-file ... "a") gets a "Permission denied".
6660 (substitute* (string-append lib "/trivia.trivial.asd")
6661 (("\"\\)")
6662 (string-append "\")
6663
6664(progn (asdf/source-registry:ensure-source-registry)
6665 (setf (gethash
6666 \"trivia.level2\"
6667 asdf/source-registry:*source-registry*)
6668 #p\""
6669 level2
6670 "/share/common-lisp/sbcl-bundle-systems/trivia.level2.asd\"))")))))))))
6671 (description "Trivia is a pattern matching compiler that is compatible
6672with Optima, another pattern matching library for Common Lisp. It is meant to
6673be faster and more extensible than Optima.
6674
6675This system contains the base level system of Trivia with a trivial optimizer.")))
9d450c6d
PN
6676
6677(define-public sbcl-trivia.balland2006
6678 (package
6679 (inherit sbcl-trivia.level0)
6680 (name "sbcl-trivia.balland2006")
6681 (inputs
6682 `(("trivia.trivial" ,sbcl-trivia.trivial)
6683 ("iterate" ,sbcl-iterate)
6684 ("type-i" ,sbcl-type-i)
6685 ("alexandria" ,sbcl-alexandria)))
6686 (arguments
6687 ;; Tests are done in trivia itself.
6688 `(#:tests? #f))
6689 (description "Trivia is a pattern matching compiler that is compatible
6690with Optima, another pattern matching library for Common Lisp. It is meant to
6691be faster and more extensible than Optima.
6692
6693This system contains the base level system of Trivia with a trivial optimizer.")))
3706c0a4
PN
6694
6695(define-public sbcl-trivia.ppcre
6696 (package
6697 (inherit sbcl-trivia.level0)
6698 (name "sbcl-trivia.ppcre")
6699 (inputs
6700 `(("trivia.trivial" ,sbcl-trivia.trivial)
6701 ("cl-ppcre" ,sbcl-cl-ppcre)))
6702 (description "Trivia is a pattern matching compiler that is compatible
6703with Optima, another pattern matching library for Common Lisp. It is meant to
6704be faster and more extensible than Optima.
6705
a0bd9181 6706This system contains the PPCRE extension.")))
9b5e5eaf
PN
6707
6708(define-public sbcl-trivia.quasiquote
6709 (package
6710 (inherit sbcl-trivia.level0)
6711 (name "sbcl-trivia.quasiquote")
6712 (inputs
6713 `(("trivia.trivial" ,sbcl-trivia.trivial)
6714 ("fare-quasiquote" ,sbcl-fare-quasiquote)
6715 ("fare-quasiquote-readtable" ,sbcl-fare-quasiquote-readtable)))
6716 (description "Trivia is a pattern matching compiler that is compatible
6717with Optima, another pattern matching library for Common Lisp. It is meant to
6718be faster and more extensible than Optima.
6719
6720This system contains the fare-quasiquote extension.")))
9d4e4226
PN
6721
6722(define-public sbcl-trivia.cffi
6723 (package
6724 (inherit sbcl-trivia.level0)
6725 (name "sbcl-trivia.cffi")
6726 (inputs
6727 `(("cffi" ,sbcl-cffi)
6728 ("trivia.trivial" ,sbcl-trivia.trivial)))
6729 (description "Trivia is a pattern matching compiler that is compatible
6730with Optima, another pattern matching library for Common Lisp. It is meant to
6731be faster and more extensible than Optima.
6732
6733This system contains the CFFI foreign slot access extension.")))
87850c05
PN
6734
6735(define-public sbcl-trivia
6736 (package
6737 (inherit sbcl-trivia.level0)
6738 (name "sbcl-trivia")
6739 (inputs
6740 `(("trivia.balland2006" ,sbcl-trivia.balland2006)))
6741 (native-inputs
6742 `(("fiveam" ,sbcl-fiveam)
6743 ("trivia.ppcre" ,sbcl-trivia.ppcre)
6744 ("trivia.quasiquote" ,sbcl-trivia.quasiquote)
6745 ("trivia.cffi" ,sbcl-trivia.cffi)
6746 ("optima" ,sbcl-optima)))
6747 (arguments
000faac0
PN
6748 `(#:test-asd-file "trivia.test.asd"
6749 #:phases
6750 (modify-phases %standard-phases
6751 (add-after 'create-asd 'remove-component
6752 ;; XXX: The original .asd has no components, but our build system
6753 ;; creates an entry nonetheless. We need to remove it for the
6754 ;; generated .asd to load properly. See trivia.trivial for a
6755 ;; similar problem.
6756 (lambda* (#:key outputs #:allow-other-keys)
6757 (let* ((out (assoc-ref outputs "out"))
6758 (asd (string-append out "/lib/" (%lisp-type) "/trivia.asd")))
6759 (substitute* asd
6760 ((" :components
6761")
6762 ""))
6763 (substitute* asd
6764 ((" *\\(\\(:compiled-file \"trivia--system\"\\)\\)")
6765 ""))))))))
87850c05
PN
6766 (description "Trivia is a pattern matching compiler that is compatible
6767with Optima, another pattern matching library for Common Lisp. It is meant to
6768be faster and more extensible than Optima.")))
e4ce0097 6769
6c16f1a5
PN
6770(define-public cl-trivia
6771 (sbcl-package->cl-source-package sbcl-trivia))
6772
e4ce0097
PN
6773(define-public sbcl-mk-string-metrics
6774 (package
6775 (name "sbcl-mk-string-metrics")
6776 (version "0.1.2")
6777 (home-page "https://github.com/cbaggers/mk-string-metrics/")
6778 (source (origin
6779 (method git-fetch)
6780 (uri (git-reference
6781 (url home-page)
6782 (commit version)))
6783 (sha256
6784 (base32 "0bg0bv2mfd4k0g3x72x563hvmrx18xavaffr6xk5rh4if5j7kcf6"))
6785 (file-name (git-file-name name version))))
6786 (build-system asdf-build-system/sbcl)
6787 (synopsis "Calculate various string metrics efficiently in Common Lisp")
6788 (description "This library implements efficient algorithms that calculate
6789various string metrics in Common Lisp:
6790
6791@itemize
6792@item Damerau-Levenshtein distance
6793@item Hamming distance
6794@item Jaccard similarity coefficient
6795@item Jaro distance
6796@item Jaro-Winkler distance
6797@item Levenshtein distance
6798@item Normalized Damerau-Levenshtein distance
6799@item Normalized Levenshtein distance
6800@item Overlap coefficient
6801@end itemize\n")
6802 (license license:x11)))
6ba457cc 6803
6c16f1a5
PN
6804(define-public cl-mk-string-metrics
6805 (sbcl-package->cl-source-package sbcl-mk-string-metrics))
6806
6ba457cc
PN
6807(define-public sbcl-cl-str
6808 (let ((commit "3d5ec86e3a0199e5973aacde951086dfd754b5e5"))
6809 (package
6810 (name "sbcl-cl-str")
6811 (version (git-version "0.8" "1" commit))
6812 (home-page "https://github.com/vindarel/cl-str")
6813 (source (origin
6814 (method git-fetch)
6815 (uri (git-reference
6816 (url home-page)
6817 (commit commit)))
6818 (sha256
6819 (base32 "0szzzbygw9h985yxz909vvqrp69pmpcpahn7hn350lnyjislk9ga"))
6820 (file-name (git-file-name name version))))
6821 (build-system asdf-build-system/sbcl)
6822 (inputs
6823 `(("cl-ppcre" ,sbcl-cl-ppcre)
6824 ("cl-ppcre-unicode" ,sbcl-cl-ppcre-unicode)))
6825 (native-inputs
6826 `(("prove" ,sbcl-prove)
6827 ("prove-asdf" ,sbcl-prove-asdf)))
6828 (arguments
6829 `(#:asd-file "str.asd"
6830 #:asd-system-name "str"
6831 #:test-asd-file "str.test.asd"))
6832 (synopsis "Modern, consistent and terse Common Lisp string manipulation library")
6833 (description "A modern and consistent Common Lisp string manipulation
6834library that focuses on modernity, simplicity and discoverability:
6835@code{(str:trim s)} instead of @code{(string-trim '(#\\Space ...) s)}), or
6836@code{str:concat strings} instead of an unusual format construct; one
6837discoverable library instead of many; consistency and composability, where
6838@code{s} is always the last argument, which makes it easier to feed pipes and
6839arrows.")
6840 (license license:expat))))
b36165b7 6841
6c16f1a5
PN
6842(define-public cl-str
6843 (sbcl-package->cl-source-package sbcl-cl-str))
6844
b36165b7
PN
6845(define-public sbcl-cl-xmlspam
6846 (let ((commit "ea06abcca2a73a9779bcfb09081e56665f94e22a"))
6847 (package
6848 (name "sbcl-cl-xmlspam")
6849 (build-system asdf-build-system/sbcl)
6850 (version (git-version "0.0.0" "1" commit))
6851 (home-page "https://github.com/rogpeppe/cl-xmlspam")
6852 (source
6853 (origin
6854 (method git-fetch)
6855 (uri (git-reference
6856 (url home-page)
6857 (commit commit)))
6858 (file-name (string-append name "-" version))
6859 (sha256
6860 (base32
6861 "0w4rqvrgdgk3fwfq3kx4r7wwdr2bv3b6n3bdqwsiriw9psqzpz2s"))))
6862 (inputs
6863 `(("cxml" ,sbcl-cxml)
6864 ("cl-ppcre" ,sbcl-cl-ppcre)))
6865 (synopsis "Concise, regexp-like pattern matching on streaming XML for Common Lisp")
6866 (description "CXML does an excellent job at parsing XML elements, but what
6867do you do when you have a XML file that's larger than you want to fit in
6868memory, and you want to extract some information from it? Writing code to deal
6869with SAX events, or even using Klacks, quickly becomes tedious.
6870@code{cl-xmlspam} (for XML Stream PAttern Matcher) is designed to make it easy
6871to write code that mirrors the structure of the XML that it's parsing. It
6872also makes it easy to shift paradigms when necessary - the usual Lisp control
6873constructs can be used interchangeably with pattern matching, and the full
6874power of CXML is available when necessary.")
6875 (license license:bsd-3))))
c3e5e135
PN
6876
6877;; TODO: dbus uses ASDF's package-inferred-system which is not supported by
6878;; asdf-build-system/sbcl as of 2019-08-02. We should fix
6879;; asdf-build-system/sbcl.
6880(define-public cl-dbus
6881 (let ((commit "24b452df3a45ca5dc95015500f34baad175c981a")
6882 (revision "1"))
6883 (package
6884 (name "cl-dbus")
6885 (build-system asdf-build-system/source)
6886 (version (git-version "20190408" revision commit))
6887 (home-page "https://github.com/death/dbus")
6888 (source
6889 (origin
6890 (method git-fetch)
6891 (uri (git-reference
6892 (url home-page)
6893 (commit commit)))
6894 (file-name (git-file-name name version))
6895 (sha256
6896 (base32
6897 "0fw2q866yddbf23nk9pxphm9gsasx35vjyss82xzvndnjmzlqfl5"))))
6898 ;; Inputs must be propagated or else packages depending on this won't have the necessary packages.
6899 (propagated-inputs
6900 `(("alexandria" ,sbcl-alexandria)
6901 ("trivial-garbage" ,sbcl-trivial-garbage)
6902 ("babel" ,sbcl-babel)
6903 ("iolib" ,sbcl-iolib)
6904 ("iolib+multiplex" ,(@@ (gnu packages lisp) sbcl-iolib+multiplex))
6905 ("iolib+syscalls" ,(@@ (gnu packages lisp) sbcl-iolib+syscalls))
6906 ("iolib+streams" ,(@@ (gnu packages lisp) sbcl-iolib+streams))
6907 ("iolib+sockets" ,(@@ (gnu packages lisp) sbcl-iolib+sockets))
6908 ("ieee-floats" ,sbcl-ieee-floats)
6909 ("flexi-streams" ,sbcl-flexi-streams)
6910 ("cl-xmlspam" ,sbcl-cl-xmlspam)
6911 ("ironclad" ,sbcl-ironclad)))
6912 (synopsis "D-Bus client library for Common Lisp")
6913 (description "This is a Common Lisp library that allows to publish D-Bus
6914objects as well as send and notify other objects connected to a bus.")
6915 (license license:bsd-2))))
cc16f90a
PN
6916
6917(define-public sbcl-cl-hooks
6918 (let ((commit "5b638083f3b4f1221a52631d9c8a0a265565cac7")
6919 (revision "1"))
6920 (package
6921 (name "sbcl-cl-hooks")
6922 (build-system asdf-build-system/sbcl)
6923 (version (git-version "0.2.1" revision commit))
6924 (home-page "https://github.com/scymtym/architecture.hooks")
6925 (source
6926 (origin
6927 (method git-fetch)
6928 (uri (git-reference
6929 (url home-page)
6930 (commit commit)))
6931 (file-name (git-file-name name version))
6932 (sha256
6933 (base32
6934 "0bg3l0a28lw5gqqjp6p6b5nhwqk46sgkb7184w5qbfngw1hk8x9y"))))
6935 (inputs
6936 `(("alexandria" ,sbcl-alexandria)
6937 ("let-plus" ,sbcl-let-plus)
6938 ("trivial-garbage" ,sbcl-trivial-garbage)
6939 ("closer-mop" ,sbcl-closer-mop)))
6940 (native-inputs
6941 `(("fiveam" ,sbcl-fiveam)))
6942 (synopsis "Hooks extension point mechanism (as in Emacs) for Common Lisp")
6943 (description "A hook, in the present context, is a certain kind of
6944extension point in a program that allows interleaving the execution of
6945arbitrary code with the execution of a the program without introducing any
6946coupling between the two. Hooks are used extensively in the extensible editor
6947Emacs.
6948
6949In the Common LISP Object System (CLOS), a similar kind of extensibility is
6950possible using the flexible multi-method dispatch mechanism. It may even seem
0def6a48 6951that the concept of hooks does not provide any benefits over the possibilities
cc16f90a
PN
6952of CLOS. However, there are some differences:
6953
6954@itemize
6955
6956@item There can be only one method for each combination of specializers and
6957qualifiers. As a result this kind of extension point cannot be used by
6958multiple extensions independently.
6959@item Removing code previously attached via a @code{:before}, @code{:after} or
6960@code{:around} method can be cumbersome.
6961@item There could be other or even multiple extension points besides @code{:before}
6962and @code{:after} in a single method.
6963@item Attaching codes to individual objects using eql specializers can be
6964cumbersome.
6965@item Introspection of code attached a particular extension point is
6966cumbersome since this requires enumerating and inspecting the methods of a
6967generic function.
6968@end itemize
6969
6970This library tries to complement some of these weaknesses of method-based
6971extension-points via the concept of hooks.")
6972 (license license:llgpl))))
6973
6974(define-public cl-hooks
6975 (sbcl-package->cl-source-package sbcl-cl-hooks))
6976
6977(define-public ecl-cl-hooks
6978 (sbcl-package->ecl-package sbcl-cl-hooks))
5216632a
PN
6979
6980(define-public sbcl-s-sysdeps
6981 (let ((commit "d28246b5dffef9e73a0e0e6cfbc4e878006fe34d")
6982 (revision "1"))
6983 (package
6984 (name "sbcl-s-sysdeps")
6985 (build-system asdf-build-system/sbcl)
6986 (version (git-version "1" revision commit))
6987 (home-page "https://github.com/svenvc/s-sysdeps")
6988 (source
6989 (origin
6990 (method git-fetch)
6991 (uri (git-reference
6992 (url home-page)
6993 (commit commit)))
6994 (file-name (git-file-name name version))
6995 (sha256
6996 (base32
6997 "14b69b81yrxmjlvmm3lfxk04x5v7hqz4fql121334wh72czznfh9"))))
6998 (synopsis "Common Lisp abstraction layer over platform dependent functionality")
6999 (description "@code{s-sysdeps} is an abstraction layer over platform
7000dependent functionality. This simple package is used as a building block in a
7001number of other open source projects.
7002
7003@code{s-sysdeps} abstracts:
7004
7005@itemize
7006@item managing processes,
7007@item implementing a standard TCP/IP server,
7008@item opening a client TCP/IP socket stream,
7009@item working with process locks.
7010@end itemize\n")
7011 (license license:llgpl))))
7012
7013(define-public cl-s-sysdeps
7014 (sbcl-package->cl-source-package sbcl-s-sysdeps))
7015
7016(define-public ecl-s-sysdeps
7017 (sbcl-package->ecl-package sbcl-s-sysdeps))
eb2e9ef4
PN
7018
7019(define-public sbcl-cl-prevalence
7020 (let ((commit "c163c227ed85d430b82cb1e3502f72d4f88e3cfa")
7021 (revision "1"))
7022 (package
7023 (name "sbcl-cl-prevalence")
7024 (build-system asdf-build-system/sbcl)
7025 (version (git-version "5" revision commit))
7026 (home-page "https://github.com/40ants/cl-prevalence")
7027 (source
7028 (origin
7029 (method git-fetch)
7030 (uri (git-reference
7031 (url home-page)
7032 (commit commit)))
7033 (file-name (git-file-name name version))
7034 (sha256
7035 (base32
7036 "1i9zj1q2ahgwch56an21yzbgkynz0kab9fyxkq9mg8p3xrv38jjn"))))
7037 (inputs
7038 `(("s-sysdeps" ,sbcl-s-sysdeps)
7039 ("s-xml" ,sbcl-s-xml)))
7040 (synopsis "Implementation of object prevalence for Common Lisp")
7041 (description "This Common Lisp library implements object prevalence (see
7042@url{https://en.wikipedia.org/wiki/System_prevalence}). It allows
7043for (de)serializing to and from s-exps as well as XML. Serialization of arbitrary
7044classes and cyclic data structures are supported.")
7045 (license license:llgpl))))
7046
7047(define-public cl-prevalence
7048 (sbcl-package->cl-source-package sbcl-cl-prevalence))
7049
7050(define-public ecl-cl-prevalence
7051 (sbcl-package->ecl-package sbcl-cl-prevalence))
b2fa53d0
GLV
7052
7053(define-public sbcl-series
7054 (let ((commit "da9061b336119d1e5214aff9117171d494d5a58a")
7055 (revision "1"))
7056 (package
7057 (name "sbcl-series")
7058 (version (git-version "2.2.11" revision commit))
7059 (source
7060 (origin
7061 (method git-fetch)
7062 (uri (git-reference
7063 (url "git://git.code.sf.net/p/series/series")
7064 (commit commit)))
7065 (file-name (git-file-name name version))
7066 (sha256
7067 (base32
7068 "07hk2lhfx42zk018pxqvn4gs77vd4n4g8m4xxbqaxgca76mifwfw"))))
7069 (build-system asdf-build-system/sbcl)
7070 (arguments
7071 ;; Disable the tests, they are apparently buggy and I didn't find
7072 ;; a simple way to make them run and pass.
7073 '(#:tests? #f))
7074 (synopsis "Series data structure for Common Lisp")
7075 (description
7076 "This Common Lisp library provides a series data structure much like
7077a sequence, with similar kinds of operations. The difference is that in many
7078situations, operations on series may be composed functionally and yet execute
7079iteratively, without the need to construct intermediate series values
7080explicitly. In this manner, series provide both the clarity of a functional
7081programming style and the efficiency of an iterative programming style.")
7082 (home-page "http://series.sourceforge.net/")
7083 (license license:expat))))
7084
7085(define-public cl-series
7086 (sbcl-package->cl-source-package sbcl-series))
7087
7088(define-public ecl-series
7089 (sbcl-package->ecl-package sbcl-series))
7bf9577d
GLV
7090
7091(define-public sbcl-periods
7092 (let ((commit "983d4a57325db3c8def942f163133cec5391ec28")
7093 (revision "1"))
7094 (package
7095 (name "sbcl-periods")
7096 (version (git-version "0.0.2" revision commit))
7097 (source
7098 (origin
7099 (method git-fetch)
7100 (uri (git-reference
7101 (url "https://github.com/jwiegley/periods.git")
7102 (commit commit)))
7103 (file-name (git-file-name name version))
7104 (sha256
7105 (base32
7106 "0z30jr3lxz3cmi019fsl4lgcgwf0yqpn95v9zkkkwgymdrkd4lga"))))
7107 (build-system asdf-build-system/sbcl)
7108 (inputs
7109 `(("local-time" ,sbcl-local-time)))
7110 (synopsis "Common Lisp library for manipulating date/time objects")
7111 (description
7112 "Periods is a Common Lisp library providing a set of utilities for
7113manipulating times, distances between times, and both contiguous and
7114discontiguous ranges of time.")
7115 (home-page "https://github.com/jwiegley/periods")
7116 (license license:bsd-3))))
7117
7118(define-public cl-periods
7119 (sbcl-package->cl-source-package sbcl-periods))
7120
7121(define-public ecl-periods
7122 (sbcl-package->ecl-package sbcl-periods))
5c2f6797
GLV
7123
7124(define-public sbcl-periods-series
7125 (package
7126 (inherit sbcl-periods)
7127 (name "sbcl-periods-series")
7128 (inputs
7129 `(("periods" ,sbcl-periods)
7130 ("series" ,sbcl-series)))
7131 (arguments
7132 '(#:asd-file "periods-series.asd"
7133 #:asd-system-name "periods-series"))
7134 (description
7135 "Periods-series is an extension of the periods Common Lisp library
7136providing functions compatible with the series Common Lisp library.")))
7137
7138(define-public cl-periods-series
7139 (sbcl-package->cl-source-package sbcl-periods-series))
7140
7141(define-public ecl-periods-series
7142 (sbcl-package->ecl-package sbcl-periods-series))
cacbeebc
GLV
7143
7144(define-public sbcl-metatilities-base
7145 (let ((commit "6eaa9e3ff0939a93a92109dd0fcd218de85417d5")
7146 (revision "1"))
7147 (package
7148 (name "sbcl-metatilities-base")
7149 (version (git-version "0.6.6" revision commit))
7150 (source
7151 (origin
7152 (method git-fetch)
7153 (uri (git-reference
7154 (url "https://github.com/gwkkwg/metatilities-base.git")
7155 (commit commit)))
7156 (file-name (git-file-name name version))
7157 (sha256
7158 (base32
7159 "0xpa86pdzlnf4v5g64j3ifaplx71sx2ha8b7vvakswi652679ma0"))))
7160 (build-system asdf-build-system/sbcl)
7161 (native-inputs
7162 `(("lift" ,sbcl-lift)))
7163 (synopsis "Core of the metatilities Common Lisp library")
7164 (description
7165 "Metatilities-base is the core of the metatilities Common Lisp library
7166which implements a set of utilities.")
7167 (home-page "https://common-lisp.net/project/metatilities-base/")
7168 (license license:expat))))
7169
7170(define-public cl-metatilities-base
7171 (sbcl-package->cl-source-package sbcl-metatilities-base))
7172
7173(define-public ecl-metatilities-base
7174 (sbcl-package->ecl-package sbcl-metatilities-base))
f5d1f58b
GLV
7175
7176(define-public sbcl-cl-containers
7177 (let ((commit "810927e19d933bcf38ffeb7a23ce521efc432d45")
7178 (revision "1"))
7179 (package
7180 (name "sbcl-cl-containers")
7181 (version (git-version "0.12.1" revision commit))
7182 (source
7183 (origin
7184 (method git-fetch)
7185 (uri (git-reference
7186 (url "https://github.com/gwkkwg/cl-containers.git")
7187 (commit commit)))
7188 (file-name (git-file-name name version))
7189 (sha256
7190 (base32
7191 "1s9faxw7svhbjpkhfrz2qxgjm3cvyjb8wpyb4m8dx4i5g7vvprkv"))))
7192 (build-system asdf-build-system/sbcl)
7193 (native-inputs
7194 `(("lift" ,sbcl-lift)))
7195 (inputs
7196 `(("metatilities-base" ,sbcl-metatilities-base)))
7197 (arguments
7198 '(#:phases
7199 (modify-phases %standard-phases
7200 (add-after 'unpack 'relax-version-checks
7201 (lambda _
7202 (substitute* "cl-containers.asd"
7203 (("\\(:version \"metatilities-base\" \"0\\.6\\.6\"\\)")
7204 "\"metatilities-base\""))
7205 (substitute* "cl-containers-test.asd"
7206 (("\\(:version \"lift\" \"1\\.7\\.0\"\\)")
7207 "\"lift\""))
7208 #t)))))
7209 (synopsis "Container library for Common Lisp")
7210 (description
7211 "Common Lisp ships with a set of powerful built in data structures
7212including the venerable list, full featured arrays, and hash-tables.
7213CL-containers enhances and builds on these structures by adding containers
7214that are not available in native Lisp (for example: binary search trees,
7215red-black trees, sparse arrays and so on), and by providing a standard
7216interface so that they are simpler to use and so that changing design
7217decisions becomes significantly easier.")
7218 (home-page "https://common-lisp.net/project/cl-containers/")
7219 (license license:expat))))
7220
7221(define-public cl-containers
7222 (sbcl-package->cl-source-package sbcl-cl-containers))
7223
7224(define-public ecl-cl-containers
7225 (sbcl-package->ecl-package sbcl-cl-containers))
bc5d9a7a
GLV
7226
7227(define-public sbcl-xlunit
7228 (let ((commit "3805d34b1d8dc77f7e0ee527a2490194292dd0fc")
7229 (revision "1"))
7230 (package
7231 (name "sbcl-xlunit")
7232 (version (git-version "0.6.3" revision commit))
7233 (source
7234 (origin
7235 (method git-fetch)
7236 (uri (git-reference
7237 (url "http://git.kpe.io/xlunit.git")
7238 (commit commit)))
7239 (file-name (git-file-name name version))
7240 (sha256
7241 (base32
7242 "0argfmp9nghs4sihyj3f8ch9qfib2b7ll07v5m9ziajgzsfl5xw3"))))
7243 (build-system asdf-build-system/sbcl)
7244 (arguments
7245 '(#:phases
7246 (modify-phases %standard-phases
7247 (add-after 'unpack 'fix-tests
7248 (lambda _
7249 (substitute* "xlunit.asd"
7250 ((" :force t") ""))
7251 #t)))))
7252 (synopsis "Unit testing package for Common Lisp")
7253 (description
7254 "The XLUnit package is a toolkit for building test suites. It is based
7255on the XPTest package by Craig Brozensky and the JUnit package by Kent Beck.")
7256 (home-page "http://quickdocs.org/xlunit/")
7257 (license license:bsd-3))))
7258
7259(define-public cl-xlunit
7260 (sbcl-package->cl-source-package sbcl-xlunit))
7261
7262(define-public ecl-xlunit
7263 (sbcl-package->ecl-package sbcl-xlunit))
c0dcdd45
GLV
7264
7265(define-public sbcl-fprog
7266 (let ((commit "7016d1a98215f82605d1c158e7a16504ca1f4636")
7267 (revision "1"))
7268 (package
7269 (name "sbcl-fprog")
7270 (version (git-version "1.0.0" revision commit))
7271 (source
7272 (origin
7273 (method git-fetch)
7274 (uri (git-reference
7275 (url "https://github.com/jwiegley/cambl.git")
7276 (commit commit)))
7277 (file-name (git-file-name name version))
7278 (sha256
7279 (base32
7280 "103mry04j2k9vznsxm7wcvccgxkil92cdrv52miwcmxl8daa4jiz"))))
7281 (build-system asdf-build-system/sbcl)
7282 (synopsis "Functional programming utilities for Common Lisp")
7283 (description
7284 "@code{fprog} is a Common Lisp library allowing iteration over
7285immutable lists sharing identical sublists.")
7286 (home-page "https://github.com/jwiegley/cambl")
7287 (license license:bsd-3))))
7288
7289(define-public cl-fprog
7290 (sbcl-package->cl-source-package sbcl-fprog))
7291
7292(define-public ecl-fprog
7293 (sbcl-package->ecl-package sbcl-fprog))
66226d5d
GLV
7294
7295(define-public sbcl-cambl
7296 (let ((commit "7016d1a98215f82605d1c158e7a16504ca1f4636")
7297 (revision "1"))
7298 (package
7299 (inherit sbcl-fprog)
7300 (name "sbcl-cambl")
7301 (version (git-version "4.0.0" revision commit))
7302 (native-inputs
7303 `(("xlunit" ,sbcl-xlunit)))
7304 (inputs
7305 `(("alexandria" ,sbcl-alexandria)
7306 ("cl-containers" ,sbcl-cl-containers)
7307 ("local-time" ,sbcl-local-time)
7308 ("periods" ,sbcl-periods)
7309 ("fprog" ,sbcl-fprog)))
7310 (synopsis "Commoditized amounts and balances for Common Lisp")
7311 (description
7312 "CAMBL is a Common Lisp library providing a convenient facility for
7313working with commoditized values. It does not allow compound units (and so is
7314not suited for scientific operations) but does work rather nicely for the
7315purpose of financial calculations."))))
7316
7317(define-public cl-cambl
7318 (sbcl-package->cl-source-package sbcl-cambl))
7319
7320(define-public ecl-cambl
7321 (sbcl-package->ecl-package sbcl-cambl))
b1df0d9f
GLV
7322
7323(define-public sbcl-cl-ledger
7324 (let ((commit "08e0be41795e804cd36142e51756ad0b1caa377b")
7325 (revision "1"))
7326 (package
7327 (name "sbcl-cl-ledger")
7328 (version (git-version "4.0.0" revision commit))
7329 (source
7330 (origin
7331 (method git-fetch)
7332 (uri (git-reference
7333 (url "https://github.com/ledger/cl-ledger.git")
7334 (commit commit)))
7335 (file-name (git-file-name name version))
7336 (sha256
7337 (base32
7338 "1via0qf6wjcyxnfbmfxjvms0ik9j8rqbifgpmnhrzvkhrq9pv8h1"))))
7339 (build-system asdf-build-system/sbcl)
7340 (inputs
7341 `(("cambl" ,sbcl-cambl)
7342 ("cl-ppcre" ,sbcl-cl-ppcre)
7343 ("local-time" ,sbcl-local-time)
7344 ("periods-series" ,sbcl-periods-series)))
7345 (arguments
7346 '(#:phases
7347 (modify-phases %standard-phases
7348 (add-after 'unpack 'fix-system-definition
7349 (lambda _
7350 (substitute* "cl-ledger.asd"
7351 ((" :build-operation program-op") "")
7352 ((" :build-pathname \"cl-ledger\"") "")
7353 ((" :entry-point \"ledger::main\"") ""))
7354 #t)))))
7355 (synopsis "Common Lisp port of the Ledger accounting system")
7356 (description
7357 "CL-Ledger is a Common Lisp port of the Ledger double-entry accounting
7358system.")
7359 (home-page "https://github.com/ledger/cl-ledger")
7360 (license license:bsd-3))))
7361
7362(define-public cl-ledger
7363 (sbcl-package->cl-source-package sbcl-cl-ledger))
7364
7365(define-public ecl-cl-ledger
7366 (sbcl-package->ecl-package sbcl-cl-ledger))
76b66fba
GLV
7367
7368(define-public sbcl-bst
7369 (let ((commit "34f9c7e8e0a9f2c952fe310ab36cb630d5d9c15a")
7370 (revision "1"))
7371 (package
7372 (name "sbcl-bst")
7373 (version (git-version "1.1" revision commit))
7374 (source
7375 (origin
7376 (method git-fetch)
7377 (uri (git-reference
7378 (url "https://github.com/glv2/bst.git")
7379 (commit commit)))
7380 (file-name (git-file-name name version))
7381 (sha256
7382 (base32
7383 "1amxns7hvvh4arwbh8ciwfzplg127vh37dnbamv1m1kmmnmihfc8"))))
7384 (build-system asdf-build-system/sbcl)
7385 (native-inputs
7386 `(("alexandria" ,sbcl-alexandria)
7387 ("fiveam" ,sbcl-fiveam)))
7388 (synopsis "Binary search tree for Common Lisp")
7389 (description
7390 "BST is a Common Lisp library for working with binary search trees that
7391can contain any kind of values.")
7392 (home-page "https://github.com/glv2/bst")
7393 (license license:gpl3))))
7394
7395(define-public cl-bst
7396 (sbcl-package->cl-source-package sbcl-bst))
7397
7398(define-public ecl-bst
7399 (sbcl-package->ecl-package sbcl-bst))
ed0ddadc
GLV
7400
7401(define-public sbcl-cl-octet-streams
7402 (package
7403 (name "sbcl-cl-octet-streams")
7404 (version "1.0")
7405 (source
7406 (origin
7407 (method git-fetch)
7408 (uri (git-reference
7409 (url "https://github.com/glv2/cl-octet-streams.git")
7410 (commit (string-append "v" version))))
7411 (file-name (git-file-name name version))
7412 (sha256
7413 (base32
7414 "1d7mn6ydv0j2x4r7clpc9ijjwrnfpxmvhifv8n5j7jh7s744sf8d"))))
7415 (build-system asdf-build-system/sbcl)
7416 (native-inputs
7417 `(("fiveam" ,sbcl-fiveam)))
7418 (inputs
7419 `(("trivial-gray-streams" ,sbcl-trivial-gray-streams)))
7420 (synopsis "In-memory octet streams for Common Lisp")
7421 (description
7422 "CL-octet-streams is a library implementing in-memory octet
7423streams for Common Lisp. It was inspired by the trivial-octet-streams and
7424cl-plumbing libraries.")
7425 (home-page "https://github.com/glv2/cl-octet-streams")
7426 (license license:gpl3+)))
7427
7428(define-public cl-octet-streams
7429 (sbcl-package->cl-source-package sbcl-cl-octet-streams))
7430
7431(define-public ecl-cl-octet-streams
7432 (sbcl-package->ecl-package sbcl-cl-octet-streams))
3012486d
GLV
7433
7434(define-public sbcl-lzlib
7435 (let ((commit "0de1db7129fef9a58a059d35a2fa2ecfc5b47b47")
7436 (revision "1"))
7437 (package
7438 (name "sbcl-lzlib")
7439 (version (git-version "1.0" revision commit))
7440 (source
7441 (origin
7442 (method git-fetch)
7443 (uri (git-reference
7444 (url "https://github.com/glv2/cl-lzlib.git")
7445 (commit commit)))
7446 (file-name (git-file-name name version))
7447 (sha256
7448 (base32
7449 "12ny7vj52fgnd8hb8fc8mry92vq4c1x72x2350191m4476j95clz"))))
7450 (build-system asdf-build-system/sbcl)
7451 (native-inputs
7452 `(("fiveam" ,sbcl-fiveam)))
7453 (inputs
7454 `(("cffi" ,sbcl-cffi)
7455 ("cl-octet-streams" ,sbcl-cl-octet-streams)
7456 ("lzlib" ,lzlib)))
7457 (arguments
7458 '(#:phases
7459 (modify-phases %standard-phases
7460 (add-after 'unpack 'fix-paths
7461 (lambda* (#:key inputs #:allow-other-keys)
7462 (substitute* "src/lzlib.lisp"
7463 (("liblz\\.so")
7464 (string-append (assoc-ref inputs "lzlib") "/lib/liblz.so")))
7465 #t)))))
7466 (synopsis "Common Lisp library for lzip (de)compression")
7467 (description
7468 "This Common Lisp library provides functions for lzip (LZMA)
7469compression/decompression using bindings to the lzlib C library.")
7470 (home-page "https://github.com/glv2/cl-lzlib")
7471 (license license:gpl3+))))
7472
7473(define-public cl-lzlib
7474 (sbcl-package->cl-source-package sbcl-lzlib))
7475
7476(define-public ecl-lzlib
7477 (sbcl-package->ecl-package sbcl-lzlib))
d3287fc1
GLV
7478
7479(define-public sbcl-chanl
7480 (let ((commit "2362b57550c2c9238cc882d03553aaa1040b7340")
7481 (revision "0"))
7482 (package
7483 (name "sbcl-chanl")
7484 (version (git-version "0.4.1" revision commit))
7485 (source
7486 (origin
7487 (method git-fetch)
7488 (uri (git-reference
7489 (url "https://github.com/zkat/chanl.git")
7490 (commit commit)))
7491 (file-name (git-file-name name version))
7492 (sha256
7493 (base32
7494 "0ag3wz7yrqwp0s5069wwda98z3rrqd25spg8sa8rdqghj084w28w"))))
7495 (build-system asdf-build-system/sbcl)
7496 (native-inputs
7497 `(("fiveam" ,sbcl-fiveam)))
7498 (inputs
7499 `(("bordeaux-threads" ,sbcl-bordeaux-threads)))
7500 (synopsis "Portable channel-based concurrency for Common Lisp")
7501 (description "Common Lisp library for channel-based concurrency. In
7502a nutshell, you create various threads sequentially executing tasks you need
7503done, and use channel objects to communicate and synchronize the state of these
7504threads.")
7505 (home-page "https://github.com/zkat/chanl")
7506 (license (list license:expat license:bsd-3)))))
7507
7508(define-public cl-chanl
7509 (sbcl-package->cl-source-package sbcl-chanl))
7510
7511(define-public ecl-chanl
7512 (let ((base (sbcl-package->ecl-package sbcl-chanl)))
7513 (package
7514 (inherit base)
7515 (arguments
7516 (substitute-keyword-arguments (package-arguments base)
7517 ;; The CHANL.ACTORS package uses the :ARGUMENTS option of
7518 ;; DEFINE-METHOD-COMBINATION, which is not implemented in ECL yet
7519 ;; (see https://gitlab.com/embeddable-common-lisp/ecl/issues/305).
7520 ;; So let's disable it for now, as it allows compiling the library
7521 ;; and using the rest of it.
7522 ((#:phases phases '%standard-phases)
7523 `(modify-phases ,phases
7524 (add-after 'unpack 'disable-chanl-actors
7525 (lambda _
7526 (substitute* "chanl.asd"
7527 (("\\(:file \"actors\"\\)") ""))
7528 #t))))
7529 ;; Disable the tests for now, as the SEND-SEQUENCE test seems to
7530 ;; never end.
7531 ((#:tests? _ #f) #f))))))
2601da05
GLV
7532
7533(define-public sbcl-cl-store
7534 (let ((commit "cd01f2610d3360dc01ab972bd9317407aaea7745")
7535 (revision "0"))
7536 (package
7537 (name "sbcl-cl-store")
7538 (version (git-version "0.8.11" revision commit))
7539 (source
7540 (origin
7541 (method git-fetch)
7542 (uri (git-reference
7543 (url "https://github.com/skypher/cl-store.git")
7544 (commit commit)))
7545 (file-name (git-file-name name version))
7546 (sha256
7547 (base32
7548 "05b7kh5af2ax7vlmphpac4vbqr84j5ivppj96qzb64fxpjpqglm4"))))
7549 (build-system asdf-build-system/sbcl)
7550 (native-inputs
7551 `(("rt" ,sbcl-rt)))
7552 (synopsis "Common Lisp library to serialize data")
7553 (description
7554 "CL-STORE is a portable serialization package which should give you the
7555ability to store all Common Lisp data types into streams.")
7556 (home-page "http://www.common-lisp.net/project/cl-store/")
7557 (license license:expat))))
7558
7559(define-public cl-store
7560 (sbcl-package->cl-source-package sbcl-cl-store))
7561
7562(define-public ecl-cl-store
7563 (sbcl-package->ecl-package sbcl-cl-store))
cec23736
PN
7564
7565(define-public sbcl-cl-gobject-introspection
7566 (let ((commit "7b703e2384945ea0ac39d9b766de434a08d81560")
7567 (revision "0"))
7568 (package
7569 (name "sbcl-cl-gobject-introspection")
7570 (version (git-version "0.3" revision commit))
7571 (home-page "https://github.com/andy128k/cl-gobject-introspection")
7572 (source
7573 (origin
7574 (method git-fetch)
7575 (uri (git-reference
7576 (url home-page)
7577 (commit commit)))
7578 (file-name (git-file-name name version))
7579 (sha256
7580 (base32
7581 "1zcqd2qj14f6b38vys8gr89s6cijsp9r8j43xa8lynilwva7bwyh"))))
7582 (build-system asdf-build-system/sbcl)
7583 (inputs
7584 `(("alexandria" ,sbcl-alexandria)
7585 ("cffi" ,sbcl-cffi)
7586 ("iterate" ,sbcl-iterate)
7587 ("trivial-garbage" ,sbcl-trivial-garbage)
7588 ("glib" ,glib)
7589 ("gobject-introspection" ,gobject-introspection)))
7590 (native-inputs
7591 `(("fiveam" ,sbcl-fiveam)))
7592 (arguments
7593 ;; TODO: Tests fail, see
7594 ;; https://github.com/andy128k/cl-gobject-introspection/issues/70.
7595 '(#:tests? #f
7596 #:phases
7597 (modify-phases %standard-phases
7598 (add-after (quote unpack) (quote fix-paths)
7599 (lambda* (#:key inputs #:allow-other-keys)
7600 (substitute* "src/init.lisp"
7601 (("libgobject-2\\.0\\.so")
7602 (string-append (assoc-ref inputs "glib") "/lib/libgobject-2.0.so"))
7603 (("libgirepository-1\\.0\\.so")
7604 (string-append (assoc-ref inputs "gobject-introspection")
7605 "/lib/libgirepository-1.0.so")))
7606 #t)))))
7607 (synopsis "Common Lisp bindings to GObject Introspection")
7608 (description
7609 "This library is a bridge between Common Lisp and GObject
7610Introspection, which enables Common Lisp programs to access the full interface
7611of C+GObject libraries without the need of writing dedicated bindings.")
7612 (license (list license:bsd-3
7613 ;; Tests are under a different license.
7614 license:llgpl)))))
7615
7616(define-public cl-gobject-introspection
7617 (sbcl-package->cl-source-package sbcl-cl-gobject-introspection))
3658db3f
PN
7618
7619(define-public sbcl-string-case
7620 (let ((commit "718c761e33749e297cd2809c7ba3ade1985c49f7")
7621 (revision "0"))
7622 (package
7623 (name "sbcl-string-case")
7624 (version (git-version "0.0.2" revision commit))
7625 (home-page "https://github.com/pkhuong/string-case")
7626 (source
7627 (origin
7628 (method git-fetch)
7629 (uri (git-reference
7630 (url home-page)
7631 (commit commit)))
7632 (file-name (git-file-name name version))
7633 (sha256
7634 (base32
7635 "1n5i3yh0h5s636rcnwn7jwqy3rjflikra04lymimhpcshhjsk0md"))))
7636 (build-system asdf-build-system/sbcl)
7637 (synopsis "Efficient string= case in Common Lisp")
7638 (description
7639 "@code{string-case} is a Common Lisp macro that generates specialised decision
7640trees to dispatch on string equality.")
7641 (license license:bsd-3))))
7642
7643(define-public cl-string-case
7644 (sbcl-package->cl-source-package sbcl-string-case))
7645
7646(define-public ecl-string-case
7647 (sbcl-package->ecl-package sbcl-string-case))
003a714e
PN
7648
7649(define-public sbcl-global-vars
7650 (let ((commit "c749f32c9b606a1457daa47d59630708ac0c266e")
7651 (revision "0"))
7652 (package
7653 (name "sbcl-global-vars")
7654 (version (git-version "1.0.0" revision commit))
7655 (home-page "https://github.com/lmj/global-vars")
7656 (source
7657 (origin
7658 (method git-fetch)
7659 (uri (git-reference
7660 (url home-page)
7661 (commit commit)))
7662 (file-name (git-file-name name version))
7663 (sha256
7664 (base32
7665 "06m3xc8l3pgsapl8fvsi9wf6y46zs75cp9zn7zh6dc65v4s5wz3d"))))
7666 (build-system asdf-build-system/sbcl)
7667 (synopsis "Efficient global variables in Common Lisp")
7668 (description
7669 "In Common Lisp, a special variable that is never dynamically bound
7670typically serves as a stand-in for a global variable. The @code{global-vars}
7671library provides true global variables that are implemented by some compilers.
7672An attempt to rebind a global variable properly results in a compiler error.
7673That is, a global variable cannot be dynamically bound.
7674
7675Global variables therefore allow us to communicate an intended usage that
7676differs from special variables. Global variables are also more efficient than
7677special variables, especially in the presence of threads.")
7678 (license license:expat))))
7679
7680(define-public cl-global-vars
7681 (sbcl-package->cl-source-package sbcl-global-vars))
7682
7683(define-public ecl-global-vars
7684 (sbcl-package->ecl-package sbcl-global-vars))
c6dd9cf7
PN
7685
7686(define-public sbcl-trivial-file-size
7687 (let ((commit "1c1d672a01a446ba0391dbb4ffc40be3b0476f23")
7688 (revision "0"))
7689 (package
7690 (name "sbcl-trivial-file-size")
7691 (version (git-version "0.0.0" revision commit))
7692 (home-page "https://github.com/ruricolist/trivial-file-size")
7693 (source
7694 (origin
7695 (method git-fetch)
7696 (uri (git-reference
7697 (url home-page)
7698 (commit commit)))
7699 (file-name (git-file-name name version))
7700 (sha256
7701 (base32
7702 "17pp86c9zs4y7i1sh7q9gbfw9iqv6655k7fz8qbj9ly1ypgxp4qs"))))
7703 (build-system asdf-build-system/sbcl)
7704 (native-inputs
7705 `(("fiveam" ,sbcl-fiveam)))
7706 (synopsis "Size of a file in bytes in Common Lisp")
7707 (description
7708 "The canonical way to determine the size of a file in bytes, using Common Lisp,
7709is to open the file with an element type of (unsigned-byte 8) and then
7710calculate the length of the stream. This is less than ideal. In most cases
7711it is better to get the size of the file from its metadata, using a system
7712call.
7713
7714This library exports a single function, file-size-in-octets. It returns the
7715size of a file in bytes, using system calls when possible.")
7716 (license license:expat))))
7717
7718(define-public cl-trivial-file-size
7719 (sbcl-package->cl-source-package sbcl-trivial-file-size))
7720
7721(define-public ecl-trivial-file-size
7722 (sbcl-package->ecl-package sbcl-trivial-file-size))
fa4bbd9f
PN
7723
7724(define-public sbcl-trivial-macroexpand-all
7725 (let ((commit "933270ac7107477de1bc92c1fd641fe646a7a8a9")
7726 (revision "0"))
7727 (package
7728 (name "sbcl-trivial-macroexpand-all")
7729 (version (git-version "0.0.0" revision commit))
7730 (home-page "https://github.com/cbaggers/trivial-macroexpand-all")
7731 (source
7732 (origin
7733 (method git-fetch)
7734 (uri (git-reference
7735 (url home-page)
7736 (commit commit)))
7737 (file-name (git-file-name name version))
7738 (sha256
7739 (base32
7740 "191hnn4b5j4i3crydmlzbm231kj0h7l8zj6mzj69r1npbzkas4bd"))))
7741 (build-system asdf-build-system/sbcl)
7742 (native-inputs
7743 `(("fiveam" ,sbcl-fiveam)))
7744 (synopsis "Portable macroexpand-all for Common Lisp")
7745 (description
7746 "This library provides a macroexpand-all function that calls the
7747implementation specific equivalent.")
7748 (license license:unlicense))))
7749
7750(define-public cl-trivial-macroexpand-all
7751 (sbcl-package->cl-source-package sbcl-trivial-macroexpand-all))
7752
7753(define-public ecl-trivial-macroexpand-all
7754 (sbcl-package->ecl-package sbcl-trivial-macroexpand-all))
d57660c5
PN
7755
7756(define-public sbcl-serapeum
7757 (let ((commit "65837f8a0d65b36369ec8d000fff5c29a395b5fe")
7758 (revision "0"))
7759 (package
7760 (name "sbcl-serapeum")
7761 (version (git-version "0.0.0" revision commit))
7762 (home-page "https://github.com/ruricolist/serapeum")
7763 (source
7764 (origin
7765 (method git-fetch)
7766 (uri (git-reference
7767 (url home-page)
7768 (commit commit)))
7769 (file-name (git-file-name name version))
7770 (sha256
7771 (base32
7772 "0clwf81r2lvk1rbfvk91s9zmbkas9imf57ilqclw12mxaxlfsnbw"))))
7773 (build-system asdf-build-system/sbcl)
7774 (inputs
7775 `(("alexandria" ,sbcl-alexandria)
7776 ("trivia" ,sbcl-trivia)
7777 ("trivia.quasiquote" ,sbcl-trivia.quasiquote)
7778 ("split-sequence" ,sbcl-split-sequence)
7779 ("string-case" ,sbcl-string-case)
7780 ("parse-number" ,sbcl-parse-number)
7781 ("trivial-garbage" ,sbcl-trivial-garbage)
7782 ("bordeaux-threads" ,sbcl-bordeaux-threads)
7783 ("named-readtables" ,sbcl-named-readtables)
7784 ("fare-quasiquote-extras" ,cl-fare-quasiquote-extras)
7785 ("parse-declarations-1.0" ,sbcl-parse-declarations)
7786 ("global-vars" ,sbcl-global-vars)
7787 ("trivial-file-size" ,sbcl-trivial-file-size)
7788 ("trivial-macroexpand-all" ,sbcl-trivial-macroexpand-all)))
7789 (native-inputs
7790 `(("fiveam" ,sbcl-fiveam)
7791 ("local-time" ,sbcl-local-time)))
7792 (arguments
7793 '(#:phases
7794 (modify-phases %standard-phases
7795 (add-after 'unpack 'disable-failing-tests
7796 (lambda* (#:key inputs #:allow-other-keys)
7797 (substitute* "serapeum.asd"
7798 ;; Guix does not have Quicklisp, and probably never will.
7799 (("\\(:file \"quicklisp\"\\)") ""))
7800 #t)))))
7801 (synopsis "Common Lisp utility library beyond Alexandria")
7802 (description
7803 "Serapeum is a conservative library of Common Lisp utilities. It is a
7804supplement, not a competitor, to Alexandria.")
7805 (license license:expat))))
7806
7807(define-public cl-serapeum
7808 (sbcl-package->cl-source-package sbcl-serapeum))
f733862c
GLV
7809
7810(define-public sbcl-arrows
7811 (let ((commit "df7cf0067e0132d9697ac8b1a4f1b9c88d4f5382")
7812 (revision "0"))
7813 (package
7814 (name "sbcl-arrows")
7815 (version (git-version "0.2.0" revision commit))
7816 (source
7817 (origin
7818 (method git-fetch)
7819 (uri (git-reference
7820 (url "https://gitlab.com/Harleqin/arrows.git")
7821 (commit commit)))
7822 (file-name (git-file-name name version))
7823 (sha256
7824 (base32
7825 "042k9vkssrqx9nhp14wdzm942zgdxvp35mba0p2syz98i75im2yy"))))
7826 (build-system asdf-build-system/sbcl)
7827 (native-inputs
7828 `(("hu.dwim.stefil" ,sbcl-hu.dwim.stefil)))
7829 (synopsis "Clojure-like arrow macros for Common Lisp")
7830 (description
7831 "This library implements the @code{->} and @code{->>} macros from
7832Clojure, as well as several expansions on the idea.")
7833 (home-page "https://gitlab.com/Harleqin/arrows")
7834 (license license:public-domain))))
7835
7836(define-public cl-arrows
7837 (sbcl-package->cl-source-package sbcl-arrows))
7838
7839(define-public ecl-arrows
7840 (sbcl-package->ecl-package sbcl-arrows))
f2d6d9b8
GLV
7841
7842(define-public sbcl-simple-parallel-tasks
7843 (let ((commit "db460f7a3f7bbfe2d3a2223ed21e162068d04dda")
7844 (revision "0"))
7845 (package
7846 (name "sbcl-simple-parallel-tasks")
7847 (version (git-version "1.0" revision commit))
7848 (source
7849 (origin
7850 (method git-fetch)
7851 (uri (git-reference
7852 (url "https://github.com/glv2/simple-parallel-tasks.git")
7853 (commit commit)))
7854 (file-name (git-file-name name version))
7855 (sha256
7856 (base32
7857 "0amw3qk23wnlyrsgzszs6rs7y4zvxv8dr03rnqhc60mnm8ds4dd5"))))
7858 (build-system asdf-build-system/sbcl)
7859 (native-inputs
7860 `(("fiveam" ,sbcl-fiveam)))
7861 (inputs
7862 `(("chanl" ,sbcl-chanl)))
7863 (synopsis "Common Lisp library to evaluate some forms in parallel")
7864 (description "This is a simple Common Lisp library to evaluate some
7865forms in parallel.")
7866 (home-page "https://github.com/glv2/simple-parallel-tasks")
7867 (license license:gpl3))))
7868
7869(define-public cl-simple-parallel-tasks
7870 (sbcl-package->cl-source-package sbcl-simple-parallel-tasks))
7871
7872(define-public ecl-simple-parallel-tasks
7873 (sbcl-package->ecl-package sbcl-simple-parallel-tasks))
487392ce
GLV
7874
7875(define-public sbcl-cl-heap
7876 (package
7877 (name "sbcl-cl-heap")
7878 (version "0.1.6")
7879 (source
7880 (origin
7881 (method url-fetch)
7882 (uri (string-append "https://common-lisp.net/project/cl-heap/releases/"
7883 "cl-heap_" version ".tar.gz"))
7884 (sha256
7885 (base32
7886 "163hb07p2nxz126rpq3cj5dyala24n0by5i5786n2qcr1w0bak4i"))))
7887 (build-system asdf-build-system/sbcl)
7888 (native-inputs
7889 `(("xlunit" ,sbcl-xlunit)))
7890 (arguments
7891 `(#:test-asd-file "cl-heap-tests.asd"))
7892 (synopsis "Heap and priority queue data structures for Common Lisp")
7893 (description
7894 "CL-HEAP provides various implementations of heap data structures (a
7895binary heap and a Fibonacci heap) as well as an efficient priority queue.")
7896 (home-page "https://common-lisp.net/project/cl-heap/")
7897 (license license:gpl3+)))
7898
7899(define-public cl-heap
7900 (sbcl-package->cl-source-package sbcl-cl-heap))
7901
7902(define-public ecl-cl-heap
7903 (sbcl-package->ecl-package sbcl-cl-heap))
bb20a990
GLV
7904
7905(define-public sbcl-curry-compose-reader-macros
7906 (let ((commit "beaa92dedf392726c042184bfd6149fa8d9e6ac2")
7907 (revision "0"))
7908 (package
7909 (name "sbcl-curry-compose-reader-macros")
7910 (version (git-version "1.0.0" revision commit))
7911 (source
7912 (origin
7913 (method git-fetch)
7914 (uri
7915 (git-reference
7916 (url "https://github.com/eschulte/curry-compose-reader-macros.git")
7917 (commit commit)))
7918 (file-name (git-file-name name version))
7919 (sha256
7920 (base32
7921 "0rv9bl8xrad5wfcg5zs1dazvnpmvqz6297lbn8bywsrcfnlf7h98"))))
7922 (build-system asdf-build-system/sbcl)
7923 (inputs
7924 `(("alexandria" ,sbcl-alexandria)
7925 ("named-readtables" ,sbcl-named-readtables)))
7926 (synopsis "Reader macros for partial application and composition")
7927 (description
7928 "This Common Lisp library provides reader macros for concise expression
7929of function partial application and composition.")
7930 (home-page "https://eschulte.github.io/curry-compose-reader-macros/")
7931 (license license:public-domain))))
7932
7933(define-public cl-curry-compose-reader-macros
7934 (sbcl-package->cl-source-package sbcl-curry-compose-reader-macros))
7935
7936(define-public ecl-curry-compose-reader-macros
7937 (sbcl-package->ecl-package sbcl-curry-compose-reader-macros))
9d9a82d9
GLV
7938
7939(define-public sbcl-yason
7940 (package
7941 (name "sbcl-yason")
7942 (version "0.7.7")
7943 (source
7944 (origin
7945 (method git-fetch)
7946 (uri (git-reference
7947 (url "https://github.com/phmarek/yason.git")
7948 (commit (string-append "v" version))))
7949 (file-name (git-file-name name version))
7950 (sha256
7951 (base32
7952 "0479rbjgbj80jpk5bby18inlv1kfp771a82rlcq5psrz65qqa9bj"))))
7953 (build-system asdf-build-system/sbcl)
7954 (inputs
7955 `(("alexandria" ,sbcl-alexandria)
7956 ("trivial-gray-streams" ,sbcl-trivial-gray-streams)))
7957 (synopsis "Common Lisp JSON parser/encoder")
7958 (description
7959 "YASON is a Common Lisp library for encoding and decoding data in the
7960JSON interchange format.")
7961 (home-page "https://github.com/phmarek/yason")
7962 (license license:bsd-3)))
7963
7964(define-public cl-yason
7965 (sbcl-package->cl-source-package sbcl-yason))
7966
7967(define-public ecl-yason
7968 (sbcl-package->ecl-package sbcl-yason))
54d761d3
GLV
7969
7970(define-public sbcl-stefil
7971 (let ((commit "0398548ec95dceb50fc2c2c03e5fb0ce49b86c7a")
7972 (revision "0"))
7973 (package
7974 (name "sbcl-stefil")
7975 (version (git-version "0.1" revision commit))
7976 (source
7977 (origin
7978 (method git-fetch)
7979 (uri (git-reference
7980 (url "https://gitlab.common-lisp.net/stefil/stefil.git")
7981 (commit commit)))
7982 (file-name (git-file-name name version))
7983 (sha256
7984 (base32
7985 "0bqz64q2szzhf91zyqyssmvrz7da6442rs01808pf3wrdq28bclh"))))
7986 (build-system asdf-build-system/sbcl)
7987 (inputs
7988 `(("alexandria" ,sbcl-alexandria)
7989 ("iterate" ,sbcl-iterate)
7990 ("metabang-bind" ,sbcl-metabang-bind)))
7991 (propagated-inputs
7992 ;; Swank doesn't have a pre-compiled package, therefore we must
7993 ;; propagate its sources.
7994 `(("swank" ,cl-slime-swank)))
7995 (arguments
7996 '(#:phases
7997 (modify-phases %standard-phases
7998 (add-after 'unpack 'drop-unnecessary-dependency
7999 (lambda _
8000 (substitute* "package.lisp"
8001 ((":stefil-system") ""))
8002 #t)))))
8003 (home-page "https://common-lisp.net/project/stefil/index-old.shtml")
8004 (synopsis "Simple test framework")
8005 (description
8006 "Stefil is a simple test framework for Common Lisp, with a focus on
8007interactive development.")
8008 (license license:public-domain))))
8009
8010(define-public cl-stefil
8011 (sbcl-package->cl-source-package sbcl-stefil))
9574d420
GLV
8012
8013(define-public sbcl-graph
8014 (let ((commit "78bf9ec930d8eae4f0861b5be76765fb1e45e24f")
8015 (revision "0"))
8016 (package
8017 (name "sbcl-graph")
8018 (version (git-version "0.0.0" revision commit))
8019 (source
8020 (origin
8021 (method git-fetch)
8022 (uri
8023 (git-reference
8024 (url "https://github.com/eschulte/graph.git")
8025 (commit commit)))
8026 (file-name (git-file-name name version))
8027 (sha256
8028 (base32
8029 "1qpij4xh8bqwc2myahpilcbh916v7vg0acz2fij14d3y0jm02h0g"))
8030 (patches (search-patches "sbcl-graph-asdf-definitions.patch"))))
8031 (build-system asdf-build-system/sbcl)
8032 (native-inputs
8033 `(("stefil" ,sbcl-stefil)))
8034 (inputs
8035 `(("alexandria" ,sbcl-alexandria)
8036 ("cl-heap" ,sbcl-cl-heap)
8037 ("curry-compose-reader-macros" ,sbcl-curry-compose-reader-macros)
8038 ("metabang-bind" ,sbcl-metabang-bind)
8039 ("named-readtables" ,sbcl-named-readtables)))
8040 (arguments
8041 '(#:test-asd-file "graph.test.asd"))
8042 (synopsis "Graph data structure and algorithms for Common Lisp")
8043 (description
8044 "The GRAPH Common Lisp library provides a data structures to represent
8045graphs, as well as some graph manipulation and analysis algorithms (shortest
8046path, maximum flow, minimum spanning tree, etc.).")
8047 (home-page "https://eschulte.github.io/graph/")
8048 (license license:gpl3+))))
8049
8050(define-public cl-graph
8051 (sbcl-package->cl-source-package sbcl-graph))
a4daf996
GLV
8052
8053(define-public sbcl-graph-dot
8054 (package
8055 (inherit sbcl-graph)
8056 (name "sbcl-graph-dot")
8057 (inputs
8058 `(("alexandria" ,sbcl-alexandria)
8059 ("cl-ppcre" ,sbcl-cl-ppcre)
8060 ("curry-compose-reader-macros" ,sbcl-curry-compose-reader-macros)
8061 ("graph" ,sbcl-graph)
8062 ("metabang-bind" ,sbcl-metabang-bind)
8063 ("named-readtables" ,sbcl-named-readtables)))
8064 (arguments
8065 (substitute-keyword-arguments (package-arguments sbcl-graph)
8066 ((#:asd-file _ "") "graph.dot.asd")
8067 ((#:asd-system-name _ #f) "graph-dot")))
8068 (synopsis "Serialize graphs to and from DOT format")))
b090bdc9
GLV
8069
8070(define-public sbcl-graph-json
8071 (package
8072 (inherit sbcl-graph)
8073 (name "sbcl-graph-json")
8074 (inputs
8075 `(("alexandria" ,sbcl-alexandria)
8076 ("curry-compose-reader-macros" ,sbcl-curry-compose-reader-macros)
8077 ("graph" ,sbcl-graph)
8078 ("metabang-bind" ,sbcl-metabang-bind)
8079 ("named-readtables" ,sbcl-named-readtables)
8080 ("yason" ,sbcl-yason)))
8081 (arguments
8082 (substitute-keyword-arguments (package-arguments sbcl-graph)
8083 ((#:asd-file _ "") "graph.json.asd")
8084 ((#:asd-system-name _ #f) "graph-json")))
8085 (synopsis "Serialize graphs to and from JSON format")))