gnu: sbcl-lack-middleware-static: Provide a file-name.
[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")
b8fb4d24 331 (version "1.5.8")
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
b8fb4d24 338 (base32 "0k7zjrky8r2krkd8780cph214hiihg9nh5rxn4nrhg6i6f8jymw4"))
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)))
cfbd9b42 4926 (file-name (git-file-name "lack-request" version))
d98d1485
KCB
4927 (sha256
4928 (base32 "1avh4ygcj9xcx4m17nj0wnxxaisk26w4ljs2bibzxaln24x7pi85"))))
4929 (build-system asdf-build-system/sbcl)
4930 (arguments
4931 '(#:asd-file "lack-request.asd"
4932 #:asd-system-name "lack-request"
4933 #:test-asd-file "t-lack-request.asd"
4934 ;; XXX: Component :CLACK-TEST not found
4935 #:tests? #f))
4936 (native-inputs
4937 `(("sbcl-prove-asdf" ,sbcl-prove-asdf)
4938 ("sbcl-prove" ,sbcl-prove)))
4939 (inputs
4940 `(("sbcl-quri" ,sbcl-quri)
4941 ("sbcl-http-body" ,sbcl-http-body)
4942 ("sbcl-circular-streams" ,sbcl-circular-streams)))
4943 (home-page "https://github.com/fukamachi/lack")
4944 (synopsis "Lack, the core of Clack")
4945 (description
4946 "Lack is a Common Lisp library which allows web applications to be
4947constructed of modular components. It was originally a part of Clack, however
4948it's going to be rewritten as an individual project since Clack v2 with
4949performance and simplicity in mind.")
4950 (license license:llgpl))))
4951
4952(define-public cl-lack-request
4953 (sbcl-package->cl-source-package sbcl-lack-request))
ffc1d945
KCB
4954
4955(define-public sbcl-local-time
4956 (let ((commit "beac054eef428552b63d4ae7820c32ffef9a3015")
4957 (revision "1"))
4958 (package
4959 (name "sbcl-local-time")
4960 (version (git-version "1.0.6" revision commit))
4961 (source
4962 (origin
4963 (method git-fetch)
4964 (uri (git-reference
4965 (url "https://github.com/dlowe-net/local-time.git")
4966 (commit commit)))
4967 (file-name (git-file-name name version))
4968 (sha256
4969 (base32 "0xhkmgxh41dg2wwlsp0h2l41jp144xn4gpxhh0lna6kh0560w2cc"))))
4970 (build-system asdf-build-system/sbcl)
4971 (arguments
4972 ;; TODO: Component :STEFIL not found, required by #<SYSTEM
4973 ;; "local-time/test">
4974 '(#:tests? #f))
4975 (native-inputs
4976 `(("stefil" ,sbcl-hu.dwim.stefil)))
4977 (inputs
4978 `(("sbcl-cl-fad" ,sbcl-cl-fad)))
4979 (home-page "https://common-lisp.net/project/local-time/")
4980 (synopsis "Time manipulation library for Common Lisp")
4981 (description
4982 "The LOCAL-TIME library is a Common Lisp library for the manipulation of
4983dates and times. It is based almost entirely upon Erik Naggum's paper \"The
4984Long Painful History of Time\".")
4985 (license license:expat))))
4986
4987(define-public cl-local-time
4988 (sbcl-package->cl-source-package sbcl-local-time))
fb383668
KCB
4989
4990(define-public sbcl-lack-response
4991 (let ((commit "abff8efeb0c3a848e6bb0022f2b8b7fa3a1bc88b")
4992 (revision "1"))
4993 (package
4994 (name "sbcl-lack-response")
4995 (version (git-version "0.1.0" revision commit))
4996 (source
4997 (origin
4998 (method git-fetch)
4999 (uri (git-reference
5000 (url "https://github.com/fukamachi/lack.git")
5001 (commit commit)))
5002 (file-name (git-file-name name version))
5003 (sha256
5004 (base32 "1avh4ygcj9xcx4m17nj0wnxxaisk26w4ljs2bibzxaln24x7pi85"))))
5005 (build-system asdf-build-system/sbcl)
5006 (arguments
5007 '(#:asd-file "lack-response.asd"
5008 #:asd-system-name "lack-response"
5009 ;; XXX: no tests for lack-response.
5010 #:tests? #f))
5011 (native-inputs
5012 `(("sbcl-prove-asdf" ,sbcl-prove-asdf)
5013 ("sbcl-prove" ,sbcl-prove)))
5014 (inputs
5015 `(("sbcl-quri" ,sbcl-quri)
5016 ("sbcl-http-body" ,sbcl-http-body)
5017 ("sbcl-circular-streams" ,sbcl-circular-streams)
5018 ("sbcl-local-time" ,sbcl-local-time)))
5019 (home-page "https://github.com/fukamachi/lack")
5020 (synopsis "Lack, the core of Clack")
5021 (description
5022 "Lack is a Common Lisp library which allows web applications to be
5023constructed of modular components. It was originally a part of Clack, however
5024it's going to be rewritten as an individual project since Clack v2 with
5025performance and simplicity in mind.")
5026 (license license:llgpl))))
5027
5028(define-public cl-lack-response
5029 (sbcl-package->cl-source-package sbcl-lack-response))
3583ba04
KCB
5030
5031(define-public sbcl-lack-component
5032 (let ((commit "abff8efeb0c3a848e6bb0022f2b8b7fa3a1bc88b")
5033 (revision "1"))
5034 (package
5035 (name "sbcl-lack-component")
5036 (version (git-version "0.0.0" revision commit))
5037 (source
5038 (origin
5039 (method git-fetch)
5040 (uri (git-reference
5041 (url "https://github.com/fukamachi/lack.git")
5042 (commit commit)))
3b1e29ae 5043 (file-name (git-file-name "lack-component" version))
3583ba04
KCB
5044 (sha256
5045 (base32 "1avh4ygcj9xcx4m17nj0wnxxaisk26w4ljs2bibzxaln24x7pi85"))))
5046 (build-system asdf-build-system/sbcl)
5047 (arguments
5048 '(#:asd-file "lack-component.asd"
5049 #:asd-system-name "lack-component"
5050 #:test-asd-file "t-lack-component.asd"
5051 ;; XXX: Component :LACK-TEST not found
5052 #:tests? #f))
5053 (native-inputs
5054 `(("prove-asdf" ,sbcl-prove-asdf)))
5055 (home-page "https://github.com/fukamachi/lack")
5056 (synopsis "Lack, the core of Clack")
5057 (description
5058 "Lack is a Common Lisp library which allows web applications to be
5059constructed of modular components. It was originally a part of Clack, however
5060it's going to be rewritten as an individual project since Clack v2 with
5061performance and simplicity in mind.")
5062 (license license:llgpl))))
5063
5064(define-public cl-lack-component
5065 (sbcl-package->cl-source-package sbcl-lack-component))
08295e6f
KCB
5066
5067(define-public sbcl-lack-util
5068 (let ((commit "abff8efeb0c3a848e6bb0022f2b8b7fa3a1bc88b")
5069 (revision "1"))
5070 (package
5071 (name "sbcl-lack-util")
5072 (version (git-version "0.1.0" revision commit))
5073 (source
5074 (origin
5075 (method git-fetch)
5076 (uri (git-reference
5077 (url "https://github.com/fukamachi/lack.git")
5078 (commit commit)))
b61fcdca 5079 (file-name (git-file-name "lack-util" version))
08295e6f
KCB
5080 (sha256
5081 (base32 "1avh4ygcj9xcx4m17nj0wnxxaisk26w4ljs2bibzxaln24x7pi85"))))
5082 (build-system asdf-build-system/sbcl)
5083 (arguments
5084 '(#:asd-file "lack-util.asd"
5085 #:asd-system-name "lack-util"
5086 #:test-asd-file "t-lack-util.asd"
5087 ;; XXX: Component :LACK-TEST not found
5088 #:tests? #f))
5089 (native-inputs
5090 `(("prove-asdf" ,sbcl-prove-asdf)))
5091 (inputs
5092 `(("sbcl-ironclad" ,sbcl-ironclad)))
5093 (home-page "https://github.com/fukamachi/lack")
5094 (synopsis "Lack, the core of Clack")
5095 (description
5096 "Lack is a Common Lisp library which allows web applications to be
5097constructed of modular components. It was originally a part of Clack, however
5098it's going to be rewritten as an individual project since Clack v2 with
5099performance and simplicity in mind.")
5100 (license license:llgpl))))
5101
5102(define-public cl-lack-util
5103 (sbcl-package->cl-source-package sbcl-lack-util))
d3da4b37
KCB
5104
5105(define-public sbcl-lack-middleware-backtrace
5106 (let ((commit "abff8efeb0c3a848e6bb0022f2b8b7fa3a1bc88b")
5107 (revision "1"))
5108 (package
5109 (name "sbcl-lack-middleware-backtrace")
5110 (version (git-version "0.1.0" revision commit))
5111 (source
5112 (origin
5113 (method git-fetch)
5114 (uri (git-reference
5115 (url "https://github.com/fukamachi/lack.git")
5116 (commit commit)))
5af7378a 5117 (file-name (git-file-name "lack-middleware-backtrace" version))
d3da4b37
KCB
5118 (sha256
5119 (base32 "1avh4ygcj9xcx4m17nj0wnxxaisk26w4ljs2bibzxaln24x7pi85"))))
5120 (build-system asdf-build-system/sbcl)
5121 (arguments
5122 '(#:asd-file "lack-middleware-backtrace.asd"
5123 #:asd-system-name "lack-middleware-backtrace"
5124 #:test-asd-file "t-lack-middleware-backtrace.asd"
5125 ;; XXX: Component :LACK not found
5126 #:tests? #f))
5127 (native-inputs
5128 `(("prove-asdf" ,sbcl-prove-asdf)))
5129 (home-page "https://github.com/fukamachi/lack")
5130 (synopsis "Lack, the core of Clack")
5131 (description
5132 "Lack is a Common Lisp library which allows web applications to be
5133constructed of modular components. It was originally a part of Clack, however
5134it's going to be rewritten as an individual project since Clack v2 with
5135performance and simplicity in mind.")
5136 (license license:llgpl))))
5137
5138(define-public cl-lack-middleware-backtrace
5139 (sbcl-package->cl-source-package sbcl-lack-middleware-backtrace))
ac99157f
KCB
5140
5141(define-public sbcl-trivial-mimes
5142 (let ((commit "303f8ac0aa6ca0bc139aa3c34822e623c3723fab")
5143 (revision "1"))
5144 (package
5145 (name "sbcl-trivial-mimes")
5146 (version (git-version "1.1.0" revision commit))
5147 (source
5148 (origin
5149 (method git-fetch)
5150 (uri (git-reference
5151 (url "https://github.com/Shinmera/trivial-mimes.git")
5152 (commit commit)))
5153 (file-name (git-file-name name version))
5154 (sha256
5155 (base32 "17jxgl47r695bvsb7wi3n2ws5rp1zzgvw0zii8cy5ggw4b4ayv6m"))))
5156 (build-system asdf-build-system/sbcl)
5157 (arguments
5158 '(#:phases
5159 (modify-phases %standard-phases
5160 (add-after
5161 'unpack 'fix-paths
5162 (lambda* (#:key inputs #:allow-other-keys)
5163 (let ((anchor "#p\"/etc/mime.types\""))
5164 (substitute* "mime-types.lisp"
5165 ((anchor all)
5166 (string-append
5167 anchor "\n"
55af9fe0
GLV
5168 "(asdf:system-relative-pathname :trivial-mimes "
5169 "\"../../share/common-lisp/" (%lisp-type)
5170 "-source/trivial-mimes/mime.types\")")))))))))
ac99157f
KCB
5171 (native-inputs
5172 `(("stefil" ,sbcl-hu.dwim.stefil)))
5173 (inputs
5174 `(("sbcl-cl-fad" ,sbcl-cl-fad)))
5175 (home-page "http://shinmera.github.io/trivial-mimes/")
5176 (synopsis "Tiny Common Lisp library to detect mime types in files")
5177 (description
5178 "This is a teensy library that provides some functions to determine the
5179mime-type of a file.")
5180 (license license:artistic2.0))))
5181
5182(define-public cl-trivial-mimes
5183 (sbcl-package->cl-source-package sbcl-trivial-mimes))
dba50058 5184
85a89853
GLV
5185(define-public ecl-trivial-mimes
5186 (sbcl-package->ecl-package sbcl-trivial-mimes))
5187
dba50058
KCB
5188(define-public sbcl-lack-middleware-static
5189 (let ((commit "abff8efeb0c3a848e6bb0022f2b8b7fa3a1bc88b")
5190 (revision "1"))
5191 (package
5192 (name "sbcl-lack-middleware-static")
5193 (version (git-version "0.1.0" revision commit))
5194 (source
5195 (origin
5196 (method git-fetch)
5197 (uri (git-reference
5198 (url "https://github.com/fukamachi/lack.git")
5199 (commit commit)))
d49eb36e 5200 (file-name (git-file-name "lack-middleware-static" version))
dba50058
KCB
5201 (sha256
5202 (base32 "1avh4ygcj9xcx4m17nj0wnxxaisk26w4ljs2bibzxaln24x7pi85"))))
5203 (build-system asdf-build-system/sbcl)
5204 (arguments
5205 '(#:asd-file "lack-middleware-static.asd"
5206 #:asd-system-name "lack-middleware-static"
5207 #:test-asd-file "t-lack-middleware-static.asd"
5208 ;; XXX: Component :LACK not found
5209 #:tests? #f))
5210 (native-inputs
5211 `(("prove-asdf" ,sbcl-prove-asdf)))
5212 (inputs
5213 `(("sbcl-ironclad" ,sbcl-ironclad)
5214 ("sbcl-trivial-mimes" ,sbcl-trivial-mimes)
5215 ("sbcl-local-time" ,sbcl-local-time)))
5216 (home-page "https://github.com/fukamachi/lack")
5217 (synopsis "Lack, the core of Clack")
5218 (description
5219 "Lack is a Common Lisp library which allows web applications to be
5220constructed of modular components. It was originally a part of Clack, however
5221it's going to be rewritten as an individual project since Clack v2 with
5222performance and simplicity in mind.")
5223 (license license:llgpl))))
5224
5225(define-public cl-lack-middleware-static
5226 (sbcl-package->cl-source-package sbcl-lack-middleware-static))
77a5b9fe
KCB
5227
5228(define-public sbcl-lack
5229 (let ((commit "abff8efeb0c3a848e6bb0022f2b8b7fa3a1bc88b")
5230 (revision "1"))
5231 (package
5232 (name "sbcl-lack")
5233 (version (git-version "0.1.0" revision commit))
5234 (source
5235 (origin
5236 (method git-fetch)
5237 (uri (git-reference
5238 (url "https://github.com/fukamachi/lack.git")
5239 (commit commit)))
c2db64ca 5240 (file-name (git-file-name "lack" version))
77a5b9fe
KCB
5241 (sha256
5242 (base32 "1avh4ygcj9xcx4m17nj0wnxxaisk26w4ljs2bibzxaln24x7pi85"))))
5243 (build-system asdf-build-system/sbcl)
5244 (arguments
5245 '(#:test-asd-file "t-lack.asd"
5246 ;; XXX: Component :CLACK not found
5247 #:tests? #f))
5248 (native-inputs
5249 `(("prove-asdf" ,sbcl-prove-asdf)))
5250 (inputs
5251 `(("sbcl-lack-component" ,sbcl-lack-component)
5252 ("sbcl-lack-util" ,sbcl-lack-util)))
5253 (home-page "https://github.com/fukamachi/lack")
5254 (synopsis "Lack, the core of Clack")
5255 (description
5256 "Lack is a Common Lisp library which allows web applications to be
5257constructed of modular components. It was originally a part of Clack, however
5258it's going to be rewritten as an individual project since Clack v2 with
5259performance and simplicity in mind.")
5260 (license license:llgpl))))
5261
5262(define-public cl-lack
5263 (sbcl-package->cl-source-package sbcl-lack))
7e2404a5
KCB
5264
5265(define-public sbcl-ningle
5266 (let ((commit "50bd4f09b5a03a7249bd4d78265d6451563b25ad")
5267 (revision "1"))
5268 (package
5269 (name "sbcl-ningle")
5270 (version (git-version "0.3.0" revision commit))
5271 (source
5272 (origin
5273 (method git-fetch)
5274 (uri (git-reference
5275 (url "https://github.com/fukamachi/ningle.git")
5276 (commit commit)))
5277 (file-name (git-file-name name version))
5278 (sha256
5279 (base32 "1bsl8cnxhacb8p92z9n89vhk1ikmij5zavk0m2zvmj7iqm79jzgw"))))
5280 (build-system asdf-build-system/sbcl)
5281 (arguments
5282 ;; TODO: pull in clack-test
5283 '(#:tests? #f
5284 #:phases
5285 (modify-phases %standard-phases
5286 (delete 'cleanup-files)
5287 (delete 'cleanup)
5288 (add-before 'cleanup 'combine-fasls
5289 (lambda* (#:key outputs #:allow-other-keys)
5290 (let* ((out (assoc-ref outputs "out"))
5291 (lib (string-append out "/lib/sbcl"))
5292 (ningle-path (string-append lib "/ningle"))
5293 (fasl-files (find-files out "\\.fasl$")))
5294 (mkdir-p ningle-path)
5295 (let ((fasl-path (lambda (name)
5296 (string-append ningle-path
5297 "/"
5298 (basename name)
5299 "--system.fasl"))))
5300 (for-each (lambda (file)
5301 (rename-file file
5302 (fasl-path
5303 (basename file ".fasl"))))
5304 fasl-files))
5305 fasl-files)
5306 #t)))))
5307 (native-inputs
5308 `(("sbcl-prove-asdf" ,sbcl-prove-asdf)
5309 ("sbcl-prove" ,sbcl-prove)))
5310 (inputs
5311 `(("sbcl-cl-syntax" ,sbcl-cl-syntax)
5312 ("sbcl-cl-syntax-annot" ,sbcl-cl-syntax-annot)
5313 ("sbcl-myway" ,sbcl-myway)
5314 ("sbcl-lack-request" ,sbcl-lack-request)
5315 ("sbcl-lack-response" ,sbcl-lack-response)
5316 ("sbcl-lack-component" ,sbcl-lack-component)
5317 ("sbcl-alexandria" ,sbcl-alexandria)
5318 ("sbcl-babel" ,sbcl-babel)))
5319 (home-page "http://8arrow.org/ningle/")
5320 (synopsis "Super micro framework for Common Lisp")
5321 (description
5322 "Ningle is a lightweight web application framework for Common Lisp.")
5323 (license license:llgpl))))
5324
5325(define-public cl-ningle
5326 (sbcl-package->cl-source-package sbcl-ningle))
d3715a30
KCB
5327
5328(define-public sbcl-clack
5329 (let ((commit "e3e032843bb1220ab96263c411aa7f2feb4746e0")
5330 (revision "1"))
5331 (package
5332 (name "sbcl-clack")
5333 (version (git-version "2.0.0" revision commit))
5334 (source
5335 (origin
5336 (method git-fetch)
5337 (uri (git-reference
5338 (url "https://github.com/fukamachi/clack.git")
5339 (commit commit)))
5340 (file-name (git-file-name name version))
5341 (sha256
5342 (base32 "1ymzs6qyrwhlj6cgqsnpyn6g5cbp7a3s1vgxwna20y2q7y4iacy0"))))
5343 (build-system asdf-build-system/sbcl)
5344 (inputs
5345 `(("sbcl-lack" ,sbcl-lack)
5346 ("sbcl-lack-middleware-backtrace" ,sbcl-lack-middleware-backtrace)
5347 ("sbcl-bordeaux-threads" ,sbcl-bordeaux-threads)))
5348 (home-page "https://github.com/fukamachi/clack")
5349 (synopsis "Web Application Environment for Common Lisp")
5350 (description
5351 "Clack is a web application environment for Common Lisp inspired by
5352Python's WSGI and Ruby's Rack.")
5353 (license license:llgpl))))
5354
5355(define-public cl-clack
5356 (sbcl-package->cl-source-package sbcl-clack))
b8b1e4d9 5357
5358(define-public sbcl-log4cl
5359 (let ((commit "611e094458504b938d49de904eab141285328c7c")
5360 (revision "1"))
5361 (package
5362 (name "sbcl-log4cl")
5363 (build-system asdf-build-system/sbcl)
5364 (version "1.1.2")
5365 (source
5366 (origin
5367 (method git-fetch)
5368 (uri (git-reference
5369 (url "https://github.com/sharplispers/log4cl")
5370 (commit commit)))
5371 (file-name (git-file-name name version))
5372 (sha256
5373 (base32
5374 "08jly0s0g26b56hhpfizxsb4j0yvbh946sd205gr42dkzv8l7dsc"))))
5375 ;; FIXME: tests require stefil, sbcl-hu.dwim.stefil wont work
5376 (arguments
5377 `(#:tests? #f))
5378 (inputs `(("bordeaux-threads" ,sbcl-bordeaux-threads)))
5379 (synopsis "Common Lisp logging framework, modeled after Log4J")
5380 (home-page "https://github.com/7max/log4cl")
5381 (description "This is a Common Lisp logging framework that can log at
5382various levels and mix text with expressions.")
5383 (license license:asl2.0))))
5384
5385(define-public cl-log4cl
5386 (sbcl-package->cl-source-package sbcl-log4cl))
5387
5388(define-public ecl-log4cl
5389 (sbcl-package->ecl-package sbcl-log4cl))
bdd30bf0
PN
5390
5391(define-public sbcl-find-port
5392 (let ((commit "00c96a25af93a0f8681d34ec548861f2d7485478")
5393 (revision "1"))
5394 (package
5395 (name "sbcl-find-port")
5396 (build-system asdf-build-system/sbcl)
5397 (version "0.1")
5398 (home-page "https://github.com/eudoxia0/find-port")
5399 (source
5400 (origin
5401 (method git-fetch)
5402 (uri (git-reference
5403 (url home-page)
5404 (commit commit)))
5405 (file-name (git-file-name name version))
5406 (sha256
5407 (base32
5408 "0d6dzbb45jh0rx90wgs6v020k2xa87mvzas3mvfzvivjvqqlpryq"))))
5409 (native-inputs
5410 `(("fiveam" ,sbcl-fiveam)))
5411 (inputs
5412 `(("sbcl-usocket" ,sbcl-usocket)))
5413 (synopsis "Find open ports programmatically in Common Lisp")
5414 (description "This is a small Common Lisp library that finds an open
5415port within a range.")
5416 (license license:expat))))
5417
5418(define-public cl-find-port
5419 (sbcl-package->cl-source-package sbcl-find-port))
5420
5421(define-public ecl-find-port
5422 (sbcl-package->ecl-package sbcl-find-port))
a0c3a2e3
GLV
5423
5424(define-public txr
5425 (package
5426 (name "txr")
37c08f42 5427 (version "224")
a0c3a2e3
GLV
5428 (source
5429 (origin
37c08f42
GLV
5430 (method git-fetch)
5431 (uri (git-reference
5432 (url "http://www.kylheku.com/git/txr/")
5433 (commit (string-append "txr-" version))))
5434 (file-name (git-file-name name version))
a0c3a2e3
GLV
5435 (patches (search-patches "txr-shell.patch"))
5436 (sha256
5437 (base32
37c08f42 5438 "1036k71f6mffy9rjwzmhr5nnp1n0wzb0rqvilpzvb8jc5yxv0810"))))
a0c3a2e3
GLV
5439 (build-system gnu-build-system)
5440 (arguments
5441 '(#:configure-flags '("cc=gcc")
5442 #:phases (modify-phases %standard-phases
5443 (add-after 'configure 'fix-tests
5444 (lambda _
5445 (substitute* "tests/017/realpath.tl"
5446 (("/usr/bin") "/"))
5447 (substitute* "tests/017/realpath.expected"
5448 (("/usr/bin") "/"))
5449 #t))
5450 (replace 'check
5451 (lambda _
66d14663 5452 (invoke "make" "tests"))))))
a0c3a2e3
GLV
5453 (native-inputs
5454 `(("bison" ,bison)
5455 ("flex" ,flex)))
5456 (inputs
5457 `(("libffi" ,libffi)))
5458 (synopsis "General-purpose, multi-paradigm programming language")
5459 (description
5460 "TXR is a general-purpose, multi-paradigm programming language. It
5461comprises two languages integrated into a single tool: a text scanning and
5462extraction language referred to as the TXR Pattern Language (sometimes just
5463\"TXR\"), and a general-purpose dialect of Lisp called TXR Lisp. TXR can be
5464used for everything from \"one liner\" data transformation tasks at the
5465command line, to data scanning and extracting scripts, to full application
5466development in a wide-range of areas.")
5467 (home-page "https://nongnu.org/txr/")
5468 (license license:bsd-2)))
9f8311ad
KCB
5469
5470(define-public sbcl-clunit
5471 (let ((commit "6f6d72873f0e1207f037470105969384f8380628")
5472 (revision "1"))
5473 (package
5474 (name "sbcl-clunit")
5475 (version (git-version "0.2.3" revision commit))
5476 (source
5477 (origin
5478 (method git-fetch)
5479 (uri (git-reference
5480 (url "https://github.com/tgutu/clunit.git")
5481 (commit commit)))
5482 (file-name (git-file-name name version))
5483 (sha256
5484 (base32
5485 "1idf2xnqzlhi8rbrqmzpmb3i1l6pbdzhhajkmhwbp6qjkmxa4h85"))))
5486 (build-system asdf-build-system/sbcl)
5487 (synopsis "CLUnit is a Common Lisp unit testing framework")
5488 (description
5489 "CLUnit is a Common Lisp unit testing framework. It is designed
5490to be easy to use so that you can quickly start testing. CLUnit
5491provides a rich set of features aimed at improving your unit testing
5492experience.")
5493 (home-page "http://tgutu.github.io/clunit/")
5494 ;; MIT License
5495 (license license:expat))))
5496
5497(define-public cl-clunit
5498 (sbcl-package->cl-source-package sbcl-clunit))
5499
5500(define-public ecl-clunit
5501 (sbcl-package->ecl-package sbcl-clunit))
20b96ced
KCB
5502
5503(define-public sbcl-py4cl
5504 (let ((commit "4c8a2b0814fd311f978964f825ce012290f60136")
5505 (revision "1"))
5506 (package
5507 (name "sbcl-py4cl")
5508 (version (git-version "0.0.0" revision commit))
5509 (source
5510 (origin
5511 (method git-fetch)
5512 (uri (git-reference
5513 (url "https://github.com/bendudson/py4cl.git")
5514 (commit commit)))
5515 (file-name (git-file-name name version))
5516 (sha256
5517 (base32
5518 "15mk7qdqjkj56gdnbyrdyz6r7m1h26ldvn6ch96pmvg5vmr1m45r"))
5519 (modules '((guix build utils)))))
5520 (build-system asdf-build-system/sbcl)
5521 (native-inputs
5522 `(("sbcl-clunit" ,sbcl-clunit)))
5523 (inputs
5524 `(("sbcl-trivial-garbage" ,sbcl-trivial-garbage)))
5525 (propagated-inputs
5526 ;; This package doesn't do anything without python available
5527 `(("python" ,python)
5528 ;; For multi-dimensional array support
5529 ("python-numpy" ,python-numpy)))
5530 (arguments
5531 '(#:phases
5532 (modify-phases %standard-phases
5533 (add-after 'unpack 'replace-*base-directory*-var
5534 (lambda* (#:key outputs #:allow-other-keys)
5535 ;; In the ASD, the author makes an attempt to
5536 ;; programatically determine the location of the
5537 ;; source-code so lisp can call into "py4cl.py". We can
5538 ;; hard-code this since we know where this file will
5539 ;; reside.
5540 (substitute* "src/callpython.lisp"
5541 (("py4cl/config:\\*base-directory\\*")
5542 (string-append
5543 "\""
5544 (assoc-ref outputs "out")
5545 "/share/common-lisp/sbcl-source/py4cl/"
5546 "\""))))))))
5547 (synopsis "Call python from Common Lisp")
5548 (description
5549 "Py4CL is a bridge between Common Lisp and Python, which enables Common
5550Lisp to interact with Python code. It uses streams to communicate with a
5551separate python process, the approach taken by cl4py. This is different to
5552the CFFI approach used by burgled-batteries, but has the same goal.")
5553 (home-page "https://github.com/bendudson/py4cl")
5554 ;; MIT License
5555 (license license:expat))))
5556
5557(define-public cl-py4cl
5558 (sbcl-package->cl-source-package sbcl-py4cl))
5559
5560(define-public ecl-py4cl
5561 (sbcl-package->ecl-package sbcl-py4cl))
ab84ea9e
KCB
5562
5563(define-public sbcl-parse-declarations
5564 (package
5565 (name "sbcl-parse-declarations")
5566 (version "1.0.0")
5567 (source
5568 (origin
5569 (method url-fetch)
5570 (uri (string-append
5571 "http://beta.quicklisp.org/archive/parse-declarations/"
5572 "2010-10-06/parse-declarations-20101006-darcs.tgz"))
5573 (sha256
5574 (base32
5575 "0r85b0jfacd28kr65kw9c13dx4i6id1dpmby68zjy63mqbnyawrd"))))
5576 (build-system asdf-build-system/sbcl)
5577 (arguments
5578 `(#:asd-file "parse-declarations-1.0.asd"
5579 #:asd-system-name "parse-declarations-1.0"))
5580 (home-page "https://common-lisp.net/project/parse-declarations/")
5581 (synopsis "Parse, filter, and build declarations")
5582 (description
5583 "Parse-Declarations is a Common Lisp library to help writing
5584macros which establish bindings. To be semantically correct, such
5585macros must take user declarations into account, as these may affect
5586the bindings they establish. Yet the ANSI standard of Common Lisp does
5587not provide any operators to work with declarations in a convenient,
5588high-level way. This library provides such operators.")
5589 ;; MIT License
5590 (license license:expat)))
5591
5592(define-public cl-parse-declarations
5593 (sbcl-package->cl-source-package sbcl-parse-declarations))
5594
5595(define-public ecl-parse-declarations
5596 (sbcl-package->ecl-package sbcl-parse-declarations))
2ddc55c6
KCB
5597
5598(define-public sbcl-cl-quickcheck
5599 (let ((commit "807b2792a30c883a2fbecea8e7db355b50ba662f")
5600 (revision "1"))
5601 (package
5602 (name "sbcl-cl-quickcheck")
5603 (version (git-version "0.0.4" revision commit))
5604 (source
5605 (origin
5606 (method git-fetch)
5607 (uri (git-reference
5608 (url "https://github.com/mcandre/cl-quickcheck.git")
5609 (commit commit)))
5610 (file-name (git-file-name name version))
5611 (sha256
5612 (base32
5613 "165lhypq5xkcys6hvzb3jq7ywnmqvzaflda29qk2cbs3ggas4767"))))
5614 (build-system asdf-build-system/sbcl)
5615 (synopsis
5616 "Common Lisp port of the QuickCheck unit test framework")
5617 (description
5618 "Common Lisp port of the QuickCheck unit test framework")
5619 (home-page "https://github.com/mcandre/cl-quickcheck")
5620 ;; MIT
5621 (license license:expat))))
5622
5623(define-public cl-cl-quickcheck
5624 (sbcl-package->cl-source-package sbcl-cl-quickcheck))
5625
5626(define-public ecl-cl-quickcheck
5627 (sbcl-package->ecl-package sbcl-cl-quickcheck))
245b19ca
KCB
5628
5629(define-public sbcl-burgled-batteries3
5630 (let ((commit "9c0f6667e1a71ddf77e21793a0bea524710fef6e")
5631 (revision "1"))
5632 (package
5633 (name "sbcl-burgled-batteries3")
5634 (version (git-version "0.0.0" revision commit))
5635 (source
5636 (origin
5637 (method git-fetch)
5638 (uri (git-reference
5639 (url "https://github.com/snmsts/burgled-batteries3.git")
5640 (commit commit)))
5641 (file-name (git-file-name name version))
5642 (sha256
5643 (base32
5644 "0b726kz2xxcg5l930gz035rsdvhxrzmp05iwfwympnb4z4ammicb"))))
5645 (build-system asdf-build-system/sbcl)
5646 (arguments
5647 '(#:tests? #f
5648 #:phases
5649 (modify-phases %standard-phases
5650 (add-after 'unpack 'set-*cpython-include-dir*-var
5651 (lambda* (#:key inputs #:allow-other-keys)
5652 (substitute* "grovel-include-dir.lisp"
5653 (("\\(defparameter \\*cpython-include-dir\\* \\(detect-python\\)\\)")
5654 (string-append
5655 "(defparameter *cpython-include-dir* \""
5656 (assoc-ref inputs "python")
5657 "/include/python3.7m"
5658 "\")")))
5659 (substitute* "ffi-interface.lisp"
5660 (("\\*cpython-lib\\*")
5661 (format #f "'(\"~a/lib/libpython3.so\")"
5662 (assoc-ref inputs "python"))))
5663 #t)))))
5664 (native-inputs
5665 `(("python" ,python)
5666 ("sbcl-cl-fad" ,sbcl-cl-fad)
5667 ("sbcl-lift" ,sbcl-lift)
5668 ("sbcl-cl-quickcheck" ,sbcl-cl-quickcheck)))
5669 (inputs
5670 `(("sbcl-cffi" ,sbcl-cffi)
5671 ("sbcl-cffi-grovel" ,sbcl-cffi-grovel)
5672 ("sbcl-alexandria" , sbcl-alexandria)
5673 ("sbcl-parse-declarations-1.0" ,sbcl-parse-declarations)
5674 ("sbcl-trivial-garbage" ,sbcl-trivial-garbage)))
5675 (synopsis "Bridge between Python and Lisp (FFI bindings, etc.)")
5676 (description
5677 "This package provides a shim between Python3 (specifically, the
5678CPython implementation of Python) and Common Lisp.")
5679 (home-page "https://github.com/snmsts/burgled-batteries3")
5680 ;; MIT
5681 (license license:expat))))
5682
5683(define-public cl-burgled-batteries3
5684 (sbcl-package->cl-source-package sbcl-burgled-batteries3))
5685
5686(define-public ecl-burgled-batteries3
5687 (sbcl-package->ecl-package sbcl-burgled-batteries3))
98b9409c
KCB
5688
5689(define-public sbcl-metabang-bind
5690 (let ((commit "c93b7f7e1c18c954c2283efd6a7fdab36746ab5e")
5691 (revision "1"))
5692 (package
5693 (name "sbcl-metabang-bind")
5694 (version (git-version "0.8.0" revision commit))
5695 (source
5696 (origin
5697 (method git-fetch)
5698 (uri (git-reference
5699 (url "https://github.com/gwkkwg/metabang-bind.git")
5700 (commit commit)))
5701 (file-name (git-file-name name version))
5702 (sha256
5703 (base32
5704 "0hd0kr91795v77akpbcyqiss9p0p7ypa9dznrllincnmgvsxlmf0"))))
5705 (build-system asdf-build-system/sbcl)
5706 (native-inputs
5707 `(("sbcl-lift" ,sbcl-lift)))
5708 (synopsis "Macro that generalizes @code{multiple-value-bind} etc.")
5709 (description
5710 "Bind extends the idea of of let and destructing to provide a uniform
5711syntax for all your accessor needs. It combines @code{let},
5712@code{destructuring-bind}, @code{with-slots}, @code{with-accessors}, structure
5713editing, property or association-lists, and @code{multiple-value-bind} and a
5714whole lot more into a single form.")
5715 (home-page "https://common-lisp.net/project/metabang-bind/")
5716 ;; MIT License
5717 (license license:expat))))
5718
5719(define-public cl-metabang-bind
5720 (sbcl-package->cl-source-package sbcl-metabang-bind))
5721
5722(define-public ecl-metabang-bind
5723 (sbcl-package->ecl-package sbcl-metabang-bind))
31263ec2
KCB
5724
5725(define-public sbcl-fare-utils
5726 (let ((commit "66e9c6f1499140bc00ccc22febf2aa528cbb5724")
5727 (revision "1"))
5728 (package
5729 (name "sbcl-fare-utils")
5730 (version (git-version "1.0.0.5" revision commit))
5731 (source
5732 (origin
5733 (method git-fetch)
5734 (uri
5735 (git-reference
5736 (url
5737 "https://gitlab.common-lisp.net/frideau/fare-utils.git")
5738 (commit commit)))
5739 (file-name (git-file-name name version))
5740 (sha256
5741 (base32
5742 "01wsr1aap3jdzhn4hrqjbhsjx6qci9dbd3gh4gayv1p49rbg8aqr"))))
5743 (build-system asdf-build-system/sbcl)
5744 (arguments
5745 `(#:test-asd-file "test/fare-utils-test.asd"))
5746 (native-inputs
5747 `(("sbcl-hu.dwim.stefil" ,sbcl-hu.dwim.stefil)))
5748 (synopsis "Collection of utilities and data structures")
5749 (description
5750 "fare-utils is a small collection of utilities. It contains a lot of
5751basic everyday functions and macros.")
5752 (home-page "https://gitlab.common-lisp.net/frideau/fare-utils")
5753 ;; MIT License
5754 (license license:expat))))
5755
5756(define-public cl-fare-utils
5757 (sbcl-package->cl-source-package sbcl-fare-utils))
5758
5759(define-public ecl-fare-utils
5760 (sbcl-package->ecl-package sbcl-fare-utils))
d2a93264 5761
c5ab5320
KCB
5762(define-public sbcl-trivial-utf-8
5763 (let ((commit "4d427cfbb1c452436a0efb71c3205c9da67f718f")
5764 (revision "1"))
5765 (package
5766 (name "sbcl-trivial-utf-8")
5767 (version (git-version "0.0.0" revision commit))
5768 (source
5769 (origin
5770 (method git-fetch)
5771 (uri
5772 (git-reference
5773 (url (string-append "https://gitlab.common-lisp.net/"
5774 "trivial-utf-8/trivial-utf-8.git"))
5775 (commit commit)))
5776 (file-name (git-file-name name version))
5777 (sha256
5778 (base32
5779 "1jz27gz8gvqdmvp3k9bxschs6d5b3qgk94qp2bj6nv1d0jc3m1l1"))))
5780 (arguments
5781 ;; Guix incorrectly assumes the "8" is part of the version
5782 ;; number and lobs it off.
5783 `(#:asd-file "trivial-utf-8.asd"
5784 #:asd-system-name "trivial-utf-8"))
5785 (build-system asdf-build-system/sbcl)
5786 (synopsis "UTF-8 input/output library")
5787 (description
5788 "The Babel library solves a similar problem while understanding more
5789encodings. Trivial UTF-8 was written before Babel existed, but for new
5790projects you might be better off going with Babel. The one plus that Trivial
5791UTF-8 has is that it doesn't depend on any other libraries.")
5792 (home-page "https://common-lisp.net/project/trivial-utf-8/")
5793 (license license:bsd-3))))
5794
5795(define-public cl-trivial-utf-8
5796 (sbcl-package->cl-source-package sbcl-trivial-utf-8))
5797
5798(define-public ecl-trivial-utf-8
5799 (sbcl-package->ecl-package sbcl-trivial-utf-8))
5800
d2a93264
PN
5801(define-public sbcl-idna
5802 (package
5803 (name "sbcl-idna")
5804 (build-system asdf-build-system/sbcl)
5805 (version "0.2.2")
5806 (home-page "https://github.com/antifuchs/idna")
5807 (source
5808 (origin
5809 (method git-fetch)
5810 (uri (git-reference
5811 (url home-page)
5812 (commit version)))
5813 (file-name (git-file-name name version))
5814 (sha256
5815 (base32
5816 "00nbr3mffxhlq14gg9d16pa6691s4qh35inyw76v906s77khm5a2"))))
5817 (inputs
5818 `(("split-sequence" ,sbcl-split-sequence)))
5819 (synopsis "IDNA string encoding and decoding routines for Common Lisp")
5820 (description "This Common Lisp library provides string encoding and
5821decoding routines for IDNA, the International Domain Names in Applications.")
5822 (license license:expat)))
5823
5824(define-public cl-idna
5825 (sbcl-package->cl-source-package sbcl-idna))
5826
5827(define-public ecl-idna
5828 (sbcl-package->ecl-package sbcl-idna))
ccba380a
PN
5829
5830(define-public sbcl-swap-bytes
5831 (package
5832 (name "sbcl-swap-bytes")
5833 (build-system asdf-build-system/sbcl)
5834 (version "1.1")
5835 (home-page "https://github.com/sionescu/swap-bytes")
5836 (source
5837 (origin
5838 (method git-fetch)
5839 (uri (git-reference
5840 (url home-page)
5841 (commit (string-append "v" version))))
5842 (file-name (git-file-name name version))
5843 (sha256
5844 (base32
5845 "1qysbv0jngdfkv53y874qjhcxc4qi8ixaqq6j8bzxh5z0931wv55"))))
5846 (inputs
5847 `(("trivial-features" ,sbcl-trivial-features)))
5848 (native-inputs
5849 `(("fiveam" ,sbcl-fiveam)))
5850 (arguments
5851 ;; TODO: Tests fail, why?
5852 `(#:tests? #f))
5853 (synopsis "Efficient endianness conversion for Common Lisp")
5854 (description "This Common Lisp library provides optimized byte-swapping
5855primitives. The library can change endianness of unsigned integers of length
58561/2/4/8. Very useful in implementing various network protocols and file
5857formats.")
5858 (license license:expat)))
5859
5860(define-public cl-swap-bytes
5861 (sbcl-package->cl-source-package sbcl-swap-bytes))
5862
5863(define-public ecl-swap-bytes
5864 (sbcl-package->ecl-package sbcl-swap-bytes))
69c68b47
PN
5865
5866(define-public sbcl-iolib.asdf
5867 ;; Latest release is from June 2017.
5868 (let ((commit "81e20614c0d27f9605bf9766214e236fd31b99b4")
5869 (revision "1"))
5870 (package
5871 (name "sbcl-iolib.asdf")
5872 (build-system asdf-build-system/sbcl)
5873 (version "0.8.3")
5874 (home-page "https://github.com/sionescu/iolib")
5875 (source
5876 (origin
5877 (method git-fetch)
5878 (uri (git-reference
5879 (url home-page)
5880 (commit commit)))
5881 (file-name (git-file-name name version))
5882 (sha256
5883 (base32
5884 "1j81r0wm7nfbwl991f26s4npcy7kybzybd3m47rbxy31h0cfcmdm"))))
5885 (inputs
5886 `(("alexandria" ,sbcl-alexandria)))
5887 (arguments
5888 '(#:asd-file "iolib.asdf.asd"))
5889 (synopsis "ASDF component classes for IOLib, a Common Lisp I/O library")
5890 (description "IOlib is to be a better and more modern I/O library than
5891the standard Common Lisp library. It contains a socket library, a DNS
5892resolver, an I/O multiplexer(which supports @code{select(2)}, @code{epoll(4)}
5893and @code{kqueue(2)}), a pathname library and file-system utilities.")
5894 (license license:expat))))
63158bf6
PN
5895
5896(define-public sbcl-iolib.conf
5897 (package
5898 (inherit sbcl-iolib.asdf)
5899 (name "sbcl-iolib.conf")
5900 (inputs
5901 `(("iolib.asdf" ,sbcl-iolib.asdf)))
5902 (arguments
5903 '(#:asd-file "iolib.conf.asd"))
5904 (synopsis "Compile-time configuration for IOLib, a Common Lisp I/O library")))
213937fb
PN
5905
5906(define-public sbcl-iolib.common-lisp
5907 (package
5908 (inherit sbcl-iolib.asdf)
5909 (name "sbcl-iolib.common-lisp")
5910 (inputs
5911 `(("iolib.asdf" ,sbcl-iolib.asdf)
5912 ("iolib.conf" ,sbcl-iolib.conf)))
5913 (arguments
5914 '(#:asd-file "iolib.common-lisp.asd"))
5915 (synopsis "Slightly modified Common Lisp for IOLib, a Common Lisp I/O library")))
5dffca33
PN
5916
5917(define-public sbcl-iolib.base
5918 (package
5919 (inherit sbcl-iolib.asdf)
5920 (name "sbcl-iolib.base")
5921 (inputs
5922 `(("iolib.asdf" ,sbcl-iolib.asdf)
5923 ("iolib.conf" ,sbcl-iolib.conf)
5924 ("iolib.common-lisp" ,sbcl-iolib.common-lisp)
5925 ("split-sequence" ,sbcl-split-sequence)))
5926 (arguments
5927 '(#:asd-file "iolib.base.asd"))
5928 (synopsis "Base package for IOLib, a Common Lisp I/O library")))
216dd6f6
PN
5929
5930(define-public sbcl-iolib.grovel
5931 (package
5932 (inherit sbcl-iolib.asdf)
5933 (name "sbcl-iolib.grovel")
5934 (inputs
5935 `(("iolib.asdf" ,sbcl-iolib.asdf)
5936 ("iolib.conf" ,sbcl-iolib.conf)
5937 ("iolib.base", sbcl-iolib.base)
5938 ("cffi", sbcl-cffi)))
5939 (arguments
5940 '(#:asd-file "iolib.grovel.asd"
5941 #:phases
5942 (modify-phases %standard-phases
5943 (add-after 'install 'install-header
5944 (lambda* (#:key outputs #:allow-other-keys)
5945 ;; This header is required by sbcl-iolib.
5946 (install-file "src/grovel/grovel-common.h"
5947 (string-append (assoc-ref outputs "out")
5948 "/lib/sbcl"))
5949 #t)))))
5950 (synopsis "CFFI Groveller for IOLib, a Common Lisp I/O library")))
ef656e11
PN
5951
5952(define-public sbcl-iolib
5953 (package
5954 (inherit sbcl-iolib.asdf)
5955 (name "sbcl-iolib")
5956 (inputs
5957 `(("iolib.asdf" ,sbcl-iolib.asdf)
5958 ("iolib.conf" ,sbcl-iolib.conf)
5959 ("iolib.grovel" ,sbcl-iolib.grovel)
1d8d87dd
PN
5960 ("iolib.base" ,sbcl-iolib.base)
5961 ("bordeaux-threads" ,sbcl-bordeaux-threads)
5962 ("idna" ,sbcl-idna)
5963 ("swap-bytes" ,sbcl-swap-bytes)
5964 ("libfixposix" ,libfixposix)
5965 ("cffi" ,sbcl-cffi)))
ef656e11
PN
5966 (native-inputs
5967 `(("fiveam" ,sbcl-fiveam)))
5968 (arguments
5969 '(#:asd-file "iolib.asd"
5970 #:asd-system-name "iolib"
5971 #:test-asd-file "iolib.tests.asd"
5972 #:phases
5973 (modify-phases %standard-phases
5974 (add-after 'unpack 'fix-paths
5975 (lambda* (#:key inputs #:allow-other-keys)
5976 (substitute* "src/syscalls/ffi-functions-unix.lisp"
5977 (("\\(:default \"libfixposix\"\\)")
5978 (string-append
5979 "(:default \""
5980 (assoc-ref inputs "libfixposix") "/lib/libfixposix\")")))
5981 ;; Socket tests need Internet access, disable them.
5982 (substitute* "iolib.tests.asd"
5983 (("\\(:file \"sockets\" :depends-on \\(\"pkgdcl\" \"defsuites\"\\)\\)")
5984 "")))))))
5985 (synopsis "Common Lisp I/O library")))
a3531660 5986
6c16f1a5
PN
5987(define-public cl-iolib
5988 (sbcl-package->cl-source-package sbcl-iolib))
5989
a3531660
PN
5990(define sbcl-iolib+multiplex
5991 (package
5992 (inherit sbcl-iolib)
5993 (name "sbcl-iolib+multiplex")
5994 (arguments
5995 (substitute-keyword-arguments (package-arguments sbcl-iolib)
5996 ((#:asd-system-name _) "iolib/multiplex")))))
5b686054
PN
5997
5998(define sbcl-iolib+syscalls
5999 (package
6000 (inherit sbcl-iolib)
6001 (name "sbcl-iolib+syscalls")
6002 (arguments
6003 (substitute-keyword-arguments (package-arguments sbcl-iolib)
6004 ((#:asd-system-name _) "iolib/syscalls")))))
28f3e3b1
PN
6005
6006(define sbcl-iolib+streams
6007 (package
6008 (inherit sbcl-iolib)
6009 (name "sbcl-iolib+streams")
6010 (arguments
6011 (substitute-keyword-arguments (package-arguments sbcl-iolib)
6012 ((#:asd-system-name _) "iolib/streams")))))
9f641dd7
PN
6013
6014(define sbcl-iolib+sockets
6015 (package
6016 (inherit sbcl-iolib)
6017 (name "sbcl-iolib+sockets")
6018 (arguments
6019 (substitute-keyword-arguments (package-arguments sbcl-iolib)
6020 ((#:asd-system-name _) "iolib/sockets")))))
6ac69aae
PN
6021
6022(define-public sbcl-ieee-floats
6023 (let ((commit "566b51a005e81ff618554b9b2f0b795d3b29398d")
6024 (revision "1"))
6025 (package
6026 (name "sbcl-ieee-floats")
6027 (build-system asdf-build-system/sbcl)
6028 (version (git-version "20170924" revision commit))
6029 (home-page "https://github.com/marijnh/ieee-floats/")
6030 (source
6031 (origin
6032 (method git-fetch)
6033 (uri (git-reference
6034 (url home-page)
6035 (commit commit)))
6036 (file-name (git-file-name name version))
6037 (sha256
6038 (base32
6039 "1xyj49j9x3lc84cv3dhbf9ja34ywjk1c46dklx425fxw9mkwm83m"))))
6040 (native-inputs
6041 `(("fiveam" ,sbcl-fiveam)))
6042 (synopsis "IEEE 754 binary representation for floats in Common Lisp")
6043 (description "This is a Common Lisp library that allows to convert
6044floating point values to IEEE 754 binary representation.")
6045 (license license:bsd-3))))
63015205 6046
6c16f1a5
PN
6047(define-public cl-ieee-floats
6048 (sbcl-package->cl-source-package sbcl-ieee-floats))
6049
63015205
PN
6050(define sbcl-closure-common
6051 (let ((commit "e3c5f5f454b72b01b89115e581c3c52a7e201e5c")
6052 (revision "1"))
6053 (package
6054 (name "sbcl-closure-common")
6055 (build-system asdf-build-system/sbcl)
6056 (version (git-version "20101006" revision commit))
c51db1dd 6057 (home-page "https://common-lisp.net/project/cxml/")
63015205
PN
6058 (source
6059 (origin
6060 (method git-fetch)
6061 (uri (git-reference
c51db1dd 6062 (url "https://github.com/sharplispers/closure-common")
63015205
PN
6063 (commit commit)))
6064 (file-name (git-file-name name version))
6065 (sha256
6066 (base32
6067 "0k5r2qxn122pxi301ijir3nayi9sg4d7yiy276l36qmzwhp4mg5n"))))
6068 (inputs
6069 `(("trivial-gray-streams" ,sbcl-trivial-gray-streams)
6070 ("babel" ,sbcl-babel)))
6071 (synopsis "Support Common Lisp library for CXML")
6072 (description "Closure-common is an internal helper library. The name
6073Closure is a reference to the web browser it was originally written for.")
6074 ;; TODO: License?
6075 (license #f))))
167fec29 6076
075e3220
PN
6077(define-public sbcl-cxml+xml
6078 (let ((commit "00b22bf4c4cf11c993d5866fae284f95ab18e6bf")
6079 (revision "1"))
6080 (package
6081 (name "sbcl-cxml+xml")
6082 (build-system asdf-build-system/sbcl)
6083 (version (git-version "0.0.0" revision commit))
6084 (home-page "https://common-lisp.net/project/cxml/")
6085 (source
6086 (origin
6087 (method git-fetch)
6088 (uri (git-reference
6089 (url "https://github.com/sharplispers/cxml")
6090 (commit commit)))
6091 (file-name (git-file-name name version))
6092 (sha256
6093 (base32
6094 "13kif7rf3gqdycsk9zq0d7y0g9y81krkl0z87k0p2fkbjfgrph37"))))
6095 (inputs
6096 `(("closure-common" ,sbcl-closure-common)
6097 ("puri" ,sbcl-puri)
6098 ("trivial-gray-streams" ,sbcl-trivial-gray-streams)))
6099 (arguments
6100 `(#:asd-file "cxml.asd"
6101 #:asd-system-name "cxml/xml"))
6102 (synopsis "Common Lisp XML parser")
6103 (description "CXML implements a namespace-aware, validating XML 1.0
6104parser as well as the DOM Level 2 Core interfaces. Two parser interfaces are
6105offered, one SAX-like, the other similar to StAX.")
6106 (license license:llgpl))))
6107
53270eb9
PN
6108(define sbcl-cxml+dom
6109 (package
6110 (inherit sbcl-cxml+xml)
6111 (name "sbcl-cxml+dom")
6112 (inputs
6113 `(("closure-common" ,sbcl-closure-common)
6114 ("puri" ,sbcl-puri)
6115 ("cxml+xml" ,sbcl-cxml+xml)))
6116 (arguments
6117 `(#:asd-file "cxml.asd"
6118 #:asd-system-name "cxml/dom"))))
6119
d22b47aa
PN
6120(define sbcl-cxml+klacks
6121 (package
6122 (inherit sbcl-cxml+xml)
6123 (name "sbcl-cxml+klacks")
6124 (inputs
6125 `(("closure-common" ,sbcl-closure-common)
6126 ("puri" ,sbcl-puri)
6127 ("cxml+xml" ,sbcl-cxml+xml)))
6128 (arguments
6129 `(#:asd-file "cxml.asd"
6130 #:asd-system-name "cxml/klacks"))))
6131
9a08c0a5
PN
6132(define sbcl-cxml+test
6133 (package
6134 (inherit sbcl-cxml+xml)
6135 (name "sbcl-cxml+test")
6136 (inputs
6137 `(("closure-common" ,sbcl-closure-common)
6138 ("puri" ,sbcl-puri)
6139 ("cxml+xml" ,sbcl-cxml+xml)))
6140 (arguments
6141 `(#:asd-file "cxml.asd"
6142 #:asd-system-name "cxml/test"))))
6143
4f541387
PN
6144(define-public sbcl-cxml
6145 (package
6146 (inherit sbcl-cxml+xml)
6147 (name "sbcl-cxml")
6148 (inputs
6149 `(("closure-common" ,sbcl-closure-common)
6150 ("puri" ,sbcl-puri)
6151 ("trivial-gray-streams" ,sbcl-trivial-gray-streams)
6152 ("cxml+dom" ,sbcl-cxml+dom)
6153 ("cxml+klacks" ,sbcl-cxml+klacks)
6154 ("cxml+test" ,sbcl-cxml+test)))
6155 (arguments
6156 `(#:asd-file "cxml.asd"
6157 #:asd-system-name "cxml"
6158 #:phases
6159 (modify-phases %standard-phases
6160 (add-after 'build 'install-dtd
6161 (lambda* (#:key outputs #:allow-other-keys)
6162 (install-file "catalog.dtd"
6163 (string-append
6164 (assoc-ref outputs "out")
6165 "/lib/" (%lisp-type)))))
6166 (add-after 'create-asd 'remove-component
6167 ;; XXX: The original .asd has no components, but our build system
6168 ;; creates an entry nonetheless. We need to remove it for the
6169 ;; generated .asd to load properly. See trivia.trivial for a
6170 ;; similar problem.
6171 (lambda* (#:key outputs #:allow-other-keys)
6172 (let* ((out (assoc-ref outputs "out"))
6173 (asd (string-append out "/lib/sbcl/cxml.asd")))
6174 (substitute* asd
6175 ((" :components
6176")
6177 ""))
6178 (substitute* asd
6179 ((" *\\(\\(:compiled-file \"cxml--system\"\\)\\)")
6180 ""))))))))))
6181
6c16f1a5
PN
6182(define-public cl-cxml
6183 (sbcl-package->cl-source-package sbcl-cxml))
6184
167fec29
PN
6185(define-public sbcl-cl-reexport
6186 (let ((commit "312f3661bbe187b5f28536cd7ec2956e91366c3b")
6187 (revision "1"))
6188 (package
6189 (name "sbcl-cl-reexport")
6190 (build-system asdf-build-system/sbcl)
6191 (version (git-version "0.1" revision commit))
6192 (home-page "https://github.com/takagi/cl-reexport")
6193 (source
6194 (origin
6195 (method git-fetch)
6196 (uri (git-reference
6197 (url home-page)
6198 (commit commit)))
6199 (file-name (git-file-name name version))
6200 (sha256
6201 (base32
6202 "1cwpn1m3wrl0fl9plznn7p464db646gnfc8zkyk97dyxski2aq0x"))))
6203 (inputs
6204 `(("alexandria" ,sbcl-alexandria)))
6205 (arguments
6206 ;; TODO: Tests fail because cl-test-more is missing, but I can't find it online.
6207 `(#:tests? #f))
6208 (synopsis "HTTP cookie manager for Common Lisp")
6209 (description "cl-cookie is a Common Lisp library featuring parsing of
6210cookie headers, cookie creation, cookie jar creation and more.")
6211 (license license:llgpl))))
536dcafb 6212
6c16f1a5
PN
6213(define-public cl-reexport
6214 (sbcl-package->cl-source-package sbcl-cl-reexport))
6215
536dcafb
PN
6216(define-public sbcl-cl-cookie
6217 (let ((commit "cea55aed8b9ad25fafd13defbcb9fe8f41b29546")
6218 (revision "1"))
6219 (package
6220 (name "sbcl-cl-cookie")
6221 (build-system asdf-build-system/sbcl)
6222 (version (git-version "0.9.10" revision commit))
6223 (home-page "https://github.com/fukamachi/cl-cookie")
6224 (source
6225 (origin
6226 (method git-fetch)
6227 (uri (git-reference
6228 (url home-page)
6229 (commit commit)))
6230 (file-name (git-file-name name version))
6231 (sha256
6232 (base32
6233 "090g7z75h98zvc1ldx0vh4jn4086dhjm2w30jcwkq553qmyxwl8h"))))
6234 (inputs
6235 `(("proc-parse" ,sbcl-proc-parse)
6236 ("alexandria" ,sbcl-alexandria)
6237 ("quri" ,sbcl-quri)
6238 ("cl-ppcre" ,sbcl-cl-ppcre)
6239 ("local-time" ,sbcl-local-time)))
6240 (native-inputs
6241 `(("prove-asdf" ,sbcl-prove-asdf)
6242 ("prove" ,sbcl-prove)))
6243 (arguments
6244 ;; TODO: Tests fail because cl-cookie depends on cl-cookie-test.
6245 `(#:tests? #f))
6246 (synopsis "HTTP cookie manager for Common Lisp")
6247 (description "cl-cookie is a Common Lisp library featuring parsing of
6248cookie headers, cookie creation, cookie jar creation and more.")
6249 (license license:bsd-2))))
fc3f1492 6250
6c16f1a5
PN
6251(define-public cl-cookie
6252 (sbcl-package->cl-source-package sbcl-cl-cookie))
6253
fc3f1492
PN
6254(define-public sbcl-dexador
6255 (let ((commit "a2714d126cc94bc7a9a6e1e3c08de455b3a66378")
6256 (revision "1"))
6257 (package
6258 (name "sbcl-dexador")
6259 (build-system asdf-build-system/sbcl)
6260 (version (git-version "0.9.10" revision commit))
6261 (home-page "https://github.com/fukamachi/dexador")
6262 (source
6263 (origin
6264 (method git-fetch)
6265 (uri (git-reference
6266 (url home-page)
6267 (commit commit)))
6268 (file-name (git-file-name name version))
6269 (sha256
6270 (base32
6271 "0nbqgn4v3l2z6m1k1bdxfnqpfrk84nxdmz7csz11zzcfs4flkv79"))))
6272 (inputs
6273 `(("trivial-gray-streams" ,sbcl-trivial-gray-streams)
6274 ("babel" ,sbcl-babel)
6275 ("usocket" ,sbcl-usocket)
6276 ("fast-http" ,sbcl-fast-http)
6277 ("quri" ,sbcl-quri)
6278 ("fast-io" ,sbcl-fast-io)
6279 ("chunga" ,sbcl-chunga)
6280 ("cl-ppcre" ,sbcl-cl-ppcre)
6281 ("cl-cookie" ,sbcl-cl-cookie)
6282 ("trivial-mimes" ,sbcl-trivial-mimes)
6283 ("chipz" ,sbcl-chipz)
6284 ("cl-base64" ,sbcl-cl-base64)
6285 ("cl-reexport" ,sbcl-cl-reexport)
6286 ("cl+ssl" ,sbcl-cl+ssl)
6287 ("bordeaux-threads" ,sbcl-bordeaux-threads)
6288 ("alexandria" ,sbcl-alexandria)))
6289 (native-inputs
6290 `(("prove" ,sbcl-prove)
6291 ("prove-asdf" ,sbcl-prove-asdf)
6292 ("lack-request" ,sbcl-lack-request)
6293 ("clack" ,sbcl-clack)
6294 ("babel" ,sbcl-babel)
6295 ("alexandria" ,sbcl-alexandria)
fc3f1492
PN
6296 ("cl-ppcre" ,sbcl-cl-ppcre)
6297 ("local-time" ,sbcl-local-time)))
6298 (arguments
6299 ;; TODO: Circular dependency: tests depend on clack-test which depends on dexador.
6300 `(#:tests? #f
6301 #:phases
6302 (modify-phases %standard-phases
6303 (add-after 'unpack 'fix-permissions
6304 (lambda _ (make-file-writable "t/data/test.gz") #t)))))
6305 (synopsis "Yet another HTTP client for Common Lisp")
6306 (description "Dexador is yet another HTTP client for Common Lisp with
6307neat APIs and connection-pooling. It is meant to supersede Drakma.")
6308 (license license:expat))))
e3750dc7 6309
6c16f1a5
PN
6310(define-public cl-dexador
6311 (package
6312 (inherit (sbcl-package->cl-source-package sbcl-dexador))
6313 (arguments
6314 `(#:phases
6315 ;; asdf-build-system/source has its own phases and does not inherit
6316 ;; from asdf-build-system/sbcl phases.
6317 (modify-phases %standard-phases/source
6318 (add-after 'unpack 'fix-permissions
6319 (lambda _ (make-file-writable "t/data/test.gz") #t)))))))
6320
63729d92
GLV
6321(define-public ecl-dexador
6322 (sbcl-package->ecl-package sbcl-dexador))
6323
e3750dc7
PN
6324(define-public sbcl-lisp-namespace
6325 (let ((commit "28107cafe34e4c1c67490fde60c7f92dc610b2e0")
6326 (revision "1"))
6327 (package
6328 (name "sbcl-lisp-namespace")
6329 (build-system asdf-build-system/sbcl)
6330 (version (git-version "0.1" revision commit))
6331 (home-page "https://github.com/guicho271828/lisp-namespace")
6332 (source
6333 (origin
6334 (method git-fetch)
6335 (uri (git-reference
6336 (url home-page)
6337 (commit commit)))
6338 (file-name (git-file-name name version))
6339 (sha256
6340 (base32
6341 "1jw2wykp06z2afb9nm1lgfzll5cjlj36pnknjx614057zkkxq4iy"))))
6342 (inputs
6343 `(("alexandria" ,sbcl-alexandria)))
6344 (native-inputs
6345 `(("fiveam" ,sbcl-fiveam)))
6346 (arguments
6347 `(#:test-asd-file "lisp-namespace.test.asd"
6348 ;; XXX: Component LISP-NAMESPACE-ASD::LISP-NAMESPACE.TEST not found
6349 #:tests? #f))
6350 (synopsis "LISP-N, or extensible namespaces in Common Lisp")
6351 (description "Common Lisp already has major 2 namespaces, function
6352namespace and value namespace (or variable namespace), but there are actually
6353more — e.g., class namespace.
6354This library offers macros to deal with symbols from any namespace.")
6355 (license license:llgpl))))
9526af92 6356
6c16f1a5
PN
6357(define-public cl-lisp-namespace
6358 (sbcl-package->cl-source-package sbcl-lisp-namespace))
6359
9526af92
PN
6360(define-public sbcl-trivial-cltl2
6361 (let ((commit "8eec8407df833e8f27df8a388bc10913f16d9e83")
6362 (revision "1"))
6363 (package
6364 (name "sbcl-trivial-cltl2")
6365 (build-system asdf-build-system/sbcl)
6366 (version (git-version "0.1.1" revision commit))
6367 (home-page "https://github.com/Zulu-Inuoe/trivial-cltl2")
6368 (source
6369 (origin
6370 (method git-fetch)
6371 (uri (git-reference
6372 (url home-page)
6373 (commit commit)))
6374 (file-name (git-file-name name version))
6375 (sha256
6376 (base32
6377 "1dyyxz17vqv8hlfwq287gl8xxbvcnq798ajb7p5jdjz91wqf4bgk"))))
6378 (synopsis "Simple CLtL2 compatibility layer for Common Lisp")
6379 (description "This library is a portable compatibility layer around
6380\"Common Lisp the Language, 2nd
6381Edition\" (@url{https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node102.html})
6382and it exports symbols from implementation-specific packages.")
6383 (license license:llgpl))))
f4a7653e 6384
6c16f1a5
PN
6385(define-public cl-trivial-cltl2
6386 (sbcl-package->cl-source-package sbcl-trivial-cltl2))
6387
f4a7653e
PN
6388(define-public sbcl-introspect-environment
6389 (let ((commit "fff42f8f8fd0d99db5ad6c5812e53de7d660020b")
6390 (revision "1"))
6391 (package
6392 (name "sbcl-introspect-environment")
6393 (build-system asdf-build-system/sbcl)
6394 (version (git-version "0.1" revision commit))
6395 (home-page "https://github.com/Bike/introspect-environment")
6396 (source
6397 (origin
6398 (method git-fetch)
6399 (uri (git-reference
6400 (url home-page)
6401 (commit commit)))
6402 (file-name (git-file-name name version))
6403 (sha256
6404 (base32
6405 "1i305n0wfmpac63ni4i3vixnnkl8daw5ncxy0k3dv92krgx6qzhp"))))
6406 (native-inputs
6407 `(("fiveam" ,sbcl-fiveam)))
6408 (synopsis "Common Lisp environment introspection portability layer")
6409 (description "This library is a small interface to portable but
6410nonstandard introspection of Common Lisp environments. It is intended to
6411allow a bit more compile-time introspection of environments in Common Lisp.
6412
6413Quite a bit of information is available at the time a macro or compiler-macro
6414runs; inlining info, type declarations, that sort of thing. This information
6415is all standard - any Common Lisp program can @code{(declare (integer x))} and
6416such.
6417
6418This info ought to be accessible through the standard @code{&environment}
6419parameters, but it is not. Several implementations keep the information for
6420their own purposes but do not make it available to user programs, because
6421there is no standard mechanism to do so.
6422
6423This library uses implementation-specific hooks to make information available
6424to users. This is currently supported on SBCL, CCL, and CMUCL. Other
6425implementations have implementations of the functions that do as much as they
6426can and/or provide reasonable defaults.")
6427 (license license:wtfpl2))))
b0c1007d 6428
6c16f1a5
PN
6429(define-public cl-introspect-environment
6430 (sbcl-package->cl-source-package sbcl-introspect-environment))
6431
b0c1007d
PN
6432(define-public sbcl-type-i
6433 (let ((commit "dea233f45f94064105ec09f0767de338f67dcbe2")
6434 (revision "1"))
6435 (package
6436 (name "sbcl-type-i")
6437 (build-system asdf-build-system/sbcl)
6438 (version (git-version "0.1" revision commit))
6439 (home-page "https://github.com/guicho271828/type-i")
6440 (source
6441 (origin
6442 (method git-fetch)
6443 (uri (git-reference
6444 (url home-page)
6445 (commit commit)))
6446 (file-name (git-file-name name version))
6447 (sha256
6448 (base32
6449 "039g5pbrhh65s0bhr9314gmd2nwc2y5lp2377c5qrc2lxky89qs3"))))
6450 (inputs
6451 `(("alexandria" ,sbcl-alexandria)
6452 ("introspect-environment" ,sbcl-introspect-environment)
6453 ("trivia.trivial" ,sbcl-trivia.trivial)))
6454 (native-inputs
6455 `(("fiveam" ,sbcl-fiveam)))
6456 (arguments
6457 `(#:test-asd-file "type-i.test.asd"))
6458 (synopsis "Type inference utility on unary predicates for Common Lisp")
6459 (description "This library tries to provide a way to detect what kind of
6460type the given predicate is trying to check. This is different from inferring
6461the return type of a function.")
6462 (license license:llgpl))))
f1eb7961 6463
6c16f1a5
PN
6464(define-public cl-type-i
6465 (sbcl-package->cl-source-package sbcl-type-i))
6466
f1eb7961
PN
6467(define-public sbcl-optima
6468 (let ((commit "373b245b928c1a5cce91a6cb5bfe5dd77eb36195")
6469 (revision "1"))
6470 (package
6471 (name "sbcl-optima")
6472 (build-system asdf-build-system/sbcl)
85747bab 6473 (version (git-version "1.0" revision commit))
f1eb7961
PN
6474 (home-page "https://github.com/m2ym/optima")
6475 (source
6476 (origin
6477 (method git-fetch)
6478 (uri (git-reference
6479 (url home-page)
6480 (commit commit)))
6481 (file-name (git-file-name name version))
6482 (sha256
6483 (base32
6484 "1yw4ymq7ms89342kkvb3aqxgv0w38m9kd8ikdqxxzyybnkjhndal"))))
6485 (inputs
6486 `(("alexandria" ,sbcl-alexandria)
6487 ("closer-mop" ,sbcl-closer-mop)))
6488 (native-inputs
6489 `(("eos" ,sbcl-eos)))
6490 (arguments
6491 ;; XXX: Circular dependencies: tests depend on optima.ppcre which depends on optima.
6492 `(#:tests? #f
6493 #:test-asd-file "optima.test.asd"))
6494 (synopsis "Optimized pattern matching library for Common Lisp")
6495 (description "Optima is a fast pattern matching library which uses
6496optimizing techniques widely used in the functional programming world.")
6497 (license license:expat))))
41c42e16 6498
6c16f1a5
PN
6499(define-public cl-optima
6500 (sbcl-package->cl-source-package sbcl-optima))
6501
41c42e16
PN
6502(define-public sbcl-fare-quasiquote
6503 (package
6504 (name "sbcl-fare-quasiquote")
6505 (build-system asdf-build-system/sbcl)
6506 (version "20171130")
6507 (home-page "http://common-lisp.net/project/fare-quasiquote")
6508 (source
6509 (origin
6510 (method url-fetch)
6511 (uri (string-append "http://beta.quicklisp.org/archive/fare-quasiquote/"
6512 (date->string (string->date version "~Y~m~d") "~Y-~m-~d")
6513 "/fare-quasiquote-"
6514 version
6515 "-git.tgz"))
6516 (sha256
6517 (base32
6518 "00brmh7ndsi0c97nibi8cy10j3l4gmkyrfrr5jr5lzkfb7ngyfqa"))))
6519 (inputs
6520 `(("fare-utils" ,sbcl-fare-utils)))
6521 (arguments
6522 ;; XXX: Circular dependencies: Tests depend on subsystems, which depend on the main systems.
6523 `(#:tests? #f
6524 #:phases
6525 (modify-phases %standard-phases
6526 ;; XXX: Require 1.0.0 version of fare-utils, and we package some
6527 ;; commits after 1.0.0.5, but ASDF fails to read the
6528 ;; "-REVISION-COMMIT" part generated by Guix.
6529 (add-after 'unpack 'patch-requirement
6530 (lambda _
6531 (substitute* "fare-quasiquote.asd"
6532 (("\\(:version \"fare-utils\" \"1.0.0\"\\)") "\"fare-utils\"")))))))
6533 (synopsis "Pattern-matching friendly implementation of quasiquote for Common Lisp")
6534 (description "The main purpose of this n+2nd reimplementation of
6535quasiquote is enable matching of quasiquoted patterns, using Optima or
6536Trivia.")
6537 (license license:expat)))
b7231496 6538
7baaf7f3
PN
6539(define-public cl-fare-quasiquote
6540 (sbcl-package->cl-source-package sbcl-fare-quasiquote))
6541
06e2da71
PN
6542(define-public sbcl-fare-quasiquote-optima
6543 (package
6544 (inherit sbcl-fare-quasiquote)
6545 (name "sbcl-fare-quasiquote-optima")
6546 (inputs
6547 `(("optima" ,sbcl-optima)
6548 ("fare-quasiquote" ,sbcl-fare-quasiquote)))
6549 (arguments
6550 '(#:phases
6551 (modify-phases %standard-phases
6552 (add-after 'unpack 'patch-requirement
6553 (lambda _
6554 (substitute* "fare-quasiquote-optima.asd"
6555 (("\\(:version \"optima\" \"1\\.0\"\\)")
6556 "\"optima\""))
6557 #t)))))))
6558
6559(define-public cl-fare-quasiquote-optima
6560 (sbcl-package->cl-source-package sbcl-fare-quasiquote-optima))
6561
b7231496
PN
6562(define-public sbcl-fare-quasiquote-readtable
6563 (package
6564 (inherit sbcl-fare-quasiquote)
6565 (name "sbcl-fare-quasiquote-readtable")
6566 (inputs
6567 `(("fare-quasiquote" ,sbcl-fare-quasiquote)
6568 ("named-readtables" ,sbcl-named-readtables)))
6569 (description "The main purpose of this n+2nd reimplementation of
6570quasiquote is enable matching of quasiquoted patterns, using Optima or
6571Trivia.
6572
f74b6983 6573This package uses fare-quasiquote with named-readtable.")))
5163929e 6574
7b9cb9c0
PN
6575(define-public cl-fare-quasiquote-readtable
6576 (sbcl-package->cl-source-package sbcl-fare-quasiquote-readtable))
6577
6fdb5b79
PN
6578;; TODO: Add support for component-less system in asdf-build-system/sbcl.
6579(define-public cl-fare-quasiquote-extras
6580 (package
6581 (inherit cl-fare-quasiquote)
6582 (name "cl-fare-quasiquote-extras")
6583 (build-system asdf-build-system/source)
6584 (propagated-inputs
6585 `(("fare-quasiquote" ,cl-fare-quasiquote)
6586 ("fare-quasiquote-optima" ,cl-fare-quasiquote-optima)
6587 ("fare-quasiquote-readtable" ,cl-fare-quasiquote-readtable)))
6588 (description "This library combines @code{fare-quasiquote-readtable} and
6589@code{fare-quasiquote-optima}.")))
6590
5163929e
PN
6591(define-public sbcl-trivia.level0
6592 (let ((commit "902e0c65602bbfe96ae82e679330b3771ddc7603")
6593 (revision "1"))
6594 (package
6595 (name "sbcl-trivia.level0")
6596 (build-system asdf-build-system/sbcl)
6597 (version (git-version "0.0.0" revision commit))
6598 (home-page "https://github.com/guicho271828/trivia")
6599 (source
6600 (origin
6601 (method git-fetch)
6602 (uri (git-reference
6603 (url home-page)
6604 (commit commit)))
6605 (file-name (git-file-name name version))
6606 (sha256
6607 (base32
6608 "11qbab30qqnfy9mx3x9fvgcw1jbvh1qn2cqv3p8xdn2m8981jvhr"))))
6609 (inputs
6610 `(("alexandria" ,sbcl-alexandria)))
6611 (synopsis "Pattern matching in Common Lisp")
6612 (description "Trivia is a pattern matching compiler that is compatible
6613with Optima, another pattern matching library for Common Lisp. It is meant to
6614be faster and more extensible than Optima.")
6615 (license license:llgpl))))
e4e84e3d
PN
6616
6617(define-public sbcl-trivia.level1
6618 (package
6619 (inherit sbcl-trivia.level0)
6620 (name "sbcl-trivia.level1")
6621 (inputs
6622 `(("trivia.level0" ,sbcl-trivia.level0)))
6623 (description "Trivia is a pattern matching compiler that is compatible
6624with Optima, another pattern matching library for Common Lisp. It is meant to
6625be faster and more extensible than Optima.
6626
6627This system contains the core patterns of Trivia.")))
49df8a0a
PN
6628
6629(define-public sbcl-trivia.level2
6630 (package
6631 (inherit sbcl-trivia.level0)
6632 (name "sbcl-trivia.level2")
6633 (inputs
6634 `(("trivia.level1" ,sbcl-trivia.level1)
6635 ("lisp-namespace" ,sbcl-lisp-namespace)
6636 ("trivial-cltl2" ,sbcl-trivial-cltl2)
6637 ("closer-mop" ,sbcl-closer-mop)))
6638 (description "Trivia is a pattern matching compiler that is compatible
6639with Optima, another pattern matching library for Common Lisp. It is meant to
6640be faster and more extensible than Optima.
6641
6642This system contains a non-optimized pattern matcher compatible with Optima,
6643with extensible optimizer interface.")))
02a8324b
PN
6644
6645(define-public sbcl-trivia.trivial
6646 (package
6647 (inherit sbcl-trivia.level0)
6648 (name "sbcl-trivia.trivial")
6649 (inputs
6650 `(("trivia.level2" ,sbcl-trivia.level2)))
6651 (arguments
6652 `(#:phases
6653 (modify-phases %standard-phases
6654 (replace 'create-asd-file
6655 (lambda* (#:key outputs inputs #:allow-other-keys)
6656 (let* ((out (assoc-ref outputs "out"))
57f815cb 6657 (lib (string-append out "/lib/" (%lisp-type)))
02a8324b
PN
6658 (level2 (assoc-ref inputs "trivia.level2")))
6659 (mkdir-p lib)
6660 (install-file "trivia.trivial.asd" lib)
6661 ;; XXX: This .asd does not have any component and the build
6662 ;; system fails to work in this case. We should update the
6663 ;; build system to handle component-less .asd.
6664 ;; TODO: How do we append to file in Guile? It seems that
6665 ;; (open-file ... "a") gets a "Permission denied".
6666 (substitute* (string-append lib "/trivia.trivial.asd")
6667 (("\"\\)")
6668 (string-append "\")
6669
6670(progn (asdf/source-registry:ensure-source-registry)
6671 (setf (gethash
6672 \"trivia.level2\"
6673 asdf/source-registry:*source-registry*)
6674 #p\""
6675 level2
6676 "/share/common-lisp/sbcl-bundle-systems/trivia.level2.asd\"))")))))))))
6677 (description "Trivia is a pattern matching compiler that is compatible
6678with Optima, another pattern matching library for Common Lisp. It is meant to
6679be faster and more extensible than Optima.
6680
6681This system contains the base level system of Trivia with a trivial optimizer.")))
9d450c6d
PN
6682
6683(define-public sbcl-trivia.balland2006
6684 (package
6685 (inherit sbcl-trivia.level0)
6686 (name "sbcl-trivia.balland2006")
6687 (inputs
6688 `(("trivia.trivial" ,sbcl-trivia.trivial)
6689 ("iterate" ,sbcl-iterate)
6690 ("type-i" ,sbcl-type-i)
6691 ("alexandria" ,sbcl-alexandria)))
6692 (arguments
6693 ;; Tests are done in trivia itself.
6694 `(#:tests? #f))
6695 (description "Trivia is a pattern matching compiler that is compatible
6696with Optima, another pattern matching library for Common Lisp. It is meant to
6697be faster and more extensible than Optima.
6698
6699This system contains the base level system of Trivia with a trivial optimizer.")))
3706c0a4
PN
6700
6701(define-public sbcl-trivia.ppcre
6702 (package
6703 (inherit sbcl-trivia.level0)
6704 (name "sbcl-trivia.ppcre")
6705 (inputs
6706 `(("trivia.trivial" ,sbcl-trivia.trivial)
6707 ("cl-ppcre" ,sbcl-cl-ppcre)))
6708 (description "Trivia is a pattern matching compiler that is compatible
6709with Optima, another pattern matching library for Common Lisp. It is meant to
6710be faster and more extensible than Optima.
6711
a0bd9181 6712This system contains the PPCRE extension.")))
9b5e5eaf
PN
6713
6714(define-public sbcl-trivia.quasiquote
6715 (package
6716 (inherit sbcl-trivia.level0)
6717 (name "sbcl-trivia.quasiquote")
6718 (inputs
6719 `(("trivia.trivial" ,sbcl-trivia.trivial)
6720 ("fare-quasiquote" ,sbcl-fare-quasiquote)
6721 ("fare-quasiquote-readtable" ,sbcl-fare-quasiquote-readtable)))
6722 (description "Trivia is a pattern matching compiler that is compatible
6723with Optima, another pattern matching library for Common Lisp. It is meant to
6724be faster and more extensible than Optima.
6725
6726This system contains the fare-quasiquote extension.")))
9d4e4226
PN
6727
6728(define-public sbcl-trivia.cffi
6729 (package
6730 (inherit sbcl-trivia.level0)
6731 (name "sbcl-trivia.cffi")
6732 (inputs
6733 `(("cffi" ,sbcl-cffi)
6734 ("trivia.trivial" ,sbcl-trivia.trivial)))
6735 (description "Trivia is a pattern matching compiler that is compatible
6736with Optima, another pattern matching library for Common Lisp. It is meant to
6737be faster and more extensible than Optima.
6738
6739This system contains the CFFI foreign slot access extension.")))
87850c05
PN
6740
6741(define-public sbcl-trivia
6742 (package
6743 (inherit sbcl-trivia.level0)
6744 (name "sbcl-trivia")
6745 (inputs
6746 `(("trivia.balland2006" ,sbcl-trivia.balland2006)))
6747 (native-inputs
6748 `(("fiveam" ,sbcl-fiveam)
6749 ("trivia.ppcre" ,sbcl-trivia.ppcre)
6750 ("trivia.quasiquote" ,sbcl-trivia.quasiquote)
6751 ("trivia.cffi" ,sbcl-trivia.cffi)
6752 ("optima" ,sbcl-optima)))
6753 (arguments
000faac0
PN
6754 `(#:test-asd-file "trivia.test.asd"
6755 #:phases
6756 (modify-phases %standard-phases
6757 (add-after 'create-asd 'remove-component
6758 ;; XXX: The original .asd has no components, but our build system
6759 ;; creates an entry nonetheless. We need to remove it for the
6760 ;; generated .asd to load properly. See trivia.trivial for a
6761 ;; similar problem.
6762 (lambda* (#:key outputs #:allow-other-keys)
6763 (let* ((out (assoc-ref outputs "out"))
6764 (asd (string-append out "/lib/" (%lisp-type) "/trivia.asd")))
6765 (substitute* asd
6766 ((" :components
6767")
6768 ""))
6769 (substitute* asd
6770 ((" *\\(\\(:compiled-file \"trivia--system\"\\)\\)")
6771 ""))))))))
87850c05
PN
6772 (description "Trivia is a pattern matching compiler that is compatible
6773with Optima, another pattern matching library for Common Lisp. It is meant to
6774be faster and more extensible than Optima.")))
e4ce0097 6775
6c16f1a5
PN
6776(define-public cl-trivia
6777 (sbcl-package->cl-source-package sbcl-trivia))
6778
e4ce0097
PN
6779(define-public sbcl-mk-string-metrics
6780 (package
6781 (name "sbcl-mk-string-metrics")
6782 (version "0.1.2")
6783 (home-page "https://github.com/cbaggers/mk-string-metrics/")
6784 (source (origin
6785 (method git-fetch)
6786 (uri (git-reference
6787 (url home-page)
6788 (commit version)))
6789 (sha256
6790 (base32 "0bg0bv2mfd4k0g3x72x563hvmrx18xavaffr6xk5rh4if5j7kcf6"))
6791 (file-name (git-file-name name version))))
6792 (build-system asdf-build-system/sbcl)
6793 (synopsis "Calculate various string metrics efficiently in Common Lisp")
6794 (description "This library implements efficient algorithms that calculate
6795various string metrics in Common Lisp:
6796
6797@itemize
6798@item Damerau-Levenshtein distance
6799@item Hamming distance
6800@item Jaccard similarity coefficient
6801@item Jaro distance
6802@item Jaro-Winkler distance
6803@item Levenshtein distance
6804@item Normalized Damerau-Levenshtein distance
6805@item Normalized Levenshtein distance
6806@item Overlap coefficient
6807@end itemize\n")
6808 (license license:x11)))
6ba457cc 6809
6c16f1a5
PN
6810(define-public cl-mk-string-metrics
6811 (sbcl-package->cl-source-package sbcl-mk-string-metrics))
6812
6ba457cc
PN
6813(define-public sbcl-cl-str
6814 (let ((commit "3d5ec86e3a0199e5973aacde951086dfd754b5e5"))
6815 (package
6816 (name "sbcl-cl-str")
6817 (version (git-version "0.8" "1" commit))
6818 (home-page "https://github.com/vindarel/cl-str")
6819 (source (origin
6820 (method git-fetch)
6821 (uri (git-reference
6822 (url home-page)
6823 (commit commit)))
6824 (sha256
6825 (base32 "0szzzbygw9h985yxz909vvqrp69pmpcpahn7hn350lnyjislk9ga"))
6826 (file-name (git-file-name name version))))
6827 (build-system asdf-build-system/sbcl)
6828 (inputs
6829 `(("cl-ppcre" ,sbcl-cl-ppcre)
6830 ("cl-ppcre-unicode" ,sbcl-cl-ppcre-unicode)))
6831 (native-inputs
6832 `(("prove" ,sbcl-prove)
6833 ("prove-asdf" ,sbcl-prove-asdf)))
6834 (arguments
6835 `(#:asd-file "str.asd"
6836 #:asd-system-name "str"
6837 #:test-asd-file "str.test.asd"))
6838 (synopsis "Modern, consistent and terse Common Lisp string manipulation library")
6839 (description "A modern and consistent Common Lisp string manipulation
6840library that focuses on modernity, simplicity and discoverability:
6841@code{(str:trim s)} instead of @code{(string-trim '(#\\Space ...) s)}), or
6842@code{str:concat strings} instead of an unusual format construct; one
6843discoverable library instead of many; consistency and composability, where
6844@code{s} is always the last argument, which makes it easier to feed pipes and
6845arrows.")
6846 (license license:expat))))
b36165b7 6847
6c16f1a5
PN
6848(define-public cl-str
6849 (sbcl-package->cl-source-package sbcl-cl-str))
6850
b36165b7
PN
6851(define-public sbcl-cl-xmlspam
6852 (let ((commit "ea06abcca2a73a9779bcfb09081e56665f94e22a"))
6853 (package
6854 (name "sbcl-cl-xmlspam")
6855 (build-system asdf-build-system/sbcl)
6856 (version (git-version "0.0.0" "1" commit))
6857 (home-page "https://github.com/rogpeppe/cl-xmlspam")
6858 (source
6859 (origin
6860 (method git-fetch)
6861 (uri (git-reference
6862 (url home-page)
6863 (commit commit)))
6864 (file-name (string-append name "-" version))
6865 (sha256
6866 (base32
6867 "0w4rqvrgdgk3fwfq3kx4r7wwdr2bv3b6n3bdqwsiriw9psqzpz2s"))))
6868 (inputs
6869 `(("cxml" ,sbcl-cxml)
6870 ("cl-ppcre" ,sbcl-cl-ppcre)))
6871 (synopsis "Concise, regexp-like pattern matching on streaming XML for Common Lisp")
6872 (description "CXML does an excellent job at parsing XML elements, but what
6873do you do when you have a XML file that's larger than you want to fit in
6874memory, and you want to extract some information from it? Writing code to deal
6875with SAX events, or even using Klacks, quickly becomes tedious.
6876@code{cl-xmlspam} (for XML Stream PAttern Matcher) is designed to make it easy
6877to write code that mirrors the structure of the XML that it's parsing. It
6878also makes it easy to shift paradigms when necessary - the usual Lisp control
6879constructs can be used interchangeably with pattern matching, and the full
6880power of CXML is available when necessary.")
6881 (license license:bsd-3))))
c3e5e135
PN
6882
6883;; TODO: dbus uses ASDF's package-inferred-system which is not supported by
6884;; asdf-build-system/sbcl as of 2019-08-02. We should fix
6885;; asdf-build-system/sbcl.
6886(define-public cl-dbus
6887 (let ((commit "24b452df3a45ca5dc95015500f34baad175c981a")
6888 (revision "1"))
6889 (package
6890 (name "cl-dbus")
6891 (build-system asdf-build-system/source)
6892 (version (git-version "20190408" revision commit))
6893 (home-page "https://github.com/death/dbus")
6894 (source
6895 (origin
6896 (method git-fetch)
6897 (uri (git-reference
6898 (url home-page)
6899 (commit commit)))
6900 (file-name (git-file-name name version))
6901 (sha256
6902 (base32
6903 "0fw2q866yddbf23nk9pxphm9gsasx35vjyss82xzvndnjmzlqfl5"))))
6904 ;; Inputs must be propagated or else packages depending on this won't have the necessary packages.
6905 (propagated-inputs
6906 `(("alexandria" ,sbcl-alexandria)
6907 ("trivial-garbage" ,sbcl-trivial-garbage)
6908 ("babel" ,sbcl-babel)
6909 ("iolib" ,sbcl-iolib)
6910 ("iolib+multiplex" ,(@@ (gnu packages lisp) sbcl-iolib+multiplex))
6911 ("iolib+syscalls" ,(@@ (gnu packages lisp) sbcl-iolib+syscalls))
6912 ("iolib+streams" ,(@@ (gnu packages lisp) sbcl-iolib+streams))
6913 ("iolib+sockets" ,(@@ (gnu packages lisp) sbcl-iolib+sockets))
6914 ("ieee-floats" ,sbcl-ieee-floats)
6915 ("flexi-streams" ,sbcl-flexi-streams)
6916 ("cl-xmlspam" ,sbcl-cl-xmlspam)
6917 ("ironclad" ,sbcl-ironclad)))
6918 (synopsis "D-Bus client library for Common Lisp")
6919 (description "This is a Common Lisp library that allows to publish D-Bus
6920objects as well as send and notify other objects connected to a bus.")
6921 (license license:bsd-2))))
cc16f90a
PN
6922
6923(define-public sbcl-cl-hooks
6924 (let ((commit "5b638083f3b4f1221a52631d9c8a0a265565cac7")
6925 (revision "1"))
6926 (package
6927 (name "sbcl-cl-hooks")
6928 (build-system asdf-build-system/sbcl)
6929 (version (git-version "0.2.1" revision commit))
6930 (home-page "https://github.com/scymtym/architecture.hooks")
6931 (source
6932 (origin
6933 (method git-fetch)
6934 (uri (git-reference
6935 (url home-page)
6936 (commit commit)))
6937 (file-name (git-file-name name version))
6938 (sha256
6939 (base32
6940 "0bg3l0a28lw5gqqjp6p6b5nhwqk46sgkb7184w5qbfngw1hk8x9y"))))
6941 (inputs
6942 `(("alexandria" ,sbcl-alexandria)
6943 ("let-plus" ,sbcl-let-plus)
6944 ("trivial-garbage" ,sbcl-trivial-garbage)
6945 ("closer-mop" ,sbcl-closer-mop)))
6946 (native-inputs
6947 `(("fiveam" ,sbcl-fiveam)))
6948 (synopsis "Hooks extension point mechanism (as in Emacs) for Common Lisp")
6949 (description "A hook, in the present context, is a certain kind of
6950extension point in a program that allows interleaving the execution of
6951arbitrary code with the execution of a the program without introducing any
6952coupling between the two. Hooks are used extensively in the extensible editor
6953Emacs.
6954
6955In the Common LISP Object System (CLOS), a similar kind of extensibility is
6956possible using the flexible multi-method dispatch mechanism. It may even seem
0def6a48 6957that the concept of hooks does not provide any benefits over the possibilities
cc16f90a
PN
6958of CLOS. However, there are some differences:
6959
6960@itemize
6961
6962@item There can be only one method for each combination of specializers and
6963qualifiers. As a result this kind of extension point cannot be used by
6964multiple extensions independently.
6965@item Removing code previously attached via a @code{:before}, @code{:after} or
6966@code{:around} method can be cumbersome.
6967@item There could be other or even multiple extension points besides @code{:before}
6968and @code{:after} in a single method.
6969@item Attaching codes to individual objects using eql specializers can be
6970cumbersome.
6971@item Introspection of code attached a particular extension point is
6972cumbersome since this requires enumerating and inspecting the methods of a
6973generic function.
6974@end itemize
6975
6976This library tries to complement some of these weaknesses of method-based
6977extension-points via the concept of hooks.")
6978 (license license:llgpl))))
6979
6980(define-public cl-hooks
6981 (sbcl-package->cl-source-package sbcl-cl-hooks))
6982
6983(define-public ecl-cl-hooks
6984 (sbcl-package->ecl-package sbcl-cl-hooks))
5216632a
PN
6985
6986(define-public sbcl-s-sysdeps
6987 (let ((commit "d28246b5dffef9e73a0e0e6cfbc4e878006fe34d")
6988 (revision "1"))
6989 (package
6990 (name "sbcl-s-sysdeps")
6991 (build-system asdf-build-system/sbcl)
6992 (version (git-version "1" revision commit))
6993 (home-page "https://github.com/svenvc/s-sysdeps")
6994 (source
6995 (origin
6996 (method git-fetch)
6997 (uri (git-reference
6998 (url home-page)
6999 (commit commit)))
7000 (file-name (git-file-name name version))
7001 (sha256
7002 (base32
7003 "14b69b81yrxmjlvmm3lfxk04x5v7hqz4fql121334wh72czznfh9"))))
7004 (synopsis "Common Lisp abstraction layer over platform dependent functionality")
7005 (description "@code{s-sysdeps} is an abstraction layer over platform
7006dependent functionality. This simple package is used as a building block in a
7007number of other open source projects.
7008
7009@code{s-sysdeps} abstracts:
7010
7011@itemize
7012@item managing processes,
7013@item implementing a standard TCP/IP server,
7014@item opening a client TCP/IP socket stream,
7015@item working with process locks.
7016@end itemize\n")
7017 (license license:llgpl))))
7018
7019(define-public cl-s-sysdeps
7020 (sbcl-package->cl-source-package sbcl-s-sysdeps))
7021
7022(define-public ecl-s-sysdeps
7023 (sbcl-package->ecl-package sbcl-s-sysdeps))
eb2e9ef4
PN
7024
7025(define-public sbcl-cl-prevalence
7026 (let ((commit "c163c227ed85d430b82cb1e3502f72d4f88e3cfa")
7027 (revision "1"))
7028 (package
7029 (name "sbcl-cl-prevalence")
7030 (build-system asdf-build-system/sbcl)
7031 (version (git-version "5" revision commit))
7032 (home-page "https://github.com/40ants/cl-prevalence")
7033 (source
7034 (origin
7035 (method git-fetch)
7036 (uri (git-reference
7037 (url home-page)
7038 (commit commit)))
7039 (file-name (git-file-name name version))
7040 (sha256
7041 (base32
7042 "1i9zj1q2ahgwch56an21yzbgkynz0kab9fyxkq9mg8p3xrv38jjn"))))
7043 (inputs
7044 `(("s-sysdeps" ,sbcl-s-sysdeps)
7045 ("s-xml" ,sbcl-s-xml)))
7046 (synopsis "Implementation of object prevalence for Common Lisp")
7047 (description "This Common Lisp library implements object prevalence (see
7048@url{https://en.wikipedia.org/wiki/System_prevalence}). It allows
7049for (de)serializing to and from s-exps as well as XML. Serialization of arbitrary
7050classes and cyclic data structures are supported.")
7051 (license license:llgpl))))
7052
7053(define-public cl-prevalence
7054 (sbcl-package->cl-source-package sbcl-cl-prevalence))
7055
7056(define-public ecl-cl-prevalence
7057 (sbcl-package->ecl-package sbcl-cl-prevalence))
b2fa53d0
GLV
7058
7059(define-public sbcl-series
7060 (let ((commit "da9061b336119d1e5214aff9117171d494d5a58a")
7061 (revision "1"))
7062 (package
7063 (name "sbcl-series")
7064 (version (git-version "2.2.11" revision commit))
7065 (source
7066 (origin
7067 (method git-fetch)
7068 (uri (git-reference
7069 (url "git://git.code.sf.net/p/series/series")
7070 (commit commit)))
7071 (file-name (git-file-name name version))
7072 (sha256
7073 (base32
7074 "07hk2lhfx42zk018pxqvn4gs77vd4n4g8m4xxbqaxgca76mifwfw"))))
7075 (build-system asdf-build-system/sbcl)
7076 (arguments
7077 ;; Disable the tests, they are apparently buggy and I didn't find
7078 ;; a simple way to make them run and pass.
7079 '(#:tests? #f))
7080 (synopsis "Series data structure for Common Lisp")
7081 (description
7082 "This Common Lisp library provides a series data structure much like
7083a sequence, with similar kinds of operations. The difference is that in many
7084situations, operations on series may be composed functionally and yet execute
7085iteratively, without the need to construct intermediate series values
7086explicitly. In this manner, series provide both the clarity of a functional
7087programming style and the efficiency of an iterative programming style.")
7088 (home-page "http://series.sourceforge.net/")
7089 (license license:expat))))
7090
7091(define-public cl-series
7092 (sbcl-package->cl-source-package sbcl-series))
7093
7094(define-public ecl-series
7095 (sbcl-package->ecl-package sbcl-series))
7bf9577d
GLV
7096
7097(define-public sbcl-periods
7098 (let ((commit "983d4a57325db3c8def942f163133cec5391ec28")
7099 (revision "1"))
7100 (package
7101 (name "sbcl-periods")
7102 (version (git-version "0.0.2" revision commit))
7103 (source
7104 (origin
7105 (method git-fetch)
7106 (uri (git-reference
7107 (url "https://github.com/jwiegley/periods.git")
7108 (commit commit)))
7109 (file-name (git-file-name name version))
7110 (sha256
7111 (base32
7112 "0z30jr3lxz3cmi019fsl4lgcgwf0yqpn95v9zkkkwgymdrkd4lga"))))
7113 (build-system asdf-build-system/sbcl)
7114 (inputs
7115 `(("local-time" ,sbcl-local-time)))
7116 (synopsis "Common Lisp library for manipulating date/time objects")
7117 (description
7118 "Periods is a Common Lisp library providing a set of utilities for
7119manipulating times, distances between times, and both contiguous and
7120discontiguous ranges of time.")
7121 (home-page "https://github.com/jwiegley/periods")
7122 (license license:bsd-3))))
7123
7124(define-public cl-periods
7125 (sbcl-package->cl-source-package sbcl-periods))
7126
7127(define-public ecl-periods
7128 (sbcl-package->ecl-package sbcl-periods))
5c2f6797
GLV
7129
7130(define-public sbcl-periods-series
7131 (package
7132 (inherit sbcl-periods)
7133 (name "sbcl-periods-series")
7134 (inputs
7135 `(("periods" ,sbcl-periods)
7136 ("series" ,sbcl-series)))
7137 (arguments
7138 '(#:asd-file "periods-series.asd"
7139 #:asd-system-name "periods-series"))
7140 (description
7141 "Periods-series is an extension of the periods Common Lisp library
7142providing functions compatible with the series Common Lisp library.")))
7143
7144(define-public cl-periods-series
7145 (sbcl-package->cl-source-package sbcl-periods-series))
7146
7147(define-public ecl-periods-series
7148 (sbcl-package->ecl-package sbcl-periods-series))
cacbeebc
GLV
7149
7150(define-public sbcl-metatilities-base
7151 (let ((commit "6eaa9e3ff0939a93a92109dd0fcd218de85417d5")
7152 (revision "1"))
7153 (package
7154 (name "sbcl-metatilities-base")
7155 (version (git-version "0.6.6" revision commit))
7156 (source
7157 (origin
7158 (method git-fetch)
7159 (uri (git-reference
7160 (url "https://github.com/gwkkwg/metatilities-base.git")
7161 (commit commit)))
7162 (file-name (git-file-name name version))
7163 (sha256
7164 (base32
7165 "0xpa86pdzlnf4v5g64j3ifaplx71sx2ha8b7vvakswi652679ma0"))))
7166 (build-system asdf-build-system/sbcl)
7167 (native-inputs
7168 `(("lift" ,sbcl-lift)))
7169 (synopsis "Core of the metatilities Common Lisp library")
7170 (description
7171 "Metatilities-base is the core of the metatilities Common Lisp library
7172which implements a set of utilities.")
7173 (home-page "https://common-lisp.net/project/metatilities-base/")
7174 (license license:expat))))
7175
7176(define-public cl-metatilities-base
7177 (sbcl-package->cl-source-package sbcl-metatilities-base))
7178
7179(define-public ecl-metatilities-base
7180 (sbcl-package->ecl-package sbcl-metatilities-base))
f5d1f58b
GLV
7181
7182(define-public sbcl-cl-containers
7183 (let ((commit "810927e19d933bcf38ffeb7a23ce521efc432d45")
7184 (revision "1"))
7185 (package
7186 (name "sbcl-cl-containers")
7187 (version (git-version "0.12.1" revision commit))
7188 (source
7189 (origin
7190 (method git-fetch)
7191 (uri (git-reference
7192 (url "https://github.com/gwkkwg/cl-containers.git")
7193 (commit commit)))
7194 (file-name (git-file-name name version))
7195 (sha256
7196 (base32
7197 "1s9faxw7svhbjpkhfrz2qxgjm3cvyjb8wpyb4m8dx4i5g7vvprkv"))))
7198 (build-system asdf-build-system/sbcl)
7199 (native-inputs
7200 `(("lift" ,sbcl-lift)))
7201 (inputs
7202 `(("metatilities-base" ,sbcl-metatilities-base)))
7203 (arguments
7204 '(#:phases
7205 (modify-phases %standard-phases
7206 (add-after 'unpack 'relax-version-checks
7207 (lambda _
7208 (substitute* "cl-containers.asd"
7209 (("\\(:version \"metatilities-base\" \"0\\.6\\.6\"\\)")
7210 "\"metatilities-base\""))
7211 (substitute* "cl-containers-test.asd"
7212 (("\\(:version \"lift\" \"1\\.7\\.0\"\\)")
7213 "\"lift\""))
7214 #t)))))
7215 (synopsis "Container library for Common Lisp")
7216 (description
7217 "Common Lisp ships with a set of powerful built in data structures
7218including the venerable list, full featured arrays, and hash-tables.
7219CL-containers enhances and builds on these structures by adding containers
7220that are not available in native Lisp (for example: binary search trees,
7221red-black trees, sparse arrays and so on), and by providing a standard
7222interface so that they are simpler to use and so that changing design
7223decisions becomes significantly easier.")
7224 (home-page "https://common-lisp.net/project/cl-containers/")
7225 (license license:expat))))
7226
7227(define-public cl-containers
7228 (sbcl-package->cl-source-package sbcl-cl-containers))
7229
7230(define-public ecl-cl-containers
7231 (sbcl-package->ecl-package sbcl-cl-containers))
bc5d9a7a
GLV
7232
7233(define-public sbcl-xlunit
7234 (let ((commit "3805d34b1d8dc77f7e0ee527a2490194292dd0fc")
7235 (revision "1"))
7236 (package
7237 (name "sbcl-xlunit")
7238 (version (git-version "0.6.3" revision commit))
7239 (source
7240 (origin
7241 (method git-fetch)
7242 (uri (git-reference
7243 (url "http://git.kpe.io/xlunit.git")
7244 (commit commit)))
7245 (file-name (git-file-name name version))
7246 (sha256
7247 (base32
7248 "0argfmp9nghs4sihyj3f8ch9qfib2b7ll07v5m9ziajgzsfl5xw3"))))
7249 (build-system asdf-build-system/sbcl)
7250 (arguments
7251 '(#:phases
7252 (modify-phases %standard-phases
7253 (add-after 'unpack 'fix-tests
7254 (lambda _
7255 (substitute* "xlunit.asd"
7256 ((" :force t") ""))
7257 #t)))))
7258 (synopsis "Unit testing package for Common Lisp")
7259 (description
7260 "The XLUnit package is a toolkit for building test suites. It is based
7261on the XPTest package by Craig Brozensky and the JUnit package by Kent Beck.")
7262 (home-page "http://quickdocs.org/xlunit/")
7263 (license license:bsd-3))))
7264
7265(define-public cl-xlunit
7266 (sbcl-package->cl-source-package sbcl-xlunit))
7267
7268(define-public ecl-xlunit
7269 (sbcl-package->ecl-package sbcl-xlunit))
c0dcdd45
GLV
7270
7271(define-public sbcl-fprog
7272 (let ((commit "7016d1a98215f82605d1c158e7a16504ca1f4636")
7273 (revision "1"))
7274 (package
7275 (name "sbcl-fprog")
7276 (version (git-version "1.0.0" revision commit))
7277 (source
7278 (origin
7279 (method git-fetch)
7280 (uri (git-reference
7281 (url "https://github.com/jwiegley/cambl.git")
7282 (commit commit)))
7283 (file-name (git-file-name name version))
7284 (sha256
7285 (base32
7286 "103mry04j2k9vznsxm7wcvccgxkil92cdrv52miwcmxl8daa4jiz"))))
7287 (build-system asdf-build-system/sbcl)
7288 (synopsis "Functional programming utilities for Common Lisp")
7289 (description
7290 "@code{fprog} is a Common Lisp library allowing iteration over
7291immutable lists sharing identical sublists.")
7292 (home-page "https://github.com/jwiegley/cambl")
7293 (license license:bsd-3))))
7294
7295(define-public cl-fprog
7296 (sbcl-package->cl-source-package sbcl-fprog))
7297
7298(define-public ecl-fprog
7299 (sbcl-package->ecl-package sbcl-fprog))
66226d5d
GLV
7300
7301(define-public sbcl-cambl
7302 (let ((commit "7016d1a98215f82605d1c158e7a16504ca1f4636")
7303 (revision "1"))
7304 (package
7305 (inherit sbcl-fprog)
7306 (name "sbcl-cambl")
7307 (version (git-version "4.0.0" revision commit))
7308 (native-inputs
7309 `(("xlunit" ,sbcl-xlunit)))
7310 (inputs
7311 `(("alexandria" ,sbcl-alexandria)
7312 ("cl-containers" ,sbcl-cl-containers)
7313 ("local-time" ,sbcl-local-time)
7314 ("periods" ,sbcl-periods)
7315 ("fprog" ,sbcl-fprog)))
7316 (synopsis "Commoditized amounts and balances for Common Lisp")
7317 (description
7318 "CAMBL is a Common Lisp library providing a convenient facility for
7319working with commoditized values. It does not allow compound units (and so is
7320not suited for scientific operations) but does work rather nicely for the
7321purpose of financial calculations."))))
7322
7323(define-public cl-cambl
7324 (sbcl-package->cl-source-package sbcl-cambl))
7325
7326(define-public ecl-cambl
7327 (sbcl-package->ecl-package sbcl-cambl))
b1df0d9f
GLV
7328
7329(define-public sbcl-cl-ledger
7330 (let ((commit "08e0be41795e804cd36142e51756ad0b1caa377b")
7331 (revision "1"))
7332 (package
7333 (name "sbcl-cl-ledger")
7334 (version (git-version "4.0.0" revision commit))
7335 (source
7336 (origin
7337 (method git-fetch)
7338 (uri (git-reference
7339 (url "https://github.com/ledger/cl-ledger.git")
7340 (commit commit)))
7341 (file-name (git-file-name name version))
7342 (sha256
7343 (base32
7344 "1via0qf6wjcyxnfbmfxjvms0ik9j8rqbifgpmnhrzvkhrq9pv8h1"))))
7345 (build-system asdf-build-system/sbcl)
7346 (inputs
7347 `(("cambl" ,sbcl-cambl)
7348 ("cl-ppcre" ,sbcl-cl-ppcre)
7349 ("local-time" ,sbcl-local-time)
7350 ("periods-series" ,sbcl-periods-series)))
7351 (arguments
7352 '(#:phases
7353 (modify-phases %standard-phases
7354 (add-after 'unpack 'fix-system-definition
7355 (lambda _
7356 (substitute* "cl-ledger.asd"
7357 ((" :build-operation program-op") "")
7358 ((" :build-pathname \"cl-ledger\"") "")
7359 ((" :entry-point \"ledger::main\"") ""))
7360 #t)))))
7361 (synopsis "Common Lisp port of the Ledger accounting system")
7362 (description
7363 "CL-Ledger is a Common Lisp port of the Ledger double-entry accounting
7364system.")
7365 (home-page "https://github.com/ledger/cl-ledger")
7366 (license license:bsd-3))))
7367
7368(define-public cl-ledger
7369 (sbcl-package->cl-source-package sbcl-cl-ledger))
7370
7371(define-public ecl-cl-ledger
7372 (sbcl-package->ecl-package sbcl-cl-ledger))
76b66fba
GLV
7373
7374(define-public sbcl-bst
7375 (let ((commit "34f9c7e8e0a9f2c952fe310ab36cb630d5d9c15a")
7376 (revision "1"))
7377 (package
7378 (name "sbcl-bst")
7379 (version (git-version "1.1" revision commit))
7380 (source
7381 (origin
7382 (method git-fetch)
7383 (uri (git-reference
7384 (url "https://github.com/glv2/bst.git")
7385 (commit commit)))
7386 (file-name (git-file-name name version))
7387 (sha256
7388 (base32
7389 "1amxns7hvvh4arwbh8ciwfzplg127vh37dnbamv1m1kmmnmihfc8"))))
7390 (build-system asdf-build-system/sbcl)
7391 (native-inputs
7392 `(("alexandria" ,sbcl-alexandria)
7393 ("fiveam" ,sbcl-fiveam)))
7394 (synopsis "Binary search tree for Common Lisp")
7395 (description
7396 "BST is a Common Lisp library for working with binary search trees that
7397can contain any kind of values.")
7398 (home-page "https://github.com/glv2/bst")
7399 (license license:gpl3))))
7400
7401(define-public cl-bst
7402 (sbcl-package->cl-source-package sbcl-bst))
7403
7404(define-public ecl-bst
7405 (sbcl-package->ecl-package sbcl-bst))
ed0ddadc
GLV
7406
7407(define-public sbcl-cl-octet-streams
7408 (package
7409 (name "sbcl-cl-octet-streams")
7410 (version "1.0")
7411 (source
7412 (origin
7413 (method git-fetch)
7414 (uri (git-reference
7415 (url "https://github.com/glv2/cl-octet-streams.git")
7416 (commit (string-append "v" version))))
7417 (file-name (git-file-name name version))
7418 (sha256
7419 (base32
7420 "1d7mn6ydv0j2x4r7clpc9ijjwrnfpxmvhifv8n5j7jh7s744sf8d"))))
7421 (build-system asdf-build-system/sbcl)
7422 (native-inputs
7423 `(("fiveam" ,sbcl-fiveam)))
7424 (inputs
7425 `(("trivial-gray-streams" ,sbcl-trivial-gray-streams)))
7426 (synopsis "In-memory octet streams for Common Lisp")
7427 (description
7428 "CL-octet-streams is a library implementing in-memory octet
7429streams for Common Lisp. It was inspired by the trivial-octet-streams and
7430cl-plumbing libraries.")
7431 (home-page "https://github.com/glv2/cl-octet-streams")
7432 (license license:gpl3+)))
7433
7434(define-public cl-octet-streams
7435 (sbcl-package->cl-source-package sbcl-cl-octet-streams))
7436
7437(define-public ecl-cl-octet-streams
7438 (sbcl-package->ecl-package sbcl-cl-octet-streams))
3012486d
GLV
7439
7440(define-public sbcl-lzlib
7441 (let ((commit "0de1db7129fef9a58a059d35a2fa2ecfc5b47b47")
7442 (revision "1"))
7443 (package
7444 (name "sbcl-lzlib")
7445 (version (git-version "1.0" revision commit))
7446 (source
7447 (origin
7448 (method git-fetch)
7449 (uri (git-reference
7450 (url "https://github.com/glv2/cl-lzlib.git")
7451 (commit commit)))
7452 (file-name (git-file-name name version))
7453 (sha256
7454 (base32
7455 "12ny7vj52fgnd8hb8fc8mry92vq4c1x72x2350191m4476j95clz"))))
7456 (build-system asdf-build-system/sbcl)
7457 (native-inputs
7458 `(("fiveam" ,sbcl-fiveam)))
7459 (inputs
7460 `(("cffi" ,sbcl-cffi)
7461 ("cl-octet-streams" ,sbcl-cl-octet-streams)
7462 ("lzlib" ,lzlib)))
7463 (arguments
7464 '(#:phases
7465 (modify-phases %standard-phases
7466 (add-after 'unpack 'fix-paths
7467 (lambda* (#:key inputs #:allow-other-keys)
7468 (substitute* "src/lzlib.lisp"
7469 (("liblz\\.so")
7470 (string-append (assoc-ref inputs "lzlib") "/lib/liblz.so")))
7471 #t)))))
7472 (synopsis "Common Lisp library for lzip (de)compression")
7473 (description
7474 "This Common Lisp library provides functions for lzip (LZMA)
7475compression/decompression using bindings to the lzlib C library.")
7476 (home-page "https://github.com/glv2/cl-lzlib")
7477 (license license:gpl3+))))
7478
7479(define-public cl-lzlib
7480 (sbcl-package->cl-source-package sbcl-lzlib))
7481
7482(define-public ecl-lzlib
7483 (sbcl-package->ecl-package sbcl-lzlib))
d3287fc1
GLV
7484
7485(define-public sbcl-chanl
7486 (let ((commit "2362b57550c2c9238cc882d03553aaa1040b7340")
7487 (revision "0"))
7488 (package
7489 (name "sbcl-chanl")
7490 (version (git-version "0.4.1" revision commit))
7491 (source
7492 (origin
7493 (method git-fetch)
7494 (uri (git-reference
7495 (url "https://github.com/zkat/chanl.git")
7496 (commit commit)))
7497 (file-name (git-file-name name version))
7498 (sha256
7499 (base32
7500 "0ag3wz7yrqwp0s5069wwda98z3rrqd25spg8sa8rdqghj084w28w"))))
7501 (build-system asdf-build-system/sbcl)
7502 (native-inputs
7503 `(("fiveam" ,sbcl-fiveam)))
7504 (inputs
7505 `(("bordeaux-threads" ,sbcl-bordeaux-threads)))
7506 (synopsis "Portable channel-based concurrency for Common Lisp")
7507 (description "Common Lisp library for channel-based concurrency. In
7508a nutshell, you create various threads sequentially executing tasks you need
7509done, and use channel objects to communicate and synchronize the state of these
7510threads.")
7511 (home-page "https://github.com/zkat/chanl")
7512 (license (list license:expat license:bsd-3)))))
7513
7514(define-public cl-chanl
7515 (sbcl-package->cl-source-package sbcl-chanl))
7516
7517(define-public ecl-chanl
7518 (let ((base (sbcl-package->ecl-package sbcl-chanl)))
7519 (package
7520 (inherit base)
7521 (arguments
7522 (substitute-keyword-arguments (package-arguments base)
7523 ;; The CHANL.ACTORS package uses the :ARGUMENTS option of
7524 ;; DEFINE-METHOD-COMBINATION, which is not implemented in ECL yet
7525 ;; (see https://gitlab.com/embeddable-common-lisp/ecl/issues/305).
7526 ;; So let's disable it for now, as it allows compiling the library
7527 ;; and using the rest of it.
7528 ((#:phases phases '%standard-phases)
7529 `(modify-phases ,phases
7530 (add-after 'unpack 'disable-chanl-actors
7531 (lambda _
7532 (substitute* "chanl.asd"
7533 (("\\(:file \"actors\"\\)") ""))
7534 #t))))
7535 ;; Disable the tests for now, as the SEND-SEQUENCE test seems to
7536 ;; never end.
7537 ((#:tests? _ #f) #f))))))
2601da05
GLV
7538
7539(define-public sbcl-cl-store
7540 (let ((commit "cd01f2610d3360dc01ab972bd9317407aaea7745")
7541 (revision "0"))
7542 (package
7543 (name "sbcl-cl-store")
7544 (version (git-version "0.8.11" revision commit))
7545 (source
7546 (origin
7547 (method git-fetch)
7548 (uri (git-reference
7549 (url "https://github.com/skypher/cl-store.git")
7550 (commit commit)))
7551 (file-name (git-file-name name version))
7552 (sha256
7553 (base32
7554 "05b7kh5af2ax7vlmphpac4vbqr84j5ivppj96qzb64fxpjpqglm4"))))
7555 (build-system asdf-build-system/sbcl)
7556 (native-inputs
7557 `(("rt" ,sbcl-rt)))
7558 (synopsis "Common Lisp library to serialize data")
7559 (description
7560 "CL-STORE is a portable serialization package which should give you the
7561ability to store all Common Lisp data types into streams.")
7562 (home-page "http://www.common-lisp.net/project/cl-store/")
7563 (license license:expat))))
7564
7565(define-public cl-store
7566 (sbcl-package->cl-source-package sbcl-cl-store))
7567
7568(define-public ecl-cl-store
7569 (sbcl-package->ecl-package sbcl-cl-store))
cec23736
PN
7570
7571(define-public sbcl-cl-gobject-introspection
7572 (let ((commit "7b703e2384945ea0ac39d9b766de434a08d81560")
7573 (revision "0"))
7574 (package
7575 (name "sbcl-cl-gobject-introspection")
7576 (version (git-version "0.3" revision commit))
7577 (home-page "https://github.com/andy128k/cl-gobject-introspection")
7578 (source
7579 (origin
7580 (method git-fetch)
7581 (uri (git-reference
7582 (url home-page)
7583 (commit commit)))
7584 (file-name (git-file-name name version))
7585 (sha256
7586 (base32
7587 "1zcqd2qj14f6b38vys8gr89s6cijsp9r8j43xa8lynilwva7bwyh"))))
7588 (build-system asdf-build-system/sbcl)
7589 (inputs
7590 `(("alexandria" ,sbcl-alexandria)
7591 ("cffi" ,sbcl-cffi)
7592 ("iterate" ,sbcl-iterate)
7593 ("trivial-garbage" ,sbcl-trivial-garbage)
7594 ("glib" ,glib)
7595 ("gobject-introspection" ,gobject-introspection)))
7596 (native-inputs
7597 `(("fiveam" ,sbcl-fiveam)))
7598 (arguments
7599 ;; TODO: Tests fail, see
7600 ;; https://github.com/andy128k/cl-gobject-introspection/issues/70.
7601 '(#:tests? #f
7602 #:phases
7603 (modify-phases %standard-phases
7604 (add-after (quote unpack) (quote fix-paths)
7605 (lambda* (#:key inputs #:allow-other-keys)
7606 (substitute* "src/init.lisp"
7607 (("libgobject-2\\.0\\.so")
7608 (string-append (assoc-ref inputs "glib") "/lib/libgobject-2.0.so"))
7609 (("libgirepository-1\\.0\\.so")
7610 (string-append (assoc-ref inputs "gobject-introspection")
7611 "/lib/libgirepository-1.0.so")))
7612 #t)))))
7613 (synopsis "Common Lisp bindings to GObject Introspection")
7614 (description
7615 "This library is a bridge between Common Lisp and GObject
7616Introspection, which enables Common Lisp programs to access the full interface
7617of C+GObject libraries without the need of writing dedicated bindings.")
7618 (license (list license:bsd-3
7619 ;; Tests are under a different license.
7620 license:llgpl)))))
7621
7622(define-public cl-gobject-introspection
7623 (sbcl-package->cl-source-package sbcl-cl-gobject-introspection))
3658db3f
PN
7624
7625(define-public sbcl-string-case
7626 (let ((commit "718c761e33749e297cd2809c7ba3ade1985c49f7")
7627 (revision "0"))
7628 (package
7629 (name "sbcl-string-case")
7630 (version (git-version "0.0.2" revision commit))
7631 (home-page "https://github.com/pkhuong/string-case")
7632 (source
7633 (origin
7634 (method git-fetch)
7635 (uri (git-reference
7636 (url home-page)
7637 (commit commit)))
7638 (file-name (git-file-name name version))
7639 (sha256
7640 (base32
7641 "1n5i3yh0h5s636rcnwn7jwqy3rjflikra04lymimhpcshhjsk0md"))))
7642 (build-system asdf-build-system/sbcl)
7643 (synopsis "Efficient string= case in Common Lisp")
7644 (description
7645 "@code{string-case} is a Common Lisp macro that generates specialised decision
7646trees to dispatch on string equality.")
7647 (license license:bsd-3))))
7648
7649(define-public cl-string-case
7650 (sbcl-package->cl-source-package sbcl-string-case))
7651
7652(define-public ecl-string-case
7653 (sbcl-package->ecl-package sbcl-string-case))
003a714e
PN
7654
7655(define-public sbcl-global-vars
7656 (let ((commit "c749f32c9b606a1457daa47d59630708ac0c266e")
7657 (revision "0"))
7658 (package
7659 (name "sbcl-global-vars")
7660 (version (git-version "1.0.0" revision commit))
7661 (home-page "https://github.com/lmj/global-vars")
7662 (source
7663 (origin
7664 (method git-fetch)
7665 (uri (git-reference
7666 (url home-page)
7667 (commit commit)))
7668 (file-name (git-file-name name version))
7669 (sha256
7670 (base32
7671 "06m3xc8l3pgsapl8fvsi9wf6y46zs75cp9zn7zh6dc65v4s5wz3d"))))
7672 (build-system asdf-build-system/sbcl)
7673 (synopsis "Efficient global variables in Common Lisp")
7674 (description
7675 "In Common Lisp, a special variable that is never dynamically bound
7676typically serves as a stand-in for a global variable. The @code{global-vars}
7677library provides true global variables that are implemented by some compilers.
7678An attempt to rebind a global variable properly results in a compiler error.
7679That is, a global variable cannot be dynamically bound.
7680
7681Global variables therefore allow us to communicate an intended usage that
7682differs from special variables. Global variables are also more efficient than
7683special variables, especially in the presence of threads.")
7684 (license license:expat))))
7685
7686(define-public cl-global-vars
7687 (sbcl-package->cl-source-package sbcl-global-vars))
7688
7689(define-public ecl-global-vars
7690 (sbcl-package->ecl-package sbcl-global-vars))
c6dd9cf7
PN
7691
7692(define-public sbcl-trivial-file-size
7693 (let ((commit "1c1d672a01a446ba0391dbb4ffc40be3b0476f23")
7694 (revision "0"))
7695 (package
7696 (name "sbcl-trivial-file-size")
7697 (version (git-version "0.0.0" revision commit))
7698 (home-page "https://github.com/ruricolist/trivial-file-size")
7699 (source
7700 (origin
7701 (method git-fetch)
7702 (uri (git-reference
7703 (url home-page)
7704 (commit commit)))
7705 (file-name (git-file-name name version))
7706 (sha256
7707 (base32
7708 "17pp86c9zs4y7i1sh7q9gbfw9iqv6655k7fz8qbj9ly1ypgxp4qs"))))
7709 (build-system asdf-build-system/sbcl)
7710 (native-inputs
7711 `(("fiveam" ,sbcl-fiveam)))
7712 (synopsis "Size of a file in bytes in Common Lisp")
7713 (description
7714 "The canonical way to determine the size of a file in bytes, using Common Lisp,
7715is to open the file with an element type of (unsigned-byte 8) and then
7716calculate the length of the stream. This is less than ideal. In most cases
7717it is better to get the size of the file from its metadata, using a system
7718call.
7719
7720This library exports a single function, file-size-in-octets. It returns the
7721size of a file in bytes, using system calls when possible.")
7722 (license license:expat))))
7723
7724(define-public cl-trivial-file-size
7725 (sbcl-package->cl-source-package sbcl-trivial-file-size))
7726
7727(define-public ecl-trivial-file-size
7728 (sbcl-package->ecl-package sbcl-trivial-file-size))
fa4bbd9f
PN
7729
7730(define-public sbcl-trivial-macroexpand-all
7731 (let ((commit "933270ac7107477de1bc92c1fd641fe646a7a8a9")
7732 (revision "0"))
7733 (package
7734 (name "sbcl-trivial-macroexpand-all")
7735 (version (git-version "0.0.0" revision commit))
7736 (home-page "https://github.com/cbaggers/trivial-macroexpand-all")
7737 (source
7738 (origin
7739 (method git-fetch)
7740 (uri (git-reference
7741 (url home-page)
7742 (commit commit)))
7743 (file-name (git-file-name name version))
7744 (sha256
7745 (base32
7746 "191hnn4b5j4i3crydmlzbm231kj0h7l8zj6mzj69r1npbzkas4bd"))))
7747 (build-system asdf-build-system/sbcl)
7748 (native-inputs
7749 `(("fiveam" ,sbcl-fiveam)))
7750 (synopsis "Portable macroexpand-all for Common Lisp")
7751 (description
7752 "This library provides a macroexpand-all function that calls the
7753implementation specific equivalent.")
7754 (license license:unlicense))))
7755
7756(define-public cl-trivial-macroexpand-all
7757 (sbcl-package->cl-source-package sbcl-trivial-macroexpand-all))
7758
7759(define-public ecl-trivial-macroexpand-all
7760 (sbcl-package->ecl-package sbcl-trivial-macroexpand-all))
d57660c5
PN
7761
7762(define-public sbcl-serapeum
7763 (let ((commit "65837f8a0d65b36369ec8d000fff5c29a395b5fe")
7764 (revision "0"))
7765 (package
7766 (name "sbcl-serapeum")
7767 (version (git-version "0.0.0" revision commit))
7768 (home-page "https://github.com/ruricolist/serapeum")
7769 (source
7770 (origin
7771 (method git-fetch)
7772 (uri (git-reference
7773 (url home-page)
7774 (commit commit)))
7775 (file-name (git-file-name name version))
7776 (sha256
7777 (base32
7778 "0clwf81r2lvk1rbfvk91s9zmbkas9imf57ilqclw12mxaxlfsnbw"))))
7779 (build-system asdf-build-system/sbcl)
7780 (inputs
7781 `(("alexandria" ,sbcl-alexandria)
7782 ("trivia" ,sbcl-trivia)
7783 ("trivia.quasiquote" ,sbcl-trivia.quasiquote)
7784 ("split-sequence" ,sbcl-split-sequence)
7785 ("string-case" ,sbcl-string-case)
7786 ("parse-number" ,sbcl-parse-number)
7787 ("trivial-garbage" ,sbcl-trivial-garbage)
7788 ("bordeaux-threads" ,sbcl-bordeaux-threads)
7789 ("named-readtables" ,sbcl-named-readtables)
7790 ("fare-quasiquote-extras" ,cl-fare-quasiquote-extras)
7791 ("parse-declarations-1.0" ,sbcl-parse-declarations)
7792 ("global-vars" ,sbcl-global-vars)
7793 ("trivial-file-size" ,sbcl-trivial-file-size)
7794 ("trivial-macroexpand-all" ,sbcl-trivial-macroexpand-all)))
7795 (native-inputs
7796 `(("fiveam" ,sbcl-fiveam)
7797 ("local-time" ,sbcl-local-time)))
7798 (arguments
7799 '(#:phases
7800 (modify-phases %standard-phases
7801 (add-after 'unpack 'disable-failing-tests
7802 (lambda* (#:key inputs #:allow-other-keys)
7803 (substitute* "serapeum.asd"
7804 ;; Guix does not have Quicklisp, and probably never will.
7805 (("\\(:file \"quicklisp\"\\)") ""))
7806 #t)))))
7807 (synopsis "Common Lisp utility library beyond Alexandria")
7808 (description
7809 "Serapeum is a conservative library of Common Lisp utilities. It is a
7810supplement, not a competitor, to Alexandria.")
7811 (license license:expat))))
7812
7813(define-public cl-serapeum
7814 (sbcl-package->cl-source-package sbcl-serapeum))
f733862c
GLV
7815
7816(define-public sbcl-arrows
7817 (let ((commit "df7cf0067e0132d9697ac8b1a4f1b9c88d4f5382")
7818 (revision "0"))
7819 (package
7820 (name "sbcl-arrows")
7821 (version (git-version "0.2.0" revision commit))
7822 (source
7823 (origin
7824 (method git-fetch)
7825 (uri (git-reference
7826 (url "https://gitlab.com/Harleqin/arrows.git")
7827 (commit commit)))
7828 (file-name (git-file-name name version))
7829 (sha256
7830 (base32
7831 "042k9vkssrqx9nhp14wdzm942zgdxvp35mba0p2syz98i75im2yy"))))
7832 (build-system asdf-build-system/sbcl)
7833 (native-inputs
7834 `(("hu.dwim.stefil" ,sbcl-hu.dwim.stefil)))
7835 (synopsis "Clojure-like arrow macros for Common Lisp")
7836 (description
7837 "This library implements the @code{->} and @code{->>} macros from
7838Clojure, as well as several expansions on the idea.")
7839 (home-page "https://gitlab.com/Harleqin/arrows")
7840 (license license:public-domain))))
7841
7842(define-public cl-arrows
7843 (sbcl-package->cl-source-package sbcl-arrows))
7844
7845(define-public ecl-arrows
7846 (sbcl-package->ecl-package sbcl-arrows))
f2d6d9b8
GLV
7847
7848(define-public sbcl-simple-parallel-tasks
7849 (let ((commit "db460f7a3f7bbfe2d3a2223ed21e162068d04dda")
7850 (revision "0"))
7851 (package
7852 (name "sbcl-simple-parallel-tasks")
7853 (version (git-version "1.0" revision commit))
7854 (source
7855 (origin
7856 (method git-fetch)
7857 (uri (git-reference
7858 (url "https://github.com/glv2/simple-parallel-tasks.git")
7859 (commit commit)))
7860 (file-name (git-file-name name version))
7861 (sha256
7862 (base32
7863 "0amw3qk23wnlyrsgzszs6rs7y4zvxv8dr03rnqhc60mnm8ds4dd5"))))
7864 (build-system asdf-build-system/sbcl)
7865 (native-inputs
7866 `(("fiveam" ,sbcl-fiveam)))
7867 (inputs
7868 `(("chanl" ,sbcl-chanl)))
7869 (synopsis "Common Lisp library to evaluate some forms in parallel")
7870 (description "This is a simple Common Lisp library to evaluate some
7871forms in parallel.")
7872 (home-page "https://github.com/glv2/simple-parallel-tasks")
7873 (license license:gpl3))))
7874
7875(define-public cl-simple-parallel-tasks
7876 (sbcl-package->cl-source-package sbcl-simple-parallel-tasks))
7877
7878(define-public ecl-simple-parallel-tasks
7879 (sbcl-package->ecl-package sbcl-simple-parallel-tasks))
487392ce
GLV
7880
7881(define-public sbcl-cl-heap
7882 (package
7883 (name "sbcl-cl-heap")
7884 (version "0.1.6")
7885 (source
7886 (origin
7887 (method url-fetch)
7888 (uri (string-append "https://common-lisp.net/project/cl-heap/releases/"
7889 "cl-heap_" version ".tar.gz"))
7890 (sha256
7891 (base32
7892 "163hb07p2nxz126rpq3cj5dyala24n0by5i5786n2qcr1w0bak4i"))))
7893 (build-system asdf-build-system/sbcl)
7894 (native-inputs
7895 `(("xlunit" ,sbcl-xlunit)))
7896 (arguments
7897 `(#:test-asd-file "cl-heap-tests.asd"))
7898 (synopsis "Heap and priority queue data structures for Common Lisp")
7899 (description
7900 "CL-HEAP provides various implementations of heap data structures (a
7901binary heap and a Fibonacci heap) as well as an efficient priority queue.")
7902 (home-page "https://common-lisp.net/project/cl-heap/")
7903 (license license:gpl3+)))
7904
7905(define-public cl-heap
7906 (sbcl-package->cl-source-package sbcl-cl-heap))
7907
7908(define-public ecl-cl-heap
7909 (sbcl-package->ecl-package sbcl-cl-heap))
bb20a990
GLV
7910
7911(define-public sbcl-curry-compose-reader-macros
7912 (let ((commit "beaa92dedf392726c042184bfd6149fa8d9e6ac2")
7913 (revision "0"))
7914 (package
7915 (name "sbcl-curry-compose-reader-macros")
7916 (version (git-version "1.0.0" revision commit))
7917 (source
7918 (origin
7919 (method git-fetch)
7920 (uri
7921 (git-reference
7922 (url "https://github.com/eschulte/curry-compose-reader-macros.git")
7923 (commit commit)))
7924 (file-name (git-file-name name version))
7925 (sha256
7926 (base32
7927 "0rv9bl8xrad5wfcg5zs1dazvnpmvqz6297lbn8bywsrcfnlf7h98"))))
7928 (build-system asdf-build-system/sbcl)
7929 (inputs
7930 `(("alexandria" ,sbcl-alexandria)
7931 ("named-readtables" ,sbcl-named-readtables)))
7932 (synopsis "Reader macros for partial application and composition")
7933 (description
7934 "This Common Lisp library provides reader macros for concise expression
7935of function partial application and composition.")
7936 (home-page "https://eschulte.github.io/curry-compose-reader-macros/")
7937 (license license:public-domain))))
7938
7939(define-public cl-curry-compose-reader-macros
7940 (sbcl-package->cl-source-package sbcl-curry-compose-reader-macros))
7941
7942(define-public ecl-curry-compose-reader-macros
7943 (sbcl-package->ecl-package sbcl-curry-compose-reader-macros))
9d9a82d9
GLV
7944
7945(define-public sbcl-yason
7946 (package
7947 (name "sbcl-yason")
7948 (version "0.7.7")
7949 (source
7950 (origin
7951 (method git-fetch)
7952 (uri (git-reference
7953 (url "https://github.com/phmarek/yason.git")
7954 (commit (string-append "v" version))))
7955 (file-name (git-file-name name version))
7956 (sha256
7957 (base32
7958 "0479rbjgbj80jpk5bby18inlv1kfp771a82rlcq5psrz65qqa9bj"))))
7959 (build-system asdf-build-system/sbcl)
7960 (inputs
7961 `(("alexandria" ,sbcl-alexandria)
7962 ("trivial-gray-streams" ,sbcl-trivial-gray-streams)))
7963 (synopsis "Common Lisp JSON parser/encoder")
7964 (description
7965 "YASON is a Common Lisp library for encoding and decoding data in the
7966JSON interchange format.")
7967 (home-page "https://github.com/phmarek/yason")
7968 (license license:bsd-3)))
7969
7970(define-public cl-yason
7971 (sbcl-package->cl-source-package sbcl-yason))
7972
7973(define-public ecl-yason
7974 (sbcl-package->ecl-package sbcl-yason))
54d761d3
GLV
7975
7976(define-public sbcl-stefil
7977 (let ((commit "0398548ec95dceb50fc2c2c03e5fb0ce49b86c7a")
7978 (revision "0"))
7979 (package
7980 (name "sbcl-stefil")
7981 (version (git-version "0.1" revision commit))
7982 (source
7983 (origin
7984 (method git-fetch)
7985 (uri (git-reference
7986 (url "https://gitlab.common-lisp.net/stefil/stefil.git")
7987 (commit commit)))
7988 (file-name (git-file-name name version))
7989 (sha256
7990 (base32
7991 "0bqz64q2szzhf91zyqyssmvrz7da6442rs01808pf3wrdq28bclh"))))
7992 (build-system asdf-build-system/sbcl)
7993 (inputs
7994 `(("alexandria" ,sbcl-alexandria)
7995 ("iterate" ,sbcl-iterate)
7996 ("metabang-bind" ,sbcl-metabang-bind)))
7997 (propagated-inputs
7998 ;; Swank doesn't have a pre-compiled package, therefore we must
7999 ;; propagate its sources.
8000 `(("swank" ,cl-slime-swank)))
8001 (arguments
8002 '(#:phases
8003 (modify-phases %standard-phases
8004 (add-after 'unpack 'drop-unnecessary-dependency
8005 (lambda _
8006 (substitute* "package.lisp"
8007 ((":stefil-system") ""))
8008 #t)))))
8009 (home-page "https://common-lisp.net/project/stefil/index-old.shtml")
8010 (synopsis "Simple test framework")
8011 (description
8012 "Stefil is a simple test framework for Common Lisp, with a focus on
8013interactive development.")
8014 (license license:public-domain))))
8015
8016(define-public cl-stefil
8017 (sbcl-package->cl-source-package sbcl-stefil))
9574d420
GLV
8018
8019(define-public sbcl-graph
8020 (let ((commit "78bf9ec930d8eae4f0861b5be76765fb1e45e24f")
8021 (revision "0"))
8022 (package
8023 (name "sbcl-graph")
8024 (version (git-version "0.0.0" revision commit))
8025 (source
8026 (origin
8027 (method git-fetch)
8028 (uri
8029 (git-reference
8030 (url "https://github.com/eschulte/graph.git")
8031 (commit commit)))
8032 (file-name (git-file-name name version))
8033 (sha256
8034 (base32
8035 "1qpij4xh8bqwc2myahpilcbh916v7vg0acz2fij14d3y0jm02h0g"))
8036 (patches (search-patches "sbcl-graph-asdf-definitions.patch"))))
8037 (build-system asdf-build-system/sbcl)
8038 (native-inputs
8039 `(("stefil" ,sbcl-stefil)))
8040 (inputs
8041 `(("alexandria" ,sbcl-alexandria)
8042 ("cl-heap" ,sbcl-cl-heap)
8043 ("curry-compose-reader-macros" ,sbcl-curry-compose-reader-macros)
8044 ("metabang-bind" ,sbcl-metabang-bind)
8045 ("named-readtables" ,sbcl-named-readtables)))
8046 (arguments
8047 '(#:test-asd-file "graph.test.asd"))
8048 (synopsis "Graph data structure and algorithms for Common Lisp")
8049 (description
8050 "The GRAPH Common Lisp library provides a data structures to represent
8051graphs, as well as some graph manipulation and analysis algorithms (shortest
8052path, maximum flow, minimum spanning tree, etc.).")
8053 (home-page "https://eschulte.github.io/graph/")
8054 (license license:gpl3+))))
8055
8056(define-public cl-graph
8057 (sbcl-package->cl-source-package sbcl-graph))
a4daf996
GLV
8058
8059(define-public sbcl-graph-dot
8060 (package
8061 (inherit sbcl-graph)
8062 (name "sbcl-graph-dot")
8063 (inputs
8064 `(("alexandria" ,sbcl-alexandria)
8065 ("cl-ppcre" ,sbcl-cl-ppcre)
8066 ("curry-compose-reader-macros" ,sbcl-curry-compose-reader-macros)
8067 ("graph" ,sbcl-graph)
8068 ("metabang-bind" ,sbcl-metabang-bind)
8069 ("named-readtables" ,sbcl-named-readtables)))
8070 (arguments
8071 (substitute-keyword-arguments (package-arguments sbcl-graph)
8072 ((#:asd-file _ "") "graph.dot.asd")
8073 ((#:asd-system-name _ #f) "graph-dot")))
8074 (synopsis "Serialize graphs to and from DOT format")))
b090bdc9
GLV
8075
8076(define-public sbcl-graph-json
8077 (package
8078 (inherit sbcl-graph)
8079 (name "sbcl-graph-json")
8080 (inputs
8081 `(("alexandria" ,sbcl-alexandria)
8082 ("curry-compose-reader-macros" ,sbcl-curry-compose-reader-macros)
8083 ("graph" ,sbcl-graph)
8084 ("metabang-bind" ,sbcl-metabang-bind)
8085 ("named-readtables" ,sbcl-named-readtables)
8086 ("yason" ,sbcl-yason)))
8087 (arguments
8088 (substitute-keyword-arguments (package-arguments sbcl-graph)
8089 ((#:asd-file _ "") "graph.json.asd")
8090 ((#:asd-system-name _ #f) "graph-json")))
8091 (synopsis "Serialize graphs to and from JSON format")))