1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 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, 2020 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2016 Erik Edrosa <erik.edrosa@gmail.com>
8 ;;; Copyright © 2016, 2019, 2020 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, 2019 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, 2019, 2020 Mathieu Othacehe <m.othacehe@gmail.com>
16 ;;; Copyright © 2017 Theodoros Foradis <theodoros@foradis.org>
17 ;;; Copyright © 2017 Nikita <nikita@n0.is>
18 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
19 ;;; Copyright © 2018 Maxim Cournoyer <maxim.cournoyer@gmail.com>
20 ;;; Copyright © 2018, 2019, 2020 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>
23 ;;; Copyright © 2019 swedebugia <swedebugia@riseup.net>
24 ;;; Copyright © 2019, 2020 Amar Singh <nly@disroot.org>
25 ;;; Copyright © 2019 Timothy Sample <samplet@ngyro.com>
26 ;;; Copyright © 2019, 2020 Martin Becze <mjbecze@riseup.net>
27 ;;; Copyright © 2020 Evan Straw <evan.straw99@gmail.com>
28 ;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
29 ;;; Copyright © 2020 Julien Lepiler <julien@lepiller.eu>
30 ;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
31 ;;; Copyright © 2020 Masaya Tojo <masaya@tojo.tokyo>
32 ;;; Copyright © 2020 Jesse Gibbons <jgibbons2357@gmail.com>
33 ;;; Copyright © 2020 Mike Rosset <mike.rosset@gmail.com>
35 ;;; This file is part of GNU Guix.
37 ;;; GNU Guix is free software; you can redistribute it and/or modify it
38 ;;; under the terms of the GNU General Public License as published by
39 ;;; the Free Software Foundation; either version 3 of the License, or (at
40 ;;; your option) any later version.
42 ;;; GNU Guix is distributed in the hope that it will be useful, but
43 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
44 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
45 ;;; GNU General Public License for more details.
47 ;;; You should have received a copy of the GNU General Public License
48 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
50 (define-module (gnu packages guile-xyz)
51 #:use-module ((guix licenses) #:prefix license:)
52 #:use-module (gnu packages)
53 #:use-module (gnu packages algebra)
54 #:use-module (gnu packages aspell)
55 #:use-module (gnu packages autotools)
56 #:use-module (gnu packages base)
57 #:use-module (gnu packages bash)
58 #:use-module (gnu packages compression)
59 #:use-module (gnu packages databases)
60 #:use-module (gnu packages disk)
61 #:use-module (gnu packages emacs)
62 #:use-module (gnu packages emacs-xyz)
63 #:use-module (gnu packages gawk)
64 #:use-module (gnu packages gettext)
65 #:use-module (gnu packages gl)
66 #:use-module (gnu packages glib)
67 #:use-module (gnu packages gnome)
68 #:use-module (gnu packages gnupg)
69 #:use-module (gnu packages gperf)
70 #:use-module (gnu packages gstreamer)
71 #:use-module (gnu packages gtk)
72 #:use-module (gnu packages guile)
73 #:use-module (gnu packages hurd)
74 #:use-module (gnu packages image)
75 #:use-module (gnu packages imagemagick)
76 #:use-module (gnu packages libffi)
77 #:use-module (gnu packages libunistring)
78 #:use-module (gnu packages linux)
79 #:use-module (gnu packages man)
80 #:use-module (gnu packages maths)
81 #:use-module (gnu packages multiprecision)
82 #:use-module (gnu packages ncurses)
83 #:use-module (gnu packages networking)
84 #:use-module (gnu packages noweb)
85 #:use-module (gnu packages nss)
86 #:use-module (gnu packages password-utils)
87 #:use-module (gnu packages perl)
88 #:use-module (gnu packages pkg-config)
89 #:use-module (gnu packages python)
90 #:use-module (gnu packages readline)
91 #:use-module (gnu packages sdl)
92 #:use-module (gnu packages search)
93 #:use-module (gnu packages slang)
94 #:use-module (gnu packages sqlite)
95 #:use-module (gnu packages swig)
96 #:use-module (gnu packages tex)
97 #:use-module (gnu packages texinfo)
98 #:use-module (gnu packages tls)
99 #:use-module (gnu packages version-control)
100 #:use-module (gnu packages webkit)
101 #:use-module (gnu packages xdisorg)
102 #:use-module (gnu packages xorg)
103 #:use-module (guix packages)
104 #:use-module (guix download)
105 #:use-module (guix git-download)
106 #:use-module (guix hg-download)
107 #:use-module (guix build-system glib-or-gtk)
108 #:use-module (guix build-system gnu)
109 #:use-module (guix build-system guile)
110 #:use-module (guix utils)
111 #:use-module (ice-9 match)
112 #:use-module ((srfi srfi-1) #:select (alist-delete)))
114 (define-public artanis
120 (uri (string-append "mirror://gnu/artanis/artanis-"
124 "0nnmdfx5xwcc3kck64var7msz7g3qk817d7bv9l159nkmic0v9w4"))
125 (modules '((guix build utils)))
128 ;; Unbundle guile-redis and guile-json
129 (delete-file-recursively "artanis/third-party/json.scm")
130 (delete-file-recursively "artanis/third-party/json")
131 (delete-file-recursively "artanis/third-party/redis.scm")
132 (delete-file-recursively "artanis/third-party/redis")
133 (substitute* '("artanis/artanis.scm"
136 (("(#:use-module \\()artanis third-party (json\\))" _
138 (string-append use-module json)))
139 (substitute* '("artanis/lpc.scm"
140 "artanis/session.scm")
141 (("(#:use-module \\()artanis third-party (redis\\))" _
143 (string-append use-module redis)))
144 (substitute* "artanis/oht.scm"
145 (("([[:punct:][:space:]]+)(->json-string)([[:punct:][:space:]]+)"
146 _ pre json-string post)
150 (substitute* "artanis/artanis.scm"
151 (("[[:punct:][:space:]]+->json-string[[:punct:][:space:]]+")
154 (build-system gnu-build-system)
156 `(("guile" ,guile-2.2)
158 ;; FIXME the bundled csv contains one more exported procedure
159 ;; (sxml->csv-string) than guile-csv. The author is maintainer of both
161 ;; TODO: Add guile-dbi and guile-dbd optional dependencies.
163 `(("guile-json" ,guile-json-1) ; This ia already using guile-2.2.
164 ("guile-readline" ,guile2.2-readline)
165 ("guile-redis" ,guile2.2-redis)))
167 `(("bash" ,bash) ;for the `source' builtin
168 ("pkgconfig" ,pkg-config)
169 ("util-linux" ,util-linux))) ;for the `script' command
172 ;; TODO: The documentation must be built with the `docs' target.
173 (let* ((out (assoc-ref %outputs "out"))
174 (scm (string-append out "/share/guile/site/2.2"))
175 (go (string-append out "/lib/guile/2.2/site-ccache")))
176 ;; Don't use (%site-dir) for site paths.
177 (list (string-append "MOD_PATH=" scm)
178 (string-append "MOD_COMPILED_PATH=" go)))
181 (modify-phases %standard-phases
182 (add-after 'unpack 'patch-site-dir
183 (lambda* (#:key outputs #:allow-other-keys)
184 (substitute* "artanis/commands/help.scm"
187 (assoc-ref outputs "out")
188 "/share/guile/site/2.2\"")))))
189 (add-after 'unpack 'patch-reference-to-libnss
190 (lambda* (#:key inputs #:allow-other-keys)
191 (substitute* "artanis/security/nss.scm"
192 (("ffi-binding \"libnss3\"")
195 (assoc-ref inputs "nss") "/lib/nss/libnss3.so"
198 (add-before 'install 'substitute-root-dir
199 (lambda* (#:key outputs #:allow-other-keys)
200 (let ((out (assoc-ref outputs "out")))
201 (substitute* "Makefile" ;ignore the execution of bash.bashrc
202 ((" /etc/bash.bashrc") " /dev/null"))
203 (substitute* "Makefile" ;set the root of config files to OUT
204 ((" /etc") (string-append " " out "/etc")))
205 (mkdir-p (string-append out "/bin")) ;for the `art' executable
207 (add-after 'install 'wrap-art
208 (lambda* (#:key inputs outputs #:allow-other-keys)
209 (let* ((out (assoc-ref outputs "out"))
210 (bin (string-append out "/bin"))
211 (scm (string-append out "/share/guile/site/2.2"))
212 (go (string-append out "/lib/guile/2.2/site-ccache")))
213 (wrap-program (string-append bin "/art")
214 `("GUILE_LOAD_PATH" ":" prefix
215 (,scm ,(getenv "GUILE_LOAD_PATH")))
216 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
217 (,go ,(getenv "GUILE_LOAD_COMPILED_PATH"))))
219 (synopsis "Web application framework written in Guile")
220 (description "GNU Artanis is a web application framework written in Guile
221 Scheme. A web application framework (WAF) is a software framework that is
222 designed to support the development of dynamic websites, web applications, web
223 services and web resources. The framework aims to alleviate the overhead
224 associated with common activities performed in web development. Artanis
225 provides several tools for web development: database access, templating
226 frameworks, session management, URL-remapping for RESTful, page caching, and
228 (home-page "https://www.gnu.org/software/artanis/")
229 (license (list license:gpl3+ license:lgpl3+)))) ;dual license
231 ;; There has not been any release yet.
232 (define-public guildhall
233 (let ((commit "2fe2cc539f4b811bbcd69e58738db03eb5a2b778")
237 (version (string-append "0-" revision "." (string-take commit 9)))
241 (url "https://github.com/ijp/guildhall")
243 (file-name (string-append name "-" version "-checkout"))
246 "115bym7bg66h3gs399yb2vkzc2ygriaqsn4zbrg8f054mgy8wzn1"))))
247 (build-system gnu-build-system)
250 (modify-phases %standard-phases
251 ;; Tests fail without this fix because they try to load the bash
252 ;; executable as a Scheme file. See bug report at
253 ;; https://github.com/ijp/guildhall/issues/22
254 (add-after 'unpack 'fix-bug-22
256 (substitute* "Makefile.am"
257 (("TESTS_ENVIRONMENT=.*")
258 "AM_TESTS_ENVIRONMENT=srcdir=$(abs_top_srcdir)/tests/
259 TEST_EXTENSIONS = .scm
260 SCM_LOG_COMPILER= $(top_builddir)/env $(GUILE)
261 AM_SCM_LOG_FLAGS = --no-auto-compile -s")
262 ;; FIXME: one of the database tests fails for unknown
263 ;; reasons. It does not fail when run outside of Guix.
264 (("tests/database.scm") ""))
267 `(("guile" ,guile-2.0)))
269 `(("zip" ,zip) ; for tests
270 ("autoconf" ,autoconf)
271 ("automake" ,automake)
272 ("texinfo" ,texinfo)))
273 (synopsis "Package manager for Guile")
275 "Guildhall is a package manager written for Guile Scheme. A guild is
276 an association of independent craftspeople. A guildhall is where they meet.
277 This Guildhall aims to make a virtual space for Guile wizards and journeyfolk
280 On a practical level, Guildhall lets you share Scheme modules and programs
281 over the internet, and install code that has been shared by others. Guildhall
282 can handle dependencies, so when a program requires several libraries, and
283 each of those has further dependencies, all of the prerequisites for the
284 program can be installed in one go.")
285 (home-page "https://github.com/ijp/guildhall")
286 (license license:gpl3+))))
288 (define-public guile-aspell
290 (name "guile-aspell")
295 "http://lonelycactus.com/tarball/guile_aspell-"
299 "0vpk5xj9m9qc702z3khmkwhgpb949qbsyz8kw2qycda6qnxk0077"))))
300 (build-system gnu-build-system)
302 '(#:phases (modify-phases %standard-phases
303 (add-before 'configure 'set-guilesitedir
305 (substitute* "Makefile.in"
306 (("^guilesitedir =.*$")
308 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
310 (add-before 'build 'set-libaspell-file-name
311 (lambda* (#:key inputs #:allow-other-keys)
312 (let ((aspell (assoc-ref inputs "aspell")))
313 (substitute* "aspell.scm"
314 (("\"libaspell\\.so\"")
315 (string-append "\"" aspell
316 "/lib/libaspell\"")))
318 (native-inputs `(("pkg-config" ,pkg-config)))
319 (inputs `(("guile" ,guile-2.2)
321 (home-page "https://github.com/spk121/guile-aspell")
322 (synopsis "Spell-checking from Guile")
324 "guile-aspell is a Guile Scheme library for comparing a string against a
325 dictionary and suggesting spelling corrections.")
326 (license license:gpl3+)))
328 (define-public guile-bash
329 ;; This project is currently retired. It was initially announced here:
330 ;; <https://lists.gnu.org/archive/html/guile-user/2015-02/msg00003.html>.
331 (let ((commit "1eabc563ca5692b3e08d84f1f0e6fd2283284469")
335 (version (string-append "0.1.6-" revision "." (string-take commit 7)))
337 "https://anonscm.debian.org/cgit/users/kaction-guest/retired/dev.guile-bash.git")
345 "097vny990wp2qpjij6a5a5gwc6fxzg5wk56inhy18iki5v6pif1p"))
346 (file-name (string-append name "-" version "-checkout"))))
347 (build-system gnu-build-system)
350 ;; Add -I to match 'bash.pc' of Bash 4.4.
351 (list (string-append "CPPFLAGS=-I"
352 (assoc-ref %build-inputs "bash:include")
353 "/include/bash/include")
355 ;; The '.a' file is useless.
358 ;; Install 'lib/bash' as Bash 4.4 expects.
359 (string-append "--libdir=" (assoc-ref %outputs "out")
361 (native-inputs `(("pkg-config" ,pkg-config)
362 ("autoconf" ,autoconf-wrapper)
363 ("automake" ,automake)
365 ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
366 ("gettext" ,gettext-minimal)
368 ;; Bash with loadable module support, for the test
370 ("bash-full" ,bash)))
371 (inputs `(("guile" ,guile-2.0)
372 ("bash:include" ,bash "include")))
373 (synopsis "Extend Bash using Guile")
375 "Guile-Bash provides a shared library and set of Guile modules,
376 allowing you to extend Bash in Scheme. Scheme interfaces allow you to access
377 the following aspects of Bash:
381 @item setting and getting Bash variables;
382 @item creating dynamic variables;
383 @item creating Bash functions with a Scheme implementation;
384 @item reader macro for output capturing;
385 @item reader macro for evaluating raw Bash commands.
391 enable -f ~/.guix-profile/lib/bash/libguile-bash.so scm
394 and then run @command{scm example.scm}.")
395 (license license:gpl3+))))
397 (define-public guile-8sync
403 (uri (string-append "mirror://gnu/8sync/8sync-" version
407 "031wm13srak3wsnll7j2mbbi29g1pcm4swdb71ds9yn567pn20qw"))))
408 (build-system gnu-build-system)
409 (native-inputs `(("autoconf" ,autoconf)
410 ("automake" ,automake)
412 ("pkg-config" ,pkg-config)
413 ("texinfo" ,texinfo)))
415 `(#:phases (modify-phases %standard-phases
416 (add-before 'configure 'setenv
419 (setenv "GUILE_AUTO_COMPILE" "0")
421 (home-page "https://gnu.org/s/8sync/")
422 (synopsis "Asynchronous actor model library for Guile")
424 "GNU 8sync (pronounced \"eight-sync\") is an asynchronous programming
425 library for GNU Guile based on the actor model.
427 Note that 8sync is only available for Guile 2.2.")
428 (properties '((upstream-name . "8sync")))
429 (license license:lgpl3+)))
431 (define-public guile-daemon
433 (name "guile-daemon")
437 (uri (string-append "https://github.com/alezost/" name
438 "/releases/download/v" version
439 "/" name "-" version ".tar.gz"))
442 "08gaqrgjlly9k5si72vvpbr4xhq5v52l5ma5y6a7spid5dd057cy"))))
443 (build-system gnu-build-system)
445 `(("pkg-config" ,pkg-config)))
447 `(("guile" ,guile-2.2)))
448 (home-page "https://github.com/alezost/guile-daemon")
449 (synopsis "Evaluate code in a running Guile process")
451 "Guile-Daemon is a small Guile program that loads your initial
452 configuration file, and then reads and evaluates Guile expressions that
453 you send to a FIFO file.")
454 (license license:gpl3+)))
456 (define-public guile-dsv
463 (url "https://github.com/artyom-poptsov/guile-dsv")
464 (commit "6c867915dc4198eacc548a4834ef0e1aef852795")))
465 (file-name (string-append name "-" version "-checkout"))
468 "1mxbbcsmbjfnh4yydqz44ihbkdnzdwz38xanaam128arlb7hwr8n"))))
469 (build-system gnu-build-system)
471 `(("autoconf" ,autoconf)
472 ("automake" ,automake)
473 ("pkg-config" ,pkg-config)
474 ("texinfo" ,texinfo)))
475 (inputs `(("guile" ,guile-3.0)))
476 (propagated-inputs `(("guile-lib" ,guile-lib)))
478 `(#:modules (((guix build guile-build-system)
479 #:select (target-guile-effective-version))
480 ,@%gnu-build-system-modules)
481 #:imported-modules ((guix build guile-build-system)
482 ,@%gnu-build-system-modules)
483 #:phases (modify-phases %standard-phases
484 ;; Support Guile 3.0 in configure from upstream commit
485 ;; 4c724577ccf19bb88580f72f2f6b166a0447ce3f
486 (add-before 'bootstrap 'configure-support-guile3.0
488 (substitute* "configure.ac"
490 "GUILE_PKG([3.0 2.0 2.2])"))
492 (add-before 'configure 'set-guilesitedir
494 (substitute* "Makefile.in"
495 (("^guilesitedir =.*$")
497 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
498 (substitute* "modules/Makefile.in"
499 (("^guilesitedir =.*$")
501 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
502 (substitute* "modules/dsv/Makefile.in"
503 (("^guilesitedir =.*$")
505 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
507 (add-after 'install 'wrap-program
508 (lambda* (#:key inputs outputs #:allow-other-keys)
509 (let* ((out (assoc-ref outputs "out"))
510 (bin (string-append out "/bin"))
511 (guile-lib (assoc-ref inputs "guile-lib"))
512 (version (target-guile-effective-version))
513 (scm (string-append "/share/guile/site/"
515 (go (string-append "/lib/guile/"
516 version "/site-ccache")))
517 (wrap-program (string-append bin "/dsv")
518 `("GUILE_LOAD_PATH" prefix
519 (,(string-append out scm)
520 ,(string-append guile-lib scm)))
521 `("GUILE_LOAD_COMPILED_PATH" prefix
522 (,(string-append out go)
523 ,(string-append guile-lib go)))))
525 (home-page "https://github.com/artyom-poptsov/guile-dsv")
526 (synopsis "DSV module for Guile")
528 "Guile-DSV is a GNU Guile module for working with the
529 delimiter-separated values (DSV) data format. Guile-DSV supports the
530 Unix-style DSV format and RFC 4180 format.")
531 (license license:gpl3+)))
533 (define-public guile2.2-dsv
536 (name "guile2.2-dsv")
537 (inputs `(("guile" ,guile-2.2)))
538 (propagated-inputs `(("guile-lib" ,guile2.2-lib)))))
540 (define-public guile-fibers
542 (name "guile-fibers")
546 (uri (string-append "https://wingolog.org/pub/fibers/fibers-"
550 "0vjkg72ghgdgphzbjz9ig8al8271rq8974viknb2r1rg4lz92ld0"))
551 (modules '((guix build utils)))
554 ;; Allow builds with Guile 3.0.
555 (substitute* "configure"
556 (("search=\"2\\.2\"")
557 "search=\"3.0 2.2\""))
559 ;; Explicitly include system headers rather than relying on
560 ;; <libguile.h> to do it for us.
561 (substitute* "epoll.c"
562 (("#include.*libguile\\.h.*$" all)
563 (string-append "#include <unistd.h>\n"
564 "#include <string.h>\n"
567 ;; Import (ice-9 threads) for 'current-processor-count'.
568 (substitute* "tests/channels.scm"
569 (("#:use-module \\(fibers\\)")
570 (string-append "#:use-module (fibers)\n"
571 "#:use-module (ice-9 threads)\n")))
574 ;; fixes a resource leak that causes crashes in the tests
575 (search-patches "guile-fibers-destroy-peer-schedulers.patch"))))
576 (build-system gnu-build-system)
578 '(;; The code uses 'scm_t_uint64' et al., which are deprecated in 3.0.
579 #:configure-flags '("CFLAGS=-Wno-error=deprecated-declarations")
580 #:phases (modify-phases %standard-phases
581 (add-after 'install 'mode-guile-objects
582 (lambda* (#:key outputs #:allow-other-keys)
583 ;; .go files are installed to "lib/guile/X.Y/cache".
584 ;; This phase moves them to "…/site-ccache".
585 (let* ((out (assoc-ref outputs "out"))
586 (lib (string-append out "/lib/guile"))
587 (old (car (find-files lib "^ccache$"
589 (new (string-append (dirname old)
591 (rename-file old new)
594 `(("texinfo" ,texinfo)
595 ("pkg-config" ,pkg-config)))
597 `(("guile" ,guile-3.0)))
598 (synopsis "Lightweight concurrency facility for Guile")
600 "Fibers is a Guile library that implements a a lightweight concurrency
601 facility, inspired by systems like Concurrent ML, Go, and Erlang. A fiber is
602 like a \"goroutine\" from the Go language: a lightweight thread-like
603 abstraction. Systems built with Fibers can scale up to millions of concurrent
604 fibers, tens of thousands of concurrent socket connections, and many parallel
605 cores. The Fibers library also provides Concurrent ML-like channels for
606 communication between fibers.
608 Note that Fibers makes use of some Guile 2.1/2.2-specific features and
609 is not available for Guile 2.0.")
610 (home-page "https://github.com/wingo/fibers")
611 (license license:lgpl3+)))
613 (define-public guile2.0-fibers
615 (inherit guile-fibers)
616 (name "guile2.2-fibers")
617 (inputs `(("guile" ,guile-2.2)))))
619 (define-public guile3.0-fibers
620 (deprecated-package "guile3.0-fibers" guile-fibers))
622 (define-public guile-syntax-highlight
624 (name "guile-syntax-highlight")
628 (uri (string-append "https://files.dthompson.us/"
629 "guile-syntax-highlight/"
630 "guile-syntax-highlight-"
634 "1p771kq15x83483m23bhah1sz6vkalg3drm7x279f4j1cxligkzi"))
635 (modules '((guix build utils)))
638 ;; Allow builds with Guile 3.0.
639 (substitute* "configure"
643 (build-system gnu-build-system)
645 `(("pkg-config" ,pkg-config)))
647 `(("guile" ,guile-3.0)))
648 (synopsis "General-purpose syntax highlighter for GNU Guile")
649 (description "Guile-syntax-highlight is a general-purpose syntax
650 highlighting library for GNU Guile. It can parse code written in various
651 programming languages into a simple s-expression that can be converted to
652 HTML (via SXML) or any other format for rendering.")
653 (home-page "https://dthompson.us/projects/guile-syntax-highlight.html")
654 (license license:lgpl3+)))
656 (define-public guile2.2-syntax-highlight
658 (inherit guile-syntax-highlight)
659 (name "guile2.2-syntax-highlight")
660 (inputs `(("guile" ,guile-2.2)))))
662 (define-public guile3.0-syntax-highlight
663 (deprecated-package "guile3.0-syntax-highlight" guile-syntax-highlight))
665 (define-public guile-sjson
671 (uri (string-append "https://dustycloud.org/misc/sjson-" version
675 "1mzmapln79vv10qxaggz9qwcdbag3jnrj19xx8bgkmxss8h03sv3"))
676 (modules '((guix build utils)))
679 ;; Allow builds with Guile 3.0.
680 (substitute* "configure"
684 (build-system gnu-build-system)
686 `(("autoconf" ,autoconf)
687 ("automake" ,automake)
688 ("pkg-config" ,pkg-config)))
690 `(("guile" ,guile-3.0)))
691 (home-page "https://gitlab.com/dustyweb/guile-sjson")
692 (synopsis "S-expression based json reader/writer for Guile")
693 (description "guile-sjson is a json reader/writer for Guile.
694 It has a nice, simple s-expression based syntax.")
695 (license license:lgpl3+)))
697 (define-public guile2.2-sjson
699 (inherit guile-sjson)
700 (name "guile2.2-sjson")
701 (inputs `(("guile" ,guile-2.2)))))
703 (define-public guile-squee
704 (let ((commit "a85902a92bf6f58a1d35fd974a01ade163deda8d")
708 (version (string-append "0-" revision "." (string-take commit 7)))
712 (url "https://notabug.org/cwebber/guile-squee.git")
714 (file-name (git-file-name name version))
717 "0p1lpsp4kx57j3ai1dkxilm4ziavzzx8wbbc42m3hpziq0a7qz5z"))))
718 (build-system guile-build-system)
721 (modify-phases %standard-phases
722 (add-after 'unpack 'patch
723 (lambda* (#:key inputs #:allow-other-keys)
724 (substitute* "squee.scm"
725 (("dynamic-link \"libpq\"")
728 (assoc-ref inputs "postgresql") "/lib/libpq.so"
732 `(("postgresql" ,postgresql)))
734 `(("guile" ,guile-3.0)))
735 (home-page "https://notabug.org/cwebber/guile-squee")
736 (synopsis "Connect to PostgreSQL using Guile")
738 "@code{squee} is a Guile library for connecting to PostgreSQL databases
739 using Guile's foreign function interface.")
740 (license license:lgpl3+))))
742 (define-public guile2.2-squee
744 (inherit guile-squee)
745 (name "guile2.2-squee")
746 (native-inputs `(("guile" ,guile-2.2)
747 ,@(alist-delete "guile"
748 (package-native-inputs guile-squee))))))
750 (define-public guile3.0-squee
751 (deprecated-package "guile3.0-squee" guile-squee))
753 (define-public guile-colorized
755 (name "guile-colorized")
761 (url "https://gitlab.com/NalaGinrut/guile-colorized.git")
762 (commit (string-append "v" version))))
763 (file-name (git-file-name name version))
765 (base32 "10mv8c63159r3qvwwdvsgnsvdg7nc2ghak85zapwqpv4ywrqp9zc"))))
766 (build-system guile-build-system)
768 `(("guile" ,guile-3.0)))
769 (home-page "https://gitlab.com/NalaGinrut/guile-colorized")
770 (synopsis "Colorized REPL for Guile")
772 "Guile-colorized provides you with a colorized REPL for GNU Guile.")
773 (license license:gpl3+)))
775 (define-public guile2.2-colorized
777 (inherit guile-colorized)
778 (name "guile2.2-colorized")
779 (native-inputs `(("guile" ,guile-2.2)))))
781 (define-public guile3.0-colorized
782 (deprecated-package "guile3.0-colorized" guile-colorized))
784 (define-public guile-pfds
788 (home-page "https://github.com/ijp/pfds")
793 (commit (string-append "v" version))))
796 "19y33wg94pf0n98dkfqd1zbw93fgky4sawxsxl6s3vyqwl0yi5vh"))
797 (file-name (string-append name "-" version "-checkout"))))
798 (build-system guile-build-system)
800 '(#:source-directory "src"
801 #:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
802 #:phases (modify-phases %standard-phases
803 (add-after 'unpack 'move-files-around
805 ;; Move files under a pfds/ directory to reflect the
808 (for-each (lambda (file)
810 (string-append "src/pfds/" file)))
826 `(("guile" ,guile-3.0)))
827 (synopsis "Purely functional data structures for Guile")
829 "This package provides purely functional data structures written in R6RS
830 Scheme and compiled for Guile. It has been tested with Racket, Guile 2,
831 Vicare Scheme and IronScheme. Right now it contains:
839 @item priority search queues (PSQs)
843 @item hash array mapped tries (HAMTs).
845 (license license:bsd-3)))
847 (define-public guile-prometheus
848 (let ((commit "cbc6e1b03512443a03d66414c426adb8470b5f2b")
851 (name "guile-prometheus")
852 (version (git-version "0" revision commit))
856 (url "https://git.cbaines.net/git/guile/prometheus")
860 "1k1qg4ia87w2ipnf8cpikdc67lxi5bmahkhgk2x0i9ibdyvqb7np"))
861 (file-name (string-append name "-" version "-checkout"))))
862 (build-system gnu-build-system)
864 `(("pkg-config" ,pkg-config)
865 ("autoconf" ,autoconf)
866 ("automake" ,automake)))
868 `(("guile" ,guile-3.0)))
869 (home-page "https://git.cbaines.net/guile/prometheus")
870 (synopsis "Prometheus client library for Guile")
872 "This Guile library provides instrumentation code intended to be used
873 with the Prometheus time series service. Counter, gauge and histogram metric
874 types are supported.")
875 (license license:gpl3+))))
877 (define-public guile2.2-pfds
880 (name "guile2.2-pfds")
881 (native-inputs `(("guile" ,guile-2.2)))
883 (substitute-keyword-arguments (package-arguments guile-pfds)
885 `(modify-phases ,phases
886 (delete 'work-around-guile-bug)
887 (add-after 'move-files-around 'sls->scm
889 ;; In Guile <= 2.2.4, there's no way to tell 'guild
890 ;; compile' to accept the ".sls" extension. So...
891 (for-each (lambda (file)
894 (string-drop-right file 4)
896 (find-files "." "\\.sls$"))
899 (define-public guile3.0-pfds
900 (deprecated-package "guile3.0-pfds" guile-pfds))
902 (define-public guile-aa-tree
904 (name "guile-aa-tree")
908 (uri (string-append "mirror://savannah/guile-aa-tree/guile-aa-tree-"
912 "0044c105r3q9vpl17pv3phl1b79kjm1llhkakqgiasixyav01blh"))))
913 (build-system guile-build-system)
914 (native-inputs `(("guile" ,guile-2.2)))
915 ;; https://savannah.nongnu.org/projects/guile-aa-tree
916 (home-page "https://qlfiles.net/guile-aa-tree/")
917 (synopsis "AA tree data structure for Guile")
919 "This package provides an implementation of @dfn{AA trees}, a
920 self-balancing binary tree data structure, for Guile. It ensure @math{O(log
921 n)} worst case performance for core operations. The module provides
922 non-mutating insert, delete, and search operations, with support for
923 convenient nested tree operations.")
924 (license license:gpl3+)))
926 (define-public guile-simple-zmq
927 (let ((commit "68bedb6679716214fb9d3472da57544526f7a618")
930 (name "guile-simple-zmq")
931 (version (git-version "0.0.0" revision commit))
936 (url "https://github.com/jerry40/guile-simple-zmq")
940 "1ad3xg69qqviy1f6dnlw0ysmfdbmp1jq65rfqb8nfd8dsrq2syli"))
941 (file-name (git-file-name name version))))
942 (build-system guile-build-system)
944 `(#:source-directory "src"
945 #:phases (modify-phases %standard-phases
946 (add-after 'unpack 'set-libzmq-file-name
947 (lambda* (#:key inputs #:allow-other-keys)
948 (substitute* "src/simple-zmq.scm"
949 (("\\(dynamic-link \"libzmq\"\\)")
950 (format #f "(dynamic-link \"~a/lib/libzmq.so\")"
951 (assoc-ref inputs "zeromq"))))
954 `(("guile" ,guile-3.0)))
956 `(("zeromq" ,zeromq)))
957 (home-page "https://github.com/jerry40/guile-simple-zmq")
958 (synopsis "Guile wrapper over ZeroMQ library")
960 "This package provides a Guile programming interface to the ZeroMQ
962 (license license:gpl3+))))
964 (define-public guile2.2-simple-zmq
966 (inherit guile-simple-zmq)
967 (name "guile2.2-simple-zmq")
968 (native-inputs `(("guile" ,guile-2.2)))))
970 (define-public guile3.0-simple-zmq
971 (deprecated-package "guile3.0-simple-zmq" guile-simple-zmq))
973 (define-public jupyter-guile-kernel
974 (let ((commit "f25fb90b95529b17a006a807bd04e6aee12ea304")
977 (name "jupyter-guile-kernel")
978 (version (git-version "0.0.0" revision commit))
983 (url "https://github.com/jerry40/guile-kernel")
985 (file-name (git-file-name name version))
988 "0zr1fasdb2yv9kn21yll993y9higqss4jnfs030ndhjb93raa9sr"))))
989 (build-system guile-build-system)
991 '(#:phases (modify-phases %standard-phases
992 (add-after 'unpack 'set-openssl-file-name
993 (lambda* (#:key inputs #:allow-other-keys)
994 ;; Record the absolute file name of the 'openssl'
996 (substitute* "src/hmac.scm"
998 (string-append (assoc-ref inputs "openssl")
1002 ;; XXX: The code uses 'include' to include its own source
1003 ;; files, and "-L src" isn't enough in this case.
1004 (add-before 'build 'chdir
1005 (lambda _ (chdir "src") #t))
1006 (add-after 'build 'chdir-back
1007 (lambda _ (chdir "..") #t))
1009 (add-after 'install 'install-kernel
1010 (lambda* (#:key inputs outputs #:allow-other-keys)
1011 (let* ((out (assoc-ref outputs "out"))
1012 (json (assoc-ref inputs "guile-json"))
1013 (zmq (assoc-ref inputs "guile-simple-zmq"))
1014 (deps (list json zmq))
1016 out "/share/jupyter/kernels/guile"))
1017 (effective (target-guile-effective-version)))
1019 (install-file "src/kernel.json" dir)
1021 ;; Fix hard-coded file name in the kernel.
1022 (substitute* (string-append dir "/kernel.json")
1023 (("/usr/local/.*/guile-jupyter-kernel.scm")
1024 (string-append out "/share/guile/site/"
1025 (target-guile-effective-version)
1026 "/guile-jupyter-kernel.scm"))
1028 (string-append "\"" (assoc-ref inputs "guile")
1031 ;; Add '-L' and '-C' flags so that the kernel
1032 ;; finds its dependencies.
1033 (let ((-L (map (lambda (item)
1034 (string-append "\"" item
1035 "/share/guile/site/"
1038 (-C (map (lambda (item)
1039 (string-append "\"" item
1044 (string-append "--no-auto-compile\""
1045 (string-join -L ", \"-L\", "
1047 (string-join -C ", \"-C\", "
1052 `(("openssl" ,openssl)
1053 ("guile" ,guile-3.0)
1054 ("guile-json" ,guile-json-3)
1055 ("guile-simple-zmq" ,guile-simple-zmq)))
1056 (synopsis "Guile kernel for the Jupyter Notebook")
1058 "This package provides a Guile 2.x kernel for the Jupyter Notebook. It
1059 allows users to interact with the Guile REPL through Jupyter.")
1060 (home-page "https://github.com/jerry40/guile-kernel")
1061 (license license:gpl3+))))
1063 (define-public guile-sparql
1065 (name "guile-sparql")
1070 "https://github.com/roelj/guile-sparql/releases/download/"
1071 version "/guile-sparql-" version ".tar.gz"))
1073 (base32 "1drnvhsgl0gc5crmb16yyw1j98nkhwwcgssv9vgm36ng43nnzffd"))))
1074 (build-system gnu-build-system)
1075 (arguments `(#:tests? #f)) ; There are no tests.
1077 `(("pkg-config" ,pkg-config)))
1079 `(("guile" ,guile-2.2)))
1080 (home-page "https://github.com/roelj/guile-sparql")
1081 (synopsis "SPARQL module for Guile")
1082 (description "This package provides the functionality to query a SPARQL
1083 endpoint. Additionally, it provides an interface to write SPARQL queries
1084 using S-expressions.")
1085 (license license:gpl3+)))
1087 (define-public guile-debbugs
1089 (name "guile-debbugs")
1093 (uri (string-append "mirror://gnu/guile-debbugs/guile-debbugs-"
1097 "1cc63nw3xdfjrfk8c58r6d5lidmfq5cpqcy32yd5xp81yccprvn9"))))
1098 (build-system gnu-build-system)
1100 `(("guile-email" ,guile-email)))
1102 `(("guile" ,guile-3.0)
1103 ("pkg-config" ,pkg-config)))
1104 (home-page "https://savannah.gnu.org/projects/guile-debbugs/")
1105 (synopsis "Guile interface to the Debbugs bug tracking service")
1107 "This package provides a Guile library to communicate with a Debbugs bug
1108 tracker's SOAP service, such as @url{https://bugs.gnu.org}.")
1109 (license license:gpl3+)))
1111 (define-public guile-email
1113 (name "guile-email")
1119 "https://guile-email.systemreboot.net/releases/guile-email-"
1123 "1rc8r0fgvflnyq5ckl7ii8sghpsgpkzxa8vskjr1ak2kyar6m35k"))))
1124 (build-system gnu-build-system)
1126 `(("pkg-config" ,pkg-config)
1129 `(("guile" ,guile-3.0)))
1131 '(#:make-flags '("GUILE_AUTO_COMPILE=0"))) ; to prevent guild warnings
1132 (home-page "https://guile-email.systemreboot.net")
1133 (synopsis "Guile email parser")
1134 (description "guile-email is a collection of email utilities implemented
1135 in pure guile. It supports parsing MIME (Multipurpose Internet Mail
1136 Extensions) compliant email messages and reading emails from the mbox
1138 (license license:agpl3+)))
1140 (define-public guile2.2-email
1142 (inherit guile-email)
1143 (name "guile2.2-email")
1144 (inputs `(("guile" ,guile-2.2)
1145 ,@(alist-delete "guile" (package-inputs guile-email))))))
1147 (define-public guile3.0-email
1148 (deprecated-package "guile3.0-email" guile-email))
1150 (define-public guile-newt
1157 (url "https://gitlab.com/mothacehe/guile-newt")
1159 (file-name (git-file-name name version))
1162 "1gksd1lzgjjh1p9vczghg8jw995d22hm34kbsiv8rcryirv2xy09"))))
1163 (build-system gnu-build-system)
1166 '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
1168 `(("guile" ,guile-3.0)
1171 `(("autoconf" ,autoconf)
1172 ("automake" ,automake)
1173 ("pkg-config" ,pkg-config)))
1174 (synopsis "Guile bindings to Newt")
1176 "This package provides bindings for Newt, a programming library for
1177 color text mode, widget based user interfaces. The bindings are written in pure
1178 Scheme by using Guile’s foreign function interface.")
1179 (home-page "https://gitlab.com/mothacehe/guile-newt")
1180 (license license:gpl3+)))
1182 (define-public guile2.2-newt
1184 (inherit guile-newt)
1185 (name "guile2.2-newt")
1186 (inputs `(("guile" ,guile-2.2)
1187 ,@(alist-delete "guile" (package-inputs guile-newt))))))
1189 (define-public guile3.0-newt
1190 (deprecated-package "guile3.0-newt" guile-newt))
1192 (define-public guile-mastodon
1194 (name "guile-mastodon")
1199 (url "https://framagit.org/prouby/guile-mastodon.git")
1200 (commit (string-append "v" version))))
1201 (file-name (git-file-name name version))
1204 "1vblf3d1bbwna3l09p2ap5y8ycvl549bz6whgk78imyfmn28ygry"))))
1205 (build-system gnu-build-system)
1207 `(("autoconf" ,autoconf)
1208 ("automake" ,automake)
1209 ("pkg-config" ,pkg-config)))
1211 `(("guile" ,guile-2.2)
1213 ("guile-json" ,guile-json-1)))
1214 (home-page "https://framagit.org/prouby/guile-mastodon")
1215 (synopsis "Guile Mastodon REST API module")
1216 (description "This package provides Guile modules to access the
1217 @uref{https://docs.joinmastodon.org/api/, REST API of Mastodon}, a federated
1218 microblogging service.")
1219 (license license:gpl3+)))
1221 (define-public guile-parted
1223 (name "guile-parted")
1228 (url "https://gitlab.com/mothacehe/guile-parted")
1230 (file-name (git-file-name name version))
1233 "0b7h8psfm9gmmwb65pp5zwzglvwnfmw5j40g09hhf3f7kwxc0mv2"))
1234 (modules '((guix build utils)))))
1235 (build-system gnu-build-system)
1238 '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
1240 `(("guile" ,guile-3.0)
1241 ("parted" ,parted)))
1243 `(("guile-bytestructures" ,guile-bytestructures)))
1245 `(("autoconf" ,autoconf)
1246 ("automake" ,automake)
1247 ("pkg-config" ,pkg-config)))
1248 (synopsis "Guile bindings to GNU Parted")
1250 "This package provides bindings for GNU Parted library, a C library
1251 allowing disk partition tables creation and manipulation. The bindings are
1252 written in pure Scheme by using Guile's foreign function interface.")
1253 (home-page "https://gitlab.com/mothacehe/guile-parted")
1254 (license license:gpl3+)))
1256 (define-public guile2.2-parted
1258 (inherit guile-parted)
1259 (name "guile2.2-parted")
1260 (inputs `(("guile" ,guile-2.2)
1261 ,@(alist-delete "guile" (package-inputs guile-parted))))
1263 `(("guile-bytestructures" ,guile2.2-bytestructures)))))
1265 (define-public guile3.0-parted
1266 (deprecated-package "guile3.0-parted" guile-parted))
1268 (define-public guile-xosd
1274 (uri (string-append "https://github.com/alezost/" name
1275 "/releases/download/v" version
1276 "/" name "-" version ".tar.gz"))
1279 "1ri5065c16kmgrf2pysn2ymxjqi5302lhpb07wkl1jr75ym8fn8p"))))
1280 (build-system gnu-build-system)
1282 `(("pkg-config" ,pkg-config)))
1284 `(("guile" ,guile-2.2)
1286 ("libxext" ,libxext)
1287 ("libxinerama" ,libxinerama)
1289 (home-page "https://github.com/alezost/guile-xosd")
1290 (synopsis "XOSD bindings for Guile")
1292 "Guile-XOSD provides Guile bindings for @code{libxosd},
1293 @uref{http://sourceforge.net/projects/libxosd/, the X On Screen Display
1295 (license license:gpl3+)))
1297 (define-public guile-dbi
1304 "http://download.gna.org/guile-dbi/guile-dbi-"
1308 "116njrprhgrsv1qm904sp3b02rq01fx639r433d657gyhw3x159n"))))
1309 (build-system gnu-build-system)
1312 (list (string-append
1313 "--with-guile-site-dir=" %output "/share/guile/site/2.2"))
1315 (list (string-append
1316 "LDFLAGS=-Wl,-rpath=" %output "/lib:"
1317 (assoc-ref %build-inputs "guile-dbd-sqlite3") "/lib" ":"
1318 (assoc-ref %build-inputs "guile-dbd-postgresql") "/lib"))
1320 (modify-phases %standard-phases
1321 (add-after 'install 'patch-extension-path
1322 (lambda* (#:key outputs #:allow-other-keys)
1323 (let* ((out (assoc-ref outputs "out"))
1324 (dbi.scm (string-append
1325 out "/share/guile/site/2.2/dbi/dbi.scm"))
1326 (ext (string-append out "/lib/libguile-dbi")))
1327 (substitute* dbi.scm (("libguile-dbi") ext))
1330 `(("guile-dbd-sqlite3" ,guile-dbd-sqlite3)
1331 ("guile-dbd-postgresql" ,guile-dbd-postgresql))) ; only shared library, no scheme files
1333 `(("guile" ,guile-2.2)))
1334 (synopsis "Guile database abstraction layer")
1335 (home-page "http://home.gna.org/guile-dbi/guile-dbi.html")
1337 "guile-dbi is a library for Guile that provides a convenient interface to
1338 SQL databases. Database programming with guile-dbi is generic in that the same
1339 programming interface is presented regardless of which database system is used.
1340 It currently supports MySQL, Postgres and SQLite3.")
1341 (license license:gpl2+)))
1343 (define guile-dbi-bootstrap
1346 (name "guile-dbi-bootstrap")
1349 (substitute-keyword-arguments (package-arguments guile-dbi)
1350 ((#:make-flags _) '(list))))))
1352 (define-public guile-dbd-sqlite3
1354 (name "guile-dbd-sqlite3")
1359 "http://download.gna.org/guile-dbi/guile-dbd-sqlite3-"
1363 "0rg71jchxd2y8x496s8zmfmikr5g8zxi8zv2ar3f7a23pph92iw2"))))
1364 (build-system gnu-build-system)
1366 `(("pkg-config" ,pkg-config)
1367 ("guile-dbi-bootstrap" ,guile-dbi-bootstrap))) ; only required for headers
1369 `(("sqlite" ,sqlite)
1370 ("zlib" ,(@ (gnu packages compression) zlib))))
1371 (synopsis "Guile DBI driver for SQLite")
1372 (home-page "https://github.com/jkalbhenn/guile-dbd-sqlite3")
1374 "guile-dbi is a library for Guile that provides a convenient interface to
1375 SQL databases. This package implements the interface for SQLite.")
1376 (license license:gpl2+)))
1378 (define-public guile-dbd-postgresql
1379 (let ((commit "e97589b6b018b206c901e4cc24db463407a4036b")
1382 (name "guile-dbd-postgresql")
1383 (version (string-append
1384 "2.1.6-" (number->string revision) "." (string-take commit 7)))
1389 (url "https://github.com/opencog/guile-dbi")
1391 (file-name (git-file-name name version))
1393 (base32 "0n1gv9a0kdys10a4qmnrwvg5sydwb03880asri4gqdchcj3fimni"))))
1394 (build-system gnu-build-system)
1397 (modify-phases %standard-phases
1398 (add-after 'unpack 'chdir
1400 ;; The upstream Git repository contains all the code, so change
1401 ;; to the relevant directory.
1402 (chdir "guile-dbd-postgresql")
1404 (add-after 'chdir 'patch-src/Makefile.am
1405 (lambda* (#:key inputs #:allow-other-keys)
1406 (substitute* "src/Makefile.am"
1408 (string-append (assoc-ref inputs "postgresql") "/include")))
1410 (add-after 'patch-src/Makefile.am 'patch-src
1412 (substitute* "src/guile-dbd-postgresql.c"
1413 (("postgresql/libpq-fe\\.h") "libpq-fe.h"))
1416 `(("pkg-config" ,pkg-config)
1417 ("automake" ,automake)
1418 ("autoconf" ,autoconf)
1420 ("libtool" ,libtool)
1421 ("guile-dbi-bootstrap" ,guile-dbi-bootstrap)))
1423 `(("postgresql" ,postgresql)
1425 (synopsis "Guile DBI driver for PostgreSQL")
1427 "https://github.com/opencog/guile-dbi/tree/master/guile-dbd-postgresql")
1429 "@code{guile-dbi} is a library for Guile that provides a convenient
1430 interface to SQL databases. This package implements the interface for
1432 (license license:gpl2+))))
1434 (define-public guile-config
1436 (name "guile-config")
1442 (url "https://gitlab.com/a-sassmannshausen/guile-config")
1444 (file-name (git-file-name name version))
1446 "09028ylbddjdp3d67zdjz3pnsjqz6zs2bfck5rr3dfaa0qjap40n"))))
1447 (build-system gnu-build-system)
1449 `(("autoconf" ,autoconf)
1450 ("automake" ,automake)
1451 ("pkg-config" ,pkg-config)
1452 ("texinfo" ,texinfo)))
1453 (inputs `(("guile" ,guile-3.0)))
1455 "Guile application configuration parsing library.")
1457 "Guile Config is a library providing a declarative approach to
1458 application configuration specification. The library provides clean
1459 configuration declaration forms, and processors that take care of:
1460 configuration file creation; configuration file parsing; command-line
1461 parameter parsing using getopt-long; basic GNU command-line parameter
1462 generation (--help, --usage, --version); automatic output generation for the
1463 above command-line parameters.")
1465 "https://gitlab.com/a-sassmannshausen/guile-config")
1466 (license license:gpl3+)))
1468 (define-public guile2.2-config
1470 (inherit guile-config)
1471 (name "guile2.2-config")
1472 (inputs `(("guile" ,guile-2.2)
1473 ,@(alist-delete "guile" (package-inputs guile-config))))))
1475 (define-public guile3.0-config
1476 (deprecated-package "guile3.0-config" guile-config))
1478 (define-public guile-hall
1486 (url "https://gitlab.com/a-sassmannshausen/guile-hall")
1488 (file-name "guile-hall-0.3.1-checkout")
1490 (base32 "1s24nigdra6rvclvy15l2aw00c3aq9vv8qwxylzs60darbl36206"))))
1491 (build-system gnu-build-system)
1496 ,@%gnu-build-system-modules)
1500 (add-after 'install 'hall-wrap-binaries
1501 (lambda* (#:key inputs outputs #:allow-other-keys)
1502 (let* ((compiled-dir
1503 (lambda (out version)
1505 out "/lib/guile/" version "/site-ccache")))
1507 (lambda (out version)
1509 out "/share/guile/site"
1510 (if (string-null? version) "" "/") version)))
1512 (lambda (env modules path)
1513 (list env ":" 'prefix
1515 (map (lambda (input)
1517 (assoc-ref inputs input)
1519 ,''("guile-config"))))))
1520 (out (assoc-ref outputs "out"))
1521 (bin (string-append out "/bin/"))
1522 (site (uncompiled-dir out "")))
1523 (match (scandir site)
1528 (string-append bin file)
1531 (uncompiled-dir out version)
1532 (uncompiled-dir "" version))
1534 "GUILE_LOAD_COMPILED_PATH"
1535 (compiled-dir out version)
1536 (compiled-dir "" version))))
1540 `(("autoconf" ,autoconf)
1541 ("automake" ,automake)
1542 ("pkg-config" ,pkg-config)
1543 ("texinfo" ,texinfo)))
1544 (inputs `(("guile" ,guile-3.0)))
1546 `(("guile-config" ,guile-config)))
1547 (synopsis "Guile project tooling")
1549 "Hall is a command-line application and a set of Guile libraries that
1550 allow you to quickly create and publish Guile projects. It allows you to
1551 transparently support the GNU build system, manage a project hierarchy &
1552 provides tight coupling to Guix.")
1553 (home-page "https://gitlab.com/a-sassmannshausen/guile-hall")
1554 (license license:gpl3+)))
1556 (define-public guile2.2-hall
1558 (inherit guile-hall)
1559 (name "guile2.2-hall")
1560 (inputs `(("guile" ,guile-2.2)
1561 ,@(alist-delete "guile" (package-inputs guile-hall))))
1563 `(("guile-config" ,guile2.2-config)
1564 ,@(alist-delete "guile-config"
1565 (package-propagated-inputs guile-hall))))))
1567 (define-public guile3.0-hall
1568 (deprecated-package "guile3.0-hall" guile-hall))
1570 (define-public guile-ics
1577 (url "https://github.com/artyom-poptsov/guile-ics")
1578 (commit (string-append "v" version))))
1579 (file-name (string-append name "-" version "-checkout"))
1582 "0qjjvadr7gibdq9jvwkmlkb4afsw9n2shfj9phpiadinxk3p4m2g"))
1583 (modules '((guix build utils)))
1586 ;; Allow builds with Guile 3.0.
1587 (substitute* "configure.ac"
1589 "GUILE_PKG([3.0 2.2 2.0])\n"))
1591 (build-system gnu-build-system)
1593 `(("autoconf" ,autoconf-wrapper)
1594 ("automake" ,automake)
1595 ("texinfo" ,texinfo)
1596 ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
1597 ("gettext" ,gettext-minimal)
1598 ("pkg-config" ,pkg-config)))
1599 (inputs `(("guile" ,guile-3.0) ("which" ,which)))
1600 (propagated-inputs `(("guile-lib" ,guile-lib)))
1601 (home-page "https://github.com/artyom-poptsov/guile-ics")
1602 (synopsis "Guile parser library for the iCalendar format")
1604 "Guile-ICS is an iCalendar (RFC5545) format parser library written in
1605 pure Scheme. The library can be used to read and write iCalendar data.
1607 The library is shipped with documentation in Info format and usage examples.")
1608 (license license:gpl3+)))
1610 (define-public guile2.2-ics
1613 (name "guile2.2-ics")
1614 (inputs `(("guile" ,guile-2.2)
1615 ,@(alist-delete "guile" (package-inputs guile-ics))))
1616 (propagated-inputs `(("guile-lib" ,guile2.2-lib)))))
1618 (define-public guile3.0-ics
1619 (deprecated-package "guile3.0-ics" guile-ics))
1621 (define-public guile-wisp
1627 (uri (string-append "https://bitbucket.org/ArneBab/"
1628 "wisp/downloads/wisp-"
1632 "03pz7pj9jyallynhflp5s7qax8dj1fs8la434wrfgz7g1kgjnvf6"))))
1633 (build-system gnu-build-system)
1635 `(#:modules ((guix build gnu-build-system)
1636 ((guix build emacs-build-system) #:prefix emacs:)
1638 (guix build emacs-utils)
1641 #:imported-modules (,@%gnu-build-system-modules
1642 (guix build emacs-build-system)
1643 (guix build emacs-utils))
1645 (modify-phases %standard-phases
1646 (add-after 'unpack 'support-guile-3.0
1648 (substitute* "configure"
1649 (("_guile_versions_to_search=\"2.2")
1650 "_guile_versions_to_search=\"3.0 2.2"))
1652 (add-before 'configure 'patch-/usr/bin/env
1654 (substitute* "Makefile.in"
1655 (("/usr/bin/env bash") (which "bash")))
1657 ;; auto compilation breaks, but if we set HOME to /tmp,
1659 (add-before 'check 'auto-compile-hacky-workaround
1660 (lambda _ (setenv "HOME" "/tmp") #t))
1661 (add-after 'install 'install-go-files
1662 (lambda* (#:key outputs inputs #:allow-other-keys)
1663 (let* ((out (assoc-ref outputs "out"))
1664 (effective (read-line
1665 (open-pipe* OPEN_READ
1667 "(display (effective-version))")))
1668 (module-dir (string-append out "/share/guile/site/"
1670 (object-dir (string-append out "/lib/guile/" effective
1672 (prefix (string-length module-dir)))
1673 ;; compile to the destination
1674 (for-each (lambda (file)
1675 (let* ((base (string-drop (string-drop-right file 4)
1677 (go (string-append object-dir base ".go")))
1678 (invoke "guild" "compile" "-L" module-dir
1680 (find-files module-dir "\\.scm$"))
1682 (add-after 'install 'install-emacs-files
1683 (assoc-ref emacs:%standard-phases 'install))
1684 (add-after 'install-emacs-files 'compile-emacs-files
1685 (assoc-ref emacs:%standard-phases 'build))
1686 (add-after 'compile-emacs-files 'make-autoloads
1687 (assoc-ref emacs:%standard-phases 'make-autoloads)))))
1688 (home-page "https://www.draketo.de/english/wisp")
1690 `(("guile" ,guile-3.0)))
1692 `(("emacs" ,emacs-minimal)
1694 ("pkg-config" ,pkg-config)))
1695 (synopsis "Whitespace to lisp syntax for Guile")
1696 (description "Wisp is a syntax for Guile which provides a Python-like
1697 whitespace-significant language. It may be easier on the eyes for some
1698 users and in some situations.")
1699 (license license:gpl3+)))
1701 (define-public guile2.2-wisp
1703 (inherit guile-wisp)
1704 (name "guile2.2-wisp")
1705 (inputs `(("guile" ,guile-2.2)))))
1707 (define-public guile3.0-wisp
1708 (deprecated-package "guile3.0-wisp" guile-wisp))
1710 (define-public guile-sly
1716 (uri (string-append "https://files.dthompson.us/sly/sly-"
1720 "1svzlbz2vripmyq2kjh0rig16bsrnbkwbsm558pjln9l65mcl4qq"))
1721 (modules '((guix build utils)))
1724 (substitute* "configure"
1725 (("_guile_required_version=\"2.0.11\"")
1726 "_guile_required_version=\"2\"")
1727 (("ac_subst_vars='")
1728 "ac_subst_vars='GUILE_EFFECTIVE_VERSION\n"))
1729 (substitute* (find-files "." "Makefile.in")
1733 "$(prefix)/share/guile/site/@GUILE_EFFECTIVE_VERSION@\n"))
1737 "$(prefix)/lib/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n")))
1739 (build-system gnu-build-system)
1742 (list (string-append "--with-libfreeimage-prefix="
1743 (assoc-ref %build-inputs "freeimage"))
1744 (string-append "--with-libgslcblas-prefix="
1745 (assoc-ref %build-inputs "gsl")))))
1747 `(("pkg-config" ,pkg-config)))
1749 `(("guile-sdl" ,guile-sdl)
1750 ("guile-opengl" ,guile-opengl)))
1752 `(("guile" ,guile-2.2)
1754 ("freeimage" ,freeimage)
1756 (synopsis "2D/3D game engine for GNU Guile")
1757 (description "Sly is a 2D/3D game engine written in Guile Scheme. Sly
1758 features a functional reactive programming interface and live coding
1760 (home-page "https://dthompson.us/projects/sly.html")
1761 (license license:gpl3+)))
1763 (define-public g-golf
1764 (let ((commit "84e894eb7945c3bcdf7f8d5135c1be3efa524c92")
1768 (version (git-version "0.1.0" revision commit))
1773 (url "https://git.savannah.gnu.org/git/g-golf.git")
1775 (file-name (git-file-name name version))
1777 (base32 "1pkcij65zy2lkip5yrfzj85nq17pp9mrf0d4sk6hpjqr4kd0bxd5"))))
1778 (build-system gnu-build-system)
1780 `(("autoconf" ,autoconf)
1781 ("automake" ,automake)
1782 ("texinfo" ,texinfo)
1783 ("gettext" ,gettext-minimal)
1784 ("libtool" ,libtool)
1785 ("pkg-config" ,pkg-config)
1786 ("xorg-server" ,xorg-server)))
1788 `(("guile" ,guile-2.2)
1789 ("guile-lib" ,guile2.2-lib)
1790 ("clutter" ,clutter)
1794 `(("gobject-introspection" ,gobject-introspection)))
1797 (modify-phases %standard-phases
1798 (add-before 'configure 'tests-work-arounds
1799 (lambda* (#:key inputs #:allow-other-keys)
1800 ;; In build environment, There is no /dev/tty
1802 "test-suite/tests/gobject.scm"
1803 (("/dev/tty") "/dev/null"))))
1804 (add-before 'configure 'substitute-libs
1805 (lambda* (#:key inputs outputs #:allow-other-keys)
1806 (let* ((get (lambda (key lib)
1807 (string-append (assoc-ref inputs key) "/lib/" lib)))
1808 (libgi (get "gobject-introspection" "libgirepository-1.0"))
1809 (libglib (get "glib" "libglib-2.0"))
1810 (libgobject (get "glib" "libgobject-2.0"))
1811 (libgdk (get "gtk" "libgdk-3")))
1812 (substitute* "configure"
1813 (("SITEDIR=\"\\$datadir/g-golf\"")
1814 "SITEDIR=\"$datadir/guile/site/$GUILE_EFFECTIVE_VERSION\"")
1815 (("SITECCACHEDIR=\"\\$libdir/g-golf/")
1816 "SITECCACHEDIR=\"$libdir/"))
1817 (substitute* "g-golf/init.scm"
1818 (("libgirepository-1.0") libgi)
1819 (("libglib-2.0") libglib)
1820 (("libgdk-3") libgdk)
1821 (("libgobject-2.0") libgobject)
1822 (("\\(dynamic-link \"libg-golf\"\\)")
1825 (format #f "~alibg-golf"
1826 (if (getenv "GUILE_GGOLF_UNINSTALLED")
1828 ,(format #f "~a/lib/"
1829 (assoc-ref outputs "out"))))))))
1830 (setenv "GUILE_AUTO_COMPILE" "0")
1831 (setenv "GUILE_GGOLF_UNINSTALLED" "1")
1833 (add-before 'check 'start-xorg-server
1834 (lambda* (#:key inputs #:allow-other-keys)
1835 ;; The test suite requires a running X server.
1836 (system (format #f "~a/bin/Xvfb :1 &"
1837 (assoc-ref inputs "xorg-server")))
1838 (setenv "DISPLAY" ":1")
1840 (home-page "https://www.gnu.org/software/g-golf/")
1841 (synopsis "Guile bindings for GObject Introspection")
1843 "G-Golf (Gnome: (Guile Object Library for)) is a library for developing
1844 modern applications in Guile Scheme. It comprises a direct binding to the
1845 GObject Introspection API and higher-level functionality for importing Gnome
1846 libraries and making GObject classes (and methods) available in Guile's
1847 object-oriented programming system, GOOPS.")
1848 (license license:lgpl3+))))
1850 (define-public g-wrap
1856 (uri (string-append "mirror://savannah/g-wrap/g-wrap-"
1860 "0ak0bha37dfpj9kmyw1r8fj8nva639aw5xr66wr5gd3l1rqf5xhg"))))
1861 (build-system gnu-build-system)
1863 `(("pkg-config" ,pkg-config)))
1865 `(("guile" ,guile-2.2)
1866 ("guile-lib" ,guile-lib)))
1868 `(("libffi" ,libffi)))
1870 `(#:configure-flags '("--disable-Werror")
1872 (modify-phases %standard-phases
1873 (add-before 'configure 'pre-configure
1874 (lambda* (#:key outputs #:allow-other-keys)
1875 (let ((out (assoc-ref outputs "out")))
1876 (substitute* (find-files "." "^Makefile.in$")
1877 (("guilemoduledir =.*guile/site" all)
1878 (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
1880 (synopsis "Generate C bindings for Guile")
1881 (description "G-Wrap is a tool and Guile library for generating function
1882 wrappers for inter-language calls. It currently only supports generating Guile
1883 wrappers for C functions. Given a definition of the types and prototypes for
1884 a given C interface, G-Wrap will automatically generate the C code that
1885 provides access to that interface and its types from the Scheme level.")
1886 (home-page "https://www.nongnu.org/g-wrap/index.html")
1887 (license license:lgpl2.1+)))
1889 (define-public guile-miniadapton
1890 (let ((commit "1b5749422304567c96ac5367f2221dda9eff5880")
1893 (name "guile-miniadapton")
1894 (version (string-append "0-" revision "." (string-take commit 9)))
1898 (url "https://github.com/fisherdj/miniAdapton")
1900 (file-name (string-append name "-" version "-checkout"))
1903 "09q51zkw2fypad5xixskfzw2cjhjgs5cswdp3i7cpp651rb3zndh"))))
1904 (build-system guile-build-system)
1906 `(("guile" ,guile-2.2)))
1907 (home-page "https://github.com/fisherdj/miniAdapton")
1908 (synopsis "Minimal implementation of incremental computation in Guile
1910 (description "This package provides a complete Scheme implementation of
1911 miniAdapton, which implements the core functionality of the Adapton system for
1912 incremental computation (also known as self-adjusting computation). Like
1913 Adapton, miniAdapton allows programmers to safely combine mutation and
1914 memoization. miniAdapton is built on top of an even simpler system,
1915 microAdapton. Both miniAdapton and microAdapton are designed to be easy to
1916 understand, extend, and port to host languages other than Scheme.")
1917 (license license:expat))))
1919 (define-public guile-reader
1921 (name "guile-reader")
1925 (uri (string-append "mirror://savannah/guile-reader/guile-reader-"
1929 "1fyjckmygkhq22lq8nqc86yl5zzbqd7a944dnz5c1f6vx92b9hiq"))))
1930 (build-system gnu-build-system)
1931 (native-inputs `(("pkgconfig" ,pkg-config)
1933 (inputs `(("guile" ,guile-3.0)))
1934 (synopsis "Framework for building readers for GNU Guile")
1936 "Guile-Reader is a simple framework for building readers for GNU Guile.
1938 The idea is to make it easy to build procedures that extend Guile’s read
1939 procedure. Readers supporting various syntax variants can easily be written,
1940 possibly by re-using existing “token readers” of a standard Scheme
1941 readers. For example, it is used to implement Skribilo’s R5RS-derived
1944 Guile-Reader’s approach is similar to Common Lisp’s “read table”, but
1945 hopefully more powerful and flexible (for instance, one may instantiate as
1946 many readers as needed).")
1947 (home-page "https://www.nongnu.org/guile-reader/")
1948 (license license:gpl3+)))
1950 (define-public guile2.2-reader
1952 (inherit guile-reader)
1953 (name "guile2.2-reader")
1954 (inputs `(("guile" ,guile-2.2)))))
1956 (define-public guile-ncurses
1958 (name "guile-ncurses")
1962 (uri (string-append "mirror://gnu/guile-ncurses/guile-ncurses-"
1966 "038xbffalhymg26lvmzgf7ljilxz2f2zmqg5r5nfzbipfbprwjhf"))))
1967 (build-system gnu-build-system)
1968 (inputs `(("ncurses" ,ncurses)
1969 ("guile" ,guile-3.0)))
1970 (native-inputs `(("pkg-config" ,pkg-config)))
1972 `(#:modules ((guix build gnu-build-system)
1973 ((guix build guile-build-system)
1974 #:select (target-guile-effective-version))
1976 #:imported-modules ((guix build guile-build-system)
1977 ,@%gnu-build-system-modules)
1978 #:configure-flags (list "--with-ncursesw" ; Unicode support
1979 "--with-gnu-filesystem-hierarchy")
1981 (modify-phases %standard-phases
1982 (add-before 'build 'fix-libguile-ncurses-file-name
1983 (lambda* (#:key outputs #:allow-other-keys)
1984 (invoke "make" "install"
1986 "-j" (number->string
1987 (parallel-job-count)))
1988 (let* ((out (assoc-ref outputs "out"))
1990 (files (find-files dir ".scm")))
1992 (("\"libguile-ncurses\"")
1993 (format #f "\"~a/lib/guile/~a/libguile-ncurses\""
1994 out (target-guile-effective-version))))
1996 (home-page "https://www.gnu.org/software/guile-ncurses/")
1997 (synopsis "Guile bindings to ncurses")
1999 "guile-ncurses provides Guile language bindings for the ncurses
2001 (license license:lgpl3+)))
2003 (define-public guile2.2-ncurses
2005 (inherit guile-ncurses)
2006 (name "guile2.2-ncurses")
2007 (inputs `(("ncurses" ,ncurses)
2008 ("guile" ,guile-2.2)))))
2010 (define-public guile3.0-ncurses
2011 (deprecated-package "guile3.0-ncurses" guile-ncurses))
2013 (define-public guile-ncurses/gpm
2015 (inherit guile-ncurses)
2016 (name "guile-ncurses-with-gpm")
2017 (inputs `(("ncurses" ,ncurses/gpm)
2018 ("guile" ,guile-2.2)))))
2020 (define-public guile3.0-ncurses/gpm
2022 (inherit guile3.0-ncurses)
2023 (name "guile3.0-ncurses-with-gpm")
2024 (inputs `(("ncurses" ,ncurses/gpm)
2025 ("guile" ,guile-3.0)))))
2027 (define-public guile-lib
2033 (uri (string-append "mirror://savannah/guile-lib/guile-lib-"
2037 "0aizxdif5dpch9cvs8zz5g8ds5s4xhfnwza2il5ji7fv2h7ks7bd"))
2038 (modules '((guix build utils)))
2041 ;; Work around miscompilation on Guile 3.0.0 at -O2:
2042 ;; <https://bugs.gnu.org/39251>.
2043 (substitute* "src/md5.scm"
2044 (("\\(define f-ash ash\\)")
2045 "(define f-ash (@ (guile) ash))\n")
2046 (("\\(define f-add \\+\\)")
2047 "(define f-add (@ (guile) +))\n"))
2049 (build-system gnu-build-system)
2052 '("GUILE_AUTO_COMPILE=0") ; to prevent guild errors
2054 (modify-phases %standard-phases
2055 (add-before 'configure 'patch-module-dir
2057 (substitute* "src/Makefile.in"
2058 (("^moddir = ([[:graph:]]+)")
2059 "moddir = $(datadir)/guile/site/@GUILE_EFFECTIVE_VERSION@\n")
2060 (("^godir = ([[:graph:]]+)")
2062 $(libdir)/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n"))
2064 (native-inputs `(("pkg-config" ,pkg-config)))
2065 (inputs `(("guile" ,guile-3.0)))
2066 (home-page "https://www.nongnu.org/guile-lib/")
2067 (synopsis "Collection of useful Guile Scheme modules")
2069 "Guile-Lib is intended as an accumulation place for pure-scheme Guile
2070 modules, allowing for people to cooperate integrating their generic Guile
2071 modules into a coherent library. Think \"a down-scaled, limited-scope CPAN
2074 ;; The whole is under GPLv3+, but some modules are under laxer
2075 ;; distribution terms such as LGPL and public domain. See `COPYING' for
2077 (license license:gpl3+)))
2079 (define-public guile2.0-lib
2082 (name "guile2.0-lib")
2083 (inputs `(("guile" ,guile-2.0)))))
2085 (define-public guile2.2-lib
2088 (name "guile2.2-lib")
2089 (inputs `(("guile" ,guile-2.2)))))
2091 (define-public guile3.0-lib
2092 (deprecated-package "guile3.0-lib" guile-lib))
2094 (define-public guile-minikanren
2096 (name "guile-minikanren")
2097 (version "20150424.e844d85")
2101 (url "https://github.com/ijp/minikanren")
2102 (commit "e844d85512f8c055d3f96143ee506007389a25e3")))
2103 (file-name (string-append name "-" version "-checkout"))
2106 "0r50jlpzi940jlmxyy3ddqqwmj5r12gb4bcv0ssini9v8km13xz6"))))
2107 (build-system guile-build-system)
2109 `(("guile" ,guile-3.0)))
2110 (home-page "https://github.com/ijp/minikanren")
2111 (synopsis "MiniKanren declarative logic system, packaged for Guile")
2113 "MiniKanren is a relational programming extension to the Scheme
2114 programming Language, written as a smaller version of Kanren suitable for
2115 pedagogical purposes. It is featured in the book, The Reasoned Schemer,
2116 written by Dan Friedman, William Byrd, and Oleg Kiselyov.
2118 This is Ian Price's r6rs packaged version of miniKanren, which deviates
2119 slightly from miniKanren mainline.
2121 See http://minikanren.org/ for more on miniKanren generally.")
2122 (license license:expat)))
2124 (define-public guile2.0-minikanren
2126 (inherit guile-minikanren)
2127 (name "guile2.0-minikanren")
2128 (native-inputs `(("guile" ,guile-2.0)))))
2130 (define-public guile2.2-minikanren
2132 (inherit guile-minikanren)
2133 (name "guile2.2-minikanren")
2134 (native-inputs `(("guile" ,guile-2.2)))))
2136 (define-public guile3.0-minikanren
2137 (deprecated-package "guile3.0-minikanren" guile-minikanren))
2139 (define-public guile-irregex
2141 (name "guile-irregex")
2146 "http://synthcode.com/scheme/irregex/irregex-"
2150 "1ia3m7dp3lcxa048q0gqbiwwsyvn99baw6xkhb4bhhzn4k7bwyqq"))))
2151 (build-system guile-build-system)
2153 '(#:phases (modify-phases %standard-phases
2154 (add-after 'unpack 'move-files-around
2156 ;; Move the relevant source files to src/ and create the
2157 ;; rx/ directory to match the expected module hierarchy.
2158 (mkdir-p "src/rx/source")
2159 (rename-file "irregex-guile.scm"
2160 "src/rx/irregex.scm")
2161 (rename-file "irregex.scm"
2162 "src/rx/source/irregex.scm")
2163 ;; Not really reachable via guile's packaging system,
2164 ;; but nice to have around.
2165 (rename-file "irregex-utils.scm"
2166 "src/rx/source/irregex-utils.scm")
2168 #:source-directory "src"))
2170 `(("guile" ,guile-3.0)))
2171 (home-page "http://synthcode.com/scheme/irregex")
2172 (synopsis "S-expression based regular expressions")
2174 "Irregex is an s-expression based alternative to your classic
2175 string-based regular expressions. It implements SRFI 115 and is deeply
2176 inspired by the SCSH regular expression system.")
2177 (license license:bsd-3)))
2179 (define-public guile2.0-irregex
2181 (inherit guile-irregex)
2182 (name "guile2.0-irregex")
2183 (native-inputs `(("guile" ,guile-2.0)))))
2185 (define-public guile2.2-irregex
2187 (inherit guile-irregex)
2188 (name "guile2.2-irregex")
2189 (native-inputs `(("guile" ,guile-2.2)))))
2191 (define-public guile3.0-irregex
2192 (deprecated-package "guile3.0-irregex" guile-irregex))
2194 (define-public haunt
2200 (uri (string-append "https://files.dthompson.us/haunt/haunt-"
2204 "056z4znikk83nr5mr0x2ac3iinqbywa2bvb37mhr566a1q50isfc"))
2205 (modules '((guix build utils)))
2208 ;; Allow builds with Guile 3.0.
2209 (substitute* "configure"
2213 (build-system gnu-build-system)
2215 `(#:modules ((ice-9 match) (ice-9 ftw)
2216 ,@%gnu-build-system-modules)
2217 #:tests? #f ; test suite is non-deterministic :(
2218 #:phases (modify-phases %standard-phases
2219 (add-after 'install 'wrap-haunt
2220 (lambda* (#:key inputs outputs #:allow-other-keys)
2221 ;; Wrap the 'haunt' command to refer to the right
2223 (let* ((out (assoc-ref outputs "out"))
2224 (bin (string-append out "/bin"))
2225 (site (string-append
2226 out "/share/guile/site"))
2227 (guile-reader (assoc-ref inputs "guile-reader"))
2228 (deps `(,@(if guile-reader
2231 ,(assoc-ref inputs "guile-commonmark"))))
2232 (match (scandir site)
2234 (let ((modules (string-append site "/" version))
2235 (compiled-modules (string-append
2236 out "/lib/guile/" version
2238 (wrap-program (string-append bin "/haunt")
2239 `("GUILE_LOAD_PATH" ":" prefix
2241 ,@(map (lambda (dep)
2243 "/share/guile/site/"
2246 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
2248 ,@(map (lambda (dep)
2249 (string-append dep "/lib/guile/"
2255 `(("pkg-config" ,pkg-config)
2256 ("texinfo" ,texinfo)))
2258 `(("guile" ,guile-3.0)))
2260 `(("guile-reader" ,guile-reader)
2261 ("guile-commonmark" ,guile-commonmark)))
2262 (synopsis "Functional static site generator")
2263 (description "Haunt is a static site generator written in Guile
2264 Scheme. Haunt features a functional build system and an extensible
2265 interface for reading articles in any format.")
2266 (home-page "http://haunt.dthompson.us")
2267 (license license:gpl3+)))
2269 (define-public guile2.2-haunt
2272 (name "guile2.2-haunt")
2273 (inputs `(("guile" ,guile-2.2)))
2275 `(("guile-reader" ,guile2.2-reader)
2276 ("guile-commonmark" ,guile2.2-commonmark)))))
2278 (define-public guile2.0-haunt
2281 (name "guile2.0-haunt")
2282 (inputs `(("guile" ,guile-2.0)))))
2284 (define-public guile3.0-haunt
2285 (deprecated-package "guile3.0-haunt" haunt))
2287 (define-public guile-redis
2289 (name "guile-redis")
2291 (home-page "https://github.com/aconchillo/guile-redis")
2297 (file-name (git-file-name name version))
2300 "14izs8daxh7pb7vwpxi5g427qa31137jkaxrb1cy5rpjkwchy723"))))
2301 (build-system gnu-build-system)
2303 `(("autoconf" ,autoconf)
2304 ("automake" ,automake)
2305 ("pkg-config" ,pkg-config)
2306 ("guile" ,guile-3.0)))
2307 (synopsis "Redis client library for Guile")
2308 (description "Guile-redis provides a Scheme interface to the Redis
2309 key-value cache and store.")
2310 (license license:lgpl3+)))
2312 (define-public guile2.2-redis
2314 (inherit guile-redis)
2315 (name "guile2.2-redis")
2316 (native-inputs `(("guile" ,guile-2.2)
2317 ,@(alist-delete "guile"
2318 (package-native-inputs guile-redis))))))
2320 (define-public guile2.0-redis
2322 (inherit guile-redis)
2323 (name "guile2.0-redis")
2324 (native-inputs `(("guile" ,guile-2.0)
2325 ,@(alist-delete "guile"
2326 (package-native-inputs guile-redis))))))
2328 (define-public guile-commonmark
2330 (name "guile-commonmark")
2334 (uri (string-append "https://github.com/OrangeShark/" name
2335 "/releases/download/v" version
2336 "/" name "-" version ".tar.gz"))
2339 "17lrsdisa3kckh24q114vfmzdc4wkqa6ccwl4hdlrng5wpn1iman"))
2340 (modules '((guix build utils)))
2343 ;; Allow builds with Guile 3.0.
2344 (substitute* "configure"
2348 (build-system gnu-build-system)
2350 `(("guile" ,guile-3.0)))
2352 `(("pkg-config" ,pkg-config)))
2353 (synopsis "CommonMark parser for Guile")
2355 "guile-commonmark is a library for parsing CommonMark, a fully specified
2356 variant of Markdown. The library is written in Guile Scheme and is designed
2357 to transform a CommonMark document to SXML. guile-commonmark tries to closely
2358 follow the @uref{http://commonmark.org/, CommonMark spec}, the main difference
2359 is no support for parsing block and inline level HTML.")
2360 (home-page "https://github.com/OrangeShark/guile-commonmark")
2361 (license license:lgpl3+)))
2363 (define-public guile2.2-commonmark
2365 (inherit guile-commonmark)
2366 (name "guile2.2-commonmark")
2367 (inputs `(("guile" ,guile-2.2)))))
2369 (define-public guile2.0-commonmark
2371 (inherit guile-commonmark)
2372 (name "guile2.0-commonmark")
2373 (inputs `(("guile" ,guile-2.0)))))
2375 (define-public guile3.0-commonmark
2376 (deprecated-package "guile3.0-commonmark" guile-commonmark))
2378 (define-public mcron
2384 (uri (string-append "mirror://gnu/mcron/mcron-"
2388 "1midrn15d5kqy4zd2029bj1db6gnfhxg8mcgfy4bkp5p9nl4v4rd"))))
2389 (build-system gnu-build-system)
2391 '(#:phases (modify-phases %standard-phases
2392 (add-before 'check 'adjust-tests
2394 (substitute* "tests/job-specifier.scm"
2395 ;; (getpw) fails with "entry not found" in the build
2396 ;; environment, so pass an argument.
2398 "(getpwnam (getuid))")
2399 ;; The build environment lacks an entry for root in
2402 "(getpwnam \"nobody\")")
2404 ;; FIXME: Skip the 4 faulty tests (see above).
2405 (("\\(test-equal \"next-year\"" all)
2406 (string-append "(test-skip 4)\n" all)))
2408 (native-inputs `(("pkg-config" ,pkg-config)
2409 ("tzdata" ,tzdata-for-tests)
2410 ("guile-native" ;for 'guild compile'
2411 ,@(assoc-ref (package-inputs this-package) "guile"))))
2412 (inputs `(("guile" ,guile-3.0)))
2413 (home-page "https://www.gnu.org/software/mcron/")
2414 (synopsis "Run jobs at scheduled times")
2416 "GNU Mcron is a complete replacement for Vixie cron. It is used to run
2417 tasks on a schedule, such as every hour or every Monday. Mcron is written in
2418 Guile, so its configuration can be written in Scheme; the original cron
2419 format is also supported.")
2420 (license license:gpl3+)))
2422 (define-public guile2.2-mcron
2425 (name "guile2.2-mcron")
2426 (inputs `(("guile" ,guile-2.2)))))
2428 (define-public guile3.0-mcron
2429 (deprecated-package "guile3.0-mcron" mcron))
2431 (define-public guile-picture-language
2432 (let ((commit "91d10c96708d732145006dd2802acc4de08b632e")
2435 (name "guile-picture-language")
2436 (version (git-version "0.0.1" revision commit))
2440 (url "https://git.elephly.net/software/guile-picture-language.git")
2442 (file-name (git-file-name name version))
2445 "1ydvw9dvssdvlvhh1dr8inyzy2x6m41qgp8hsivca1xysr4gc23a"))))
2446 (build-system gnu-build-system)
2448 `(("guile" ,guile-3.0)))
2450 `(("autoconf" ,autoconf)
2451 ("automake" ,automake)
2452 ("imagemagick" ,imagemagick)
2453 ("pkg-config" ,pkg-config)
2454 ("texinfo" ,texinfo)))
2455 (home-page "https://git.elephly.net/software/guile-picture-language.git")
2456 (synopsis "Picture language for Guile")
2458 "This package provides a simple SVG-based picture language for Guile.
2459 The picture values can directly be displayed in Geiser.")
2460 (license license:lgpl3+))))
2462 (define-public guile2.2-picture-language
2464 (inherit guile-picture-language)
2465 (name "guile2.2-picture-language")
2466 (inputs `(("guile" ,guile-2.2)))))
2468 (define-public guile3.0-picture-language
2469 (deprecated-package "guile3.0-picture-language"
2470 guile-picture-language))
2472 (define-public guile-studio
2473 (let ((commit "5c05b03e8a5c450f7358ceec7ea602f29c49d54e")
2476 (name "guile-studio")
2477 (version (git-version "0.0.3" revision commit))
2481 (url "https://git.elephly.net/software/guile-studio.git")
2483 (file-name (git-file-name name version))
2486 "11wyf6x7mhyhimv0cd57pl39zgav9hc9ljqi3g2g35b264hylpnx"))))
2487 (build-system gnu-build-system)
2492 ,@%gnu-build-system-modules)
2493 #:tests? #f ; there are none
2495 (list (string-append "ICONS_DIR="
2496 (assoc-ref %build-inputs "adwaita-icon-theme")
2497 "/share/icons/Adwaita/")
2498 (string-append "PICT_DIR="
2499 (assoc-ref %build-inputs "guile-picture-language"))
2500 (string-append "EMACS_DIR="
2501 (assoc-ref %build-inputs "emacs"))
2502 (string-append "GUILE_DIR="
2503 (assoc-ref %build-inputs "guile"))
2504 (string-join (cons "INPUTS="
2509 (and (string-prefix? "emacs" label) pkg))))
2511 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2513 (modify-phases %standard-phases
2515 (delete 'install))))
2517 `(("guile" ,guile-3.0)
2518 ("guile-picture-language" ,guile-picture-language)
2520 ("emacs-geiser" ,emacs-geiser)
2521 ("emacs-company" ,emacs-company)
2522 ("emacs-flycheck" ,emacs-flycheck)
2523 ("emacs-flycheck-guile" ,emacs-flycheck-guile)
2524 ("emacs-smart-mode-line" ,emacs-smart-mode-line)
2525 ("emacs-paren-face" ,emacs-paren-face)
2526 ("adwaita-icon-theme" ,adwaita-icon-theme)))
2528 `(("texinfo" ,texinfo)))
2529 (home-page "https://gnu.org/software/guile")
2530 (synopsis "IDE for Guile")
2532 "This is Emacs with a few settings that make working with Guile easier
2533 for people new to Emacs. Features include: CUA mode, Geiser, tool bar icons
2534 to evaluate Guile buffers, support for Guile's very own picture language, code
2535 completion, a simple mode line, etc.")
2536 (license license:gpl3+))))
2538 (define-public guile-stis-parser
2540 (name "guile-stis-parser")
2545 (url "https://gitlab.com/tampe/stis-parser")
2546 (commit (string-append "v" version))))
2547 (file-name (git-file-name name version))
2550 "1fvxdfvc80zqhwzq5x3kxyr6j8p4b51yx85fx1gr3d4gy2ddpx5w"))))
2551 (build-system gnu-build-system)
2553 `(#:parallel-build? #f ; not supported
2555 (modify-phases %standard-phases
2556 (add-after 'unpack 'chdir
2557 (lambda _ (chdir "modules") #t))
2558 (add-after 'chdir 'delete-broken-symlink
2560 (delete-file "parser/stis-parser/lang/.#calc.scm")
2563 `(("guile" ,guile-3.0)))
2565 `(("autoconf" ,autoconf)
2566 ("automake" ,automake)
2567 ("pkg-config" ,pkg-config)))
2568 (home-page "https://gitlab.com/tampe/stis-parser")
2569 (synopsis "Parser combinator framework")
2571 "This package provides a functional parser combinator library that
2572 supports backtracking and a small logical framework. The idea is to build up
2573 chunks that are memoized and there is no clear scanner/parser separation,
2574 chunks can be expressions as well as simple tokens.")
2575 (license license:lgpl2.0+)))
2577 (define-public guile-persist
2579 (name "guile-persist")
2584 (url "https://gitlab.com/tampe/guile-persist")
2585 (commit (string-append "v" version))))
2586 (file-name (git-file-name name version))
2589 "19f8hqcax4v40858kx2j8fy1cvzc2djj99r0n17dy1xxmwa097qi"))))
2590 (build-system gnu-build-system)
2593 (modify-phases %standard-phases
2594 (add-after 'unpack 'patch-prefix
2595 (lambda* (#:key inputs outputs #:allow-other-keys)
2596 (substitute* "src/Makefile.am"
2597 (("/usr/local/lib/guile")
2598 (string-append (assoc-ref outputs "out") "/lib/guile"))
2599 (("/usr/local/include/guile")
2600 (string-append (assoc-ref inputs "guile") "/include/guile"))
2601 (("-L/usr/local/lib")
2602 (string-append "-L" (assoc-ref inputs "guile") "/lib")))
2604 (add-after 'unpack 'patch-library-reference
2605 (lambda* (#:key outputs #:allow-other-keys)
2606 (let ((out (assoc-ref outputs "out")))
2607 (substitute* "persist/persistance.scm"
2608 (("\"libguile-persist\"")
2609 (format #f "\"~a/lib/guile/3.0/extensions/libguile-persist\"" out)))
2612 `(("guile" ,guile-3.0)))
2614 `(("autoconf" ,autoconf)
2615 ("automake" ,automake)
2616 ("libtool" ,libtool)
2617 ("pkg-config" ,pkg-config)))
2618 (home-page "https://gitlab.com/tampe/guile-persist")
2619 (synopsis "Persistence programming framework for Guile")
2621 "This is a serialization library for serializing objects like classes
2622 and objects, closures and structs. This currently does not support
2623 serializing continuations or delimited continuations.")
2624 (license license:lgpl2.0+)))
2626 (define-public python-on-guile
2628 (name "python-on-guile")
2630 (home-page "https://gitlab.com/python-on-guile/python-on-guile")
2633 (uri (git-reference (url home-page)
2634 (commit (string-append "v" version))))
2635 (file-name (git-file-name name version))
2638 "05xrvcj6a4gzq1ybyin270qz8wamgc7w2skyi9iy6hkpgdhxy8vf"))))
2639 (build-system gnu-build-system)
2641 `(#:parallel-build? #f ;not supported
2642 #:make-flags '("GUILE_AUTO_COMPILE=0") ;to prevent guild warnings
2644 (modify-phases %standard-phases
2645 (add-after 'unpack 'chdir
2646 (lambda _ (chdir "modules") #t))
2647 (add-after 'chdir 'augment-GUILE_LOAD_PATH
2649 ;; TODO: It would be better to patch the Makefile.
2650 (setenv "GUILE_LOAD_PATH"
2652 (getenv "GUILE_LOAD_PATH")))
2654 (add-after 'install 'wrap
2655 (lambda* (#:key outputs #:allow-other-keys)
2656 ;; Wrap the 'python' executable so it can find its
2657 ;; dependencies and own modules.
2658 (let* ((out (assoc-ref outputs "out"))
2659 (guile-version ,(version-major+minor
2660 (package-version guile-3.0)))
2661 (scm (string-append out "/share/guile/site/"
2663 (ccache (string-append out "/lib/guile/" guile-version
2665 (load-path (string-join
2667 ;; XXX: cdr because we augment it above.
2669 (getenv "GUILE_LOAD_PATH") #\:)))
2671 (compiled-path (string-append
2673 (getenv "GUILE_LOAD_COMPILED_PATH"))))
2674 (wrap-program (string-append out "/bin/python")
2675 `("GUILE_LOAD_PATH" ":" prefix
2677 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
2681 `(("guile" ,guile-3.0)
2682 ("guile-persist" ,guile-persist)
2683 ("guile-readline" ,guile-readline)
2684 ("guile-stis-parser" ,guile-stis-parser)))
2686 `(("autoconf" ,autoconf)
2687 ("automake" ,automake)
2688 ("libtool" ,libtool)
2689 ("pkg-config" ,pkg-config)))
2690 (synopsis "Python implementation in Guile")
2692 "This package allows you to compile a Guile Python file to any target
2693 from @code{tree-il}.")
2694 (license license:lgpl2.0+)))
2696 (define-public guile-file-names
2698 (name "guile-file-names")
2702 (uri (string-append "http://brandon.invergo.net/software/download/"
2703 "guile-file-names/guile-file-names-"
2707 "01chizdxkhw6aqv629vxka9f5x3534ij7r0jqndawsg2vxm1r9sz"))))
2708 (build-system gnu-build-system)
2711 (modify-phases %standard-phases
2712 (add-after 'unpack 'fix-target-directory
2714 (substitute* "src/Makefile.in"
2715 (("guilemoddir = \\$\\(GUILE_SITE\\)")
2716 "guilemoddir = $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
2719 `(("guile" ,guile-2.2)))
2721 `(("pkg-config" ,pkg-config)))
2722 (home-page "https://gitlab.com/brandoninvergo/guile-file-names")
2723 (synopsis "Manipulate file names")
2725 "The @code{(file-names)} module provides tools for manipulating file
2726 names. The module was built on the idea that doing anything more than a
2727 non-trivial modification of a file name string is a pain (making sure all
2728 slashes are present and accounted for, resolving @code{.} and @code{..}, etc).
2729 Inevitably, you have to break the string up into chunks and operate on that
2730 list of components. This module takes care of that for you.")
2731 (license license:lgpl3+)))
2733 (define-public guile-gi
2739 (uri (string-append "http://lonelycactus.com/tarball/guile_gi-"
2743 "05xbwrk50h4f9fh8la8fk2wsxbnm0jcyb9phnpkkjq4sqkhkxlbj"))))
2744 (build-system glib-or-gtk-build-system)
2746 `(#:configure-flags '("--with-gnu-filesystem-hierarchy")
2747 #:modules ((guix build glib-or-gtk-build-system)
2752 (modify-phases %standard-phases
2753 (add-after 'unpack 'patch-references-to-extension
2754 (lambda* (#:key outputs #:allow-other-keys)
2755 (let ((effective (read-line
2756 (open-pipe* OPEN_READ
2758 "(display (effective-version))"))))
2759 (substitute* '("module/gi.scm"
2761 "module/gi/documentation.scm"
2762 "module/gi/types.scm"
2763 "module/gi/repository.scm")
2764 (("\\(load-extension \"libguile-gi\" \"(.*)\"\\)" m arg)
2767 (format #f "~alibguile-gi"
2768 (if (getenv "GUILE_GI_UNINSTALLED")
2770 ,(format #f "~a/lib/guile/~a/extensions/"
2771 (assoc-ref outputs "out")
2774 (setenv "GUILE_GI_UNINSTALLED" "1")
2776 (add-before 'check 'start-xorg-server
2777 (lambda* (#:key inputs #:allow-other-keys)
2778 ;; The init_check test requires a running X server.
2779 (system (format #f "~a/bin/Xvfb :1 &"
2780 (assoc-ref inputs "xorg-server")))
2781 (setenv "DISPLAY" ":1")
2784 `(("gettext" ,gettext-minimal)
2785 ("glib:bin" ,glib "bin") ; for glib-compile-resources
2786 ("libtool" ,libtool)
2787 ("pkg-config" ,pkg-config)
2788 ("xorg-server" ,xorg-server)))
2791 ("gobject-introspection" ,gobject-introspection)
2792 ("gssettings-desktop-schemas" ,gsettings-desktop-schemas)
2794 ("guile-lib" ,guile-lib)
2795 ("webkitgtk" ,webkitgtk)))
2796 (inputs `(("guile" ,guile-3.0)))
2797 (home-page "https://github.com/spk121/guile-gi")
2798 (synopsis "GObject bindings for Guile")
2800 "Guile-GI is a library for Guile that allows using GObject-based
2801 libraries, such as GTK+3. Its README comes with the disclaimer: This is
2803 (license license:gpl3+)))
2805 (define-public guile2.2-gi
2808 (name "guile2.2-gi")
2810 `(("guile" ,guile-2.2)
2811 ,@(alist-delete "guile" (package-inputs guile-gi))))))
2813 (define-public guile3.0-gi
2814 (deprecated-package "guile3.0-gi" guile-gi))
2816 (define-public guile-srfi-89
2818 (name "guile-srfi-89")
2824 (url "https://gitlab.com/mjbecze/guile-srfi-89.git")
2828 "1981c0rrzxqx3md9jx8ir7j3m2mzg9m72b33p5jvw36zirbzpl20"))
2829 (file-name (git-file-name name version))))
2830 (build-system guile-build-system)
2832 `(("guile" ,guile-3.0)))
2833 (home-page "https://gitlab.com/mjbecze/guile-srfi-89")
2834 (synopsis "Hygienic implementation of SRFI-89 for Guile")
2836 "This package provides SRFI-89 optional positional and named
2837 parameters, which define* and lambda* special forms")
2838 (license license:gpl3+)))
2840 (define-public guile-srfi-145
2842 (name "guile-srfi-145")
2848 (url "https://gitlab.com/mjbecze/guile-srfi-145.git")
2852 "1gssa8cmcp8640fil9z8dpil8v5l279wlalqjcx3fls5jwv13q1b"))
2853 (file-name (git-file-name name version))))
2854 (build-system guile-build-system)
2856 `(("guile" ,guile-3.0)))
2857 (home-page "https://gitlab.com/mjbecze/guile-srfi-145")
2858 (synopsis "SRFI-145 port for Guile")
2860 "This package provides SRFI-145. This provides the means to
2861 denote the invalidity of certain code paths in a Scheme program.")
2862 (license license:gpl3+)))
2864 (define-public guile-srfi-158
2866 (name "guile-srfi-158")
2872 (url "https://gitlab.com/mjbecze/guile-srfi-158.git")
2876 "0b8hlv1bldbcwkcxi9y8mm6xp5gbgpg7b15bwqxv70iynl9d9a7c"))
2877 (file-name (git-file-name name version))))
2878 (build-system gnu-build-system)
2880 `(("autoconf" ,autoconf)
2881 ("automake" ,automake)
2882 ("pkg-config" ,pkg-config)))
2884 `(("guile" ,guile-3.0)))
2885 (home-page "https://gitlab.com/samplet/guile-srfi-158")
2886 (synopsis "SRFI 158 (Generators and Accumulators) for Guile")
2887 (description "This package provides an implementation of SRFI 158
2888 for Guile. SRFI 158 defines utility procedures that create,
2889 transform, and consume generators. It also defines procedures that
2890 return accumulators. It is implemented by wrapping the sample
2891 implementation in a thin Guile compatibility layer.")
2892 (license license:gpl3+)))
2894 (define-public guile-srfi-159
2895 (let ((commit "1bd98abda2ae4ef8f36761a167903e55c6bda7bb")
2898 (name "guile-srfi-159")
2899 (version (git-version "0" revision commit))
2900 (home-page "https://bitbucket.org/bjoli/guile-srfi-159")
2903 (uri (hg-reference (changeset commit)
2907 "1zw6cmcy7xdbfiz3nz9arqnn7l2daidaps6ixkcrc9b6k51fdv3p"))
2908 (file-name (git-file-name name version))))
2909 (build-system guile-build-system)
2911 ;; The *-impl.scm files are actually included from module files; they
2912 ;; should not be compiled separately, but they must be installed.
2913 '(#:not-compiled-file-regexp "-impl\\.scm$"))
2915 `(("guile" ,guile-2.2)))
2916 (synopsis "Formatting combinators for Guile")
2918 "The @code{(srfi-159)} module and its sub-modules implement the
2919 formatting combinators specified by
2920 @uref{https://srfi.schemers.org/srfi-159/srfi-159.html, SRFI-159}. These are
2921 more expressive and flexible than the traditional @code{format} procedure.")
2922 (license license:bsd-3))))
2924 (define-public guile-srfi-180
2925 (let ((commit "9188bf9724c6d320ef804579d222e855b007b193")
2928 (name "guile-srfi-180")
2929 (version (git-version "0" revision commit))
2934 (url "https://github.com/scheme-requests-for-implementation/srfi-180.git")
2938 "08lf70rsak8mwfij55xc37pg9zg7c87fizmhz7ln46skzj68sl3y"))
2939 (modules '((guix build utils)))
2942 (delete-file-recursively "srfi/files")
2943 (delete-file "srfi/run-r7rs-checks.guile.scm")
2944 (delete-file "srfi/run-r7rs-checks.scm")
2945 (delete-file "srfi/check.scm")
2947 (file-name (git-file-name name version))))
2948 (build-system guile-build-system)
2950 '(#:not-compiled-file-regexp "body\\.scm$"))
2952 `(("guile" ,guile-3.0)))
2954 `(("guile-srfi-145" ,guile-srfi-145)))
2955 (home-page "https://srfi.schemers.org/srfi-180/")
2956 (synopsis "JSON parser and printer for Guile")
2958 "This library implements a JavaScript Object Notation (JSON) parser and printer.
2959 It also supports parsing JSON objects that may be bigger than memory with a streaming
2961 (license license:expat))))
2963 (define-public emacsy
2970 "https://download.savannah.nongnu.org/releases/"
2971 name "/" name "-" version ".tar.gz"))
2974 "1cpb85dl1nibd34c2x2h7vfmjpkgh353p5b1w20v6cs6gmvgg4np"))))
2975 (build-system gnu-build-system)
2977 `(("autoconf" ,autoconf)
2978 ("automake" ,automake)
2980 ("guile" ,guile-2.2)
2981 ("gettext" ,gettext-minimal)
2982 ("libtool" ,libtool)
2984 ("pkg-config" ,pkg-config)
2985 ("texinfo" ,texinfo)
2986 ("texlive" ,(texlive-union (list texlive-generic-epsf)))))
2988 `(("dbus-glib" ,dbus-glib)
2989 ("guile" ,guile-2.2)
2990 ("guile-lib" ,guile-lib)
2991 ("guile-readline" ,guile-readline)
2992 ("freeglut" ,freeglut)
2993 ("webkitgtk" ,webkitgtk)))
2995 `(("glib-networking" ,glib-networking)
2996 ("gssettings-desktop-schemas" ,gsettings-desktop-schemas)))
2998 `(#:modules ((guix build gnu-build-system)
3006 (modify-phases %standard-phases
3007 (add-before 'configure 'setenv
3009 (setenv "GUILE_AUTO_COMPILE" "0")
3011 (add-after 'install 'wrap-binaries
3012 (lambda* (#:key inputs outputs #:allow-other-keys)
3013 (let* ((out (assoc-ref outputs "out"))
3014 (effective (read-line
3015 (open-pipe* OPEN_READ
3017 "(display (effective-version))")))
3018 (deps (map (cut assoc-ref inputs <>)
3019 '("guile-lib" "guile-readline")))
3020 (scm-path (map (cut string-append <> "/share/guile/site/"
3021 effective) `(,out ,@deps)))
3022 (go-path (map (cut string-append <> "/lib/guile/" effective
3023 "/site-ccache/") `(,out ,@deps)))
3024 (examples (filter (cut string-match "emacsy" <>)
3025 (scandir (string-append out "/bin/"))))
3026 (progs (map (cut string-append out "/bin/" <>)
3028 (map (cut wrap-program <>
3029 `("GUILE_LOAD_PATH" ":" prefix ,scm-path)
3030 `("GUILE_LOAD_COMPILED_PATH" ":" prefix ,go-path))
3033 (home-page "https://savannah.nongnu.org/projects/emacsy")
3034 (synopsis "Embeddable GNU Emacs-like library using Guile")
3036 "Emacsy is an embeddable Emacs-like library that uses GNU Guile
3037 as extension language. Emacsy can give a C program an Emacsy feel with
3038 keymaps, minibuffer, recordable macros, history, tab completion, major
3039 and minor modes, etc., and can also be used as a pure Guile library. It
3040 comes with a simple counter example using FreeGLUT and browser examples
3041 in C using Gtk+-3 and WebKitGtk.")
3042 (license license:gpl3+)))
3044 (define-public emacsy-minimal
3045 (let ((commit "v0.4.1-31-g415d96f"))
3048 (name "emacsy-minimal")
3049 (version (string-drop commit 1))
3054 (url "https://git.savannah.gnu.org/git/emacsy.git")
3056 (file-name (git-file-name name version))
3058 (base32 "1cs1i1hxwrv0a512j54yrvfh743nci1chx6qjgp4jyzq98ncvxgg"))))
3059 (build-system gnu-build-system)
3061 `(("guile" ,guile-2.2)
3062 ("guile-lib" ,guile2.2-lib)
3063 ("guile-readline" ,guile2.2-readline)))
3064 (propagated-inputs '())
3066 `(#:configure-flags '("--without-examples")
3068 (modify-phases %standard-phases
3069 (add-before 'configure 'setenv
3071 (setenv "GUILE_AUTO_COMPILE" "0")
3074 (define-public guile-jpeg
3075 (let ((commit "6a1673578b297c2c1b28e44a76bd5c49e76a5046")
3079 (version (git-version "0.0" revision commit))
3080 (home-page "https://gitlab.com/wingo/guile-jpeg")
3083 (uri (git-reference (url home-page)
3087 "05z9m408w3h6aqb5k3r3qa7khir0k10rxwvsrzhkcq1hr5vbmr4m"))
3088 (file-name (git-file-name name version))
3089 (modules '((guix build utils)))
3092 ;; Install .go files in the right place.
3093 (substitute* "Makefile.am"
3094 (("/ccache") "/site-ccache"))
3096 (build-system gnu-build-system)
3098 `(("autoconf" ,autoconf)
3099 ("automake" ,automake)
3100 ("pkg-config" ,pkg-config)
3101 ("guile" ,guile-2.2)))
3102 (synopsis "JPEG file parsing library for Guile")
3104 "Guile-JPEG is a Scheme library to parse JPEG image files and to
3105 perform geometrical transforms on JPEG images.")
3106 (license license:gpl3+))))
3108 (define-public nomad
3111 (version "0.2.0-alpha-100-g6a565d3")
3115 (url "https://git.savannah.gnu.org/git/nomad.git/")
3117 (file-name (git-file-name name version))
3120 "0anmprm63a88kii251rl296v1g4iq62r6n4nssx5jbc0hzkknanz"))))
3121 (build-system gnu-build-system)
3123 `(("autoconf" ,autoconf)
3124 ("automake" ,automake)
3126 ("pkg-config" ,pkg-config)
3127 ("libtool" ,libtool)
3128 ("guile" ,guile-2.2)
3129 ("glib:bin" ,glib "bin")
3130 ("texinfo" ,texinfo)
3131 ("gettext" ,gnu-gettext)
3135 ("guile" ,guile-2.2)
3136 ("guile-lib" ,guile2.2-lib)
3137 ("guile-readline" ,guile2.2-readline)
3138 ("guile-gcrypt" ,guile2.2-gcrypt)
3142 ("emacsy" ,emacsy-minimal)
3145 ("dbus-glib" ,dbus-glib)
3146 ("glib-networking" ,glib-networking)
3148 ("gtk+:bin" ,gtk+ "bin")
3149 ("webkitgtk" ,webkitgtk)
3150 ("gtksourceview" ,gtksourceview)
3153 ("gstreamer" ,gstreamer)
3154 ("gst-plugins-base" ,gst-plugins-base)
3155 ("gst-plugins-good" ,gst-plugins-good)
3156 ("gst-plugins-bad" ,gst-plugins-bad)
3157 ("gst-plugins-ugly" ,gst-plugins-ugly)
3159 ("xorg-server" ,xorg-server)))
3161 `(#:modules ((guix build gnu-build-system)
3167 (modify-phases %standard-phases
3168 (add-before 'check 'start-xorg-server
3169 (lambda* (#:key inputs #:allow-other-keys)
3170 ;; The test suite requires a running X server.
3171 (system (format #f "~a/bin/Xvfb :1 &"
3172 (assoc-ref inputs "xorg-server")))
3173 (setenv "DISPLAY" ":1")
3175 (add-after 'install 'wrap-binaries
3176 (lambda* (#:key inputs outputs #:allow-other-keys)
3177 (let* ((out (assoc-ref outputs "out"))
3178 (effective (read-line (open-pipe*
3181 "(display (effective-version))")))
3182 (gst-plugins (map (lambda (i)
3183 (string-append (assoc-ref inputs i)
3184 "/lib/gstreamer-1.0"))
3189 "gst-plugins-ugly")))
3190 (out-append (lambda (. args)
3191 (apply string-append out args)))
3192 (gi-path (out-append "/lib/girepository-1.0"))
3193 (load-path (out-append "/share/guile/site/" effective))
3194 (comp-path (out-append "/lib/guile/"
3195 effective "/site-ccache"))
3196 (ext-path (out-append "/libexec/nomad")))
3197 (wrap-program (string-append out "/bin/nomad")
3198 `("GUILE_LOAD_PATH" ":" prefix
3200 ,(getenv "GUILE_LOAD_PATH")))
3201 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
3203 ,(getenv "GUILE_LOAD_COMPILED_PATH")))
3204 `("GI_TYPELIB_PATH" ":" prefix
3205 (,gi-path ,(getenv "GI_TYPELIB_PATH")))
3206 `("GIO_EXTRA_MODULES" ":" prefix
3207 (,(getenv "GIO_EXTRA_MODULES")))
3208 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix ,gst-plugins)
3209 `("NOMAD_WEB_EXTENSION_DIR" ":" prefix (,ext-path)))
3211 (home-page "https://savannah.nongnu.org/projects/nomad/")
3212 (synopsis "Extensible Web Browser in Guile Scheme")
3213 (description "Nomad is a Emacs-like web browser that consists of a modular
3214 feature-set, fully programmable in Guile Scheme.")
3215 (license license:gpl3+)))
3217 (define-public guile-cv
3223 (uri (string-append "mirror://gnu/guile-cv/guile-cv-"
3227 "0qdf0s2h1xj5lbhnc1pfw69i3zg08pqy2y6869b92ydfis8r82j9"))))
3228 (build-system gnu-build-system)
3231 (modify-phases %standard-phases
3232 (add-after 'unpack 'prepare-build
3233 (lambda* (#:key inputs outputs #:allow-other-keys)
3234 (substitute* "configure"
3235 (("SITEDIR=\"\\$datadir/guile-cv\"")
3236 "SITEDIR=\"$datadir/guile/site/$GUILE_EFFECTIVE_VERSION\"")
3237 (("SITECCACHEDIR=\"\\$libdir/guile-cv/")
3238 "SITECCACHEDIR=\"$libdir/"))
3239 (substitute* "cv/init.scm"
3240 (("\\(dynamic-link \"libvigra_c\"\\)")
3241 (string-append "(dynamic-link \""
3242 (assoc-ref inputs "vigra-c")
3243 "/lib/libvigra_c\")"))
3244 (("\\(dynamic-link \"libguile-cv\"\\)")
3247 (format #f "~alibguile-cv"
3248 (if (getenv "GUILE_CV_UNINSTALLED")
3250 ,(format #f "~a/lib/"
3251 (assoc-ref outputs "out"))))))))
3252 (setenv "GUILE_CV_UNINSTALLED" "1")
3253 ;; Only needed to satisfy the configure script.
3254 (setenv "LD_LIBRARY_PATH"
3255 (string-append (assoc-ref inputs "vigra-c") "/lib"))
3259 ("vigra-c" ,vigra-c)
3260 ("guile" ,guile-2.2)))
3262 `(("texlive" ,(texlive-union (list texlive-booktabs
3267 texlive-fonts-iwona)))
3268 ("pkg-config" ,pkg-config)))
3270 `(("guile-lib" ,guile-lib)))
3271 (home-page "https://www.gnu.org/software/guile-cv/")
3272 (synopsis "Computer vision library for Guile")
3273 (description "Guile-CV is a Computer Vision functional programming library
3274 for the Guile Scheme language. It is based on Vigra (Vision with Generic
3275 Algorithms), a C++ image processing and analysis library. Guile-CV contains
3276 bindings to Vigra C (a C wrapper to most of the Vigra functionality) and is
3277 enriched with pure Guile Scheme algorithms, all accessible through a nice,
3278 clean and easy to use high level API.")
3279 (license license:gpl3+)))
3281 (define-public guile-ffi-fftw
3282 (let ((commit "294ad9e7491dcb40026d2fec9be2af05263be1c0")
3285 (name "guile-ffi-fftw")
3286 (version (git-version "0" revision commit))
3290 (url "https://github.com/lloda/guile-ffi-fftw")
3292 (file-name (git-file-name "guile-ffi-fftw" version))
3295 "08j40a5p6a8pgvhffmzb5rfdnrav2mksy3gfjkdqy93jfj1z5afg"))))
3296 (build-system guile-build-system)
3298 `(#:source-directory "mod"
3300 (modify-phases %standard-phases
3301 (add-after 'unpack 'prepare-build
3302 (lambda* (#:key inputs #:allow-other-keys)
3303 (substitute* "mod/ffi/fftw.scm"
3304 (("\\(getenv \"GUILE_FFI_FFTW_LIBFFTW3_PATH\"\\)")
3305 (format #f "\"~a/lib\"" (assoc-ref inputs "fftw"))))
3307 (add-after 'build 'check
3309 (invoke "guile" "-L" "mod"
3310 "-s" "test/test-ffi-fftw.scm"))))))
3313 ("guile" ,guile-2.2)))
3314 (home-page "https://github.com/lloda/guile-ffi-fftw/")
3315 (synopsis "Access FFTW through Guile's FFI")
3316 (description "This is a minimal set of Guile FFI bindings for the FFTW
3317 library's ‘guru interface’. It provides two functions: @code{fftw-dft! rank
3318 sign in out} and @code{fftw-dft rank sign in}. These bindings being minimal,
3319 there is no support for computing & reusing plans, or split r/i transforms, or
3320 anything other than straight complex DFTs.")
3321 (license license:lgpl3+))))
3323 (define-public srfi-64-driver
3325 (name "srfi-64-driver")
3329 (uri (string-append "https://files.ngyro.com/srfi-64-driver/"
3330 "srfi-64-driver-" version ".tar.gz"))
3333 "188b6mb7sjjg0a8zldikinglf40ky8mg8rwh5768gjmch6gkk3ph"))))
3334 (build-system gnu-build-system)
3338 (modify-phases %standard-phases
3341 `(("pkg-config" ,pkg-config)))
3343 `(("guile" ,guile-2.2)))
3344 (home-page "https://ngyro.com/software/srfi-64-driver.html")
3345 (synopsis "Automake test driver for SRFI 64 test suites")
3346 (description "This package provides an Automake test driver that can
3347 run SRFI 64 test suites. It gives Automake insight into the individual
3348 tests being run, resulting clearer and more specific output.")
3349 (license license:gpl3+)))
3351 (define-public guile-semver
3353 (name "guile-semver")
3357 (uri (string-append "https://files.ngyro.com/guile-semver/"
3358 "guile-semver-" version ".tar.gz"))
3361 "109p4n39ln44cxvwdccf9kgb96qx54makvd2ir521ssz6wchjyag"))))
3362 (build-system gnu-build-system)
3364 `(("pkg-config" ,pkg-config)))
3366 `(("guile" ,guile-2.2)))
3367 (home-page "https://ngyro.com/software/guile-semver.html")
3368 (synopsis "Semantic Versioning (SemVer) for Guile")
3369 (description "This Guile library provides tools for reading,
3370 comparing, and writing Semantic Versions. It also includes ranges in
3371 the style of the Node Package Manager (NPM).")
3372 (license license:gpl3+)))
3374 (define-public guile3.0-semver
3376 (inherit guile-semver)
3377 (name "guile3.0-semver")
3379 `(("guile" ,guile-3.0)))))
3381 (define-public guile-hashing
3383 (name "guile-hashing")
3385 (home-page "https://github.com/weinholt/hashing")
3390 (commit (string-append "v" version))))
3391 (file-name (git-file-name name version))
3394 "1362d3lmpv7slmv1zmr9wy8panq9sjr9787gc2hagd646mpsfpkl"))))
3395 (build-system guile-build-system)
3397 `(#:modules ((guix build guile-build-system)
3401 #:implicit-inputs? #f ;needs nothing but Guile
3402 #:phases (modify-phases %standard-phases
3403 (add-before 'build 'move-sls-files
3405 ;; Move the source under hashing/ in order to match
3406 ;; module names, and rename .sls files to .scm.
3407 (define (target file)
3408 (string-append "hashing/" file))
3410 (define (sls->scm sls)
3411 (string-append (string-drop-right sls 4)
3415 (for-each (lambda (file)
3416 (rename-file file (sls->scm file)))
3417 (find-files "." "\\.sls$"))
3418 (for-each (lambda (file)
3419 (rename-file file (target file)))
3420 (scandir "." (cut string-suffix? ".scm" <>)))
3421 (rename-file "private" "hashing/private")
3424 `(("guile" ,guile-3.0)))
3425 (synopsis "Cryprographic hash functions implemented in Scheme")
3427 "The @code{(hashing @dots{})} modules implement cryptographic hash
3428 functions in pure R6RS Scheme: CRC, HMAC, MD5, SHA-1, and SHA-2 (SHA-256,
3430 (license license:expat)))
3432 (define-public guile2.2-hashing
3434 (inherit guile-hashing)
3435 (name "guile2.2-hashing")
3437 `(("guile" ,guile-2.2)))))
3439 (define-public guile3.0-hashing
3440 (deprecated-package "guile3.0-hashing" guile-hashing))
3442 (define-public guile-packrat
3444 (name "guile-packrat")
3446 (home-page "https://github.com/weinholt/packrat")
3451 (commit (string-append "v" version))))
3452 (file-name (git-file-name name version))
3455 "1aga17164fkhbgllqc7ni6fk5zl8mkmgkl5zcsy67x7ngpyalbby"))))
3456 (build-system guile-build-system)
3458 `(#:implicit-inputs? #f ;needs nothing but Guile
3459 #:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
3460 #:not-compiled-file-regexp "/extensible\\.scm$"
3461 #:phases (modify-phases %standard-phases
3462 (add-before 'build 'no-srfi-23
3464 (substitute* "packrat.sls"
3465 (("\\(srfi :23 error\\)")
3466 (object->string '(only (guile) error))))
3469 `(("guile" ,guile-3.0)))
3470 (synopsis "Packrat parser library in R6RS Scheme")
3472 "This is an R6RS Scheme adaptation of the
3473 @uref{https://bford.info/packrat/, packrat parsing}. Packrat parsing is a
3474 memoizing, backtracking, recursive-descent parsing technique that runs in time
3475 and space linear in the size of the input text.")
3476 (license license:expat)))
3478 (define-public guile-ac-d-bus
3480 (name "guile-ac-d-bus")
3481 (version "1.0.0-beta.0")
3482 (home-page "https://gitlab.com/weinholt/ac-d-bus/")
3487 (commit (string-append "v" version))))
3488 (file-name (git-file-name name version))
3491 "0rl809qimhgz6b0rixakb42r2l4g53jr09a2g0s1hxgab0blz0kb"))))
3492 (build-system guile-build-system)
3494 `(#:implicit-inputs? #f ;needs nothing but Guile
3495 #:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
3496 #:phases (modify-phases %standard-phases
3497 (add-before 'build 'adjust-for-guile
3499 ;; Adjust source file names for Guile.
3500 (define (guile-sls->sls file)
3501 (string-append (string-drop-right
3502 file (string-length ".guile.sls"))
3505 ;; Remove files targeting other implementations:
3507 (for-each delete-file
3511 (not (string-contains file ".guile.")))))
3513 ;; Rename *.guile.sls to *.sls so the ".guile" bit does
3514 ;; not appear in .go file names.
3515 (for-each (lambda (file)
3516 (rename-file file (guile-sls->sls file)))
3517 (find-files "compat" "\\.guile\\.sls"))
3519 ;; Move directories under d-bus/ to match module names.
3521 (for-each (lambda (directory)
3522 (rename-file directory
3523 (string-append "d-bus/"
3525 '("compat" "protocol"))
3529 `(("guile" ,guile-3.0)))
3531 `(("guile-packrat" ,guile-packrat)))
3532 (synopsis "D-Bus protocol implementation in R6RS Scheme")
3534 "AC/D-Bus is an implementation of the D-Bus wire protocol. D-Bus is an
3535 interprocess communication protocol popular on GNU/Linux systems to
3536 communicate with a variety of services. Originally designed for desktop
3537 environments, it is now used by programs like VLC media player, BlueZ,
3538 NetworkManager, Pulseaudio, systemd (including logind and resolved), Polkit,
3539 gnome-keyring, and many more.")
3540 (license license:expat)))
3542 (define-public guile-webutils
3543 (let ((commit "8541904f761066dc9c27b1153e9a838be9a55299")
3546 (name "guile-webutils")
3547 (version (git-version "0.1" revision commit))
3551 (url "https://notabug.org/cwebber/guile-webutils.git")
3553 (file-name (git-file-name name version))
3556 "1s9n3hbxd7lfpdi0x8wr0cfvlsf6g62ird9gbspxdrp5p05rbi64"))
3557 (modules '((guix build utils)))
3560 ;; Allow builds with Guile 3.0.
3561 (substitute* "configure.ac"
3565 (build-system gnu-build-system)
3567 `(("autoconf" ,autoconf)
3568 ("automake" ,automake)
3569 ("pkg-config" ,pkg-config)
3570 ("texinfo" ,texinfo)))
3572 `(("guile" ,guile-3.0)))
3574 `(("guile-irregex" ,guile-irregex)
3575 ("guile-gcrypt" ,guile-gcrypt)))
3576 (home-page "https://notabug.org/cwebber/guile-webutils")
3577 (synopsis "Web application authoring utilities for Guile")
3579 "This package provides tooling to write web applications in Guile, such
3580 as signed sessions, multipart message support, etc.")
3581 (license license:gpl3+))))
3583 (define-public guile2.2-webutils
3585 (inherit guile-webutils)
3586 (name "guile2.2-webutils")
3588 `(("guile" ,guile-2.2)))
3590 `(("guile-irregex" ,guile2.2-irregex)
3591 ("guile-gcrypt" ,guile2.2-gcrypt)))))
3593 (define-public guile-lens
3594 (let ((commit "14b15d07255f9d3f55d40a3b750d13c9ee3a154f")
3598 (version (git-version "0.1" revision commit))
3602 (url "https://gitlab.com/a-sassmannshausen/guile-lens.git")
3604 (file-name (git-file-name name version))
3607 "0w8jzqyla56yrgj7acsgd4nspyir6zgp3vgxid4xmwhg9wmf1ida"))))
3608 (build-system gnu-build-system)
3611 (modify-phases %standard-phases
3612 (add-after 'unpack 'run-hall
3614 (setenv "HOME" "/tmp") ; for ~/.hall
3615 (invoke "hall" "dist" "-x"))))))
3617 `(("autoconf" ,autoconf)
3618 ("automake" ,automake)
3619 ("guile" ,guile-3.0)
3620 ("guile-hall" ,guile-hall)
3621 ("pkg-config" ,pkg-config)
3622 ("texinfo" ,texinfo)))
3623 (home-page "https://gitlab.com/a-sassmannshausen/guile-lens.git")
3624 (synopsis "Composable lenses for data structures in Guile")
3626 "Guile-Lens is a library implementing lenses in Guile. The library is
3627 currently a re-implementation of the lentes library for Clojure. Lenses
3628 provide composable procedures, which can be used to focus, apply functions
3629 over, or update a value in arbitrary data structures.")
3630 (license license:gpl3+))))
3632 (define-public guile2.2-lens
3634 (inherit guile-lens)
3635 (name "guile2.2-lens")
3637 `(("guile" ,guile-2.2)
3638 ,@(alist-delete "guile" (package-native-inputs guile-lens))))))
3640 (define-public guile-xapian
3642 (name "guile-xapian")
3644 (home-page "https://git.systemreboot.net/guile-xapian")
3648 (uri (git-reference (url home-page)
3649 (commit (string-append "v" version))))
3650 (file-name (git-file-name name version))
3653 "16k61f1jn3g48jaf3730b9l0izr5j933jzyri73nmcnjd09gm35i"))))
3654 (build-system gnu-build-system)
3656 '(#:make-flags '("GUILE_AUTO_COMPILE=0"))) ; to prevent guild warnings
3658 `(("guile" ,guile-3.0)
3662 `(("autoconf" ,autoconf)
3663 ("autoconf-archive" ,autoconf-archive)
3664 ("automake" ,automake)
3665 ("libtool" ,libtool)
3666 ("pkg-config" ,pkg-config)
3668 (synopsis "Guile bindings for Xapian")
3669 (description "@code{guile-xapian} provides Guile bindings for Xapian, a
3670 search engine library. Xapian is a highly adaptable toolkit which allows
3671 developers to easily add advanced indexing and search facilities to their own
3672 applications. It has built-in support for several families of weighting
3673 models and also supports a rich set of boolean query operators.")
3674 (license license:gpl2+)))
3676 (define-public guile2.2-xapian
3678 (inherit guile-xapian)
3679 (name "guile2.2-xapian")
3681 `(("guile" ,guile-2.2)
3682 ,@(alist-delete "guile" (package-inputs guile-xapian))))))
3684 (define-public guile3.0-xapian
3685 (deprecated-package "guile3.0-xapian" guile-xapian))
3687 (define-public guile-torrent
3689 (name "guile-torrent")
3691 (source (origin (method git-fetch)
3694 "https://github.com/o-nly/torrent.git")
3696 (file-name (git-file-name name version))
3699 "1yiagi55ncq1x7s9n7salzywjm4l96y3n7y3s47a9anvz87mrmim"))))
3700 (build-system gnu-build-system)
3702 `(("autoconf" ,autoconf)
3703 ("automake" ,automake)
3704 ("guile" ,guile-2.2)
3705 ("texinfo" ,texinfo)
3707 ("pkg-config" ,pkg-config)))
3709 `(("guile-gcrypt" ,guile-gcrypt)))
3710 (home-page "https://github.com/o-nly/torrent")
3711 (synopsis "Torrent library for GNU Guile")
3712 (description "This package provides facilities for working with
3713 @code{.torrent} or metainfo files. Implements a bencode reader and writer
3714 according to Bitorrent BEP003.")
3715 (license license:gpl3+)))
3717 (define-public guile-irc
3718 (let ((commit "375d3bde9c6ae7ccc9d7cc65817966b6fda8f26a")
3722 (version (git-version "0.3.0" revision commit))
3726 (url "https://github.com/rekado/guile-irc")
3728 (file-name (git-file-name name version))
3731 "113lcckcywrz9060w1c3fnvr8d7crdsjgsv4h47hgmr1slgadl4y"))))
3732 (build-system gnu-build-system)
3734 `(#:configure-flags '("--enable-gnutls=yes")))
3736 `(("autoconf" ,autoconf)
3737 ("automake" ,automake)
3738 ("texinfo" ,texinfo)))
3740 `(("gnutls" ,gnutls)
3741 ("guile" ,guile-3.0)))
3742 (home-page "https://github.com/rekado/guile-irc")
3743 (synopsis "IRC library for Guile")
3744 (description "This package provides a Guile library for @dfn{Internet
3745 Relay Chat} (IRC).")
3746 ;; Some file headers incorrectly say LGPLv2+.
3747 (license license:lgpl2.1+))))
3749 (define-public guile-websocket
3750 (let ((commit "c854e0f84a40d972cbd532bbb89c97ca0126a7cf"))
3752 (name "guile-websocket")
3758 (url "git://dthompson.us/guile-websocket.git")
3760 (file-name (git-file-name name version))
3763 "1hymvsfrmq9qxr5cxnsgdz7y757yp1cpsgxmdp3f5wxxxpqgsmzx"))))
3764 (build-system gnu-build-system)
3767 '("GUILE_AUTO_COMPILE=0")
3769 (modify-phases %standard-phases
3770 ;; The package was developed for Guile 2.0 and has this version
3771 ;; hardcoded in the configure.ac and Makefile.am files. Substitute
3772 ;; 3.0 instead so it can support Guile 3.0.
3773 (add-after 'unpack 'update-guile-version
3775 (substitute* "configure.ac"
3776 (("2.0.9") "3.0.0"))
3777 (substitute* "Makefile.am"
3780 ;; Install .go files where they belong.
3781 (("/ccache") "/site-ccache"))
3784 `(("autoconf" ,autoconf)
3785 ("automake" ,automake)))
3787 `(("guile" ,guile-3.0)))
3788 (synopsis "Websocket server/client for Guile")
3789 (description "Guile-websocket provides an implementation of the
3790 WebSocket protocol as defined by RFC 6455.")
3791 (home-page "https://git.dthompson.us/guile-websocket.git")
3792 (license license:lgpl3+))))
3794 (define-public guile3.0-websocket
3795 (deprecated-package "guile3.0-websocket" guile-websocket))
3797 (define-public guile-rdf
3805 (url "https://framagit.org/tyreunom/guile-rdf")
3807 (file-name (git-file-name name version))
3810 "0dwn3app1fscbpmpgvjs5jy1y0gwy3j5gdx8br79af6a88zjlnqf"))))
3811 (build-system gnu-build-system)
3813 `(#:tests? #f)); tests require network
3815 `(("guile" ,guile-3.0)))
3817 `(("automake" ,automake)
3818 ("autoconf" ,autoconf)
3819 ("pkg-config" ,pkg-config)
3820 ("texinfo" ,texinfo)))
3821 (home-page "https://framagit.org/tyreunom/guile-rdf")
3822 (synopsis "Guile implementation of the RDF abstract and concrete syntaxes")
3823 (description "Guile RDF is an implementation of the RDF (Resource Description
3824 Framework) format defined by the W3C for GNU Guile. RDF structures include
3825 triples (facts with a subject, a predicate and an object), graphs which are
3826 sets of triples, and datasets, which are collections of graphs.
3828 RDF specifications include the specification of concrete syntaxes and of
3829 operations on graphs. This library implements some basic functionalities,
3830 such as parsing and producing turtle and nquads syntax, as well as
3831 manipulating graphs and datasets.")
3832 (license license:gpl3+)))
3834 (define-public guile-jsonld
3836 (name "guile-jsonld")
3842 (url "https://framagit.org/tyreunom/guile-jsonld")
3844 (file-name (git-file-name name version))
3847 "0zfn3nwlz6xzip1j8xbj768dc299r037cfc81bk6kwl9xhzkjbrg"))))
3848 (build-system gnu-build-system)
3850 `(#:tests? #f)); require network
3852 `(("guile-gnutls" ,gnutls)
3853 ("guile-json" ,guile-json-3)
3854 ("guile-rdf" ,guile-rdf)))
3856 `(("guile" ,guile-3.0)))
3858 `(("automake" ,automake)
3859 ("autoconf" ,autoconf)
3860 ("pkg-config" ,pkg-config)
3861 ("texinfo" ,texinfo)))
3862 (home-page "https://framagit.org/tyreunom/guile-jsonld")
3863 (synopsis "Guile implementation of the JsonLD API specification")
3864 (description "Guile JsonLD is an implementation of the JsonLD (Json for
3865 Linked Data) API defined by the W3C for GNU Guile. It allows you to express links
3866 between data, in a way that is very similar to WikiData or RDF for instance.
3867 An object can have relations (in the form of an IRI) that relates it to one or
3868 more objects or strings, represented by a Json object or an IRI.")
3869 (license license:gpl3+)))
3871 (define-public guile-struct-pack
3873 (name "guile-struct-pack")
3879 (url "https://github.com/weinholt/struct-pack")
3880 (commit (string-append "v" version))))
3881 (file-name (git-file-name name version))
3883 (base32 "0hd72m821pahjphzyjn26i55542v8makr55xzjll2cycja4wsbc1"))))
3884 (build-system guile-build-system)
3886 `(#:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
3887 #:modules ((guix build guile-build-system)
3891 #:phases (modify-phases %standard-phases
3892 (add-before 'build 'move-sls-files
3894 ;; Move files under a struct/ directory to reflect the
3895 ;; module hierarchy.
3896 (define dst-folder "struct")
3897 (define (target file)
3898 (string-append dst-folder "/" file))
3900 (scandir "." (negate (cut member <> '("." "..")))))
3902 (for-each (lambda (file)
3903 (rename-file file (target file)))
3907 `(("guile" ,guile-3.0)))
3908 (home-page "https://github.com/weinholt/struct-pack")
3909 (synopsis "R6RS library for working with packed byte structures")
3911 "This is an R6RS library for working with packed byte structures. It is
3912 similar to struct in Python or pack and unpack in Perl.")
3913 (license license:expat)))
3915 (define-public guile-machine-code
3917 (name "guile-machine-code")
3923 (url "https://github.com/weinholt/machine-code")
3924 (commit (string-append "v" version))))
3925 (file-name (git-file-name name version))
3927 (base32 "0wzj3caj2jypzyjqfkfqkvr3kkbjabsnhldv9kvnx9w9qnria5yd"))))
3928 (build-system guile-build-system)
3930 `(#:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
3931 #:modules ((guix build guile-build-system)
3935 #:phases (modify-phases %standard-phases
3936 (add-before 'build 'move-sls-files
3938 ;; Move files under a struct/ directory to reflect the
3939 ;; module hierarchy.
3940 (define dst-folder "machine-code")
3941 (define (target file)
3942 (string-append dst-folder "/" file))
3944 (scandir "." (negate (cut member <> '("." "..")))))
3946 (for-each (lambda (file)
3947 (rename-file file (target file)))
3951 `(("guile" ,guile-3.0)))
3953 `(("guile-struct-pack" ,guile-struct-pack)))
3954 (home-page "https://github.com/weinholt/machine-code")
3955 (synopsis "Tools that relate to machine code and object formats")
3957 "This project is about the development of tools that relate to machine
3958 code and object formats; for all architectures. Here you'll find libraries
3959 for working with binary code: assembly, disassembly, instruction tables,
3960 object formats and related areas.")
3961 (license license:expat)))
3963 (define-public guile-laesare
3965 (name "guile-laesare")
3971 (url "https://github.com/weinholt/laesare")
3972 (commit (string-append "v" version))))
3973 (file-name (git-file-name name version))
3975 (base32 "15q619gzw717r8r1ql23zfdaibpnp9qqs96032vdc3rj74msxc92"))))
3976 (build-system guile-build-system)
3978 `(#:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
3979 #:modules ((guix build guile-build-system)
3983 #:phases (modify-phases %standard-phases
3984 (add-before 'build 'move-sls-files
3986 ;; Move files under a laesare directory to reflect
3987 ;; the module hierarchy.
3988 (define dst-folder "laesare")
3989 (define (target file)
3990 (string-append dst-folder "/" file))
3992 (scandir "." (negate (cut member <> '("." "..")))))
3994 (for-each (lambda (file)
3995 (rename-file file (target file)))
3999 `(("guile" ,guile-3.0)))
4000 (home-page "https://github.com/weinholt/laesare")
4001 (synopsis "R6RS Scheme library that provides a reader")
4003 "This is an R6RS Scheme library that provides a reader with some extra
4004 features not found in the standard read procedure such as a compatible mode
4005 with support for other RnRS standards and a tolerant mode that continues on
4007 (license license:expat)))