gnu: pscircle: Update to 1.3.0.
[jackhill/guix/guix.git] / gnu / packages / guile-xyz.scm
CommitLineData
0791437f
RW
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
3;;; Copyright © 2014, 2015, 2018 Mark H Weaver <mhw@netris.org>
4;;; Copyright © 2015, 2017 Christopher Allan Webber <cwebber@dustycloud.org>
5;;; Copyright © 2016 Alex Sassmannshausen <alex@pompo.co>
6;;; Copyright © 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
7;;; Copyright © 2016 Erik Edrosa <erik.edrosa@gmail.com>
8;;; Copyright © 2016 Eraim Flashner <efraim@flashner.co.il>
9;;; Copyright © 2016, 2017 Alex Kost <alezost@gmail.com>
10;;; Copyright © 2016, 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@openmailbox.org>
11;;; Copyright © 2016 Amirouche <amirouche@hypermove.net>
12;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
13;;; Copyright © 2017 Andy Wingo <wingo@igalia.com>
14;;; Copyright © 2017 David Thompson <davet@gnu.org>
15;;; Copyright © 2017, 2018 Mathieu Othacehe <m.othacehe@gmail.com>
16;;; Copyright © 2017 Theodoros Foradis <theodoros@foradis.org>
17;;; Copyright © 2017 Nils Gillmann <ng0@n0.is>
18;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
19;;; Copyright © 2018 Maxim Cournoyer <maxim.cournoyer@gmail.com>
20;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
21;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
22;;; Copyright © 2018 Eric Bavier <bavier@member.fsf.org>
cd81199c 23;;; Copyright © 2019 swedebugia <swedebugia@riseup.net>
0791437f
RW
24;;;
25;;; This file is part of GNU Guix.
26;;;
27;;; GNU Guix is free software; you can redistribute it and/or modify it
28;;; under the terms of the GNU General Public License as published by
29;;; the Free Software Foundation; either version 3 of the License, or (at
30;;; your option) any later version.
31;;;
32;;; GNU Guix is distributed in the hope that it will be useful, but
33;;; WITHOUT ANY WARRANTY; without even the implied warranty of
34;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35;;; GNU General Public License for more details.
36;;;
37;;; You should have received a copy of the GNU General Public License
38;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
39
40(define-module (gnu packages guile-xyz)
41 #:use-module ((guix licenses) #:prefix license:)
42 #:use-module (gnu packages)
43 #:use-module (gnu packages aspell)
44 #:use-module (gnu packages autotools)
45 #:use-module (gnu packages base)
46 #:use-module (gnu packages bash)
47 #:use-module (gnu packages compression)
48 #:use-module (gnu packages disk)
49 #:use-module (gnu packages ed)
15218d4e 50 #:use-module (gnu packages emacs)
0791437f
RW
51 #:use-module (gnu packages gawk)
52 #:use-module (gnu packages gettext)
53 #:use-module (gnu packages gl)
54 #:use-module (gnu packages gperf)
55 #:use-module (gnu packages guile)
56 #:use-module (gnu packages hurd)
57 #:use-module (gnu packages image)
58 #:use-module (gnu packages libffi)
59 #:use-module (gnu packages libunistring)
60 #:use-module (gnu packages linux)
61 #:use-module (gnu packages man)
62 #:use-module (gnu packages maths)
63 #:use-module (gnu packages multiprecision)
64 #:use-module (gnu packages ncurses)
65 #:use-module (gnu packages networking)
66 #:use-module (gnu packages pkg-config)
67 #:use-module (gnu packages python)
68 #:use-module (gnu packages readline)
69 #:use-module (gnu packages sdl)
70 #:use-module (gnu packages slang)
71 #:use-module (gnu packages sqlite)
72 #:use-module (gnu packages texinfo)
73 #:use-module (gnu packages tls)
74 #:use-module (gnu packages version-control)
75 #:use-module (gnu packages xdisorg)
76 #:use-module (gnu packages xorg)
77 #:use-module (guix packages)
78 #:use-module (guix download)
79 #:use-module (guix git-download)
80 #:use-module (guix build-system gnu)
81 #:use-module (guix build-system guile)
82 #:use-module (guix utils)
83 #:use-module (ice-9 match)
84 #:use-module ((srfi srfi-1) #:select (alist-delete)))
85
86(define-public artanis
cd81199c 87 (let ((release "0.3.1")
fd9a6d83 88 (revision 0))
0791437f
RW
89 (package
90 (name "artanis")
91 (version (if (zero? revision)
92 release
93 (string-append release "-"
94 (number->string revision))))
95 (source (origin
96 (method url-fetch)
97 (uri (string-append "mirror://gnu/artanis/artanis-"
98 release ".tar.gz"))
99 (file-name (string-append name "-" version ".tar.gz"))
100 (sha256
101 (base32
cd81199c 102 "0hqr5m3mb558bdhkc2sadmd9cbrhp3y525wx7cwirgy6i0zmay68"))
0791437f
RW
103 (modules '((guix build utils)))
104 (snippet
105 '(begin
cd81199c 106 ;; Unbundle guile-redis and guile-json
0791437f
RW
107 (delete-file-recursively "artanis/third-party/json.scm")
108 (delete-file-recursively "artanis/third-party/json")
cd81199c 109 (delete-file-recursively "artanis/third-party/redis.scm")
110 (delete-file-recursively "artanis/third-party/redis")
0791437f 111 (substitute* '("artanis/artanis.scm"
cd81199c 112 "artanis/lpc.scm"
0791437f
RW
113 "artanis/oht.scm")
114 (("(#:use-module \\()artanis third-party (json\\))" _
115 use-module json)
116 (string-append use-module json)))
cd81199c 117 (substitute* '("artanis/lpc.scm"
118 "artanis/session.scm")
119 (("(#:use-module \\()artanis third-party (redis\\))" _
120 use-module redis)
121 (string-append use-module redis)))
0791437f
RW
122 (substitute* "artanis/oht.scm"
123 (("([[:punct:][:space:]]+)(->json-string)([[:punct:][:space:]]+)"
124 _ pre json-string post)
125 (string-append pre
126 "scm" json-string
127 post)))
128 (substitute* "artanis/artanis.scm"
129 (("[[:punct:][:space:]]+->json-string[[:punct:][:space:]]+")
130 ""))
131 #t))))
132 (build-system gnu-build-system)
cd81199c 133 ;; FIXME the bundled csv contains one more exported procedure
134 ;; (sxml->csv-string) than guile-csv. The author is maintainer of both
135 ;; projects.
0791437f
RW
136 ;; TODO: Add guile-dbi and guile-dbd optional dependencies.
137 (inputs `(("guile" ,guile-2.2)
cd81199c 138 ("guile-json" ,guile-json)
139 ("guile-redis" ,guile-redis)))
0791437f
RW
140 (native-inputs `(("bash" ,bash) ;for the `source' builtin
141 ("pkgconfig" ,pkg-config)
142 ("util-linux" ,util-linux))) ;for the `script' command
143 (arguments
144 '(#:make-flags
145 ;; TODO: The documentation must be built with the `docs' target.
146 (let* ((out (assoc-ref %outputs "out"))
147 (scm (string-append out "/share/guile/site/2.2"))
148 (go (string-append out "/lib/guile/2.2/site-ccache")))
149 ;; Don't use (%site-dir) for site paths.
150 (list (string-append "MOD_PATH=" scm)
151 (string-append "MOD_COMPILED_PATH=" go)))
152 #:test-target "test"
153 #:phases
154 (modify-phases %standard-phases
fd9a6d83
CB
155 (add-after 'unpack 'patch-site-dir
156 (lambda* (#:key outputs #:allow-other-keys)
157 (substitute* "artanis/commands/help.scm"
158 (("\\(%site-dir\\)")
159 (string-append "\""
160 (assoc-ref outputs "out")
161 "/share/guile/site/2.2\"")))))
0791437f
RW
162 (add-before 'install 'substitute-root-dir
163 (lambda* (#:key outputs #:allow-other-keys)
164 (let ((out (assoc-ref outputs "out")))
165 (substitute* "Makefile" ;ignore the execution of bash.bashrc
166 ((" /etc/bash.bashrc") " /dev/null"))
167 (substitute* "Makefile" ;set the root of config files to OUT
168 ((" /etc") (string-append " " out "/etc")))
169 (mkdir-p (string-append out "/bin")) ;for the `art' executable
170 #t)))
171 (add-after 'install 'wrap-art
fd9a6d83 172 (lambda* (#:key inputs outputs #:allow-other-keys)
0791437f
RW
173 (let* ((out (assoc-ref outputs "out"))
174 (bin (string-append out "/bin"))
175 (scm (string-append out "/share/guile/site/2.2"))
176 (go (string-append out "/lib/guile/2.2/site-ccache")))
177 (wrap-program (string-append bin "/art")
fd9a6d83
CB
178 `("GUILE_LOAD_PATH" ":" prefix
179 (,scm ,(getenv "GUILE_LOAD_PATH")))
180 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
181 (,go ,(getenv "GUILE_LOAD_COMPILED_PATH"))))
0791437f
RW
182 #t))))))
183 (synopsis "Web application framework written in Guile")
184 (description "GNU Artanis is a web application framework written in Guile
185Scheme. A web application framework (WAF) is a software framework that is
186designed to support the development of dynamic websites, web applications, web
187services and web resources. The framework aims to alleviate the overhead
188associated with common activities performed in web development. Artanis
189provides several tools for web development: database access, templating
190frameworks, session management, URL-remapping for RESTful, page caching, and
191more.")
192 (home-page "https://www.gnu.org/software/artanis/")
193 (license (list license:gpl3+ license:lgpl3+))))) ;dual license
194
195;; There has not been any release yet.
196(define-public guildhall
197 (let ((commit "2fe2cc539f4b811bbcd69e58738db03eb5a2b778")
198 (revision "1"))
199 (package
200 (name "guildhall")
201 (version (string-append "0-" revision "." (string-take commit 9)))
202 (source (origin
203 (method git-fetch)
204 (uri (git-reference
205 (url "https://github.com/ijp/guildhall.git")
206 (commit commit)))
207 (file-name (string-append name "-" version "-checkout"))
208 (sha256
209 (base32
210 "115bym7bg66h3gs399yb2vkzc2ygriaqsn4zbrg8f054mgy8wzn1"))))
211 (build-system gnu-build-system)
212 (arguments
213 `(#:phases
214 (modify-phases %standard-phases
215 ;; Tests fail without this fix because they try to load the bash
216 ;; executable as a Scheme file. See bug report at
217 ;; https://github.com/ijp/guildhall/issues/22
218 (add-after 'unpack 'fix-bug-22
219 (lambda _
220 (substitute* "Makefile.am"
221 (("TESTS_ENVIRONMENT=.*")
222 "AM_TESTS_ENVIRONMENT=srcdir=$(abs_top_srcdir)/tests/
223TEST_EXTENSIONS = .scm
224SCM_LOG_COMPILER= $(top_builddir)/env $(GUILE)
225AM_SCM_LOG_FLAGS = --no-auto-compile -s")
226 ;; FIXME: one of the database tests fails for unknown
227 ;; reasons. It does not fail when run outside of Guix.
228 (("tests/database.scm") ""))
229 #t)))))
230 (inputs
231 `(("guile" ,guile-2.0)))
232 (native-inputs
233 `(("zip" ,zip) ; for tests
234 ("autoconf" ,autoconf)
235 ("automake" ,automake)
236 ("texinfo" ,texinfo)))
237 (synopsis "Package manager for Guile")
238 (description
239 "Guildhall is a package manager written for Guile Scheme. A guild is
240an association of independent craftspeople. A guildhall is where they meet.
241This Guildhall aims to make a virtual space for Guile wizards and journeyfolk
242to share code.
243
244On a practical level, Guildhall lets you share Scheme modules and programs
245over the internet, and install code that has been shared by others. Guildhall
246can handle dependencies, so when a program requires several libraries, and
247each of those has further dependencies, all of the prerequisites for the
248program can be installed in one go.")
249 (home-page "https://github.com/ijp/guildhall")
250 (license license:gpl3+))))
251
252(define-public guile-aspell
253 (package
254 (name "guile-aspell")
255 (version "0.4")
256 (source (origin
257 (method url-fetch)
258 (uri (string-append
259 "http://lonelycactus.com/tarball/guile_aspell-"
260 version ".tar.gz"))
261 (sha256
262 (base32
263 "0vpk5xj9m9qc702z3khmkwhgpb949qbsyz8kw2qycda6qnxk0077"))))
264 (build-system gnu-build-system)
265 (arguments
266 '(#:phases (modify-phases %standard-phases
267 (add-before 'configure 'set-guilesitedir
268 (lambda _
269 (substitute* "Makefile.in"
270 (("^guilesitedir =.*$")
271 "guilesitedir = \
272$(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
273 #t))
274 (add-before 'build 'set-libaspell-file-name
275 (lambda* (#:key inputs #:allow-other-keys)
276 (let ((aspell (assoc-ref inputs "aspell")))
277 (substitute* "aspell.scm"
278 (("\"libaspell\\.so\"")
279 (string-append "\"" aspell
280 "/lib/libaspell\"")))
281 #t))))))
282 (native-inputs `(("pkg-config" ,pkg-config)))
283 (inputs `(("guile" ,guile-2.2)
284 ("aspell" ,aspell)))
285 (home-page "https://github.com/spk121/guile-aspell")
286 (synopsis "Spell-checking from Guile")
287 (description
288 "guile-aspell is a Guile Scheme library for comparing a string against a
289dictionary and suggesting spelling corrections.")
290 (license license:gpl3+)))
291
292(define-public guile-bash
293 ;; This project is currently retired. It was initially announced here:
294 ;; <https://lists.gnu.org/archive/html/guile-user/2015-02/msg00003.html>.
295 (let ((commit "1eabc563ca5692b3e08d84f1f0e6fd2283284469")
296 (revision "0"))
297 (package
298 (name "guile-bash")
299 (version (string-append "0.1.6-" revision "." (string-take commit 7)))
300 (home-page
301 "https://anonscm.debian.org/cgit/users/kaction-guest/retired/dev.guile-bash.git")
302 (source (origin
303 (method git-fetch)
304 (uri (git-reference
305 (commit commit)
306 (url home-page)))
307 (sha256
308 (base32
309 "097vny990wp2qpjij6a5a5gwc6fxzg5wk56inhy18iki5v6pif1p"))
310 (file-name (string-append name "-" version "-checkout"))))
311 (build-system gnu-build-system)
312 (arguments
313 '(#:configure-flags
314 ;; Add -I to match 'bash.pc' of Bash 4.4.
315 (list (string-append "CPPFLAGS=-I"
316 (assoc-ref %build-inputs "bash:include")
317 "/include/bash/include")
318
319 ;; The '.a' file is useless.
320 "--disable-static"
321
322 ;; Install 'lib/bash' as Bash 4.4 expects.
323 (string-append "--libdir=" (assoc-ref %outputs "out")
324 "/lib/bash"))))
325 (native-inputs `(("pkg-config" ,pkg-config)
326 ("autoconf" ,autoconf-wrapper)
327 ("automake" ,automake)
328 ("libtool" ,libtool)
329 ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
330 ("gettext" ,gettext-minimal)
331
332 ;; Bash with loadable module support, for the test
333 ;; suite.
334 ("bash-full" ,bash)))
335 (inputs `(("guile" ,guile-2.0)
336 ("bash:include" ,bash "include")))
337 (synopsis "Extend Bash using Guile")
338 (description
339 "Guile-Bash provides a shared library and set of Guile modules,
340allowing you to extend Bash in Scheme. Scheme interfaces allow you to access
341the following aspects of Bash:
342
343@itemize
344@item aliases;
345@item setting and getting Bash variables;
346@item creating dynamic variables;
347@item creating Bash functions with a Scheme implementation;
348@item reader macro for output capturing;
349@item reader macro for evaluating raw Bash commands.
350@end itemize
351
352To enable it, run:
353
354@example
355enable -f ~/.guix-profile/lib/bash/libguile-bash.so scm
356@end example
357
358and then run @command{scm example.scm}.")
359 (license license:gpl3+))))
360
361(define-public guile-8sync
362 (package
363 (name "guile-8sync")
364 (version "0.4.2")
365 (source (origin
366 (method url-fetch)
367 (uri (string-append "mirror://gnu/8sync/8sync-" version
368 ".tar.gz"))
369 (sha256
370 (base32
371 "031wm13srak3wsnll7j2mbbi29g1pcm4swdb71ds9yn567pn20qw"))))
372 (build-system gnu-build-system)
373 (native-inputs `(("autoconf" ,autoconf)
374 ("automake" ,automake)
375 ("guile" ,guile-2.2)
376 ("pkg-config" ,pkg-config)
377 ("texinfo" ,texinfo)))
378 (arguments
379 `(#:phases (modify-phases %standard-phases
380 (add-before 'configure 'setenv
381 (lambda _
382 ;; quiet warnings
383 (setenv "GUILE_AUTO_COMPILE" "0")
384 #t)))))
385 (home-page "https://gnu.org/s/8sync/")
386 (synopsis "Asynchronous actor model library for Guile")
387 (description
388 "GNU 8sync (pronounced \"eight-sync\") is an asynchronous programming
389library for GNU Guile based on the actor model.
390
391Note that 8sync is only available for Guile 2.2.")
392 (license license:lgpl3+)))
393
394(define-public guile-daemon
395 (package
396 (name "guile-daemon")
397 (version "0.1.2")
398 (source (origin
399 (method url-fetch)
400 (uri (string-append "https://github.com/alezost/" name
401 "/releases/download/v" version
402 "/" name "-" version ".tar.gz"))
403 (sha256
404 (base32
405 "0hh6gq6b6phpxm0b1dkxyzj3f4sxdf7dji63609lzypa5v1ad2gv"))))
406 (build-system gnu-build-system)
407 (native-inputs
408 `(("pkg-config" ,pkg-config)))
409 (inputs
410 `(("guile" ,guile-2.2)))
411 (home-page "https://github.com/alezost/guile-daemon")
412 (synopsis "Evaluate code in a running Guile process")
413 (description
414 "Guile-Daemon is a small Guile program that loads your initial
415configuration file, and then reads and evaluates Guile expressions that
416you send to a FIFO file.")
417 (license license:gpl3+)))
418
419(define-public guile-dsv
420 (package
421 (name "guile-dsv")
422 (version "0.2.1")
423 (source (origin
424 (method git-fetch)
425 (uri (git-reference
426 (url "https://github.com/artyom-poptsov/guile-dsv")
427 (commit "bdc5267d007478abc20ea96d7c459b7dd9560b3d")))
428 (file-name (string-append name "-" version "-checkout"))
429 (sha256
430 (base32
431 "1irw6mz8998nwyhzrw9g94jcz60b9zljgqfmipaz1ybn8579qjx0"))))
432 (build-system gnu-build-system)
433 (native-inputs
434 `(("autoconf" ,autoconf)
435 ("automake" ,automake)
436 ("pkg-config" ,pkg-config)
437 ("texinfo" ,texinfo)))
438 (inputs `(("guile" ,guile-2.2)))
439 (propagated-inputs `(("guile-lib" ,guile-lib)))
440 (arguments
441 '(#:phases (modify-phases %standard-phases
442 (add-before 'configure 'set-guilesitedir
443 (lambda _
444 (substitute* "Makefile.in"
445 (("^guilesitedir =.*$")
446 "guilesitedir = \
447$(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
448 (substitute* "modules/Makefile.in"
449 (("^guilesitedir =.*$")
450 "guilesitedir = \
451$(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
452 (substitute* "modules/dsv/Makefile.in"
453 (("^guilesitedir =.*$")
454 "guilesitedir = \
455$(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
456 #t)))))
457 (home-page "https://github.com/artyom-poptsov/guile-dsv")
458 (synopsis "DSV module for Guile")
459 (description
460 "Guile-DSV is a GNU Guile module for working with the
461delimiter-separated values (DSV) data format. Guile-DSV supports the
462Unix-style DSV format and RFC 4180 format.")
463 (license license:gpl3+)))
464
465(define-public guile-fibers
466 (package
467 (name "guile-fibers")
468 (version "1.0.0")
469 (source (origin
470 (method url-fetch)
471 (uri (string-append "https://wingolog.org/pub/fibers/fibers-"
472 version ".tar.gz"))
473 (sha256
474 (base32
475 "0vjkg72ghgdgphzbjz9ig8al8271rq8974viknb2r1rg4lz92ld0"))))
476 (build-system gnu-build-system)
477 (arguments
478 '(#:phases (modify-phases %standard-phases
479 (add-after 'install 'mode-guile-objects
480 (lambda* (#:key outputs #:allow-other-keys)
481 ;; .go files are installed to "lib/guile/X.Y/cache".
482 ;; This phase moves them to "…/site-ccache".
483 (let* ((out (assoc-ref outputs "out"))
484 (lib (string-append out "/lib/guile"))
485 (old (car (find-files lib "^ccache$"
486 #:directories? #t)))
487 (new (string-append (dirname old)
488 "/site-ccache")))
489 (rename-file old new)
490 #t))))))
491 (native-inputs
492 `(("texinfo" ,texinfo)
493 ("pkg-config" ,pkg-config)))
494 (inputs
495 `(("guile" ,guile-2.2)))
496 (synopsis "Lightweight concurrency facility for Guile")
497 (description
498 "Fibers is a Guile library that implements a a lightweight concurrency
499facility, inspired by systems like Concurrent ML, Go, and Erlang. A fiber is
500like a \"goroutine\" from the Go language: a lightweight thread-like
501abstraction. Systems built with Fibers can scale up to millions of concurrent
502fibers, tens of thousands of concurrent socket connections, and many parallel
503cores. The Fibers library also provides Concurrent ML-like channels for
504communication between fibers.
505
506Note that Fibers makes use of some Guile 2.1/2.2-specific features and
507is not available for Guile 2.0.")
508 (home-page "https://github.com/wingo/fibers")
509 (license license:lgpl3+)))
510
511(define-public guile-syntax-highlight
512 (package
513 (name "guile-syntax-highlight")
514 (version "0.1")
515 (source (origin
516 (method url-fetch)
517 (uri (string-append "https://files.dthompson.us/"
518 "guile-syntax-highlight/"
519 "guile-syntax-highlight-"
520 version ".tar.gz"))
521 (sha256
522 (base32
523 "1p771kq15x83483m23bhah1sz6vkalg3drm7x279f4j1cxligkzi"))))
524 (build-system gnu-build-system)
525 (native-inputs
526 `(("pkg-config" ,pkg-config)))
527 (inputs
528 `(("guile" ,guile-2.2)))
529 (synopsis "General-purpose syntax highlighter for GNU Guile")
530 (description "Guile-syntax-highlight is a general-purpose syntax
531highlighting library for GNU Guile. It can parse code written in various
532programming languages into a simple s-expression that can be converted to
533HTML (via SXML) or any other format for rendering.")
534 (home-page "http://dthompson.us/projects/guile-syntax-highlight.html")
535 (license license:lgpl3+)))
536
537(define-public guile-sjson
538 (package
539 (name "guile-sjson")
540 (version "0.2.1")
541 (source (origin
542 (method url-fetch)
543 (uri (string-append "https://dustycloud.org/misc/sjson-" version
544 ".tar.gz"))
545 (sha256
546 (base32
547 "1mzmapln79vv10qxaggz9qwcdbag3jnrj19xx8bgkmxss8h03sv3"))))
548 (build-system gnu-build-system)
549 (native-inputs
550 `(("autoconf" ,autoconf)
551 ("automake" ,automake)
552 ("pkg-config" ,pkg-config)))
553 (inputs
554 `(("guile" ,guile-2.2)))
555 (home-page "https://gitlab.com/dustyweb/guile-sjson")
556 (synopsis "S-expression based json reader/writer for Guile")
557 (description "guile-sjson is a json reader/writer for Guile.
558It has a nice, simple s-expression based syntax.")
559 (license license:lgpl3+)))
560
561(define-public guile-colorized
562 (package
563 (name "guile-colorized")
564 (version "0.1")
565 (source (origin
566 (method url-fetch)
567 (uri (string-append "https://github.com/NalaGinrut/guile-colorized/"
568 "archive/v" version ".tar.gz"))
569 (file-name (string-append name "-" version ".tar.gz"))
570 (sha256
571 (base32
572 "16xhc3an6aglnca8xl3mvgi8hsqzqn68vsl5ga4bz8bvbap5fn4p"))))
573 (build-system guile-build-system)
574 (native-inputs
575 `(("guile" ,guile-2.2)))
576 (home-page "https://github.com/NalaGinrut/guile-colorized")
577 (synopsis "Colorized REPL for Guile")
578 (description
579 "Guile-colorized provides you with a colorized REPL for GNU Guile.")
580 (license license:gpl3+)))
581
582(define-public guile-pfds
583 (package
584 (name "guile-pfds")
585 (version "0.3")
586 (home-page "https://github.com/ijp/pfds")
587 (source (origin
588 (method git-fetch)
589 (uri (git-reference
590 (url home-page)
591 (commit (string-append "v" version))))
592 (sha256
593 (base32
594 "19y33wg94pf0n98dkfqd1zbw93fgky4sawxsxl6s3vyqwl0yi5vh"))
595 (file-name (string-append name "-" version "-checkout"))))
596 (build-system guile-build-system)
597 (arguments
598 '(#:source-directory "src"
599 #:phases (modify-phases %standard-phases
600 (add-after 'unpack 'move-files-around
601 (lambda _
602 ;; Move files under a pfds/ directory to reflect the
603 ;; module hierarchy.
604 (mkdir-p "src/pfds")
605 (for-each (lambda (file)
606 (rename-file file
607 (string-append "src/pfds/"
608 file)))
609 '("bbtrees.sls"
610 "deques"
611 "deques.sls"
612 "dlists.sls"
613 "fingertrees.sls"
614 "hamts.sls"
615 "heaps.sls"
616 "private"
617 "psqs.sls"
618 "queues"
619 "queues.sls"
620 "sequences.sls"
621 "sets.sls"))
622
623 ;; In Guile <= 2.2.4, there's no way to tell 'guild
624 ;; compile' to accept the ".sls" extension. So...
625 (for-each (lambda (file)
626 (rename-file file
627 (string-append
628 (string-drop-right file 4)
629 ".scm")))
630 (find-files "." "\\.sls$"))
631 #t)))))
632 (native-inputs
633 `(("guile" ,guile-2.2)))
634 (synopsis "Purely functional data structures for Guile")
635 (description
636 "This package provides purely functional data structures written in R6RS
637Scheme and compiled for Guile. It has been tested with Racket, Guile 2,
638Vicare Scheme and IronScheme. Right now it contains:
639
640@itemize
641@item queues
642@item deques
643@item bbtrees
644@item sets
645@item dlists
646@item priority search queues (PSQs)
647@item finger trees
648@item sequences
649@item heaps
650@item hash array mapped tries (HAMTs).
651@end itemize\n")
652 (license license:bsd-3)))
653
654(define-public guile-aa-tree
655 (package
656 (name "guile-aa-tree")
657 (version "3.1.1")
658 (source (origin
659 (method url-fetch)
660 (uri (string-append "mirror://savannah/guile-aa-tree/guile-aa-tree-"
661 version ".tar.gz"))
662 (sha256
663 (base32
664 "0044c105r3q9vpl17pv3phl1b79kjm1llhkakqgiasixyav01blh"))))
665 (build-system guile-build-system)
666 (native-inputs `(("guile" ,guile-2.2)))
667 ;; https://savannah.nongnu.org/projects/guile-aa-tree
668 (home-page "https://qlfiles.net/guile-aa-tree/")
669 (synopsis "AA tree data structure for Guile")
670 (description
671 "This package provides an implementation of @dfn{AA trees}, a
672self-balancing binary tree data structure, for Guile. It ensure @math{O(log
673n)} worst case performance for core operations. The module provides
674non-mutating insert, delete, and search operations, with support for
675convenient nested tree operations.")
676 (license license:gpl3+)))
677
678(define-public guile-simple-zmq
679 (let ((commit "68bedb6679716214fb9d3472da57544526f7a618")
680 (revision "3"))
681 (package
682 (name "guile-simple-zmq")
683 (version (git-version "0.0.0" revision commit))
684 (source
685 (origin
686 (method git-fetch)
687 (uri (git-reference
688 (url "https://github.com/jerry40/guile-simple-zmq")
689 (commit commit)))
690 (sha256
691 (base32
692 "1ad3xg69qqviy1f6dnlw0ysmfdbmp1jq65rfqb8nfd8dsrq2syli"))
693 (file-name (git-file-name name version))))
694 (build-system guile-build-system)
695 (arguments
696 `(#:source-directory "src"
697 #:phases (modify-phases %standard-phases
698 (add-after 'unpack 'set-libzmq-file-name
699 (lambda* (#:key inputs #:allow-other-keys)
700 (substitute* "src/simple-zmq.scm"
701 (("\\(dynamic-link \"libzmq\"\\)")
702 (format #f "(dynamic-link \"~a/lib/libzmq.so\")"
703 (assoc-ref inputs "zeromq"))))
704 #t)))))
705 (native-inputs
706 `(("guile" ,guile-2.2)))
707 (inputs
708 `(("zeromq" ,zeromq)))
709 (home-page "https://github.com/jerry40/guile-simple-zmq")
710 (synopsis "Guile wrapper over ZeroMQ library")
711 (description
712 "This package provides a Guile programming interface to the ZeroMQ
713messaging library.")
714 (license license:gpl3+))))
715
716(define-public jupyter-guile-kernel
717 (let ((commit "a7db9245a886e104138474df46c3e88b95cff629")
718 (revision "1"))
719 (package
720 (name "jupyter-guile-kernel")
721 (version (git-version "0.0.0" revision commit))
722 (source
723 (origin
724 (method git-fetch)
725 (uri (git-reference
726 (url "https://github.com/jerry40/guile-kernel")
727 (commit commit)))
728 (sha256
729 (base32
730 "0aj04853bqm47ivfcmrgpb7w3wkis847kc7qrwsa5zcn9h38qh2f"))))
731 (build-system guile-build-system)
732 (arguments
733 '(#:phases (modify-phases %standard-phases
734 (add-after 'unpack 'set-openssl-file-name
735 (lambda* (#:key inputs #:allow-other-keys)
736 ;; Record the absolute file name of the 'openssl'
737 ;; command.
738 (substitute* "src/hmac.scm"
739 (("openssl")
740 (string-append (assoc-ref inputs "openssl")
741 "/bin/openssl")))
742 #t))
743
744 ;; XXX: The code uses 'include' to include its own source
745 ;; files, and "-L src" isn't enough in this case.
746 (add-before 'build 'chdir
747 (lambda _ (chdir "src") #t))
748 (add-after 'build 'chdir-back
749 (lambda _ (chdir "..") #t))
750
751 (add-after 'install 'install-kernel
752 (lambda* (#:key inputs outputs #:allow-other-keys)
753 (let* ((out (assoc-ref outputs "out"))
754 (json (assoc-ref inputs "guile-json"))
755 (zmq (assoc-ref inputs "guile-simple-zmq"))
756 (deps (list json zmq))
757 (dir (string-append
758 out "/share/jupyter/kernels/guile"))
759 (effective (target-guile-effective-version)))
760 ;; Install kernel.
761 (install-file "src/kernel.json" dir)
762
763 ;; Fix hard-coded file name in the kernel.
764 (substitute* (string-append dir "/kernel.json")
765 (("/home/.*/guile-jupyter-kernel.scm")
766 (string-append out "/share/guile/site/"
767 (target-guile-effective-version)
768 "/guile-jupyter-kernel.scm"))
769 (("\"guile\"")
770 (string-append "\"" (assoc-ref inputs "guile")
771 "/bin/guile\""))
772 (("-s")
773 ;; Add '-L' and '-C' flags so that the kernel
774 ;; finds its dependencies.
775 (let ((-L (map (lambda (item)
776 (string-append "\"" item
777 "/share/guile/site/"
778 effective "\""))
779 deps))
780 (-C (map (lambda (item)
781 (string-append "\"" item
782 "/lib/guile/"
783 effective
784 "/site-ccache\""))
785 deps)))
786 (string-append "--no-auto-compile\""
787 (string-join -L ", \"-L\", "
788 'prefix)
789 (string-join -C ", \"-C\", "
790 'prefix)
791 ", \"-s"))))
792 #t))))))
793 (inputs
794 `(("openssl" ,openssl)
795 ("guile" ,guile-2.2)
796 ("guile-json" ,guile-json)
797 ("guile-simple-zmq" ,guile-simple-zmq)))
798 (synopsis "Guile kernel for the Jupyter Notebook")
799 (description
800 "This package provides a Guile 2.x kernel for the Jupyter Notebook. It
801allows users to interact with the Guile REPL through Jupyter.")
802 (home-page "https://github.com/jerry40/guile-kernel")
803 (license license:gpl3+))))
804
805(define-public guile-sparql
806 (package
807 (name "guile-sparql")
808 (version "0.0.7")
809 (source (origin
810 (method url-fetch)
811 (uri (string-append
812 "https://github.com/roelj/guile-sparql/releases/download/"
813 version "/guile-sparql-" version ".tar.gz"))
814 (sha256
815 (base32 "1drnvhsgl0gc5crmb16yyw1j98nkhwwcgssv9vgm36ng43nnzffd"))))
816 (build-system gnu-build-system)
817 (arguments `(#:tests? #f)) ; There are no tests.
818 (native-inputs
819 `(("pkg-config" ,pkg-config)))
820 (inputs
821 `(("guile" ,guile-2.2)))
822 (home-page "https://github.com/roelj/guile-sparql")
823 (synopsis "SPARQL module for Guile")
824 (description "This package provides the functionality to query a SPARQL
825endpoint. Additionally, it provides an interface to write SPARQL queries
826using S-expressions.")
827 (license license:gpl3+)))
828
829(define-public guile-debbugs
830 (package
831 (name "guile-debbugs")
832 (version "0.0.2")
833 (source (origin
834 (method url-fetch)
835 (uri (string-append "mirror://gnu/guile-debbugs/guile-debbugs-"
836 version ".tar.gz"))
837 (sha256
838 (base32
839 "16l8910p57im6s3j93xhdaqvgfy6ms5n97177mrch3y961z5hy0i"))
840 (modules '((guix build utils)))
841 (snippet
842 '(substitute* "Makefile.in"
843 (("^godir = (.*)/ccache" _ prefix)
844 (string-append "godir = " prefix "/site-ccache"))))))
845 (build-system gnu-build-system)
846 (native-inputs
847 `(("guile" ,guile-2.2)
848 ("pkg-config" ,pkg-config)))
849 (home-page "https://savannah.gnu.org/projects/guile-debbugs/")
850 (synopsis "Guile interface to the Debbugs bug tracking service")
851 (description
852 "This package provides a Guile library to communicate with a Debbugs bug
853tracker's SOAP service, such as @url{https://bugs.gnu.org}.")
854 (license license:gpl3+)))
855
856(define-public guile-email
857 (let ((commit "fa52eac55e5946db89621a6c583d2aa357864dee")
858 (revision "1"))
859 (package
860 (name "guile-email")
861 (version (git-version "0.1.0" revision commit))
862 (source
863 (origin
864 (method git-fetch)
865 (uri (git-reference
866 (url "https://git.systemreboot.net/guile-email")
867 (commit commit)))
868 (file-name (git-file-name name version))
869 (sha256
870 (base32
871 "1037mbz7qd9bzaqp8ysyhnl9ipd97fmj3b9jr8qfzx9179vvsj63"))))
872 (build-system gnu-build-system)
873 (native-inputs
874 `(("pkg-config" ,pkg-config)
875 ("autoconf" ,autoconf)
876 ("automake" ,automake)))
877 (inputs
878 `(("guile" ,guile-2.2)))
879 (home-page "https://git.systemreboot.net/guile-email")
880 (synopsis "Guile email parser")
881 (description "This package provides an email parser written in pure
882Guile.")
883 (license license:agpl3+))))
884
885(define-public guile-debbugs-next
886 (let ((commit "75a331d561c8b6f8efcf16216dab961c17759efe")
887 (revision "1"))
888 (package (inherit guile-debbugs)
889 (name "guile-debbugs")
890 (version (git-version "0.0.3" revision commit))
891 (source (origin
892 (method git-fetch)
893 (uri (git-reference
894 (url "https://git.savannah.gnu.org/git/guile-debbugs.git")
895 (commit commit)))
896 (file-name (git-file-name name version))
897 (sha256
898 (base32
899 "0br3mgbw41bpc9x57jlghl0i8dz9nl63r4wzs5l47aqszf84870y"))))
900 (build-system gnu-build-system)
901 (native-inputs
902 `(("pkg-config" ,pkg-config)
903 ("autoconf" ,autoconf)
904 ("automake" ,automake)
905 ("texinfo" ,texinfo)))
906 (inputs
907 `(("guile" ,guile-2.2)
908 ("guile-email" ,guile-email))))))
909
910;; There has not been any release yet.
911(define-public guile-newt
912 (let ((commit "80c1e9e71945f833386d1632b52573e59325804f")
913 (revision "4"))
914 (package
915 (name "guile-newt")
916 (version (string-append "0-" revision "." (string-take commit 9)))
917 (source (origin
918 (method git-fetch)
919 (uri (git-reference
920 (url "https://gitlab.com/mothacehe/guile-newt")
921 (commit commit)))
922 (file-name (string-append name "-" version "-checkout"))
923 (sha256
924 (base32
925 "1w7qy4dw1f4bx622l6hw8mv49sf1ha8kch8j4nganyk8fj0wn695"))))
926 (build-system gnu-build-system)
927 (arguments
928 '(#:make-flags
929 '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
930 (inputs
931 `(("guile" ,guile-2.2)
932 ("newt" ,newt)))
933 (native-inputs
934 `(("autoconf" ,autoconf)
935 ("automake" ,automake)
936 ("pkg-config" ,pkg-config)))
937 (synopsis "Guile bindings to Newt")
938 (description
939 "This package provides bindings for Newt, a programming library for
940color text mode, widget based user interfaces. The bindings are written in pure
941Scheme by using Guile’s foreign function interface.")
942 (home-page "https://gitlab.com/mothacehe/guile-newt")
943 (license license:gpl3+))))
944
945(define-public guile-mastodon
946 (package
947 (name "guile-mastodon")
948 (version "0.0.1")
949 (source (origin
950 (method git-fetch)
951 (uri (git-reference
952 (url "https://framagit.org/prouby/guile-mastodon.git")
953 (commit (string-append "v" version))))
954 (file-name (git-file-name name version))
955 (sha256
956 (base32
957 "1vblf3d1bbwna3l09p2ap5y8ycvl549bz6whgk78imyfmn28ygry"))))
958 (build-system gnu-build-system)
959 (native-inputs
960 `(("autoconf" ,autoconf)
961 ("automake" ,automake)
962 ("pkg-config" ,pkg-config)))
963 (inputs
964 `(("guile" ,guile-2.2)
965 ("gnutls" ,gnutls)
966 ("guile-json" ,guile-json)))
967 (home-page "https://framagit.org/prouby/guile-mastodon")
968 (synopsis "Guile Mastodon REST API module")
969 (description "This package provides Guile modules to access the
970@uref{https://docs.joinmastodon.org/api/, REST API of Mastodon}, a federated
971microblogging service.")
972 (license license:gpl3+)))
973
974;; There has not been any release yet.
975(define-public guile-parted
976 (let ((commit "ea3f1a1f6844775fc59d3078d2a09c62ffb341b8")
977 (revision "0"))
978 (package
979 (name "guile-parted")
980 (version (string-append "0-" revision "." (string-take commit 9)))
981 (source (origin
982 (method git-fetch)
983 (uri (git-reference
984 (url "https://gitlab.com/mothacehe/guile-parted")
985 (commit commit)))
986 (file-name (string-append name "-" version "-checkout"))
987 (sha256
988 (base32
989 "1q7425gpjlwi2wvhzq7kw046yyx7v6j6jyzkd1cr861iz34mjwiq"))))
990 (build-system gnu-build-system)
991 (arguments
992 '(#:make-flags
993 '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
994 (inputs
995 `(("guile" ,guile-2.2)
996 ("parted" ,parted)))
997 (propagated-inputs
998 `(("guile-bytestructures" ,guile-bytestructures)))
999 (native-inputs
1000 `(("autoconf" ,autoconf)
1001 ("automake" ,automake)
1002 ("pkg-config" ,pkg-config)))
1003 (synopsis "Guile bindings to GNU Parted")
1004 (description
1005 "This package provides bindings for GNU Parted library, a C library
1006allowing disk partition tables creation and manipulation. The bindings are
1007written in pure Scheme by using Guile's foreign function interface.")
1008 (home-page "https://gitlab.com/mothacehe/guile-parted")
1009 (license license:gpl3+))))
1010
1011(define-public guile-xosd
1012 (package
1013 (name "guile-xosd")
1014 (version "0.2.1")
1015 (source (origin
1016 (method url-fetch)
1017 (uri (string-append "https://github.com/alezost/" name
1018 "/releases/download/v" version
1019 "/" name "-" version ".tar.gz"))
1020 (sha256
1021 (base32
1022 "1ri5065c16kmgrf2pysn2ymxjqi5302lhpb07wkl1jr75ym8fn8p"))))
1023 (build-system gnu-build-system)
1024 (native-inputs
1025 `(("pkg-config" ,pkg-config)))
1026 (inputs
1027 `(("guile" ,guile-2.2)
1028 ("libx11" ,libx11)
1029 ("libxext" ,libxext)
1030 ("libxinerama" ,libxinerama)
1031 ("xosd" ,xosd)))
1032 (home-page "https://github.com/alezost/guile-xosd")
1033 (synopsis "XOSD bindings for Guile")
1034 (description
1035 "Guile-XOSD provides Guile bindings for @code{libxosd},
1036@uref{http://sourceforge.net/projects/libxosd/, the X On Screen Display
1037library}.")
1038 (license license:gpl3+)))
1039
1040(define-public guile-dbi
1041 (package
1042 (name "guile-dbi")
1043 (version "2.1.6")
1044 (source (origin
1045 (method url-fetch)
1046 (uri (string-append
1047 "http://download.gna.org/guile-dbi/guile-dbi-"
1048 version ".tar.gz"))
1049 (sha256
1050 (base32
1051 "116njrprhgrsv1qm904sp3b02rq01fx639r433d657gyhw3x159n"))))
1052 (build-system gnu-build-system)
1053 (arguments
1054 '(#:configure-flags
1055 (list (string-append
1056 "--with-guile-site-dir=" %output "/share/guile/site/2.2"))
1057 #:make-flags
1058 (list (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib:"
1059 (assoc-ref %build-inputs "guile-dbd-sqlite3") "/lib"))
1060 #:phases
1061 (modify-phases %standard-phases
1062 (add-after 'install 'patch-extension-path
1063 (lambda* (#:key outputs #:allow-other-keys)
1064 (let* ((out (assoc-ref outputs "out"))
1065 (dbi.scm (string-append
1066 out "/share/guile/site/2.2/dbi/dbi.scm"))
1067 (ext (string-append out "/lib/libguile-dbi")))
1068 (substitute* dbi.scm (("libguile-dbi") ext))
1069 #t))))))
1070 (inputs
1071 `(("guile-dbd-sqlite3" ,guile-dbd-sqlite3))) ; only shared library, no scheme files
1072 (propagated-inputs
1073 `(("guile" ,guile-2.2)))
1074 (synopsis "Guile database abstraction layer")
1075 (home-page "http://home.gna.org/guile-dbi/guile-dbi.html")
1076 (description
1077 "guile-dbi is a library for Guile that provides a convenient interface to
1078SQL databases. Database programming with guile-dbi is generic in that the same
1079programming interface is presented regardless of which database system is used.
1080It currently supports MySQL, Postgres and SQLite3.")
1081 (license license:gpl2+)))
1082
1083(define guile-dbi-bootstrap
1084 (package
1085 (inherit guile-dbi)
1086 (name "guile-dbi-bootstrap")
1087 (inputs '())
1088 (arguments
1089 (substitute-keyword-arguments (package-arguments guile-dbi)
1090 ((#:make-flags _) '(list))))))
1091
1092(define-public guile-dbd-sqlite3
1093 (package
1094 (name "guile-dbd-sqlite3")
1095 (version "2.1.6")
1096 (source (origin
1097 (method url-fetch)
1098 (uri (string-append
1099 "http://download.gna.org/guile-dbi/guile-dbd-sqlite3-"
1100 version ".tar.gz"))
1101 (sha256
1102 (base32
1103 "0rg71jchxd2y8x496s8zmfmikr5g8zxi8zv2ar3f7a23pph92iw2"))))
1104 (build-system gnu-build-system)
1105 (native-inputs
1106 `(("pkg-config" ,pkg-config)
1107 ("guile-dbi-bootstrap" ,guile-dbi-bootstrap))) ; only required for headers
1108 (inputs
1109 `(("sqlite" ,sqlite)
1110 ("zlib" ,(@ (gnu packages compression) zlib))))
1111 (synopsis "Guile DBI driver for SQLite")
1112 (home-page "https://github.com/jkalbhenn/guile-dbd-sqlite3")
1113 (description
1114 "guile-dbi is a library for Guile that provides a convenient interface to
1115SQL databases. This package implements the interface for SQLite.")
1116 (license license:gpl2+)))
1117
1118(define-public guile-config
1119 (package
1120 (name "guile-config")
1121 (version "0.3")
1122 (source
1123 (origin
1124 (method git-fetch)
1125 (uri (git-reference
1126 (url "https://gitlab.com/a-sassmannshausen/guile-config")
1127 (commit "ce12de3f438c6b2b59c43ee21bcd58251835fdf3")))
1128 (file-name "guile-config-0.3-checkout")
1129 (sha256 (base32 "02zbpin0r9m2vxmr7mv68v3xdn247dcck56kbzjn0gj4c2rhih85"))))
1130 (build-system gnu-build-system)
1131 (native-inputs
1132 `(("autoconf" ,autoconf)
1133 ("automake" ,automake)
1134 ("pkg-config" ,pkg-config)
1135 ("texinfo" ,texinfo)))
1136 (inputs `(("guile" ,guile-2.2)))
1137 (synopsis
1138 "Guile application configuration parsing library.")
1139 (description
1140 "Guile Config is a library providing a declarative approach to
1141application configuration specification. The library provides clean
1142configuration declaration forms, and processors that take care of:
1143configuration file creation; configuration file parsing; command-line
1144parameter parsing using getopt-long; basic GNU command-line parameter
1145generation (--help, --usage, --version); automatic output generation for the
1146above command-line parameters.")
1147 (home-page
1148 "https://gitlab.com/a-sassmannshausen/guile-config")
1149 (license license:gpl3+)))
1150
1151(define-public guile-hall
1152 (package
1153 (name "guile-hall")
1154 (version "0.1.1")
1155 (source
1156 (origin
1157 (method git-fetch)
1158 (uri (git-reference
1159 (url "https://gitlab.com/a-sassmannshausen/guile-hall")
1160 (commit "7d1094a12fe917209ce5b76c681cc8c862d4c65b")))
1161 (file-name "guile-hall-0.1.1-checkout")
1162 (sha256
1163 (base32
1164 "03kb09cjca98hlbx9mj12mqinzsnnvp6ci6i975n88pjhaxigyp1"))))
1165 (build-system gnu-build-system)
1166 (arguments
1167 `(#:modules
1168 ((ice-9 match)
1169 (ice-9 ftw)
1170 ,@%gnu-build-system-modules)
1171 #:phases
395a95bb
RW
1172 (modify-phases %standard-phases
1173 (add-after 'install 'hall-wrap-binaries
1174 (lambda* (#:key inputs outputs #:allow-other-keys)
1175 (let* ((out (assoc-ref outputs "out"))
1176 (bin (string-append out "/bin/"))
1177 (site (string-append out "/share/guile/site"))
1178 (config (assoc-ref inputs "guile-config")))
0791437f
RW
1179 (match (scandir site)
1180 (("." ".." version)
1181 (let ((modules (string-append site "/" version))
395a95bb
RW
1182 (compiled-modules (string-append
1183 out "/lib/guile/" version
1184 "/site-ccache")))
1185 (wrap-program (string-append bin "hall")
1186 `("GUILE_LOAD_PATH" ":" prefix
1187 (,modules
1188 ,(string-append config
1189 "/share/guile/site/"
1190 version)))
1191 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
1192 (,compiled-modules
1193 ,(string-append config "/lib/guile/"
1194 version
1195 "/site-ccache"))))
0791437f
RW
1196 #t)))))))))
1197 (native-inputs
1198 `(("autoconf" ,autoconf)
1199 ("automake" ,automake)
1200 ("pkg-config" ,pkg-config)
1201 ("texinfo" ,texinfo)))
1202 (inputs `(("guile" ,guile-2.2)))
1203 (propagated-inputs
1204 `(("guile-config" ,guile-config)))
1205 (synopsis "Guile project tooling")
1206 (description
1207 "Hall is a command-line application and a set of Guile libraries that
1208allow you to quickly create and publish Guile projects. It allows you to
1209transparently support the GNU build system, manage a project hierarchy &
1210provides tight coupling to Guix.")
395a95bb 1211 (home-page "https://gitlab.com/a-sassmannshausen/guile-hall")
0791437f
RW
1212 (license license:gpl3+)))
1213
1214(define-public guile-ics
1215 (package
1216 (name "guile-ics")
1217 (version "0.2.0")
1218 (source (origin
1219 (method git-fetch)
1220 (uri (git-reference
1221 (url "https://github.com/artyom-poptsov/guile-ics")
1222 (commit (string-append "v" version))))
1223 (file-name (string-append name "-" version "-checkout"))
1224 (sha256
1225 (base32
1226 "0qjjvadr7gibdq9jvwkmlkb4afsw9n2shfj9phpiadinxk3p4m2g"))))
1227 (build-system gnu-build-system)
1228 (native-inputs
1229 `(("autoconf" ,autoconf-wrapper)
1230 ("automake" ,automake)
1231 ("texinfo" ,texinfo)
1232 ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
1233 ("gettext" ,gettext-minimal)
1234 ("pkg-config" ,pkg-config)))
1235 (inputs `(("guile" ,guile-2.2) ("which" ,which)))
1236 (propagated-inputs `(("guile-lib" ,guile-lib)))
1237 (home-page "https://github.com/artyom-poptsov/guile-ics")
1238 (synopsis "Guile parser library for the iCalendar format")
1239 (description
1240 "Guile-ICS is an iCalendar (RFC5545) format parser library written in
1241pure Scheme. The library can be used to read and write iCalendar data.
1242
1243The library is shipped with documentation in Info format and usage examples.")
1244 (license license:gpl3+)))
1245
1246(define-public guile-wisp
1247 (package
1248 (name "guile-wisp")
15218d4e 1249 (version "0.9.9.1")
0791437f
RW
1250 (source (origin
1251 (method url-fetch)
1252 (uri (string-append "https://bitbucket.org/ArneBab/"
1253 "wisp/downloads/wisp-"
1254 version ".tar.gz"))
1255 (sha256
1256 (base32
15218d4e 1257 "1ii14qz1lx7ffhb8i9q7dgaiwbif8g2q182skx17j11skp65c8r3"))))
0791437f
RW
1258 (build-system gnu-build-system)
1259 (arguments
1260 `(#:modules ((guix build gnu-build-system)
15218d4e 1261 ((guix build emacs-build-system) #:prefix emacs:)
0791437f 1262 (guix build utils)
15218d4e 1263 (guix build emacs-utils)
0791437f
RW
1264 (ice-9 rdelim)
1265 (ice-9 popen))
15218d4e
RW
1266 #:imported-modules (,@%gnu-build-system-modules
1267 (guix build emacs-build-system)
1268 (guix build emacs-utils))
0791437f
RW
1269 #:phases
1270 (modify-phases %standard-phases
1271 (add-before 'configure 'patch-/usr/bin/env
1272 (lambda _
1273 (substitute* "Makefile.in"
1274 (("/usr/bin/env bash") (which "bash"))
1275 (("\\$\\(GUILE_EFFECTIVE_VERSION\\)/site")
1276 "site/$(GUILE_EFFECTIVE_VERSION)")) ;use the right order
1277 #t))
1278 ;; auto compilation breaks, but if we set HOME to /tmp,
1279 ;; that works ok
1280 (add-before 'check 'auto-compile-hacky-workaround
1281 (lambda _ (setenv "HOME" "/tmp") #t))
1282 (add-after 'install 'install-go-files
1283 (lambda* (#:key outputs inputs #:allow-other-keys)
1284 (let* ((out (assoc-ref outputs "out"))
1285 (effective (read-line
1286 (open-pipe* OPEN_READ
1287 "guile" "-c"
1288 "(display (effective-version))")))
1289 (module-dir (string-append out "/share/guile/site/"
1290 effective))
1291 (object-dir (string-append out "/lib/guile/" effective
1292 "/site-ccache"))
1293 (prefix (string-length module-dir)))
1294 ;; compile to the destination
1295 (for-each (lambda (file)
1296 (let* ((base (string-drop (string-drop-right file 4)
1297 prefix))
1298 (go (string-append object-dir base ".go")))
1299 (invoke "guild" "compile" "-L" module-dir
1300 file "-o" go)))
1301 (find-files module-dir "\\.scm$"))
15218d4e
RW
1302 #t)))
1303 (add-after 'install 'install-emacs-files
1304 (assoc-ref emacs:%standard-phases 'install))
1305 (add-after 'install-emacs-files 'compile-emacs-files
1306 (assoc-ref emacs:%standard-phases 'build))
1307 (add-after 'compile-emacs-files 'make-autoloads
1308 (assoc-ref emacs:%standard-phases 'make-autoloads)))))
0791437f
RW
1309 (home-page "https://draketo.de/english/wisp")
1310 (inputs
1311 `(("guile" ,guile-2.2)))
1312 (native-inputs
15218d4e
RW
1313 `(("emacs" ,emacs-minimal)
1314 ("python" ,python)
0791437f
RW
1315 ("pkg-config" ,pkg-config)))
1316 (synopsis "Whitespace to lisp syntax for Guile")
1317 (description "Wisp is a syntax for Guile which provides a Python-like
1318whitespace-significant language. It may be easier on the eyes for some
1319users and in some situations.")
1320 (license license:gpl3+)))
1321
1322(define-public guile-sly
1323 (package
1324 (name "guile-sly")
1325 (version "0.1")
1326 (source (origin
1327 (method url-fetch)
1328 (uri (string-append "https://files.dthompson.us/sly/sly-"
1329 version ".tar.gz"))
1330 (sha256
1331 (base32
1332 "1svzlbz2vripmyq2kjh0rig16bsrnbkwbsm558pjln9l65mcl4qq"))
1333 (modules '((guix build utils)))
1334 (snippet
1335 '(begin
1336 (substitute* "configure"
1337 (("_guile_required_version=\"2.0.11\"")
1338 "_guile_required_version=\"2\"")
1339 (("ac_subst_vars='")
1340 "ac_subst_vars='GUILE_EFFECTIVE_VERSION\n"))
1341 (substitute* (find-files "." "Makefile.in")
1342 (("moddir = .*$")
1343 (string-append
1344 "moddir = "
1345 "$(prefix)/share/guile/site/@GUILE_EFFECTIVE_VERSION@\n"))
1346 (("godir = .*$")
1347 (string-append
1348 "godir = "
1349 "$(prefix)/lib/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n")))
1350 #t))))
1351 (build-system gnu-build-system)
1352 (arguments
1353 '(#:configure-flags
1354 (list (string-append "--with-libfreeimage-prefix="
1355 (assoc-ref %build-inputs "freeimage"))
1356 (string-append "--with-libgslcblas-prefix="
1357 (assoc-ref %build-inputs "gsl")))))
1358 (native-inputs
1359 `(("pkg-config" ,pkg-config)))
1360 (propagated-inputs
1361 `(("guile-sdl" ,guile-sdl)
1362 ("guile-opengl" ,guile-opengl)))
1363 (inputs
1364 `(("guile" ,guile-2.2)
1365 ("gsl" ,gsl)
1366 ("freeimage" ,freeimage)
1367 ("mesa" ,mesa)))
1368 (synopsis "2D/3D game engine for GNU Guile")
1369 (description "Sly is a 2D/3D game engine written in Guile Scheme. Sly
1370features a functional reactive programming interface and live coding
1371capabilities.")
1372 (home-page "https://dthompson.us/projects/sly.html")
1373 (license license:gpl3+)))
1374
1375(define-public g-wrap
1376 (package
1377 (name "g-wrap")
1378 (version "1.9.15")
1379 (source (origin
1380 (method url-fetch)
1381 (uri (string-append "mirror://savannah/g-wrap/g-wrap-"
1382 version ".tar.gz"))
1383 (sha256
1384 (base32
1385 "0ak0bha37dfpj9kmyw1r8fj8nva639aw5xr66wr5gd3l1rqf5xhg"))))
1386 (build-system gnu-build-system)
1387 (native-inputs
1388 `(("pkg-config" ,pkg-config)))
1389 (propagated-inputs
1390 `(("guile" ,guile-2.2)
1391 ("guile-lib" ,guile-lib)))
1392 (inputs
1393 `(("libffi" ,libffi)))
1394 (arguments
1395 `(#:configure-flags '("--disable-Werror")
1396 #:phases
1397 (modify-phases %standard-phases
1398 (add-before 'configure 'pre-configure
1399 (lambda* (#:key outputs #:allow-other-keys)
1400 (let ((out (assoc-ref outputs "out")))
1401 (substitute* (find-files "." "^Makefile.in$")
1402 (("guilemoduledir =.*guile/site" all)
1403 (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
1404 #t))))))
1405 (synopsis "Generate C bindings for Guile")
1406 (description "G-Wrap is a tool and Guile library for generating function
1407wrappers for inter-language calls. It currently only supports generating Guile
1408wrappers for C functions. Given a definition of the types and prototypes for
1409a given C interface, G-Wrap will automatically generate the C code that
1410provides access to that interface and its types from the Scheme level.")
1411 (home-page "https://www.nongnu.org/g-wrap/index.html")
1412 (license license:lgpl2.1+)))
1413
1414(define-public guile-miniadapton
1415 (let ((commit "1b5749422304567c96ac5367f2221dda9eff5880")
1416 (revision "1"))
1417 (package
1418 (name "guile-miniadapton")
1419 (version (string-append "0-" revision "." (string-take commit 9)))
1420 (source (origin
1421 (method git-fetch)
1422 (uri (git-reference
1423 (url "https://github.com/fisherdj/miniAdapton.git")
1424 (commit commit)))
1425 (file-name (string-append name "-" version "-checkout"))
1426 (sha256
1427 (base32
1428 "09q51zkw2fypad5xixskfzw2cjhjgs5cswdp3i7cpp651rb3zndh"))))
1429 (build-system guile-build-system)
1430 (native-inputs
1431 `(("guile" ,guile-2.2)))
1432 (home-page "https://github.com/fisherdj/miniAdapton")
1433 (synopsis "Minimal implementation of incremental computation in Guile
1434Scheme")
1435 (description "This package provides a complete Scheme implementation of
1436miniAdapton, which implements the core functionality of the Adapton system for
1437incremental computation (also known as self-adjusting computation). Like
1438Adapton, miniAdapton allows programmers to safely combine mutation and
1439memoization. miniAdapton is built on top of an even simpler system,
1440microAdapton. Both miniAdapton and microAdapton are designed to be easy to
1441understand, extend, and port to host languages other than Scheme.")
1442 (license license:expat))))
1443
1444(define-public guile-reader
1445 (package
1446 (name "guile-reader")
1447 (version "0.6.2")
1448 (source (origin
1449 (method url-fetch)
1450 (uri (string-append "mirror://savannah/guile-reader/guile-reader-"
1451 version ".tar.gz"))
1452 (sha256
1453 (base32
1454 "0592s2s8ampqmqwilc4fvcild6rb9gy79di6vxv5kcdmv23abkgx"))))
1455 (build-system gnu-build-system)
1456 (native-inputs `(("pkgconfig" ,pkg-config)
1457 ("gperf" ,gperf-3.0)))
1458 (inputs `(("guile" ,guile-2.2)))
1459 (synopsis "Framework for building readers for GNU Guile")
1460 (description
1461 "Guile-Reader is a simple framework for building readers for GNU Guile.
1462
1463The idea is to make it easy to build procedures that extend Guile’s read
1464procedure. Readers supporting various syntax variants can easily be written,
1465possibly by re-using existing “token readers” of a standard Scheme
1466readers. For example, it is used to implement Skribilo’s R5RS-derived
1467document syntax.
1468
1469Guile-Reader’s approach is similar to Common Lisp’s “read table”, but
1470hopefully more powerful and flexible (for instance, one may instantiate as
1471many readers as needed).")
1472 (home-page "https://www.nongnu.org/guile-reader/")
1473 (license license:gpl3+)))
1474
1475(define-public guile2.2-reader
1476 (deprecated-package "guile2.2-reader" guile-reader))
1477
1478(define-public guile-ncurses
1479 (package
1480 (name "guile-ncurses")
1481 (version "2.2")
1482 (source (origin
1483 (method url-fetch)
1484 (uri (string-append "mirror://gnu/guile-ncurses/guile-ncurses-"
1485 version ".tar.gz"))
1486 (sha256
1487 (base32
1488 "1wvggbr4xv8idh1hzd8caj4xfp4pln78a7w1wqzd4zgzwmnzxr2f"))))
1489 (build-system gnu-build-system)
1490 (inputs `(("ncurses" ,ncurses)
1491 ("guile" ,guile-2.2)))
1492 (native-inputs `(("pkg-config" ,pkg-config)))
1493 (arguments
1494 '(#:configure-flags (list "--with-ncursesw" ; Unicode support
1495 "--with-gnu-filesystem-hierarchy")
1496 #:phases
1497 (modify-phases %standard-phases
1498 (add-before 'build 'fix-libguile-ncurses-file-name
1499 (lambda* (#:key outputs #:allow-other-keys)
1500 (invoke "make" "install"
1501 "-C" "src/ncurses"
1502 "-j" (number->string
1503 (parallel-job-count)))
1504 (let* ((out (assoc-ref outputs "out"))
1505 (dir "src/ncurses")
1506 (files (find-files dir ".scm")))
1507 (substitute* files
1508 (("\"libguile-ncurses\"")
1509 (format #f "\"~a/lib/guile/2.2/libguile-ncurses\""
1510 out)))
1511 #t))))))
1512 (home-page "https://www.gnu.org/software/guile-ncurses/")
1513 (synopsis "Guile bindings to ncurses")
1514 (description
1515 "guile-ncurses provides Guile language bindings for the ncurses
1516library.")
1517 (license license:lgpl3+)))
1518
1519(define-public guile-ncurses/gpm
1520 (package
1521 (inherit guile-ncurses)
1522 (name "guile-ncurses-with-gpm")
1523 (inputs `(("ncurses" ,ncurses/gpm)
1524 ("guile" ,guile-2.2)))))
1525
1526(define-public guile-lib
1527 (package
1528 (name "guile-lib")
1529 (version "0.2.6.1")
1530 (source (origin
1531 (method url-fetch)
1532 (uri (string-append "mirror://savannah/guile-lib/guile-lib-"
1533 version ".tar.gz"))
1534 (sha256
1535 (base32
1536 "0aizxdif5dpch9cvs8zz5g8ds5s4xhfnwza2il5ji7fv2h7ks7bd"))))
1537 (build-system gnu-build-system)
1538 (arguments
1539 '(#:make-flags
1540 '("GUILE_AUTO_COMPILE=0") ; to prevent guild errors
1541 #:phases
1542 (modify-phases %standard-phases
1543 (add-before 'configure 'patch-module-dir
1544 (lambda _
1545 (substitute* "src/Makefile.in"
1546 (("^moddir = ([[:graph:]]+)")
1547 "moddir = $(datadir)/guile/site/@GUILE_EFFECTIVE_VERSION@\n")
1548 (("^godir = ([[:graph:]]+)")
1549 "godir = \
1550$(libdir)/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n"))
1551 #t)))))
1552 (native-inputs `(("pkg-config" ,pkg-config)))
1553 (inputs `(("guile" ,guile-2.2)))
1554 (home-page "https://www.nongnu.org/guile-lib/")
1555 (synopsis "Collection of useful Guile Scheme modules")
1556 (description
1557 "Guile-Lib is intended as an accumulation place for pure-scheme Guile
1558modules, allowing for people to cooperate integrating their generic Guile
1559modules into a coherent library. Think \"a down-scaled, limited-scope CPAN
1560for Guile\".")
1561
1562 ;; The whole is under GPLv3+, but some modules are under laxer
1563 ;; distribution terms such as LGPL and public domain. See `COPYING' for
1564 ;; details.
1565 (license license:gpl3+)))
1566
1567(define-public guile2.0-lib
1568 (package
1569 (inherit guile-lib)
1570 (name "guile2.0-lib")
1571 (inputs `(("guile" ,guile-2.0)))))
1572
1573(define-public guile2.2-lib
1574 (deprecated-package "guile2.2-lib" guile-lib))
1575
1576(define-public guile-minikanren
1577 (package
1578 (name "guile-minikanren")
1579 (version "20150424.e844d85")
1580 (source (origin
1581 (method git-fetch)
1582 (uri (git-reference
1583 (url "https://github.com/ijp/minikanren.git")
1584 (commit "e844d85512f8c055d3f96143ee506007389a25e3")))
1585 (file-name (string-append name "-" version "-checkout"))
1586 (sha256
1587 (base32
1588 "0r50jlpzi940jlmxyy3ddqqwmj5r12gb4bcv0ssini9v8km13xz6"))))
1589 (build-system guile-build-system)
1590 (native-inputs
1591 `(("guile" ,guile-2.2)))
1592 (home-page "https://github.com/ijp/minikanren")
1593 (synopsis "MiniKanren declarative logic system, packaged for Guile")
1594 (description
1595 "MiniKanren is a relational programming extension to the Scheme
1596programming Language, written as a smaller version of Kanren suitable for
1597pedagogical purposes. It is featured in the book, The Reasoned Schemer,
1598written by Dan Friedman, William Byrd, and Oleg Kiselyov.
1599
1600This is Ian Price's r6rs packaged version of miniKanren, which deviates
1601slightly from miniKanren mainline.
1602
1603See http://minikanren.org/ for more on miniKanren generally.")
1604 (license license:expat)))
1605
1606(define-public guile2.0-minikanren
1607 (package
1608 (inherit guile-minikanren)
1609 (name "guile2.0-minikanren")
1610 (native-inputs `(("guile" ,guile-2.0)))))
1611
1612(define-public guile2.2-minikanren
1613 (deprecated-package "guile2.2-minikanren" guile-minikanren))
1614
1615(define-public guile-irregex
1616 (package
1617 (name "guile-irregex")
1618 (version "0.9.6")
1619 (source (origin
1620 (method url-fetch)
1621 (uri (string-append
1622 "http://synthcode.com/scheme/irregex/irregex-"
1623 version ".tar.gz"))
1624 (sha256
1625 (base32
1626 "1ia3m7dp3lcxa048q0gqbiwwsyvn99baw6xkhb4bhhzn4k7bwyqq"))))
1627 (build-system guile-build-system)
1628 (arguments
1629 '(#:phases (modify-phases %standard-phases
1630 (add-after 'unpack 'move-files-around
1631 (lambda _
1632 ;; Move the relevant source files to src/ and create the
1633 ;; rx/ directory to match the expected module hierarchy.
1634 (mkdir-p "src/rx/source")
1635 (rename-file "irregex-guile.scm"
1636 "src/rx/irregex.scm")
1637 (rename-file "irregex.scm"
1638 "src/rx/source/irregex.scm")
1639 ;; Not really reachable via guile's packaging system,
1640 ;; but nice to have around.
1641 (rename-file "irregex-utils.scm"
1642 "src/rx/source/irregex-utils.scm")
1643 #t)))
1644 #:source-directory "src"))
1645 (native-inputs
1646 `(("guile" ,guile-2.2)))
1647 (home-page "http://synthcode.com/scheme/irregex")
1648 (synopsis "S-expression based regular expressions")
1649 (description
1650 "Irregex is an s-expression based alternative to your classic
1651string-based regular expressions. It implements SRFI 115 and is deeply
1652inspired by the SCSH regular expression system.")
1653 (license license:bsd-3)))
1654
1655(define-public guile2.0-irregex
1656 (package
1657 (inherit guile-irregex)
1658 (name "guile2.0-irregex")
1659 (native-inputs `(("guile" ,guile-2.0)))))
1660
1661(define-public guile2.2-irregex
1662 (deprecated-package "guile2.2-irregex" guile-irregex))
1663
1664(define-public haunt
1665 (package
1666 (name "haunt")
1667 (version "0.2.4")
1668 (source (origin
1669 (method url-fetch)
1670 (uri (string-append "https://files.dthompson.us/haunt/haunt-"
1671 version ".tar.gz"))
1672 (sha256
1673 (base32
1674 "056z4znikk83nr5mr0x2ac3iinqbywa2bvb37mhr566a1q50isfc"))))
1675 (build-system gnu-build-system)
1676 (arguments
1677 `(#:modules ((ice-9 match) (ice-9 ftw)
1678 ,@%gnu-build-system-modules)
1679 #:tests? #f ; test suite is non-deterministic :(
1680 #:phases (modify-phases %standard-phases
1681 (add-after 'install 'wrap-haunt
1682 (lambda* (#:key inputs outputs #:allow-other-keys)
1683 ;; Wrap the 'haunt' command to refer to the right
1684 ;; modules.
1685 (let* ((out (assoc-ref outputs "out"))
1686 (bin (string-append out "/bin"))
1687 (site (string-append
1688 out "/share/guile/site"))
1689 (deps (list (assoc-ref inputs "guile-reader")
1690 (assoc-ref inputs "guile-commonmark"))))
1691 (match (scandir site)
1692 (("." ".." version)
1693 (let ((modules (string-append site "/" version))
1694 (compiled-modules (string-append
1695 out "/lib/guile/" version
1696 "/site-ccache")))
1697 (wrap-program (string-append bin "/haunt")
1698 `("GUILE_LOAD_PATH" ":" prefix
1699 (,modules
1700 ,@(map (lambda (dep)
1701 (string-append dep
1702 "/share/guile/site/"
1703 version))
1704 deps)))
1705 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
1706 (,compiled-modules
1707 ,@(map (lambda (dep)
1708 (string-append dep "/lib/guile/"
1709 version
1710 "/site-ccache"))
1711 deps))))
1712 #t)))))))))
1713 (native-inputs
1714 `(("pkg-config" ,pkg-config)
1715 ("texinfo" ,texinfo)))
1716 (inputs
1717 `(("guile" ,guile-2.2)))
1718 (propagated-inputs
1719 `(("guile-reader" ,guile-reader)
1720 ("guile-commonmark" ,guile-commonmark)))
1721 (synopsis "Functional static site generator")
1722 (description "Haunt is a static site generator written in Guile
1723Scheme. Haunt features a functional build system and an extensible
1724interface for reading articles in any format.")
1725 (home-page "http://haunt.dthompson.us")
1726 (license license:gpl3+)))
1727
1728(define-public guile2.0-haunt
1729 (package
1730 (inherit haunt)
1731 (name "guile2.0-haunt")
1732 (inputs `(("guile" ,guile-2.0)))))
1733
1734(define-public guile2.2-haunt
1735 (deprecated-package "guile2.2-haunt" haunt))
1736
1737(define-public guile-redis
1738 (package
1739 (name "guile-redis")
1740 (version "1.0.0")
1741 (home-page "https://github.com/aconchillo/guile-redis")
1742 (source (origin
1743 (method url-fetch)
1744 (uri (string-append home-page "/archive/" version ".tar.gz"))
1745 (sha256
1746 (base32
1747 "1dp5fmqvma59pvp1nfpq6hqgbmjici8sd1y8llahl87fynw1dvr9"))))
1748 (build-system gnu-build-system)
1749 (native-inputs
1750 `(("autoconf" ,autoconf)
1751 ("automake" ,automake)
1752 ("pkg-config" ,pkg-config)
1753 ("guile" ,guile-2.2)))
1754 (synopsis "Redis client library for Guile")
1755 (description "Guile-redis provides a Scheme interface to the Redis
1756key-value cache and store.")
1757 (license license:lgpl3+)))
1758
1759(define-public guile2.0-redis
1760 (package
1761 (inherit guile-redis)
1762 (name "guile2.0-redis")
1763 (native-inputs `(("guile" ,guile-2.0)
1764 ,@(alist-delete "guile"
1765 (package-native-inputs guile-redis))))))
1766
1767(define-public guile2.2-redis
1768 (deprecated-package "guile2.2-redis" guile-redis))
1769
1770(define-public guile-commonmark
1771 (package
1772 (name "guile-commonmark")
b552e307 1773 (version "0.1.2")
0791437f
RW
1774 (source (origin
1775 (method url-fetch)
1776 (uri (string-append "https://github.com/OrangeShark/" name
1777 "/releases/download/v" version
1778 "/" name "-" version ".tar.gz"))
1779 (sha256
1780 (base32
b552e307 1781 "17lrsdisa3kckh24q114vfmzdc4wkqa6ccwl4hdlrng5wpn1iman"))))
0791437f
RW
1782 (build-system gnu-build-system)
1783 (inputs
1784 `(("guile" ,guile-2.2)))
1785 (native-inputs
1786 `(("pkg-config" ,pkg-config)))
1787 (synopsis "CommonMark parser for Guile")
1788 (description
1789 "guile-commonmark is a library for parsing CommonMark, a fully specified
1790variant of Markdown. The library is written in Guile Scheme and is designed
1791to transform a CommonMark document to SXML. guile-commonmark tries to closely
1792follow the @uref{http://commonmark.org/, CommonMark spec}, the main difference
1793is no support for parsing block and inline level HTML.")
1794 (home-page "https://github.com/OrangeShark/guile-commonmark")
1795 (license license:lgpl3+)))
1796
1797(define-public guile2.0-commonmark
1798 (package
1799 (inherit guile-commonmark)
1800 (name "guile2.0-commonmark")
1801 (inputs `(("guile" ,guile-2.0)))))
1802
1803(define-public guile2.2-commonmark
1804 (deprecated-package "guile2.2-commonmark" guile-commonmark))
1805
1806(define-public mcron
1807 (package
1808 (name "mcron")
1809 (version "1.1.1")
1810 (source (origin
1811 (method url-fetch)
1812 (uri (string-append "mirror://gnu/mcron/mcron-"
1813 version ".tar.gz"))
1814 (sha256
1815 (base32
1816 "1i9mcp6r6my61zfiydsm3n6my41mwvl7dfala4q29qx0zn1ynlm4"))))
1817 (build-system gnu-build-system)
1818 (arguments
1819 '(#:phases (modify-phases %standard-phases
1820 (add-before 'check 'set-timezone
1821 (lambda* (#:key inputs #:allow-other-keys)
1822 ;; 'tests/job-specifier.scm' expects to be running in
1823 ;; UTC-2 or something.
1824 ;; FIXME: This issue is being investigated upstream, for
1825 ;; now we'll just skip the tests (see below):
1826 ;; <https://lists.gnu.org/archive/html/bug-mcron/2018-04/msg00005.html>.
1827 (let ((tzdata (assoc-ref inputs "tzdata")))
1828 (setenv "TZDIR"
1829 (string-append tzdata
1830 "/share/zoneinfo"))
1831 (setenv "TZ" "UTC-2")
1832 #t)))
1833 (add-before 'check 'adjust-tests
1834 (lambda _
1835 (substitute* "tests/job-specifier.scm"
1836 ;; (getpw) fails with "entry not found" in the build
1837 ;; environment, so pass an argument.
1838 (("\\(getpw\\)")
1839 "(getpwnam (getuid))")
1840 ;; The build environment lacks an entry for root in
1841 ;; /etc/passwd.
1842 (("\\(getpw 0\\)")
1843 "(getpwnam \"nobody\")")
1844
1845 ;; FIXME: Skip the 4 faulty tests (see above).
1846 (("\\(test-equal \"next-year\"" all)
1847 (string-append "(test-skip 4)\n" all)))
1848 #t)))))
1849 (native-inputs `(("pkg-config" ,pkg-config)
1850 ("tzdata" ,tzdata-for-tests)))
1851 (inputs `(("ed" ,ed) ("which" ,which) ("guile" ,guile-2.2)))
1852 (home-page "https://www.gnu.org/software/mcron/")
1853 (synopsis "Run jobs at scheduled times")
1854 (description
1855 "GNU Mcron is a complete replacement for Vixie cron. It is used to run
1856tasks on a schedule, such as every hour or every Monday. Mcron is written in
1857Guile, so its configuration can be written in Scheme; the original cron
1858format is also supported.")
1859 (license license:gpl3+)))
1860
1861(define-public mcron2
1862 ;; This was mthl's mcron development branch, and it became mcron 1.1.
1863 (deprecated-package "mcron2" mcron))
6bb5f88e
RW
1864
1865(define-public guile-picture-language
1866 (let ((commit "1531116036d1b5e0d2482ff2c8d77ad21f1d2bef")
1867 (revision "1"))
1868 (package
1869 (name "guile-picture-language")
1870 (version (git-version "0" revision commit))
1871 (source (origin
1872 (method git-fetch)
1873 (uri (git-reference
1874 (url "https://git.elephly.net/software/guile-picture-language.git")
1875 (commit commit)))
1876 (sha256
1877 (base32
1878 "04salmqf5x84vb3qkkxx47b64jyl290zsf3ik81l9hg6fwvvlmq3"))))
1879 (build-system guile-build-system)
1880 (inputs
1881 `(("guile" ,guile-2.2)))
1882 (home-page "https://git.elephly.net/software/guile-picture-language.git")
1883 (synopsis "Picture language for Guile")
1884 (description
1885 "This package provides a simple SVG-based picture language for Guile.
1886The picture values can directly be displayed in Geiser.")
1887 (license license:lgpl3+))))