1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2014, 2015, 2018 Mark H Weaver <mhw@netris.org>
4 ;;; Copyright © 2015, 2017 Christine Lemmer-Webber <cwebber@dustycloud.org>
5 ;;; Copyright © 2016 Alex Sassmannshausen <alex@pompo.co>
6 ;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2016 Erik Edrosa <erik.edrosa@gmail.com>
8 ;;; Copyright © 2016, 2019, 2020, 2021 Eraim Flashner <efraim@flashner.co.il>
9 ;;; Copyright © 2016, 2017, 2021 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, 2021 Amirouche <amirouche@hypermove.net>
12 ;;; Copyright © 2016, 2019, 2021 Jan (janneke) 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, 2021 Tobias Geerinckx-Rice <me@tobias.gr>
19 ;;; Copyright © 2018, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
20 ;;; Copyright © 2018, 2019, 2020, 2021 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, 2021 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, 2021 Masaya Tojo <masaya@tojo.tokyo>
32 ;;; Copyright © 2020 Jesse Gibbons <jgibbons2357@gmail.com>
33 ;;; Copyright © 2020 Mike Rosset <mike.rosset@gmail.com>
34 ;;; Copyright © 2020 Liliana Marie Prikler <liliana.prikler@gmail.com>
35 ;;; Copyright © 2020, 2021 pukkamustard <pukkamustard@posteo.net>
36 ;;; Copyright © 2021 Bonface Munyoki Kilyungi <me@bonfacemunyoki.com>
37 ;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
38 ;;; Copyright © 2021 Leo Le Bouter <lle-bout@zaclys.net>
39 ;;; Copyright © 2021 Zelphir Kaltstahl <zelphirkaltstahl@posteo.de>
40 ;;; Copyright © 2021 Oleg Pykhalov <go.wigust@gmail.com>
42 ;;; This file is part of GNU Guix.
44 ;;; GNU Guix is free software; you can redistribute it and/or modify it
45 ;;; under the terms of the GNU General Public License as published by
46 ;;; the Free Software Foundation; either version 3 of the License, or (at
47 ;;; your option) any later version.
49 ;;; GNU Guix is distributed in the hope that it will be useful, but
50 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
51 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
52 ;;; GNU General Public License for more details.
54 ;;; You should have received a copy of the GNU General Public License
55 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
57 (define-module (gnu packages guile-xyz)
58 #:use-module ((guix licenses) #:prefix license:)
59 #:use-module (gnu packages)
60 #:use-module (gnu packages algebra)
61 #:use-module (gnu packages aspell)
62 #:use-module (gnu packages autotools)
63 #:use-module (gnu packages avahi)
64 #:use-module (gnu packages base)
65 #:use-module (gnu packages bash)
66 #:use-module (gnu packages compression)
67 #:use-module (gnu packages crypto)
68 #:use-module (gnu packages databases)
69 #:use-module (gnu packages disk)
70 #:use-module (gnu packages emacs)
71 #:use-module (gnu packages emacs-xyz)
72 #:use-module (gnu packages gawk)
73 #:use-module (gnu packages gettext)
74 #:use-module (gnu packages gl)
75 #:use-module (gnu packages glib)
76 #:use-module (gnu packages gnome)
77 #:use-module (gnu packages gnupg)
78 #:use-module (gnu packages gperf)
79 #:use-module (gnu packages gstreamer)
80 #:use-module (gnu packages gtk)
81 #:use-module (gnu packages guile)
82 #:use-module (gnu packages hurd)
83 #:use-module (gnu packages image)
84 #:use-module (gnu packages imagemagick)
85 #:use-module (gnu packages libffi)
86 #:use-module (gnu packages libunistring)
87 #:use-module (gnu packages linux)
88 #:use-module (gnu packages man)
89 #:use-module (gnu packages maths)
90 #:use-module (gnu packages mes)
91 #:use-module (gnu packages multiprecision)
92 #:use-module (gnu packages ncurses)
93 #:use-module (gnu packages networking)
94 #:use-module (gnu packages noweb)
95 #:use-module (gnu packages nss)
96 #:use-module (gnu packages package-management)
97 #:use-module (gnu packages password-utils)
98 #:use-module (gnu packages perl)
99 #:use-module (gnu packages pkg-config)
100 #:use-module (gnu packages python)
101 #:use-module (gnu packages readline)
102 #:use-module (gnu packages sdl)
103 #:use-module (gnu packages search)
104 #:use-module (gnu packages serialization)
105 #:use-module (gnu packages slang)
106 #:use-module (gnu packages sqlite)
107 #:use-module (gnu packages swig)
108 #:use-module (gnu packages tex)
109 #:use-module (gnu packages texinfo)
110 #:use-module (gnu packages tls)
111 #:use-module (gnu packages version-control)
112 #:use-module (gnu packages webkit)
113 #:use-module (gnu packages xdisorg)
114 #:use-module (gnu packages xorg)
115 #:use-module (guix packages)
116 #:use-module (guix download)
117 #:use-module (guix git-download)
118 #:use-module (guix hg-download)
119 #:use-module (guix build-system cmake)
120 #:use-module (guix build-system glib-or-gtk)
121 #:use-module (guix build-system gnu)
122 #:use-module (guix build-system guile)
123 #:use-module (guix utils)
124 #:use-module ((guix build utils) #:select (alist-replace))
125 #:use-module (ice-9 match)
126 #:use-module ((srfi srfi-1) #:select (alist-delete)))
128 (define-public artanis
134 (uri (string-append "mirror://gnu/artanis/artanis-"
138 "1vk1kp2xhz35xa5n27cxlq9c88wk6qm7fqaac8rb0pb6k9pvsv7v"))
139 (modules '((guix build utils)))
142 ;; Unbundle guile-redis and guile-json
143 (delete-file-recursively "artanis/third-party/json.scm")
144 (delete-file-recursively "artanis/third-party/json")
145 (delete-file-recursively "artanis/third-party/redis.scm")
146 (delete-file-recursively "artanis/third-party/redis")
147 (substitute* '("artanis/artanis.scm"
150 (("(#:use-module \\()artanis third-party (json\\))" _
152 (string-append use-module json)))
153 (substitute* '("artanis/lpc.scm"
154 "artanis/session.scm")
155 (("(#:use-module \\()artanis third-party (redis\\))" _
157 (string-append use-module redis)))
158 (substitute* "artanis/oht.scm"
159 (("([[:punct:][:space:]]+)(->json-string)([[:punct:][:space:]]+)"
160 _ pre json-string post)
164 (substitute* "artanis/artanis.scm"
165 (("[[:punct:][:space:]]+->json-string[[:punct:][:space:]]+")
168 (build-system gnu-build-system)
170 `(("guile" ,guile-3.0)
173 ;; FIXME the bundled csv contains one more exported procedure
174 ;; (sxml->csv-string) than guile-csv. The author is maintainer of both
176 ;; TODO: Add guile-dbi and guile-dbd optional dependencies.
178 `(("guile-json" ,guile-json-3)
179 ("guile-readline" ,guile-readline)
180 ("guile-redis" ,guile-redis)))
182 `(("bash" ,bash) ;for the `source' builtin
183 ("pkgconfig" ,pkg-config)
184 ("util-linux" ,util-linux))) ;for the `script' command
186 `(#:modules (((guix build guile-build-system)
187 #:select (target-guile-effective-version))
188 ,@%gnu-build-system-modules)
189 #:imported-modules ((guix build guile-build-system)
190 ,@%gnu-build-system-modules)
192 ;; TODO: The documentation must be built with the `docs' target.
193 (let* ((out (assoc-ref %outputs "out"))
194 ;; We pass guile explicitly here since this executes before the
195 ;; set-paths phase and therefore guile is not yet in PATH.
196 (effective-version (target-guile-effective-version
197 (assoc-ref %build-inputs "guile")))
198 (scm (string-append out "/share/guile/site/" effective-version))
199 (go (string-append out "/lib/guile/" effective-version "/site-ccache")))
200 ;; Don't use (%site-dir) for site paths.
201 (list (string-append "MOD_PATH=" scm)
202 (string-append "MOD_COMPILED_PATH=" go)))
205 (modify-phases %standard-phases
206 (add-after 'unpack 'patch-site-dir
207 (lambda* (#:key outputs #:allow-other-keys)
208 (substitute* "artanis/commands/help.scm"
211 (assoc-ref outputs "out")
213 (target-guile-effective-version)
215 (add-after 'unpack 'patch-reference-to-libnss
216 (lambda* (#:key inputs #:allow-other-keys)
217 (substitute* "artanis/security/nss.scm"
218 (("ffi-binding \"libnss3\"")
221 (assoc-ref inputs "nss") "/lib/nss/libnss3.so"
223 (("ffi-binding \"libssl3\"")
225 "ffi-binding \"" (assoc-ref inputs "nss") "/lib/nss/libssl3.so\"")))))
226 (add-before 'install 'substitute-root-dir
227 (lambda* (#:key outputs #:allow-other-keys)
228 (let ((out (assoc-ref outputs "out")))
229 (substitute* "Makefile" ;ignore the execution of bash.bashrc
230 ((" /etc/bash.bashrc") " /dev/null"))
231 (substitute* "Makefile" ;set the root of config files to OUT
232 ((" /etc") (string-append " " out "/etc")))
233 (mkdir-p (string-append out "/bin")) )))
234 (add-after 'install 'wrap-art
235 (lambda* (#:key inputs outputs #:allow-other-keys)
236 (let* ((out (assoc-ref outputs "out"))
237 (effective-version (target-guile-effective-version))
238 (bin (string-append out "/bin"))
239 (scm (string-append out "/share/guile/site/" effective-version))
240 (go (string-append out "/lib/guile/" effective-version
242 (wrap-program (string-append bin "/art")
243 `("GUILE_LOAD_PATH" ":" prefix
244 (,scm ,(getenv "GUILE_LOAD_PATH")))
245 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
246 (,go ,(getenv "GUILE_LOAD_COMPILED_PATH"))))))))))
247 (synopsis "Web application framework written in Guile")
248 (description "GNU Artanis is a web application framework written in Guile
249 Scheme. A web application framework (WAF) is a software framework that is
250 designed to support the development of dynamic websites, web applications, web
251 services and web resources. The framework aims to alleviate the overhead
252 associated with common activities performed in web development. Artanis
253 provides several tools for web development: database access, templating
254 frameworks, session management, URL-remapping for RESTful, page caching, and
256 (home-page "https://www.gnu.org/software/artanis/")
257 (license (list license:gpl3+ license:lgpl3+)))) ;dual license
259 ;; There are no releases yet of this package.
260 (define-public guile-pipe
261 (let ((commit "0746ec38d19d844dff0c6f62f209b2b6c8d8872e")
265 (version (git-version "0.0.0" revision commit))
270 (url "https://github.com/joshwalters/guile-pipe")
272 (file-name (git-file-name name version))
274 (base32 "038gwrhfywgs8372q478wn4623lhcmkknfj4p8yaa93bykfc0fml"))))
275 (build-system guile-build-system)
277 `(("guile" ,guile-3.0)))
278 (home-page "https://github.com/joshwalters/guile-pipe")
279 (synopsis "Guile pipe macros for functional chaining")
281 "This package provides macros for functional chaining in Guile, similar
282 to UNIX pipes (@code{|}), Clojure's threading macros (@code{->} and
284 (license license:gpl3+))))
286 (define-public guile-f-scm
294 (url "https://git.sr.ht/~brown121407/f.scm")
296 (file-name (git-file-name name version))
298 (base32 "14wyrs3m1649l3km4pl2175dmap1372j5h8nkhykrbxg5xqp6ivd"))))
299 (build-system guile-build-system)
301 `(("guile" ,guile-3.0)))
302 (home-page "https://git.sr.ht/~brown121407/f.scm")
303 (synopsis "Library for working with files and directories")
305 "f.scm is a library intended to facilitate working with files and
306 directories (the file system in general). It was initially inspired by the
307 f library for Emacs.")
308 (license license:gpl3+)))
310 ;; There has not been any release yet.
311 (define-public guildhall
312 (let ((commit "2fe2cc539f4b811bbcd69e58738db03eb5a2b778")
316 (version (string-append "0-" revision "." (string-take commit 9)))
320 (url "https://github.com/ijp/guildhall")
322 (file-name (string-append name "-" version "-checkout"))
325 "115bym7bg66h3gs399yb2vkzc2ygriaqsn4zbrg8f054mgy8wzn1"))))
326 (build-system gnu-build-system)
329 (modify-phases %standard-phases
330 ;; Tests fail without this fix because they try to load the bash
331 ;; executable as a Scheme file. See bug report at
332 ;; https://github.com/ijp/guildhall/issues/22
333 (add-after 'unpack 'fix-bug-22
335 (substitute* "Makefile.am"
336 (("TESTS_ENVIRONMENT=.*")
337 "AM_TESTS_ENVIRONMENT=srcdir=$(abs_top_srcdir)/tests/
338 TEST_EXTENSIONS = .scm
339 SCM_LOG_COMPILER= $(top_builddir)/env $(GUILE)
340 AM_SCM_LOG_FLAGS = --no-auto-compile -s")
341 ;; FIXME: one of the database tests fails for unknown
342 ;; reasons. It does not fail when run outside of Guix.
343 (("tests/database.scm") ""))
346 `(("guile" ,guile-2.0)))
348 `(("zip" ,zip) ; for tests
349 ("autoconf" ,autoconf)
350 ("automake" ,automake)
351 ("texinfo" ,texinfo)))
352 (synopsis "Package manager for Guile")
354 "Guildhall is a package manager written for Guile Scheme. A guild is
355 an association of independent craftspeople. A guildhall is where they meet.
356 This Guildhall aims to make a virtual space for Guile wizards and journeyfolk
359 On a practical level, Guildhall lets you share Scheme modules and programs
360 over the internet, and install code that has been shared by others. Guildhall
361 can handle dependencies, so when a program requires several libraries, and
362 each of those has further dependencies, all of the prerequisites for the
363 program can be installed in one go.")
364 (home-page "https://github.com/ijp/guildhall")
365 (license license:gpl3+))))
367 (define-public guile-aspell
369 (name "guile-aspell")
374 "http://lonelycactus.com/tarball/guile_aspell-"
378 "0vpk5xj9m9qc702z3khmkwhgpb949qbsyz8kw2qycda6qnxk0077"))))
379 (build-system gnu-build-system)
381 '(#:phases (modify-phases %standard-phases
382 (add-before 'configure 'set-guilesitedir
384 (substitute* "Makefile.in"
385 (("^guilesitedir =.*$")
387 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
389 (add-before 'build 'set-libaspell-file-name
390 (lambda* (#:key inputs #:allow-other-keys)
391 (let ((aspell (assoc-ref inputs "aspell")))
392 (substitute* "aspell.scm"
393 (("\"libaspell\\.so\"")
394 (string-append "\"" aspell
395 "/lib/libaspell\"")))
397 (native-inputs `(("pkg-config" ,pkg-config)))
398 (inputs `(("guile" ,guile-2.2)
400 (home-page "https://github.com/spk121/guile-aspell")
401 (synopsis "Spell-checking from Guile")
403 "guile-aspell is a Guile Scheme library for comparing a string against a
404 dictionary and suggesting spelling corrections.")
405 (license license:gpl3+)))
407 (define-public guile2.0-bash
408 ;; This project is currently retired. It was initially announced here:
409 ;; <https://lists.gnu.org/archive/html/guile-user/2015-02/msg00003.html>.
410 (let ((commit "1eabc563ca5692b3e08d84f1f0e6fd2283284469")
413 (name "guile2.0-bash")
414 (version (string-append "0.1.6-" revision "." (string-take commit 7)))
416 "https://anonscm.debian.org/cgit/users/kaction-guest/retired/dev.guile-bash.git")
424 "097vny990wp2qpjij6a5a5gwc6fxzg5wk56inhy18iki5v6pif1p"))
425 (file-name (string-append name "-" version "-checkout"))))
426 (build-system gnu-build-system)
429 ;; Add -I to match 'bash.pc' of Bash 4.4.
430 (list (string-append "CPPFLAGS=-I"
431 (assoc-ref %build-inputs "bash:include")
432 "/include/bash/include")
434 ;; The '.a' file is useless.
437 ;; Install 'lib/bash' as Bash 4.4 expects.
438 (string-append "--libdir=" (assoc-ref %outputs "out")
440 (native-inputs `(("pkg-config" ,pkg-config)
441 ("autoconf" ,autoconf)
442 ("automake" ,automake)
444 ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
445 ("gettext" ,gettext-minimal)
447 ;; Bash with loadable module support, for the test
449 ("bash-full" ,bash)))
450 (inputs `(("guile" ,guile-2.0)
451 ("bash:include" ,bash "include")))
452 (synopsis "Extend Bash using Guile")
454 "Guile-Bash provides a shared library and set of Guile modules,
455 allowing you to extend Bash in Scheme. Scheme interfaces allow you to access
456 the following aspects of Bash:
460 @item setting and getting Bash variables;
461 @item creating dynamic variables;
462 @item creating Bash functions with a Scheme implementation;
463 @item reader macro for output capturing;
464 @item reader macro for evaluating raw Bash commands.
470 enable -f ~/.guix-profile/lib/bash/libguile-bash.so scm
473 and then run @command{scm example.scm}.")
474 (license license:gpl3+))))
476 (define-public guile-bash
478 (inherit guile2.0-bash)
481 `(("guile" ,guile-3.0-latest)
482 ,@(assoc-remove! (package-inputs guile2.0-bash) "guile")))
485 #:phases (modify-phases %standard-phases
486 (add-after 'install 'install-guile
487 (lambda* (#:key inputs outputs #:allow-other-keys)
489 (string-append (assoc-ref outputs "out")
490 (assoc-ref inputs "guile") "/share")
491 (string-append (assoc-ref outputs "out") "/share"))
493 ,@(package-arguments guile2.0-bash)))))
495 (define-public guile-8sync
501 (uri (string-append "mirror://gnu/8sync/8sync-" version
505 "031wm13srak3wsnll7j2mbbi29g1pcm4swdb71ds9yn567pn20qw"))))
506 (build-system gnu-build-system)
507 (native-inputs `(("autoconf" ,autoconf)
508 ("automake" ,automake)
510 ("pkg-config" ,pkg-config)
511 ("texinfo" ,texinfo)))
513 `(#:phases (modify-phases %standard-phases
514 (add-before 'configure 'setenv
517 (setenv "GUILE_AUTO_COMPILE" "0")
519 (home-page "https://gnu.org/s/8sync/")
520 (synopsis "Asynchronous actor model library for Guile")
522 "GNU 8sync (pronounced \"eight-sync\") is an asynchronous programming
523 library for GNU Guile based on the actor model.
525 Note that 8sync is only available for Guile 2.2.")
526 (properties '((upstream-name . "8sync")))
527 (license license:lgpl3+)))
529 (define-public guile-daemon
531 (name "guile-daemon")
535 (uri (string-append "https://github.com/alezost/" name
536 "/releases/download/v" version
537 "/" name "-" version ".tar.gz"))
540 "08gaqrgjlly9k5si72vvpbr4xhq5v52l5ma5y6a7spid5dd057cy"))))
541 (build-system gnu-build-system)
543 `(("pkg-config" ,pkg-config)))
545 `(("guile" ,guile-3.0)))
546 (home-page "https://github.com/alezost/guile-daemon")
547 (synopsis "Evaluate code in a running Guile process")
549 "Guile-Daemon is a small Guile program that loads your initial
550 configuration file, and then reads and evaluates Guile expressions that
551 you send to a FIFO file.")
552 (license license:gpl3+)))
554 (define-public guile-dsv
561 (url "https://github.com/artyom-poptsov/guile-dsv")
562 (commit (string-append "v" version))))
563 (file-name (string-append name "-" version "-checkout"))
566 "1mvyc8i38j56frjh3p6vwziv8lrzlyqndz30663h5nwcp0044sdn"))))
567 (build-system gnu-build-system)
569 `(("autoconf" ,autoconf)
570 ("automake" ,automake)
571 ("pkg-config" ,pkg-config)
572 ("texinfo" ,texinfo)))
573 (inputs `(("guile" ,guile-3.0)))
574 (propagated-inputs `(("guile-lib" ,guile-lib)))
576 `(#:modules (((guix build guile-build-system)
577 #:select (target-guile-effective-version))
578 ,@%gnu-build-system-modules)
579 #:imported-modules ((guix build guile-build-system)
580 ,@%gnu-build-system-modules)
581 #:phases (modify-phases %standard-phases
582 (add-before 'configure 'set-guilesitedir
584 (substitute* "Makefile.in"
585 (("^guilesitedir =.*$")
587 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
588 (substitute* "modules/Makefile.in"
589 (("^guilesitedir =.*$")
591 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
592 (substitute* "modules/dsv/Makefile.in"
593 (("^guilesitedir =.*$")
595 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
597 (add-after 'install 'wrap-program
598 (lambda* (#:key inputs outputs #:allow-other-keys)
599 (let* ((out (assoc-ref outputs "out"))
600 (bin (string-append out "/bin"))
601 (guile-lib (assoc-ref inputs "guile-lib"))
602 (version (target-guile-effective-version))
603 (scm (string-append "/share/guile/site/"
605 (go (string-append "/lib/guile/"
606 version "/site-ccache")))
607 (wrap-program (string-append bin "/dsv")
608 `("GUILE_LOAD_PATH" prefix
609 (,(string-append out scm)
610 ,(string-append guile-lib scm)))
611 `("GUILE_LOAD_COMPILED_PATH" prefix
612 (,(string-append out go)
613 ,(string-append guile-lib go)))))
615 (home-page "https://github.com/artyom-poptsov/guile-dsv")
616 (synopsis "DSV module for Guile")
618 "Guile-DSV is a GNU Guile module for working with the
619 delimiter-separated values (DSV) data format. Guile-DSV supports the
620 Unix-style DSV format and RFC 4180 format.")
621 (license license:gpl3+)))
623 (define-public guile2.2-dsv
626 (name "guile2.2-dsv")
627 (inputs `(("guile" ,guile-2.2)))
628 (propagated-inputs `(("guile-lib" ,guile2.2-lib)))))
630 (define-public guile-fibers
632 (name "guile-fibers")
636 (uri (string-append "https://wingolog.org/pub/fibers/fibers-"
640 "0vjkg72ghgdgphzbjz9ig8al8271rq8974viknb2r1rg4lz92ld0"))
641 (modules '((guix build utils)))
644 ;; Allow builds with Guile 3.0.
645 (substitute* "configure"
646 (("search=\"2\\.2\"")
647 "search=\"3.0 2.2\""))
649 ;; Explicitly include system headers rather than relying on
650 ;; <libguile.h> to do it for us.
651 (substitute* "epoll.c"
652 (("#include.*libguile\\.h.*$" all)
653 (string-append "#include <unistd.h>\n"
654 "#include <string.h>\n"
657 ;; Import (ice-9 threads) for 'current-processor-count'.
658 (substitute* "tests/channels.scm"
659 (("#:use-module \\(fibers\\)")
660 (string-append "#:use-module (fibers)\n"
661 "#:use-module (ice-9 threads)\n")))
664 ;; fixes a resource leak that causes crashes in the tests
665 (search-patches "guile-fibers-destroy-peer-schedulers.patch"))))
666 (build-system gnu-build-system)
668 '(;; The code uses 'scm_t_uint64' et al., which are deprecated in 3.0.
669 #:configure-flags '("CFLAGS=-Wno-error=deprecated-declarations")
670 #:phases (modify-phases %standard-phases
671 (add-after 'install 'mode-guile-objects
672 (lambda* (#:key outputs #:allow-other-keys)
673 ;; .go files are installed to "lib/guile/X.Y/cache".
674 ;; This phase moves them to "…/site-ccache".
675 (let* ((out (assoc-ref outputs "out"))
676 (lib (string-append out "/lib/guile"))
677 (old (car (find-files lib "^ccache$"
679 (new (string-append (dirname old)
681 (rename-file old new)
684 `(("texinfo" ,texinfo)
685 ("pkg-config" ,pkg-config)))
687 `(("guile" ,guile-3.0)))
688 (synopsis "Lightweight concurrency facility for Guile")
690 "Fibers is a Guile library that implements a a lightweight concurrency
691 facility, inspired by systems like Concurrent ML, Go, and Erlang. A fiber is
692 like a \"goroutine\" from the Go language: a lightweight thread-like
693 abstraction. Systems built with Fibers can scale up to millions of concurrent
694 fibers, tens of thousands of concurrent socket connections, and many parallel
695 cores. The Fibers library also provides Concurrent ML-like channels for
696 communication between fibers.
698 Note that Fibers makes use of some Guile 2.1/2.2-specific features and
699 is not available for Guile 2.0.")
700 (home-page "https://github.com/wingo/fibers")
701 (license license:lgpl3+)))
703 (define-public guile2.0-fibers
705 (inherit guile-fibers)
706 (name "guile2.2-fibers")
707 (inputs `(("guile" ,guile-2.2)))))
709 (define-public guile-filesystem
711 (name "guile-filesystem")
716 (url "https://gitlab.com/leoprikler/guile-filesystem.git")
718 (file-name (git-file-name name version))
721 "1shmkc0y9r2sj3kw7hrsnamnp7y8xifkhf3m3rnfxczqg63k67vy"))))
722 (build-system gnu-build-system)
724 `(("autoconf" ,autoconf)
725 ("automake" ,automake)
726 ("pkg-config" ,pkg-config)
727 ("texinfo" ,texinfo)))
729 `(("guile" ,guile-3.0)))
730 (home-page "https://gitlab.com/leoprikler/guile-filesystem")
731 (synopsis "Complementary library to Guile's built-in file system procedures")
732 (description "@code{guile-filesystem} provides a set of utility functions,
733 that augment Guile's support for handling files and their names.")
734 (license license:lgpl3+)))
736 (define-public guile2.0-filesystem
738 (inherit guile-filesystem)
739 (name "guile2.0-filesystem")
740 (inputs `(("guile" ,guile-2.0)))))
742 (define-public guile2.2-filesystem
744 (inherit guile-filesystem)
745 (name "guile2.2-filesystem")
746 (inputs `(("guile" ,guile-2.2)))))
748 (define-public guile-syntax-highlight
750 (name "guile-syntax-highlight")
754 (uri (string-append "https://files.dthompson.us/"
755 "guile-syntax-highlight/"
756 "guile-syntax-highlight-"
760 "1p771kq15x83483m23bhah1sz6vkalg3drm7x279f4j1cxligkzi"))
761 (modules '((guix build utils)))
764 ;; Allow builds with Guile 3.0.
765 (substitute* "configure"
769 (build-system gnu-build-system)
771 `(("pkg-config" ,pkg-config)))
773 `(("guile" ,guile-3.0)))
774 (synopsis "General-purpose syntax highlighter for GNU Guile")
775 (description "Guile-syntax-highlight is a general-purpose syntax
776 highlighting library for GNU Guile. It can parse code written in various
777 programming languages into a simple s-expression that can be converted to
778 HTML (via SXML) or any other format for rendering.")
779 (home-page "https://dthompson.us/projects/guile-syntax-highlight.html")
780 (license license:lgpl3+)))
782 ;; gitile requires a more recent version than the latest release.
783 (define-public guile-syntax-highlight-for-gitile
784 (let ((commit "897fa5156ff41588e0d281eb00e4e94de63ccd8a")
787 (inherit guile-syntax-highlight)
788 (version (git-version "0.1" revision commit))
792 (url "https://git.dthompson.us/guile-syntax-highlight.git")
794 (file-name (git-file-name "guile-syntax-highlight" version))
797 "18zlg4mkgd3swgv2ggfz91ivnnzc0zhvc9ybgrxg1y762va9hyvj"))))
799 `(("autoconf" ,autoconf)
800 ("automake" ,automake)
802 ,@(package-native-inputs guile-syntax-highlight)))
803 (properties '((hidden? . #t))))))
805 (define-public guile2.2-syntax-highlight
807 (inherit guile-syntax-highlight)
808 (name "guile2.2-syntax-highlight")
809 (inputs `(("guile" ,guile-2.2)))))
811 (define-public guile-sjson
817 (uri (string-append "https://dustycloud.org/misc/sjson-" version
821 "1mzmapln79vv10qxaggz9qwcdbag3jnrj19xx8bgkmxss8h03sv3"))
822 (modules '((guix build utils)))
825 ;; Allow builds with Guile 3.0.
826 (substitute* "configure"
830 (build-system gnu-build-system)
832 `(("autoconf" ,autoconf)
833 ("automake" ,automake)
834 ("pkg-config" ,pkg-config)))
836 `(("guile" ,guile-3.0)))
837 (home-page "https://gitlab.com/dustyweb/guile-sjson")
838 (synopsis "S-expression based json reader/writer for Guile")
839 (description "guile-sjson is a json reader/writer for Guile.
840 It has a nice, simple s-expression based syntax.")
841 (license license:lgpl3+)))
843 (define-public guile2.2-sjson
845 (inherit guile-sjson)
846 (name "guile2.2-sjson")
847 (inputs `(("guile" ,guile-2.2)))))
849 (define-public guile-squee
850 (let ((commit "c1497a216e881cfde39d6aa7c73d0bf6b497c89b")
854 (version (string-append "0-" revision "." (string-take commit 7)))
858 (url "https://notabug.org/cwebber/guile-squee.git")
860 (file-name (git-file-name name version))
863 "1alskrplnyl1n5wb39drn72cwplp47a8cpdd1n9cdnw3jhk5p12p"))))
864 (build-system guile-build-system)
867 (modify-phases %standard-phases
868 (add-after 'unpack 'patch
869 (lambda* (#:key inputs #:allow-other-keys)
870 (substitute* "squee.scm"
871 (("dynamic-link \"libpq\"")
874 (assoc-ref inputs "postgresql") "/lib/libpq.so"
878 `(("postgresql" ,postgresql)))
880 `(("guile" ,guile-3.0)))
881 (home-page "https://notabug.org/cwebber/guile-squee")
882 (synopsis "Connect to PostgreSQL using Guile")
884 "@code{squee} is a Guile library for connecting to PostgreSQL databases
885 using Guile's foreign function interface.")
886 (license license:lgpl3+))))
888 (define-public guile2.2-squee
890 (inherit guile-squee)
891 (name "guile2.2-squee")
892 (native-inputs `(("guile" ,guile-2.2)
893 ,@(alist-delete "guile"
894 (package-native-inputs guile-squee))))))
896 (define-public guile-colorized
898 (name "guile-colorized")
904 (url "https://gitlab.com/NalaGinrut/guile-colorized.git")
905 (commit (string-append "v" version))))
906 (file-name (git-file-name name version))
908 (base32 "10mv8c63159r3qvwwdvsgnsvdg7nc2ghak85zapwqpv4ywrqp9zc"))))
909 (build-system guile-build-system)
911 `(("guile" ,guile-3.0)))
912 (home-page "https://gitlab.com/NalaGinrut/guile-colorized")
913 (synopsis "Colorized REPL for Guile")
915 "Guile-colorized provides you with a colorized REPL for GNU Guile.")
916 (license license:gpl3+)))
918 (define-public guile2.2-colorized
920 (inherit guile-colorized)
921 (name "guile2.2-colorized")
922 (native-inputs `(("guile" ,guile-2.2)))))
924 (define-public guile-pfds
928 (home-page "https://github.com/ijp/pfds")
933 (commit (string-append "v" version))))
936 "19y33wg94pf0n98dkfqd1zbw93fgky4sawxsxl6s3vyqwl0yi5vh"))
937 (file-name (string-append name "-" version "-checkout"))))
938 (build-system guile-build-system)
940 '(#:source-directory "src"
941 #:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
942 #:phases (modify-phases %standard-phases
943 (add-after 'unpack 'patch-sources
944 ;; Initially reported here:
945 ;; https://github.com/ijp/pfds/pull/6, and merged into
946 ;; other projects such as IronScheme (see:
947 ;; https://github.com/IronScheme/pfds/pull/1).
949 (substitute* "hamts.sls"
950 (("subtrie-vector vector")
951 "subtrie-vector trie"))))
952 (add-after 'patch-sources 'move-files-around
954 ;; Move files under a pfds/ directory to reflect the
957 (for-each (lambda (file)
959 file (string-append "src/pfds/" file)))
974 `(("guile" ,guile-3.0)))
975 (synopsis "Purely functional data structures for Guile")
977 "This package provides purely functional data structures written in R6RS
978 Scheme and compiled for Guile. It has been tested with Racket, Guile 2,
979 Vicare Scheme and IronScheme. Right now it contains:
987 @item priority search queues (PSQs)
991 @item hash array mapped tries (HAMTs).
993 (license license:bsd-3)))
995 (define-public guile2.0-pg
1001 (uri (string-append "mirror://savannah/guile-pg/guile-pg-"
1005 "1fizcqga96p9n2jjhi9nprhry20hg9wvcl5b8gya4vhzwz6qhysp"))))
1006 (build-system gnu-build-system)
1009 (modify-phases %standard-phases
1010 (add-before 'install 'patch-src/Makefile
1011 (lambda* (#:key outputs #:allow-other-keys)
1012 (substitute* "src/Makefile"
1013 (("\\/share\\/guile\\/site") "/share/guile/site/2.0"))
1016 `(("procps" ,procps) ; fake-cluster-control uses ps
1017 ("guile" ,guile-2.0)
1018 ("postgresql" ,postgresql)))
1020 `(("guile" ,guile-2.0)
1021 ("postgresql" ,postgresql)))
1022 (home-page "https://www.nongnu.org/guile-pg/")
1023 (synopsis "Guile modules for accessing PostgreSQL")
1025 "Guile-PG is a collection of modules for Guile allowing access to the
1026 PostgreSQL RDBMS from Scheme programs.
1028 This has been tested against PostgreSQL 10 through 13, but currently only
1029 works with Guile 1.4.x to 2.0.x.")
1030 (license license:gpl3+)))
1032 (define-public guile-prometheus
1033 (let ((commit "35dc26c0ea44c3d70f1819f240d84e2cbb4b7b4c")
1036 (name "guile-prometheus")
1037 (version (git-version "0" revision commit))
1041 (url "https://git.cbaines.net/git/guile/prometheus")
1045 "07822jj4appw37lf444kc4xlgl7nm64mgldag56072l55kwashgb"))
1046 (file-name (string-append name "-" version "-checkout"))))
1047 (build-system gnu-build-system)
1049 `(("pkg-config" ,pkg-config)
1050 ("autoconf" ,autoconf)
1051 ("automake" ,automake)
1052 ("guile" ,guile-3.0)))
1054 `(("guile" ,guile-3.0)))
1055 (home-page "https://git.cbaines.net/guile/prometheus")
1056 (synopsis "Prometheus client library for Guile")
1058 "This Guile library provides instrumentation code intended to be used
1059 with the Prometheus time series service. Counter, gauge and histogram metric
1060 types are supported.")
1061 (license license:gpl3+))))
1063 (define-public guile2.2-pfds
1065 (inherit guile-pfds)
1066 (name "guile2.2-pfds")
1067 (native-inputs `(("guile" ,guile-2.2)))
1069 (substitute-keyword-arguments (package-arguments guile-pfds)
1071 `(modify-phases ,phases
1072 (delete 'work-around-guile-bug)
1073 (add-after 'move-files-around 'sls->scm
1075 ;; In Guile <= 2.2.4, there's no way to tell 'guild
1076 ;; compile' to accept the ".sls" extension. So...
1077 (for-each (lambda (file)
1080 (string-drop-right file 4)
1082 (find-files "." "\\.sls$"))
1085 (define-public guile-aa-tree
1087 (name "guile-aa-tree")
1091 (uri (string-append "mirror://savannah/guile-aa-tree/guile-aa-tree-"
1095 "0044c105r3q9vpl17pv3phl1b79kjm1llhkakqgiasixyav01blh"))))
1096 (build-system guile-build-system)
1097 (native-inputs `(("guile" ,guile-2.2)))
1098 ;; https://savannah.nongnu.org/projects/guile-aa-tree
1099 (home-page "https://qlfiles.net/guile-aa-tree/")
1100 (synopsis "AA tree data structure for Guile")
1102 "This package provides an implementation of @dfn{AA trees}, a
1103 self-balancing binary tree data structure, for Guile. It ensure @math{O(log
1104 n)} worst case performance for core operations. The module provides
1105 non-mutating insert, delete, and search operations, with support for
1106 convenient nested tree operations.")
1107 (license license:gpl3+)))
1109 (define-public guile-simple-zmq
1110 (let ((commit "b2ea97e5a0e7417ce718b27b6fd55a3146364b82")
1113 (name "guile-simple-zmq")
1114 (version (git-version "0.0.0" revision commit))
1119 (url "https://github.com/jerry40/guile-simple-zmq")
1123 "08qvcxx0njz9545xa0lq3wpf55v9cl9nbb640ry1lig11wpymqxb"))
1124 (file-name (git-file-name name version))))
1125 (build-system gnu-build-system)
1128 '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
1131 `(("guile" ,guile-3.0)))
1133 `(("autoconf" ,autoconf)
1134 ("automake" ,automake)
1135 ("pkg-config" ,pkg-config)
1136 ("zeromq" ,zeromq)))
1137 (home-page "https://github.com/jerry40/guile-simple-zmq")
1138 (synopsis "Guile wrapper over ZeroMQ library")
1140 "This package provides a Guile programming interface to the ZeroMQ
1141 messaging library.")
1142 (license license:gpl3+))))
1144 (define-public guile2.2-simple-zmq
1146 (inherit guile-simple-zmq)
1147 (name "guile2.2-simple-zmq")
1148 (native-inputs `(("guile" ,guile-2.2)))))
1150 (define-public jupyter-guile-kernel
1151 (let ((commit "f25fb90b95529b17a006a807bd04e6aee12ea304")
1154 (name "jupyter-guile-kernel")
1155 (version (git-version "0.0.0" revision commit))
1160 (url "https://github.com/jerry40/guile-kernel")
1162 (file-name (git-file-name name version))
1165 "0zr1fasdb2yv9kn21yll993y9higqss4jnfs030ndhjb93raa9sr"))))
1166 (build-system guile-build-system)
1168 '(#:phases (modify-phases %standard-phases
1169 (add-after 'unpack 'set-openssl-file-name
1170 (lambda* (#:key inputs #:allow-other-keys)
1171 ;; Record the absolute file name of the 'openssl'
1173 (substitute* "src/hmac.scm"
1175 (string-append (assoc-ref inputs "openssl")
1179 ;; XXX: The code uses 'include' to include its own source
1180 ;; files, and "-L src" isn't enough in this case.
1181 (add-before 'build 'chdir
1182 (lambda _ (chdir "src") #t))
1183 (add-after 'build 'chdir-back
1184 (lambda _ (chdir "..") #t))
1186 (add-after 'install 'install-kernel
1187 (lambda* (#:key inputs outputs #:allow-other-keys)
1188 (let* ((out (assoc-ref outputs "out"))
1189 (json (assoc-ref inputs "guile-json"))
1190 (zmq (assoc-ref inputs "guile-simple-zmq"))
1191 (deps (list json zmq))
1193 out "/share/jupyter/kernels/guile"))
1194 (effective (target-guile-effective-version)))
1196 (install-file "src/kernel.json" dir)
1198 ;; Fix hard-coded file name in the kernel.
1199 (substitute* (string-append dir "/kernel.json")
1200 (("/usr/local/.*/guile-jupyter-kernel.scm")
1201 (string-append out "/share/guile/site/"
1202 (target-guile-effective-version)
1203 "/guile-jupyter-kernel.scm"))
1205 (string-append "\"" (assoc-ref inputs "guile")
1208 ;; Add '-L' and '-C' flags so that the kernel
1209 ;; finds its dependencies.
1210 (let ((-L (map (lambda (item)
1211 (string-append "\"" item
1212 "/share/guile/site/"
1215 (-C (map (lambda (item)
1216 (string-append "\"" item
1221 (string-append "--no-auto-compile\""
1222 (string-join -L ", \"-L\", "
1224 (string-join -C ", \"-C\", "
1229 `(("openssl" ,openssl)
1230 ("guile" ,guile-3.0)
1231 ("guile-json" ,guile-json-3)
1232 ("guile-simple-zmq" ,guile-simple-zmq)))
1233 (synopsis "Guile kernel for the Jupyter Notebook")
1235 "This package provides a Guile 2.x kernel for the Jupyter Notebook. It
1236 allows users to interact with the Guile REPL through Jupyter.")
1237 (home-page "https://github.com/jerry40/guile-kernel")
1238 (license license:gpl3+))))
1240 (define-public guile-sparql
1242 (name "guile-sparql")
1247 "https://github.com/roelj/guile-sparql/releases/download/"
1248 version "/guile-sparql-" version ".tar.gz"))
1250 (base32 "1jf4972f9fpm0rd865xpnc9mzl3xv6vhfnp0iygadydy905z9nln"))))
1251 (build-system gnu-build-system)
1253 `(("pkg-config" ,pkg-config)))
1255 `(("guile" ,guile-3.0)))
1256 (home-page "https://github.com/roelj/guile-sparql")
1257 (synopsis "SPARQL module for Guile")
1258 (description "This package provides the functionality to query a SPARQL
1259 endpoint. Additionally, it provides an interface to write SPARQL queries
1260 using S-expressions.")
1261 (license license:gpl3+)))
1263 (define-public guile-debbugs
1265 (name "guile-debbugs")
1269 (uri (string-append "mirror://gnu/guile-debbugs/guile-debbugs-"
1273 "1cc63nw3xdfjrfk8c58r6d5lidmfq5cpqcy32yd5xp81yccprvn9"))))
1274 (build-system gnu-build-system)
1276 `(("guile-email" ,guile-email)))
1278 `(("guile" ,guile-3.0)
1279 ("pkg-config" ,pkg-config)))
1280 (home-page "https://savannah.gnu.org/projects/guile-debbugs/")
1281 (synopsis "Guile interface to the Debbugs bug tracking service")
1283 "This package provides a Guile library to communicate with a Debbugs bug
1284 tracker's SOAP service, such as @url{https://bugs.gnu.org}.")
1285 (license license:gpl3+)))
1287 (define-public guile-email
1289 (name "guile-email")
1295 "https://guile-email.systemreboot.net/releases/guile-email-"
1299 "1rc8r0fgvflnyq5ckl7ii8sghpsgpkzxa8vskjr1ak2kyar6m35k"))))
1300 (build-system gnu-build-system)
1302 `(("pkg-config" ,pkg-config)
1305 `(("guile" ,guile-3.0)))
1307 '(#:make-flags '("GUILE_AUTO_COMPILE=0"))) ; to prevent guild warnings
1308 (home-page "https://guile-email.systemreboot.net")
1309 (synopsis "Guile email parser")
1310 (description "guile-email is a collection of email utilities implemented
1311 in pure guile. It supports parsing MIME (Multipurpose Internet Mail
1312 Extensions) compliant email messages and reading emails from the mbox
1314 (license license:agpl3+)))
1316 (define-public guile-email-latest
1317 (let ((commit "ca0520a33c9042a68691d85c6849f88412ca8357")
1320 (inherit guile-email)
1321 (name "guile-email-latest")
1322 (version (git-version "0.2.2" revision commit))
1327 (url "https://git.systemreboot.net/guile-email")
1329 (file-name (git-file-name name version))
1332 "1l5mikalawq83786rnb9zky908ncsd5dna9vyz6bx6kc2frrl7xv"))))
1334 `(("pkg-config" ,pkg-config)
1335 ("autoconf" ,autoconf)
1336 ("automake" ,automake)
1337 ("texinfo" ,texinfo))))))
1339 (define-public guile2.2-email
1341 (inherit guile-email)
1342 (name "guile2.2-email")
1343 (inputs `(("guile" ,guile-2.2)
1344 ,@(alist-delete "guile" (package-inputs guile-email))))))
1346 (define-public guile-newt
1353 (url "https://gitlab.com/mothacehe/guile-newt")
1355 (file-name (git-file-name name version))
1358 "1gksd1lzgjjh1p9vczghg8jw995d22hm34kbsiv8rcryirv2xy09"))))
1359 (build-system gnu-build-system)
1362 '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
1364 `(("guile" ,guile-3.0)
1367 `(("autoconf" ,autoconf)
1368 ("automake" ,automake)
1369 ("pkg-config" ,pkg-config)))
1370 (synopsis "Guile bindings to Newt")
1372 "This package provides bindings for Newt, a programming library for
1373 color text mode, widget based user interfaces. The bindings are written in pure
1374 Scheme by using Guile’s foreign function interface.")
1375 (home-page "https://gitlab.com/mothacehe/guile-newt")
1376 (license license:gpl3+)))
1378 (define-public guile2.2-newt
1380 (inherit guile-newt)
1381 (name "guile2.2-newt")
1382 (inputs `(("guile" ,guile-2.2)
1383 ,@(alist-delete "guile" (package-inputs guile-newt))))))
1385 (define-public guile-mastodon
1386 (let ((commit "74b75bcf547df92acee1e0466ecd7ec07f775392")
1389 (name "guile-mastodon")
1390 (version (git-version "0.0.1" revision commit))
1394 (url "https://framagit.org/prouby/guile-mastodon.git")
1396 (file-name (string-append name "-" version "-checkout"))
1399 "1wx5h6wa9c0na8mrnr2nv1nzjvq68zyrly8yyp11dsskhaw4y33h"))))
1400 (build-system gnu-build-system)
1402 `(("autoconf" ,autoconf)
1403 ("automake" ,automake)
1404 ("emacs" ,emacs-minimal)
1405 ("pkg-config" ,pkg-config)
1406 ("texinfo" ,texinfo)))
1408 `(("guile" ,guile-3.0)
1410 ("guile-json" ,guile-json-4)))
1411 (home-page "https://framagit.org/prouby/guile-mastodon")
1412 (synopsis "Guile Mastodon REST API module")
1413 (description "This package provides Guile modules to access the
1414 @uref{https://docs.joinmastodon.org/api/, REST API of Mastodon}, a federated
1415 microblogging service.")
1416 (license license:gpl3+))))
1418 (define-public guile-parted
1420 (name "guile-parted")
1425 (url "https://gitlab.com/mothacehe/guile-parted")
1427 (file-name (git-file-name name version))
1430 "1ar6n38br3h1jm54yy6d54rpqdgsy7pmnj3nqdzqrfk8z0kx0rm9"))
1431 (modules '((guix build utils)))))
1432 (build-system gnu-build-system)
1435 '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
1437 `(("guile" ,guile-3.0)
1438 ("parted" ,parted)))
1440 `(("guile-bytestructures" ,guile-bytestructures)))
1442 `(("autoconf" ,autoconf)
1443 ("automake" ,automake)
1444 ("pkg-config" ,pkg-config)))
1445 (synopsis "Guile bindings to GNU Parted")
1447 "This package provides bindings for GNU Parted library, a C library
1448 allowing disk partition tables creation and manipulation. The bindings are
1449 written in pure Scheme by using Guile's foreign function interface.")
1450 (home-page "https://gitlab.com/mothacehe/guile-parted")
1451 (license license:gpl3+)))
1453 (define-public guile2.2-parted
1455 (inherit guile-parted)
1456 (name "guile2.2-parted")
1457 (inputs `(("guile" ,guile-2.2)
1458 ,@(alist-delete "guile" (package-inputs guile-parted))))
1460 `(("guile-bytestructures" ,guile2.2-bytestructures)))))
1462 (define-public guile-xosd
1468 (uri (string-append "https://github.com/alezost/" name
1469 "/releases/download/v" version
1470 "/" name "-" version ".tar.gz"))
1473 "10r29bpyrsvjalnzkam2falj9k34lvxmch05zs606zp1nk93whp3"))))
1474 (build-system gnu-build-system)
1477 (modify-phases %standard-phases
1478 (add-before 'build 'set-cpath
1479 (lambda* (#:key inputs #:allow-other-keys)
1482 (assoc-ref inputs "guile") "/include/guile/3.0:"
1483 (or (getenv "CPATH") "")))
1486 `(("pkg-config" ,pkg-config)))
1488 `(("guile" ,guile-3.0)
1490 ("libxext" ,libxext)
1491 ("libxinerama" ,libxinerama)
1493 (home-page "https://github.com/alezost/guile-xosd")
1494 (synopsis "XOSD bindings for Guile")
1496 "Guile-XOSD provides Guile bindings for @code{libxosd},
1497 @uref{http://sourceforge.net/projects/libxosd/, the X On Screen Display
1499 (license license:gpl3+)))
1501 (define-public guile-dbi
1508 (url "https://github.com/opencog/guile-dbi")
1509 (commit (string-append "guile-dbi-" version))))
1510 (file-name (git-file-name name version))
1513 "123m4j82bi60s1v95pjh4djb7bh6zdwmljbpyg7zq8ni2gyal7lw"))))
1514 (build-system gnu-build-system)
1516 `(#:modules (((guix build guile-build-system)
1517 #:select (target-guile-effective-version))
1518 ,@%gnu-build-system-modules)
1519 #:imported-modules ((guix build guile-build-system)
1520 ,@%gnu-build-system-modules)
1522 (list (string-append
1523 "--with-guile-site-dir=" %output "/share/guile/site/"
1524 (target-guile-effective-version (assoc-ref %build-inputs "guile"))))
1526 (modify-phases %standard-phases
1527 (add-after 'unpack 'chdir
1529 ;; The upstream Git repository contains all the code, so change
1530 ;; to the directory specific to guile-dbi.
1531 (chdir "guile-dbi")))
1532 (add-after 'install 'patch-extension-path
1533 (lambda* (#:key inputs outputs #:allow-other-keys)
1534 (let* ((out (assoc-ref outputs "out"))
1535 (dbi.scm (string-append out "/share/guile/site/"
1536 (target-guile-effective-version
1537 (assoc-ref inputs "guile"))
1539 (ext (string-append out "/lib/libguile-dbi")))
1540 (substitute* dbi.scm (("libguile-dbi") ext))))))))
1542 `(("autoconf" ,autoconf)
1543 ("automake" ,automake)
1544 ("libtool" ,libtool)
1546 ("texinfo" ,texinfo)))
1548 `(("guile" ,guile-2.2)))
1549 (synopsis "Guile database abstraction layer")
1550 (home-page "https://github.com/opencog/guile-dbi")
1552 "guile-dbi is a library for Guile that provides a convenient interface to
1553 SQL databases. Database programming with guile-dbi is generic in that the same
1554 programming interface is presented regardless of which database system is used.
1555 It currently supports MySQL, Postgres and SQLite3.")
1556 (license license:gpl2+)
1557 (native-search-paths
1558 (list (search-path-specification
1559 (variable "GUILE_DBD_PATH")
1560 (files '("lib")))))))
1562 (define-public guile-dbd-sqlite3
1565 (name "guile-dbd-sqlite3")
1567 (substitute-keyword-arguments (package-arguments guile-dbi)
1569 `(modify-phases ,phases
1572 ;; The upstream Git repository contains all the code, so change
1573 ;; to the directory specific to guile-dbd-sqlite3.
1574 (chdir "guile-dbd-sqlite3")))
1575 (delete 'patch-extension-path)))))
1577 `(("sqlite" ,sqlite)
1580 `(("guile-dbi" ,guile-dbi) ; only required for headers
1581 ("pkg-config" ,pkg-config)
1582 ,@(package-native-inputs guile-dbi)))
1583 (synopsis "Guile DBI driver for SQLite")
1585 "guile-dbi is a library for Guile that provides a convenient interface to
1586 SQL databases. This package implements the interface for SQLite.")))
1588 (define-public guile-dbd-postgresql
1591 (name "guile-dbd-postgresql")
1593 (substitute-keyword-arguments (package-arguments guile-dbi)
1595 `(modify-phases ,phases
1598 ;; The upstream Git repository contains all the code, so change
1599 ;; to the directory specific to guile-dbd-mysql.
1600 (chdir "guile-dbd-postgresql")))
1601 (add-after 'chdir 'patch-src
1603 (substitute* "src/guile-dbd-postgresql.c"
1604 (("postgresql/libpq-fe\\.h") "libpq-fe.h"))))
1605 (delete 'patch-extension-path)))))
1607 `(("postgresql" ,postgresql)
1610 `(("guile-dbi" ,guile-dbi) ; only required for headers
1611 ,@(package-native-inputs guile-dbi)))
1612 (synopsis "Guile DBI driver for PostgreSQL")
1614 "@code{guile-dbi} is a library for Guile that provides a convenient
1615 interface to SQL databases. This package implements the interface for
1618 (define-public guile-dbd-mysql
1621 (name "guile-dbd-mysql")
1623 (substitute-keyword-arguments (package-arguments guile-dbi)
1625 `(modify-phases ,phases
1628 ;; The upstream Git repository contains all the code, so change
1629 ;; to the directory specific to guile-dbd-mysql.
1630 (chdir "guile-dbd-mysql")))
1631 (add-after 'chdir 'patch-src
1633 (substitute* "configure.ac"
1634 (("mariadbclient") "mariadb"))
1635 (substitute* "src/guile-dbd-mysql.c"
1636 (("<mariadb/") "<mysql/"))))
1637 (delete 'patch-extension-path)))))
1639 `(("mariadb" ,mariadb "dev")
1640 ("mariadb" ,mariadb "lib")
1643 `(("guile-dbi" ,guile-dbi) ; only required for headers
1644 ,@(package-native-inputs guile-dbi)))
1645 (synopsis "Guile DBI driver for MySQL")
1646 (description "@code{guile-dbi} is a library for Guile that provides a
1647 convenient interface to SQL databases. This package implements the interface
1649 (license license:gpl2+)))
1651 (define-public guile-config
1653 (name "guile-config")
1659 (url "https://gitlab.com/a-sassmannshausen/guile-config")
1661 (file-name (git-file-name name version))
1663 "09028ylbddjdp3d67zdjz3pnsjqz6zs2bfck5rr3dfaa0qjap40n"))))
1664 (build-system gnu-build-system)
1666 `(("autoconf" ,autoconf)
1667 ("automake" ,automake)
1668 ("pkg-config" ,pkg-config)
1669 ("texinfo" ,texinfo)))
1670 (inputs `(("guile" ,guile-3.0)))
1672 "Guile application configuration parsing library.")
1674 "Guile Config is a library providing a declarative approach to
1675 application configuration specification. The library provides clean
1676 configuration declaration forms, and processors that take care of:
1677 configuration file creation; configuration file parsing; command-line
1678 parameter parsing using getopt-long; basic GNU command-line parameter
1679 generation (--help, --usage, --version); automatic output generation for the
1680 above command-line parameters.")
1682 "https://gitlab.com/a-sassmannshausen/guile-config")
1683 (license license:gpl3+)))
1685 (define-public guile2.2-config
1687 (inherit guile-config)
1688 (name "guile2.2-config")
1689 (inputs `(("guile" ,guile-2.2)
1690 ,@(alist-delete "guile" (package-inputs guile-config))))))
1692 (define-public guile-hall
1700 (url "https://gitlab.com/a-sassmannshausen/guile-hall")
1702 (file-name "guile-hall-0.3.1-checkout")
1704 (base32 "1s24nigdra6rvclvy15l2aw00c3aq9vv8qwxylzs60darbl36206"))))
1705 (build-system gnu-build-system)
1710 ,@%gnu-build-system-modules)
1714 (add-after 'install 'hall-wrap-binaries
1715 (lambda* (#:key inputs outputs #:allow-other-keys)
1716 (let* ((compiled-dir
1717 (lambda (out version)
1719 out "/lib/guile/" version "/site-ccache")))
1721 (lambda (out version)
1723 out "/share/guile/site"
1724 (if (string-null? version) "" "/") version)))
1726 (lambda (env modules path)
1727 (list env ":" 'prefix
1729 (map (lambda (input)
1731 (assoc-ref inputs input)
1733 ,''("guile-config"))))))
1734 (out (assoc-ref outputs "out"))
1735 (bin (string-append out "/bin/"))
1736 (site (uncompiled-dir out "")))
1737 (match (scandir site)
1742 (string-append bin file)
1745 (uncompiled-dir out version)
1746 (uncompiled-dir "" version))
1748 "GUILE_LOAD_COMPILED_PATH"
1749 (compiled-dir out version)
1750 (compiled-dir "" version))))
1754 `(("autoconf" ,autoconf)
1755 ("automake" ,automake)
1756 ("pkg-config" ,pkg-config)
1757 ("texinfo" ,texinfo)))
1758 (inputs `(("guile" ,guile-3.0)))
1760 `(("guile-config" ,guile-config)))
1761 (synopsis "Guile project tooling")
1763 "Hall is a command-line application and a set of Guile libraries that
1764 allow you to quickly create and publish Guile projects. It allows you to
1765 transparently support the GNU build system, manage a project hierarchy &
1766 provides tight coupling to Guix.")
1767 (home-page "https://gitlab.com/a-sassmannshausen/guile-hall")
1768 (license license:gpl3+)))
1770 (define-public guile2.2-hall
1772 (inherit guile-hall)
1773 (name "guile2.2-hall")
1774 (inputs `(("guile" ,guile-2.2)
1775 ,@(alist-delete "guile" (package-inputs guile-hall))))
1777 `(("guile-config" ,guile2.2-config)
1778 ,@(alist-delete "guile-config"
1779 (package-propagated-inputs guile-hall))))))
1781 (define-public guile-ics
1788 (url "https://github.com/artyom-poptsov/guile-ics")
1789 (commit (string-append "v" version))))
1790 (file-name (string-append name "-" version "-checkout"))
1793 "0qjjvadr7gibdq9jvwkmlkb4afsw9n2shfj9phpiadinxk3p4m2g"))
1794 (modules '((guix build utils)))
1797 ;; Allow builds with Guile 3.0.
1798 (substitute* "configure.ac"
1800 "GUILE_PKG([3.0 2.2 2.0])\n"))
1802 (build-system gnu-build-system)
1804 `(("autoconf" ,autoconf)
1805 ("automake" ,automake)
1806 ("texinfo" ,texinfo)
1807 ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
1808 ("gettext" ,gettext-minimal)
1809 ("pkg-config" ,pkg-config)))
1810 (inputs `(("guile" ,guile-3.0) ("which" ,which)))
1811 (propagated-inputs `(("guile-lib" ,guile-lib)))
1812 (home-page "https://github.com/artyom-poptsov/guile-ics")
1813 (synopsis "Guile parser library for the iCalendar format")
1815 "Guile-ICS is an iCalendar (RFC5545) format parser library written in
1816 pure Scheme. The library can be used to read and write iCalendar data.
1818 The library is shipped with documentation in Info format and usage examples.")
1819 (license license:gpl3+)))
1821 (define-public guile2.2-ics
1824 (name "guile2.2-ics")
1825 (inputs `(("guile" ,guile-2.2)
1826 ,@(alist-delete "guile" (package-inputs guile-ics))))
1827 (propagated-inputs `(("guile-lib" ,guile2.2-lib)))))
1829 (define-public guile-imanifest
1830 (let ((commit "ccd5a2111b008d778106f5595a3a585954d95d0")
1833 (name "guile-imanifest")
1834 (version (git-version "0.0.0" revision commit))
1838 (url "https://git.sr.ht/~brown121407/guile-imanifest")
1840 (file-name (git-file-name name version))
1843 "0i5qllcrhdjhspyj7j9h4dc9y37d3cfbpackmybm3030qgfxqirf"))))
1844 (build-system guile-build-system)
1846 `(("guile" ,guile-3.0)))
1848 `(("guile-readline" ,guile-readline)
1849 ("guile-colorized" ,guile-colorized)
1851 (home-page "https://sr.ht/~brown121407/guile-imanifest")
1852 (synopsis "Interactive Guix manifests")
1853 (description "This package provides functions to generate Guix manifests
1854 interactively. It works by scanning an alist of package categories, to ask the
1855 user which package sets would they like to install from it.")
1856 (license license:gpl3+))))
1858 (define-public guile-wisp
1865 (url "https://hg.sr.ht/~arnebab/wisp")
1866 (changeset (string-append "v" version))))
1867 (file-name (git-file-name name version))
1870 "00iknn03gf421gg3061g35fbraqrkcqypkrfn10rhlgg6j0lgk67"))))
1871 (build-system gnu-build-system)
1873 `(#:modules ((guix build gnu-build-system)
1874 ((guix build emacs-build-system) #:prefix emacs:)
1876 (guix build emacs-utils)
1879 #:imported-modules (,@%gnu-build-system-modules
1880 (guix build emacs-build-system)
1881 (guix build emacs-utils))
1883 (modify-phases %standard-phases
1886 (invoke "autoreconf" "-vif")
1888 (add-before 'configure 'patch-/usr/bin/env
1890 (substitute* "Makefile.in"
1891 (("/usr/bin/env bash") (which "bash")))
1893 ;; auto compilation breaks, but if we set HOME to /tmp,
1895 (add-before 'check 'auto-compile-hacky-workaround
1896 (lambda _ (setenv "HOME" "/tmp") #t))
1897 (add-after 'install 'install-go-files
1898 (lambda* (#:key outputs inputs #:allow-other-keys)
1899 (let* ((out (assoc-ref outputs "out"))
1900 (effective (read-line
1901 (open-pipe* OPEN_READ
1903 "(display (effective-version))")))
1904 (module-dir (string-append out "/share/guile/site/"
1906 (object-dir (string-append out "/lib/guile/" effective
1908 (prefix (string-length module-dir)))
1909 ;; compile to the destination
1910 (for-each (lambda (file)
1911 (let* ((base (string-drop (string-drop-right file 4)
1913 (go (string-append object-dir base ".go")))
1914 (invoke "guild" "compile" "-L" module-dir
1916 (find-files module-dir "\\.scm$"))
1918 (add-after 'install 'install-emacs-files
1919 (assoc-ref emacs:%standard-phases 'install))
1920 (add-after 'install-emacs-files 'compile-emacs-files
1921 (assoc-ref emacs:%standard-phases 'build))
1922 (add-after 'compile-emacs-files 'make-autoloads
1923 (assoc-ref emacs:%standard-phases 'make-autoloads)))))
1924 (home-page "https://www.draketo.de/english/wisp")
1926 `(("guile" ,guile-3.0)))
1928 `(("autoconf" ,autoconf)
1929 ("automake" ,automake)
1930 ("emacs" ,emacs-minimal)
1932 ("pkg-config" ,pkg-config)))
1933 (synopsis "Whitespace to lisp syntax for Guile")
1934 (description "Wisp is a syntax for Guile which provides a Python-like
1935 whitespace-significant language. It may be easier on the eyes for some
1936 users and in some situations.")
1937 (license (list license:gpl3+ ; the project as a whole
1938 license:expat)))) ; the language spec (see also SRFI 119)
1940 (define-public guile2.2-wisp
1942 (inherit guile-wisp)
1943 (name "guile2.2-wisp")
1944 (inputs `(("guile" ,guile-2.2)))))
1946 (define-public guile-udev
1953 (url "https://github.com/artyom-poptsov/guile-udev")
1954 (commit (string-append "v" version))))
1955 (file-name (git-file-name name version))
1958 "1l6csncjqnx58c6c3wdl7rshnhk4pzhjq2q8lnkg483564s9w5py"))))
1959 (build-system gnu-build-system)
1961 `(("autoconf" ,autoconf)
1962 ("automake" ,automake)
1963 ("gettext" ,gettext-minimal)
1964 ("libtool" ,libtool)
1965 ("texinfo" ,texinfo)
1966 ("pkg-config" ,pkg-config)
1969 `(("guile" ,guile-3.0)
1971 (home-page "https://github.com/artyom-poptsov/guile-udev")
1972 (synopsis "Guile bindings to libudev")
1974 "Guile-Udev provides GNU Guile bindings to libudev.")
1975 (license license:gpl3+)))
1977 (define-public guile-sly
1983 (uri (string-append "https://files.dthompson.us/sly/sly-"
1987 "1svzlbz2vripmyq2kjh0rig16bsrnbkwbsm558pjln9l65mcl4qq"))
1988 (modules '((guix build utils)))
1991 (substitute* "configure"
1992 (("_guile_required_version=\"2.0.11\"")
1993 "_guile_required_version=\"2\"")
1994 (("ac_subst_vars='")
1995 "ac_subst_vars='GUILE_EFFECTIVE_VERSION\n"))
1996 (substitute* (find-files "." "Makefile.in")
2000 "$(prefix)/share/guile/site/@GUILE_EFFECTIVE_VERSION@\n"))
2004 "$(prefix)/lib/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n")))
2006 (build-system gnu-build-system)
2009 (list (string-append "--with-libfreeimage-prefix="
2010 (assoc-ref %build-inputs "freeimage"))
2011 (string-append "--with-libgslcblas-prefix="
2012 (assoc-ref %build-inputs "gsl")))))
2014 `(("pkg-config" ,pkg-config)))
2016 `(("guile-sdl" ,guile-sdl)
2017 ("guile-opengl" ,guile-opengl)))
2019 `(("guile" ,guile-2.2)
2021 ("freeimage" ,freeimage)
2023 (synopsis "2D/3D game engine for GNU Guile")
2024 (description "Sly is a 2D/3D game engine written in Guile Scheme. Sly
2025 features a functional reactive programming interface and live coding
2027 (home-page "https://dthompson.us/projects/sly.html")
2028 (license license:gpl3+)))
2030 (define-public g-golf
2031 (let ((commit "ef830107b9765bd6a2da848d0cbe45e11374c0b5")
2035 (version (git-version "0.1.0" revision commit))
2040 (url "https://git.savannah.gnu.org/git/g-golf.git")
2042 (file-name (git-file-name name version))
2044 (base32 "0r472hvmf447kqvkahp1wy4irb5gy8y793hm8r9rc511smdx66cw"))))
2045 (build-system gnu-build-system)
2047 `(("autoconf" ,autoconf)
2048 ("automake" ,automake)
2049 ("texinfo" ,texinfo)
2050 ("gettext" ,gettext-minimal)
2051 ("libtool" ,libtool)
2052 ("pkg-config" ,pkg-config)
2053 ("xorg-server" ,xorg-server)))
2055 `(("guile" ,guile-2.2)
2056 ("guile-lib" ,guile2.2-lib)
2057 ("clutter" ,clutter)
2061 `(("gobject-introspection" ,gobject-introspection)))
2064 (modify-phases %standard-phases
2065 (add-before 'configure 'tests-work-arounds
2066 (lambda* (#:key inputs #:allow-other-keys)
2067 ;; In build environment, There is no /dev/tty
2069 "test-suite/tests/gobject.scm"
2070 (("/dev/tty") "/dev/null"))))
2071 (add-before 'configure 'substitute-libs
2072 (lambda* (#:key inputs outputs #:allow-other-keys)
2073 (let* ((get (lambda (key lib)
2074 (string-append (assoc-ref inputs key) "/lib/" lib)))
2075 (libgi (get "gobject-introspection" "libgirepository-1.0"))
2076 (libglib (get "glib" "libglib-2.0"))
2077 (libgobject (get "glib" "libgobject-2.0"))
2078 (libgdk (get "gtk" "libgdk-3")))
2079 (substitute* "configure"
2080 (("SITEDIR=\"\\$datadir/g-golf\"")
2081 "SITEDIR=\"$datadir/guile/site/$GUILE_EFFECTIVE_VERSION\"")
2082 (("SITECCACHEDIR=\"\\$libdir/g-golf/")
2083 "SITECCACHEDIR=\"$libdir/"))
2084 (substitute* "g-golf/init.scm"
2085 (("libgirepository-1.0") libgi)
2086 (("libglib-2.0") libglib)
2087 (("libgdk-3") libgdk)
2088 (("libgobject-2.0") libgobject)
2089 (("\\(dynamic-link \"libg-golf\"\\)")
2092 (format #f "~alibg-golf"
2093 (if (getenv "GUILE_GGOLF_UNINSTALLED")
2095 ,(format #f "~a/lib/"
2096 (assoc-ref outputs "out"))))))))
2097 (setenv "GUILE_AUTO_COMPILE" "0")
2098 (setenv "GUILE_GGOLF_UNINSTALLED" "1")
2100 (add-before 'check 'start-xorg-server
2101 (lambda* (#:key inputs #:allow-other-keys)
2102 ;; The test suite requires a running X server.
2103 (system (format #f "~a/bin/Xvfb :1 &"
2104 (assoc-ref inputs "xorg-server")))
2105 (setenv "DISPLAY" ":1")
2107 (home-page "https://www.gnu.org/software/g-golf/")
2108 (synopsis "Guile bindings for GObject Introspection")
2110 "G-Golf (Gnome: (Guile Object Library for)) is a library for developing
2111 modern applications in Guile Scheme. It comprises a direct binding to the
2112 GObject Introspection API and higher-level functionality for importing Gnome
2113 libraries and making GObject classes (and methods) available in Guile's
2114 object-oriented programming system, GOOPS.")
2115 (license license:lgpl3+))))
2117 (define-public g-wrap
2123 (uri (string-append "mirror://savannah/g-wrap/g-wrap-"
2127 "0ak0bha37dfpj9kmyw1r8fj8nva639aw5xr66wr5gd3l1rqf5xhg"))))
2128 (build-system gnu-build-system)
2130 `(("pkg-config" ,pkg-config)))
2132 `(("guile" ,guile-2.2)
2133 ("guile-lib" ,guile-lib)))
2135 `(("libffi" ,libffi)))
2137 `(#:configure-flags '("--disable-Werror")
2139 (modify-phases %standard-phases
2140 (add-before 'configure 'pre-configure
2141 (lambda* (#:key outputs #:allow-other-keys)
2142 (let ((out (assoc-ref outputs "out")))
2143 (substitute* (find-files "." "^Makefile.in$")
2144 (("guilemoduledir =.*guile/site" all)
2145 (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
2147 (synopsis "Generate C bindings for Guile")
2148 (description "G-Wrap is a tool and Guile library for generating function
2149 wrappers for inter-language calls. It currently only supports generating Guile
2150 wrappers for C functions. Given a definition of the types and prototypes for
2151 a given C interface, G-Wrap will automatically generate the C code that
2152 provides access to that interface and its types from the Scheme level.")
2153 (home-page "https://www.nongnu.org/g-wrap/index.html")
2154 (license license:lgpl2.1+)))
2156 (define-public guile-miniadapton
2157 (let ((commit "1b5749422304567c96ac5367f2221dda9eff5880")
2160 (name "guile-miniadapton")
2161 (version (string-append "0-" revision "." (string-take commit 9)))
2165 (url "https://github.com/fisherdj/miniAdapton")
2167 (file-name (string-append name "-" version "-checkout"))
2170 "09q51zkw2fypad5xixskfzw2cjhjgs5cswdp3i7cpp651rb3zndh"))))
2171 (build-system guile-build-system)
2173 `(("guile" ,guile-2.2)))
2174 (home-page "https://github.com/fisherdj/miniAdapton")
2175 (synopsis "Minimal implementation of incremental computation in Guile
2177 (description "This package provides a complete Scheme implementation of
2178 miniAdapton, which implements the core functionality of the Adapton system for
2179 incremental computation (also known as self-adjusting computation). Like
2180 Adapton, miniAdapton allows programmers to safely combine mutation and
2181 memoization. miniAdapton is built on top of an even simpler system,
2182 microAdapton. Both miniAdapton and microAdapton are designed to be easy to
2183 understand, extend, and port to host languages other than Scheme.")
2184 (license license:expat))))
2186 (define-public guile-raw-strings
2187 (let ((commit "aa1cf783f2542811b473f797e12490920b779baa")
2190 (name "guile-raw-strings")
2191 (version (git-version "0.0.0" revision commit))
2195 (url "https://github.com/lloda/guile-raw-strings")
2197 (file-name (git-file-name name version))
2200 "1r2gx86zw5hb6byllra3nap3fw9p7q7rvdmg6qn9myrdxyjpns3l"))))
2201 (build-system guile-build-system)
2204 (modify-phases %standard-phases
2205 (add-after 'build 'check
2206 (lambda* (#:key tests? #:allow-other-keys)
2208 (invoke "guile" "-L" "." "-s" "test.scm")))))))
2210 `(("guile" ,guile-3.0)))
2211 (home-page "https://github.com/lloda/guile-raw-strings")
2212 (synopsis "Guile reader extension for `raw strings'")
2213 (description "This package provides A Guile reader extension for `raw
2214 strings', it lets you write verbatim strings without having to escape double
2216 (license license:public-domain))))
2218 (define-public guile-reader
2220 (name "guile-reader")
2224 (uri (string-append "mirror://savannah/guile-reader/guile-reader-"
2228 "1fyjckmygkhq22lq8nqc86yl5zzbqd7a944dnz5c1f6vx92b9hiq"))))
2229 (build-system gnu-build-system)
2230 (native-inputs `(("pkgconfig" ,pkg-config)
2232 (inputs `(("guile" ,guile-3.0)))
2233 (synopsis "Framework for building readers for GNU Guile")
2235 "Guile-Reader is a simple framework for building readers for GNU Guile.
2237 The idea is to make it easy to build procedures that extend Guile’s read
2238 procedure. Readers supporting various syntax variants can easily be written,
2239 possibly by re-using existing “token readers” of a standard Scheme
2240 readers. For example, it is used to implement Skribilo’s R5RS-derived
2243 Guile-Reader’s approach is similar to Common Lisp’s “read table”, but
2244 hopefully more powerful and flexible (for instance, one may instantiate as
2245 many readers as needed).")
2246 (home-page "https://www.nongnu.org/guile-reader/")
2247 (license license:gpl3+)))
2249 (define-public guile2.2-reader
2251 (inherit guile-reader)
2252 (name "guile2.2-reader")
2253 (inputs `(("guile" ,guile-2.2)))))
2255 (define-public guile-ncurses
2257 (name "guile-ncurses")
2261 (uri (string-append "mirror://gnu/guile-ncurses/guile-ncurses-"
2265 "038xbffalhymg26lvmzgf7ljilxz2f2zmqg5r5nfzbipfbprwjhf"))))
2266 (build-system gnu-build-system)
2267 (inputs `(("ncurses" ,ncurses)
2268 ("guile" ,guile-3.0)))
2269 (native-inputs `(("pkg-config" ,pkg-config)))
2271 `(#:modules ((guix build gnu-build-system)
2272 ((guix build guile-build-system)
2273 #:select (target-guile-effective-version))
2275 #:imported-modules ((guix build guile-build-system)
2276 ,@%gnu-build-system-modules)
2277 #:configure-flags (list "--with-ncursesw" ; Unicode support
2278 "--with-gnu-filesystem-hierarchy")
2280 (modify-phases %standard-phases
2281 (add-before 'build 'fix-libguile-ncurses-file-name
2282 (lambda* (#:key outputs #:allow-other-keys)
2283 (invoke "make" "install"
2285 "-j" (number->string
2286 (parallel-job-count)))
2287 (let* ((out (assoc-ref outputs "out"))
2289 (files (find-files dir ".scm")))
2291 (("\"libguile-ncurses\"")
2292 (format #f "\"~a/lib/guile/~a/libguile-ncurses\""
2293 out (target-guile-effective-version))))
2295 (home-page "https://www.gnu.org/software/guile-ncurses/")
2296 (synopsis "Guile bindings to ncurses")
2298 "guile-ncurses provides Guile language bindings for the ncurses
2300 (license license:lgpl3+)))
2302 (define-public guile2.2-ncurses
2304 (inherit guile-ncurses)
2305 (name "guile2.2-ncurses")
2306 (inputs `(("ncurses" ,ncurses)
2307 ("guile" ,guile-2.2)))))
2309 (define-public guile-ncurses/gpm
2311 (inherit guile-ncurses)
2312 (name "guile-ncurses-with-gpm")
2313 (inputs `(("ncurses" ,ncurses/gpm)
2314 ("guile" ,guile-3.0)))))
2316 (define-public guile-lib
2322 (uri (string-append "mirror://savannah/guile-lib/guile-lib-"
2326 "1ph4z4a64m75in36pdb4dw63dzdq3hdgh16gq33q460jby23pvz4"))))
2327 (build-system gnu-build-system)
2329 '(#:make-flags '("GUILE_AUTO_COMPILE=0") ;placate guild warnings
2331 (modify-phases %standard-phases
2332 (add-before 'configure 'patch-module-dir
2334 (substitute* "src/Makefile.in"
2335 (("^moddir = ([[:graph:]]+)")
2336 "moddir = $(datadir)/guile/site/@GUILE_EFFECTIVE_VERSION@\n")
2337 (("^godir = ([[:graph:]]+)")
2339 $(libdir)/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n")))))))
2341 `(("autoconf" ,autoconf)
2342 ("automake" ,automake)
2343 ("gettext" ,gettext-minimal)
2344 ("guile" ,guile-3.0)
2345 ("pkg-config" ,pkg-config)))
2347 `(("guile" ,guile-3.0))) ;for cross-compilation
2348 (home-page "https://www.nongnu.org/guile-lib/")
2349 (synopsis "Collection of useful Guile Scheme modules")
2351 "Guile-Lib is intended as an accumulation place for pure-scheme Guile
2352 modules, allowing for people to cooperate integrating their generic Guile
2353 modules into a coherent library. Think \"a down-scaled, limited-scope CPAN
2354 for Guile\". It provides the following modules:
2356 +@item (apicheck) Describe and verify library programming interfaces.
2357 +@item (config load) Loading configuration files.
2358 +@item (container async-queue) A thread-safe message queue.
2359 +@item (container nodal-tree) A tree consisting of nodes with attributes.
2360 +@item (container delay-tree) A nodal tree with lazily evaluated fields.
2361 +@item (debugging assert) Helpful assert macro.
2362 +@item (debugging time) A simple macro to time the execution of an expression.
2363 +@item (graph topological-sort) Routines to perform topological sorts.
2364 +@item (htmlprag) Neil Van Dyke's permissive (\"pragmatic\") HTML parser.
2365 +@item (io string) SLIB's IO routines dealing with strings.
2366 +@item (logging logger) A flexible logging system.
2367 +@item (logging port-log) A logger that outputs to a port.
2368 +@item (logging rotating-log) A logger that rotates its output files.
2369 +@item (match-bind) Nifty and concise regular expression routines.
2370 +@item (math minima) A golden-section minimum finder.
2371 +@item (math primes) Functions related to prime numbers and factorization.
2372 +@item (os process) Spawning processes and capturing their output.
2373 +@item (scheme documentation) Macros to define different kinds of variables
2374 +with documentation.
2375 +@item (scheme kwargs) Defining functions with flexible keyword arguments.
2376 +@item (search basic) Classic search functions.
2377 +@item (string completion) Building blocks for tab completion.
2378 +@item (string soundex) The SOUNDEX string categorization algorithm.
2379 +@item (string transform) Beyond SRFI-13.
2380 +@item (string wrap) A versatile string formatter.
2381 +@item (term ansi-color) Generate ANSI color escape sequences.
2382 +@item (unit-test) A JUnit-style unit testing framework.
2384 ;; The whole is under GPLv3+, but some modules are under laxer
2385 ;; distribution terms such as LGPL and public domain. See `COPYING' for
2387 (license license:gpl3+)))
2389 (define-public guile2.0-lib
2392 (name "guile2.0-lib")
2394 (alist-replace "guile" (list guile-2.0)
2395 (package-native-inputs guile-lib)))
2397 (alist-replace "guile" (list guile-2.0)
2398 (package-inputs guile-lib)))))
2400 (define-public guile2.2-lib
2403 (name "guile2.2-lib")
2405 (alist-replace "guile" (list guile-2.2)
2406 (package-native-inputs guile-lib)))
2408 (alist-replace "guile" (list guile-2.2)
2409 (package-inputs guile-lib)))))
2411 (define-public guile-minikanren
2413 (name "guile-minikanren")
2414 (version "20150424.e844d85")
2418 (url "https://github.com/ijp/minikanren")
2419 (commit "e844d85512f8c055d3f96143ee506007389a25e3")))
2420 (file-name (string-append name "-" version "-checkout"))
2423 "0r50jlpzi940jlmxyy3ddqqwmj5r12gb4bcv0ssini9v8km13xz6"))))
2424 (build-system guile-build-system)
2426 `(("guile" ,guile-3.0)))
2427 (home-page "https://github.com/ijp/minikanren")
2428 (synopsis "MiniKanren declarative logic system, packaged for Guile")
2430 "MiniKanren is a relational programming extension to the Scheme
2431 programming Language, written as a smaller version of Kanren suitable for
2432 pedagogical purposes. It is featured in the book, The Reasoned Schemer,
2433 written by Dan Friedman, William Byrd, and Oleg Kiselyov.
2435 This is Ian Price's r6rs packaged version of miniKanren, which deviates
2436 slightly from miniKanren mainline.
2438 See http://minikanren.org/ for more on miniKanren generally.")
2439 (license license:expat)))
2441 (define-public guile2.0-minikanren
2443 (inherit guile-minikanren)
2444 (name "guile2.0-minikanren")
2445 (native-inputs `(("guile" ,guile-2.0)))))
2447 (define-public guile2.2-minikanren
2449 (inherit guile-minikanren)
2450 (name "guile2.2-minikanren")
2451 (native-inputs `(("guile" ,guile-2.2)))))
2453 (define-public guile-irregex
2455 (name "guile-irregex")
2460 "http://synthcode.com/scheme/irregex/irregex-"
2464 "1ia3m7dp3lcxa048q0gqbiwwsyvn99baw6xkhb4bhhzn4k7bwyqq"))))
2465 (build-system guile-build-system)
2467 '(#:phases (modify-phases %standard-phases
2468 (add-after 'unpack 'move-files-around
2470 ;; Move the relevant source files to src/ and create the
2471 ;; rx/ directory to match the expected module hierarchy.
2472 (mkdir-p "src/rx/source")
2473 (rename-file "irregex-guile.scm"
2474 "src/rx/irregex.scm")
2475 (rename-file "irregex.scm"
2476 "src/rx/source/irregex.scm")
2477 ;; Not really reachable via guile's packaging system,
2478 ;; but nice to have around.
2479 (rename-file "irregex-utils.scm"
2480 "src/rx/source/irregex-utils.scm")
2482 #:source-directory "src"))
2484 `(("guile" ,guile-3.0)))
2485 (home-page "http://synthcode.com/scheme/irregex")
2486 (synopsis "S-expression based regular expressions")
2488 "Irregex is an s-expression based alternative to your classic
2489 string-based regular expressions. It implements SRFI 115 and is deeply
2490 inspired by the SCSH regular expression system.")
2491 (license license:bsd-3)))
2493 (define-public guile2.0-irregex
2495 (inherit guile-irregex)
2496 (name "guile2.0-irregex")
2497 (native-inputs `(("guile" ,guile-2.0)))))
2499 (define-public guile2.2-irregex
2501 (inherit guile-irregex)
2502 (name "guile2.2-irregex")
2503 (native-inputs `(("guile" ,guile-2.2)))))
2505 (define-public haunt
2511 (uri (string-append "https://files.dthompson.us/haunt/haunt-"
2515 "1gy45l6m91b3wpdbpd9bpisp00zl8610zs0a2nwmbjlpd2cbf90k"))))
2516 (build-system gnu-build-system)
2518 `(#:modules ((ice-9 match) (ice-9 ftw)
2519 ,@%gnu-build-system-modules)
2520 #:tests? #f ; test suite is non-deterministic :(
2521 #:phases (modify-phases %standard-phases
2522 (add-after 'install 'wrap-haunt
2523 (lambda* (#:key inputs outputs #:allow-other-keys)
2524 ;; Wrap the 'haunt' command to refer to the right
2526 (let* ((out (assoc-ref outputs "out"))
2527 (bin (string-append out "/bin"))
2528 (site (string-append
2529 out "/share/guile/site"))
2530 (guile-reader (assoc-ref inputs "guile-reader"))
2531 (deps `(,@(if guile-reader
2534 ,(assoc-ref inputs "guile-commonmark"))))
2535 (match (scandir site)
2537 (let ((modules (string-append site "/" version))
2538 (compiled-modules (string-append
2539 out "/lib/guile/" version
2541 (wrap-program (string-append bin "/haunt")
2542 `("GUILE_LOAD_PATH" ":" prefix
2544 ,@(map (lambda (dep)
2546 "/share/guile/site/"
2549 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
2551 ,@(map (lambda (dep)
2552 (string-append dep "/lib/guile/"
2558 `(("pkg-config" ,pkg-config)
2559 ("texinfo" ,texinfo)))
2561 ;; Depend on the latest Guile to avoid bytecode compatibility issues when
2562 ;; using modules built against the latest version.
2563 `(("guile" ,guile-3.0-latest)))
2565 `(("guile-reader" ,guile-reader)
2566 ("guile-commonmark" ,guile-commonmark)))
2567 (synopsis "Functional static site generator")
2568 (description "Haunt is a static site generator written in Guile
2569 Scheme. Haunt features a functional build system and an extensible
2570 interface for reading articles in any format.")
2571 (home-page "https://dthompson.us/projects/haunt.html")
2572 (license license:gpl3+)))
2574 (define-public guile2.2-haunt
2577 (name "guile2.2-haunt")
2578 (inputs `(("guile" ,guile-2.2)))
2580 `(("guile-reader" ,guile2.2-reader)
2581 ("guile-commonmark" ,guile2.2-commonmark)))))
2583 (define-public guile2.0-haunt
2586 (name "guile2.0-haunt")
2587 (inputs `(("guile" ,guile-2.0)))))
2589 (define-public guile-redis
2591 (name "guile-redis")
2593 (home-page "https://github.com/aconchillo/guile-redis")
2599 (file-name (git-file-name name version))
2602 "0pvk4yadgx64wk81cpisdc7zqhk6ww58xi5fs5fs6s28wb6l5bfj"))))
2603 (build-system gnu-build-system)
2605 '(#:make-flags '("GUILE_AUTO_COMPILE=0")))
2607 `(("autoconf" ,autoconf)
2608 ("automake" ,automake)
2609 ("pkg-config" ,pkg-config)
2610 ("guile" ,guile-3.0)))
2611 (synopsis "Redis client library for Guile")
2612 (description "Guile-redis provides a Scheme interface to the Redis
2613 key-value cache and store.")
2614 (license license:lgpl3+)))
2616 (define-public guile2.2-redis
2618 (inherit guile-redis)
2619 (name "guile2.2-redis")
2620 (native-inputs `(("guile" ,guile-2.2)
2621 ,@(alist-delete "guile"
2622 (package-native-inputs guile-redis))))))
2624 (define-public guile2.0-redis
2626 (inherit guile-redis)
2627 (name "guile2.0-redis")
2630 (modify-phases %standard-phases
2631 (add-after 'unpack 'patch-source
2633 ;; put-string is in (rnrs io ports) in guile2.0,
2634 ;; not in (ice-9 textual-ports)
2635 (substitute* "redis/utils.scm"
2636 (("\\(ice-9 textual-ports\\)")
2639 ,@(package-arguments guile-redis)))
2640 (native-inputs `(("guile" ,guile-2.0)
2641 ,@(alist-delete "guile"
2642 (package-native-inputs guile-redis))))))
2644 (define-public guile-commonmark
2646 (name "guile-commonmark")
2650 (uri (string-append "https://github.com/OrangeShark/" name
2651 "/releases/download/v" version
2652 "/" name "-" version ".tar.gz"))
2655 "17lrsdisa3kckh24q114vfmzdc4wkqa6ccwl4hdlrng5wpn1iman"))
2656 (modules '((guix build utils)))
2659 ;; Allow builds with Guile 3.0.
2660 (substitute* "configure"
2664 (build-system gnu-build-system)
2665 ;; The tests throw exceptions with Guile 3.0.5, because they evaluate
2668 ;; This has been fixed upstream, but there has not been a new release
2669 ;; containing this change.
2672 (modify-phases %standard-phases
2673 (add-after 'unpack 'fix-tests-when-building-with-guile-3.0.5
2675 (substitute* (find-files "tests" "\\.scm$")
2679 `(("guile" ,guile-3.0)))
2681 `(("pkg-config" ,pkg-config)))
2682 (synopsis "CommonMark parser for Guile")
2684 "guile-commonmark is a library for parsing CommonMark, a fully specified
2685 variant of Markdown. The library is written in Guile Scheme and is designed
2686 to transform a CommonMark document to SXML. guile-commonmark tries to closely
2687 follow the @uref{http://commonmark.org/, CommonMark spec}, the main difference
2688 is no support for parsing block and inline level HTML.")
2689 (home-page "https://github.com/OrangeShark/guile-commonmark")
2690 (license license:lgpl3+)))
2692 (define-public guile2.2-commonmark
2694 (inherit guile-commonmark)
2695 (name "guile2.2-commonmark")
2696 (inputs `(("guile" ,guile-2.2)))))
2698 (define-public guile2.0-commonmark
2700 (inherit guile-commonmark)
2701 (name "guile2.0-commonmark")
2702 (inputs `(("guile" ,guile-2.0)))))
2704 (define-public mcron
2710 (uri (string-append "mirror://gnu/mcron/mcron-"
2714 "0bkn235g2ia4f7ispr9d55c7bc18282r3qd8ldhh5q2kiin75zi0"))))
2715 (build-system gnu-build-system)
2717 '(#:phases (modify-phases %standard-phases
2718 (add-before 'check 'adjust-tests
2720 (substitute* "tests/job-specifier.scm"
2721 ;; (getpw) fails with "entry not found" in the build
2722 ;; environment, so pass an argument.
2724 "(getpwnam (getuid))")
2725 ;; The build environment lacks an entry for root in
2728 "(getpwnam \"nobody\")")
2730 ;; FIXME: Skip the 4 faulty tests (see above).
2731 (("\\(test-equal \"next-year\"" all)
2732 (string-append "(test-skip 4)\n" all)))
2734 (native-inputs `(("pkg-config" ,pkg-config)
2735 ("tzdata" ,tzdata-for-tests)
2736 ("guile-native" ;for 'guild compile'
2737 ,@(assoc-ref (package-inputs this-package) "guile"))))
2738 (inputs `(("guile" ,guile-3.0)))
2739 (home-page "https://www.gnu.org/software/mcron/")
2740 (synopsis "Run jobs at scheduled times")
2742 "GNU Mcron is a complete replacement for Vixie cron. It is used to run
2743 tasks on a schedule, such as every hour or every Monday. Mcron is written in
2744 Guile, so its configuration can be written in Scheme; the original cron
2745 format is also supported.")
2746 (license license:gpl3+)))
2748 (define-public guile2.2-mcron
2751 (name "guile2.2-mcron")
2752 (inputs `(("guile" ,guile-2.2)))))
2754 (define-public guile-picture-language
2755 (let ((commit "a1322bf11945465241ca5b742a70893f24156d12")
2758 (name "guile-picture-language")
2759 (version (git-version "0.0.1" revision commit))
2763 (url "https://git.elephly.net/software/guile-picture-language.git")
2765 (file-name (git-file-name name version))
2768 "03i528z92ainccgm28shg4haxiav5x4cyhyi5dggq1rm027vbm99"))))
2769 (build-system gnu-build-system)
2771 `(("guile" ,guile-3.0)))
2773 `(("guile-cairo" ,guile-cairo)
2774 ("guile-rsvg" ,guile-rsvg)))
2776 `(("autoconf" ,autoconf)
2777 ("automake" ,automake)
2778 ("librsvg" ,librsvg)
2779 ("pkg-config" ,pkg-config)
2780 ("texinfo" ,texinfo)))
2781 (home-page "https://git.elephly.net/software/guile-picture-language.git")
2782 (synopsis "Picture language for Guile")
2784 "This package provides a simple SVG-based picture language for Guile.
2785 The picture values can directly be displayed in Geiser.")
2786 ;; (pict base64) is under GPLv3+, the rest is under LGPLv3+
2787 (license (list license:lgpl3+
2790 (define-public guile2.2-picture-language
2792 (inherit guile-picture-language)
2793 (name "guile2.2-picture-language")
2794 (inputs `(("guile" ,guile-2.2)))
2796 `(("guile-cairo" ,guile2.2-cairo)
2797 ("guile-rsvg" ,guile2.2-rsvg)))))
2799 (define-public guile-studio
2800 (let ((commit "dd0ad42e51feafebda7cc29afe7c8bc7a182a842")
2803 (name "guile-studio")
2804 (version (git-version "0.1.1" revision commit))
2808 (url "https://git.elephly.net/software/guile-studio.git")
2810 (file-name (git-file-name name version))
2813 "1cpqilly8dqmai1qsgjxy99zs34sfz95zwxhzx979wryqb69vi0q"))))
2814 (build-system gnu-build-system)
2819 ,@%gnu-build-system-modules)
2820 #:tests? #f ; there are none
2822 (list (string-append "PICT_DIR="
2823 (assoc-ref %build-inputs "guile-picture-language"))
2824 (string-append "EMACS_DIR="
2825 (assoc-ref %build-inputs "emacs"))
2826 (string-append "GUILE_DIR="
2827 (assoc-ref %build-inputs "guile"))
2828 (string-join (cons "INPUTS="
2833 (and (string-prefix? "emacs" label) pkg))))
2835 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2837 (modify-phases %standard-phases
2839 (delete 'install))))
2841 `(("guile" ,guile-3.0)
2842 ("guile-picture-language" ,guile-picture-language)
2844 ("emacs-f" ,emacs-f) ; needed by doom-modeline
2845 ("emacs-memoize" ,emacs-memoize) ; needed by all-the-icons
2846 ("emacs-all-the-icons" ,emacs-all-the-icons) ; needed by doom-modeline
2847 ("emacs-all-the-icons-dired" ,emacs-all-the-icons-dired)
2848 ("emacs-dired-sidebar" ,emacs-dired-sidebar)
2849 ("emacs-doom-modeline" ,emacs-doom-modeline)
2850 ("emacs-modus-themes" ,emacs-modus-themes)
2851 ("emacs-geiser" ,emacs-geiser)
2852 ("emacs-geiser-guile" ,emacs-geiser-guile)
2853 ("emacs-company" ,emacs-company)
2854 ("emacs-ivy" ,emacs-ivy)
2855 ("emacs-flycheck" ,emacs-flycheck)
2856 ("emacs-flycheck-guile" ,emacs-flycheck-guile)
2857 ("emacs-paren-face" ,emacs-paren-face)))
2859 `(("texinfo" ,texinfo)))
2860 (home-page "https://gnu.org/software/guile")
2861 (synopsis "IDE for Guile")
2863 "This is Emacs with a few settings that make working with Guile easier
2864 for people new to Emacs. Features include: CUA mode, Geiser, tool bar icons
2865 to evaluate Guile buffers, support for Guile's very own picture language, code
2866 completion, a simple mode line, etc.")
2867 (license license:gpl3+))))
2869 (define-public guile-stis-parser
2871 (name "guile-stis-parser")
2876 (url "https://gitlab.com/tampe/stis-parser")
2877 (commit (string-append "v" version))))
2878 (file-name (git-file-name name version))
2881 "1fvxdfvc80zqhwzq5x3kxyr6j8p4b51yx85fx1gr3d4gy2ddpx5w"))))
2882 (build-system gnu-build-system)
2884 `(#:parallel-build? #f ; not supported
2886 (modify-phases %standard-phases
2887 (add-after 'unpack 'chdir
2888 (lambda _ (chdir "modules") #t))
2889 (add-after 'chdir 'delete-broken-symlink
2891 (delete-file "parser/stis-parser/lang/.#calc.scm")
2894 `(("guile" ,guile-3.0)))
2896 `(("autoconf" ,autoconf)
2897 ("automake" ,automake)
2898 ("pkg-config" ,pkg-config)))
2899 (home-page "https://gitlab.com/tampe/stis-parser")
2900 (synopsis "Parser combinator framework")
2902 "This package provides a functional parser combinator library that
2903 supports backtracking and a small logical framework. The idea is to build up
2904 chunks that are memoized and there is no clear scanner/parser separation,
2905 chunks can be expressions as well as simple tokens.")
2906 (license license:lgpl2.0+)))
2908 (define-public guile-persist
2910 (name "guile-persist")
2915 (url "https://gitlab.com/tampe/guile-persist")
2916 (commit (string-append "v" version))))
2917 (file-name (git-file-name name version))
2920 "19f8hqcax4v40858kx2j8fy1cvzc2djj99r0n17dy1xxmwa097qi"))))
2921 (build-system gnu-build-system)
2924 (modify-phases %standard-phases
2925 (add-after 'unpack 'patch-prefix
2926 (lambda* (#:key inputs outputs #:allow-other-keys)
2927 (substitute* "src/Makefile.am"
2928 (("/usr/local/lib/guile")
2929 (string-append (assoc-ref outputs "out") "/lib/guile"))
2930 (("/usr/local/include/guile")
2931 (string-append (assoc-ref inputs "guile") "/include/guile"))
2932 (("-L/usr/local/lib")
2933 (string-append "-L" (assoc-ref inputs "guile") "/lib")))
2935 (add-after 'unpack 'patch-library-reference
2936 (lambda* (#:key outputs #:allow-other-keys)
2937 (let ((out (assoc-ref outputs "out")))
2938 (substitute* "persist/persistance.scm"
2939 (("\"libguile-persist\"")
2940 (format #f "\"~a/lib/guile/3.0/extensions/libguile-persist\"" out)))
2943 `(("guile" ,guile-3.0)))
2945 `(("autoconf" ,autoconf)
2946 ("automake" ,automake)
2947 ("libtool" ,libtool)
2948 ("pkg-config" ,pkg-config)))
2949 (home-page "https://gitlab.com/tampe/guile-persist")
2950 (synopsis "Persistence programming framework for Guile")
2952 "This is a serialization library for serializing objects like classes
2953 and objects, closures and structs. This currently does not support
2954 serializing continuations or delimited continuations.")
2955 (license license:lgpl2.0+)))
2957 (define-public python-on-guile
2959 (name "python-on-guile")
2961 (home-page "https://gitlab.com/python-on-guile/python-on-guile")
2964 (uri (git-reference (url home-page)
2965 (commit (string-append "v" version))))
2966 (file-name (git-file-name name version))
2969 "05xrvcj6a4gzq1ybyin270qz8wamgc7w2skyi9iy6hkpgdhxy8vf"))))
2970 (build-system gnu-build-system)
2972 `(#:parallel-build? #f ;not supported
2973 #:make-flags '("GUILE_AUTO_COMPILE=0") ;to prevent guild warnings
2975 (modify-phases %standard-phases
2976 (add-after 'unpack 'chdir
2977 (lambda _ (chdir "modules") #t))
2978 (add-after 'chdir 'augment-GUILE_LOAD_PATH
2980 ;; TODO: It would be better to patch the Makefile.
2981 (setenv "GUILE_LOAD_PATH"
2983 (getenv "GUILE_LOAD_PATH")))
2985 (add-after 'install 'wrap
2986 (lambda* (#:key outputs #:allow-other-keys)
2987 ;; Wrap the 'python' executable so it can find its
2988 ;; dependencies and own modules.
2989 (let* ((out (assoc-ref outputs "out"))
2990 (guile-version ,(version-major+minor
2991 (package-version guile-3.0)))
2992 (scm (string-append out "/share/guile/site/"
2994 (ccache (string-append out "/lib/guile/" guile-version
2996 (load-path (string-join
2998 ;; XXX: cdr because we augment it above.
3000 (getenv "GUILE_LOAD_PATH") #\:)))
3002 (compiled-path (string-append
3004 (getenv "GUILE_LOAD_COMPILED_PATH"))))
3005 (wrap-program (string-append out "/bin/python")
3006 `("GUILE_LOAD_PATH" ":" prefix
3008 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
3012 `(("guile" ,guile-3.0)
3013 ("guile-persist" ,guile-persist)
3014 ("guile-readline" ,guile-readline)
3015 ("guile-stis-parser" ,guile-stis-parser)))
3017 `(("autoconf" ,autoconf)
3018 ("automake" ,automake)
3019 ("libtool" ,libtool)
3020 ("pkg-config" ,pkg-config)))
3021 (synopsis "Python implementation in Guile")
3023 "This package allows you to compile a Guile Python file to any target
3024 from @code{tree-il}.")
3025 (license license:lgpl2.0+)))
3027 (define-public guile-file-names
3029 (name "guile-file-names")
3033 (uri (string-append "http://brandon.invergo.net/software/download/"
3034 "guile-file-names/guile-file-names-"
3038 "01chizdxkhw6aqv629vxka9f5x3534ij7r0jqndawsg2vxm1r9sz"))))
3039 (build-system gnu-build-system)
3042 (modify-phases %standard-phases
3043 (add-after 'unpack 'fix-target-directory
3045 (substitute* "src/Makefile.in"
3046 (("guilemoddir = \\$\\(GUILE_SITE\\)")
3047 "guilemoddir = $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
3050 `(("guile" ,guile-2.2)))
3052 `(("pkg-config" ,pkg-config)))
3053 (home-page "https://gitlab.com/brandoninvergo/guile-file-names")
3054 (synopsis "Manipulate file names")
3056 "The @code{(file-names)} module provides tools for manipulating file
3057 names. The module was built on the idea that doing anything more than a
3058 non-trivial modification of a file name string is a pain (making sure all
3059 slashes are present and accounted for, resolving @code{.} and @code{..}, etc).
3060 Inevitably, you have to break the string up into chunks and operate on that
3061 list of components. This module takes care of that for you.")
3062 (license license:lgpl3+)))
3064 (define-public guile-gi
3070 (uri (string-append "http://lonelycactus.com/tarball/guile_gi-"
3074 "1ljcfyar1nb6h4jskxnnzrcxcsblawc50qqfdn8cax3zqfskmvzj"))))
3075 (build-system glib-or-gtk-build-system)
3077 `(#:configure-flags '("--with-gnu-filesystem-hierarchy")
3078 #:modules ((guix build glib-or-gtk-build-system)
3083 (modify-phases %standard-phases
3084 (add-after 'unpack 'remove-dotted-circle-from-combining-character
3085 ;; The test/string.scm files contain ◌̀, which is a dotted circle
3086 ;; (U+25cc) followed by an upper combining character (U+0300). The
3087 ;; old guile 3.0.2 reader incorrectly ignores the dotted circle,
3088 ;; and parses it as the combining character alone, but the new
3089 ;; guile reader does not.
3090 ;; See https://github.com/spk121/guile-gi/issues/112
3092 (substitute* "test/string.scm"
3093 (("#\\\\◌̀") "#\\x0300"))))
3094 (add-after 'unpack 'patch-references-to-extension
3095 (lambda* (#:key outputs #:allow-other-keys)
3096 (let ((effective (read-line
3097 (open-pipe* OPEN_READ
3099 "(display (effective-version))"))))
3100 (substitute* (find-files "module" ".*\\.scm")
3101 (("\\(load-extension \"libguile-gi\" \"(.*)\"\\)" m arg)
3104 (format #f "~alibguile-gi"
3105 (if (getenv "GUILE_GI_UNINSTALLED")
3107 ,(format #f "~a/lib/guile/~a/extensions/"
3108 (assoc-ref outputs "out")
3111 (setenv "GUILE_GI_UNINSTALLED" "1")
3113 (add-before 'check 'start-xorg-server
3114 (lambda* (#:key inputs #:allow-other-keys)
3115 ;; The init_check test requires a running X server.
3116 (system (format #f "~a/bin/Xvfb :1 &"
3117 (assoc-ref inputs "xorg-server")))
3118 (setenv "DISPLAY" ":1")
3121 `(("gettext" ,gettext-minimal)
3122 ("glib:bin" ,glib "bin") ; for glib-compile-resources
3123 ("libtool" ,libtool)
3124 ("pkg-config" ,pkg-config)
3125 ("xorg-server" ,xorg-server)))
3128 ("gobject-introspection" ,gobject-introspection)
3129 ("gssettings-desktop-schemas" ,gsettings-desktop-schemas)
3131 ("guile-lib" ,guile-lib)
3132 ("webkitgtk" ,webkitgtk)))
3133 (inputs `(("guile" ,guile-3.0)))
3134 (home-page "https://github.com/spk121/guile-gi")
3135 (synopsis "GObject bindings for Guile")
3137 "Guile-GI is a library for Guile that allows using GObject-based
3138 libraries, such as GTK+3. Its README comes with the disclaimer: This is
3140 (license license:gpl3+)))
3142 (define-public guile2.2-gi
3145 (name "guile2.2-gi")
3147 `(("guile" ,guile-2.2)
3148 ,@(alist-delete "guile" (package-inputs guile-gi))))))
3150 (define-public guile-srfi-89
3152 (name "guile-srfi-89")
3158 (url "https://gitlab.com/mjbecze/guile-srfi-89.git")
3162 "1981c0rrzxqx3md9jx8ir7j3m2mzg9m72b33p5jvw36zirbzpl20"))
3163 (file-name (git-file-name name version))))
3164 (build-system guile-build-system)
3166 `(("guile" ,guile-3.0)))
3167 (home-page "https://gitlab.com/mjbecze/guile-srfi-89")
3168 (synopsis "Hygienic implementation of SRFI-89 for Guile")
3170 "This package provides SRFI-89 optional positional and named
3171 parameters, which define* and lambda* special forms")
3172 (license license:gpl3+)))
3174 (define-public guile-srfi-145
3176 (name "guile-srfi-145")
3182 (url "https://gitlab.com/mjbecze/guile-srfi-145.git")
3186 "1gssa8cmcp8640fil9z8dpil8v5l279wlalqjcx3fls5jwv13q1b"))
3187 (file-name (git-file-name name version))))
3188 (build-system guile-build-system)
3190 `(("guile" ,guile-3.0)))
3191 (home-page "https://gitlab.com/mjbecze/guile-srfi-145")
3192 (synopsis "SRFI-145 port for Guile")
3194 "This package provides SRFI-145. This provides the means to
3195 denote the invalidity of certain code paths in a Scheme program.")
3196 (license license:gpl3+)))
3198 (define-public guile-srfi-158
3200 (name "guile-srfi-158")
3206 (url "https://gitlab.com/mjbecze/guile-srfi-158.git")
3210 "0b8hlv1bldbcwkcxi9y8mm6xp5gbgpg7b15bwqxv70iynl9d9a7c"))
3211 (file-name (git-file-name name version))))
3212 (build-system gnu-build-system)
3214 `(("autoconf" ,autoconf)
3215 ("automake" ,automake)
3216 ("pkg-config" ,pkg-config)))
3218 `(("guile" ,guile-3.0)))
3219 (home-page "https://gitlab.com/samplet/guile-srfi-158")
3220 (synopsis "SRFI 158 (Generators and Accumulators) for Guile")
3221 (description "This package provides an implementation of SRFI 158
3222 for Guile. SRFI 158 defines utility procedures that create,
3223 transform, and consume generators. It also defines procedures that
3224 return accumulators. It is implemented by wrapping the sample
3225 implementation in a thin Guile compatibility layer.")
3226 (license license:gpl3+)))
3228 (define-public guile-srfi-159
3229 (let ((commit "1bd98abda2ae4ef8f36761a167903e55c6bda7bb")
3232 (name "guile-srfi-159")
3233 (version (git-version "0" revision commit))
3234 (home-page "https://bitbucket.org/bjoli/guile-srfi-159")
3237 (uri (hg-reference (changeset commit)
3241 "1zw6cmcy7xdbfiz3nz9arqnn7l2daidaps6ixkcrc9b6k51fdv3p"))
3242 (file-name (git-file-name name version))))
3243 (build-system guile-build-system)
3245 ;; The *-impl.scm files are actually included from module files; they
3246 ;; should not be compiled separately, but they must be installed.
3247 '(#:not-compiled-file-regexp "-impl\\.scm$"))
3249 `(("guile" ,guile-2.2)))
3250 (synopsis "Formatting combinators for Guile")
3252 "The @code{(srfi-159)} module and its sub-modules implement the
3253 formatting combinators specified by
3254 @uref{https://srfi.schemers.org/srfi-159/srfi-159.html, SRFI-159}. These are
3255 more expressive and flexible than the traditional @code{format} procedure.")
3256 (license license:bsd-3))))
3258 (define-public guile-srfi-180
3259 (let ((commit "9188bf9724c6d320ef804579d222e855b007b193")
3262 (name "guile-srfi-180")
3263 (version (git-version "0" revision commit))
3268 (url "https://github.com/scheme-requests-for-implementation/srfi-180")
3272 "08lf70rsak8mwfij55xc37pg9zg7c87fizmhz7ln46skzj68sl3y"))
3273 (modules '((guix build utils)))
3276 (delete-file-recursively "srfi/files")
3277 (delete-file "srfi/run-r7rs-checks.guile.scm")
3278 (delete-file "srfi/run-r7rs-checks.scm")
3279 (delete-file "srfi/check.scm")
3281 (file-name (git-file-name name version))))
3282 (build-system guile-build-system)
3284 '(#:not-compiled-file-regexp "body\\.scm$"))
3286 `(("guile" ,guile-3.0)))
3288 `(("guile-srfi-145" ,guile-srfi-145)))
3289 (home-page "https://srfi.schemers.org/srfi-180/")
3290 (synopsis "JSON parser and printer for Guile")
3292 "This library implements a JavaScript Object Notation (JSON) parser and printer.
3293 It also supports parsing JSON objects that may be bigger than memory with a streaming
3295 (license license:expat))))
3297 (define-public emacsy
3303 (uri (string-append "mirror://savannah/emacsy/emacsy-"
3307 "1cpb85dl1nibd34c2x2h7vfmjpkgh353p5b1w20v6cs6gmvgg4np"))
3308 (modules '((guix build utils)))
3311 (substitute* "configure"
3312 ;; Allow builds with Guile 3.0.
3316 ;; Freeglut 3.2 provides 'glut.pc', not 'freeglut.pc'.
3320 (substitute* '("emacsy/emacsy.c"
3321 "example/hello-emacsy.c")
3322 (("#include <libguile\\.h>")
3323 (string-append "#include <stdlib.h>\n"
3324 "#include <stdio.h>\n"
3325 "#include <string.h>\n"
3326 "#include <unistd.h>\n"
3327 "#include <libguile.h>\n")))))))
3328 (build-system gnu-build-system)
3331 ("guile" ,guile-3.0)
3332 ("gettext" ,gettext-minimal)
3333 ("libtool" ,libtool)
3335 ("pkg-config" ,pkg-config)
3336 ("texinfo" ,texinfo)
3337 ("texlive" ,(texlive-union (list texlive-generic-epsf)))))
3339 `(("dbus-glib" ,dbus-glib)
3340 ("guile" ,guile-3.0)
3341 ("guile-lib" ,guile-lib)
3342 ("guile-readline" ,guile-readline)
3343 ("freeglut" ,freeglut)
3344 ("webkitgtk" ,webkitgtk)))
3346 `(("glib-networking" ,glib-networking)
3347 ("gssettings-desktop-schemas" ,gsettings-desktop-schemas)))
3349 `(#:modules ((guix build gnu-build-system)
3357 (modify-phases %standard-phases
3358 (add-before 'configure 'setenv
3360 (setenv "GUILE_AUTO_COMPILE" "0")
3362 (add-after 'install 'wrap-binaries
3363 (lambda* (#:key inputs outputs #:allow-other-keys)
3364 (let* ((out (assoc-ref outputs "out"))
3365 (effective (read-line
3366 (open-pipe* OPEN_READ
3368 "(display (effective-version))")))
3369 (deps (map (cut assoc-ref inputs <>)
3370 '("guile-lib" "guile-readline")))
3371 (scm-path (map (cut string-append <> "/share/guile/site/"
3372 effective) `(,out ,@deps)))
3373 (go-path (map (cut string-append <> "/lib/guile/" effective
3374 "/site-ccache/") `(,out ,@deps)))
3375 (examples (filter (cut string-match "emacsy" <>)
3376 (scandir (string-append out "/bin/"))))
3377 (progs (map (cut string-append out "/bin/" <>)
3379 (map (cut wrap-program <>
3380 `("GUILE_LOAD_PATH" ":" prefix ,scm-path)
3381 `("GUILE_LOAD_COMPILED_PATH" ":" prefix ,go-path))
3384 (home-page "https://savannah.nongnu.org/projects/emacsy")
3385 (synopsis "Embeddable GNU Emacs-like library using Guile")
3387 "Emacsy is an embeddable Emacs-like library that uses GNU Guile
3388 as extension language. Emacsy can give a C program an Emacsy feel with
3389 keymaps, minibuffer, recordable macros, history, tab completion, major
3390 and minor modes, etc., and can also be used as a pure Guile library. It
3391 comes with a simple counter example using FreeGLUT and browser examples
3392 in C using Gtk+-3 and WebKitGtk.")
3393 (license license:gpl3+)))
3395 (define-public emacsy-minimal
3396 (let ((commit "v0.4.1-37-g5f91ee6"))
3399 (name "emacsy-minimal")
3400 (version (string-drop commit 1))
3405 (url "https://git.savannah.gnu.org/git/emacsy.git")
3407 (file-name (git-file-name name version))
3409 (base32 "03ym14g9qhjqmryr5z065kynqm8yhmvnbs2djl6vp3i9cmqln8cl"))))
3410 (build-system gnu-build-system)
3412 `(("autoconf" ,autoconf)
3413 ("automake" ,automake)
3414 ("gettext" ,gettext-minimal)
3415 ("libtool" ,libtool)
3416 ("makeinfo" ,texinfo)
3417 ("pkg-config" ,pkg-config)))
3419 `(("guile" ,guile-2.2)
3420 ("guile-lib" ,guile2.2-lib)
3421 ("guile-readline" ,guile2.2-readline)))
3422 (propagated-inputs '())
3424 `(#:configure-flags '("--without-examples")
3426 (modify-phases %standard-phases
3427 (add-before 'configure 'setenv
3429 (setenv "GUILE_AUTO_COMPILE" "0")
3432 (define-public guile-jpeg
3433 (let ((commit "6a1673578b297c2c1b28e44a76bd5c49e76a5046")
3437 (version (git-version "0.0" revision commit))
3438 (home-page "https://gitlab.com/wingo/guile-jpeg")
3441 (uri (git-reference (url home-page)
3445 "05z9m408w3h6aqb5k3r3qa7khir0k10rxwvsrzhkcq1hr5vbmr4m"))
3446 (file-name (git-file-name name version))
3447 (modules '((guix build utils)))
3450 ;; Install .go files in the right place.
3451 (substitute* "Makefile.am"
3452 (("/ccache") "/site-ccache"))
3454 (build-system gnu-build-system)
3456 `(("autoconf" ,autoconf)
3457 ("automake" ,automake)
3458 ("pkg-config" ,pkg-config)
3459 ("guile" ,guile-2.2)))
3460 (synopsis "JPEG file parsing library for Guile")
3462 "Guile-JPEG is a Scheme library to parse JPEG image files and to
3463 perform geometrical transforms on JPEG images.")
3464 (license license:gpl3+))))
3466 (define-public nomad
3469 (version "0.2.0-alpha-199-g3e7a475")
3473 (url "https://git.savannah.gnu.org/git/nomad.git/")
3475 (file-name (git-file-name name version))
3478 "0p0ha6prp7pyadp61clbhc6b55023vxzfwy14j2qygb2mkq7fhic"))))
3479 (build-system gnu-build-system)
3481 `(("autoconf" ,autoconf)
3482 ("automake" ,automake)
3484 ("pkg-config" ,pkg-config)
3485 ("libtool" ,libtool)
3486 ("guile" ,guile-2.2)
3487 ("glib:bin" ,glib "bin")
3488 ("texinfo" ,texinfo)
3489 ("gettext" ,gettext-minimal)
3493 ("guile" ,guile-2.2)
3494 ("guile-lib" ,guile2.2-lib)
3495 ("guile-readline" ,guile2.2-readline)
3496 ("guile-gcrypt" ,guile2.2-gcrypt)
3500 ("emacsy" ,emacsy-minimal)
3503 ("dbus-glib" ,dbus-glib)
3504 ("glib-networking" ,glib-networking)
3506 ("gtk+:bin" ,gtk+ "bin")
3507 ("webkitgtk" ,webkitgtk)
3508 ("gtksourceview" ,gtksourceview)
3509 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
3512 ("gstreamer" ,gstreamer)
3513 ("gst-plugins-base" ,gst-plugins-base)
3514 ("gst-plugins-good" ,gst-plugins-good)
3515 ("gst-plugins-bad" ,gst-plugins-bad)
3516 ("gst-plugins-ugly" ,gst-plugins-ugly)
3518 ("xorg-server" ,xorg-server)))
3520 `(#:modules ((guix build gnu-build-system)
3526 (modify-phases %standard-phases
3527 (add-before 'check 'start-xorg-server
3528 (lambda* (#:key inputs #:allow-other-keys)
3529 ;; The test suite requires a running X server.
3530 (system (format #f "~a/bin/Xvfb :1 &"
3531 (assoc-ref inputs "xorg-server")))
3532 (setenv "DISPLAY" ":1")
3534 (add-after 'install 'wrap-binaries
3535 (lambda* (#:key inputs outputs #:allow-other-keys)
3536 (let* ((out (assoc-ref outputs "out"))
3537 (effective (read-line (open-pipe*
3540 "(display (effective-version))")))
3541 (gst-plugins (map (lambda (i)
3542 (string-append (assoc-ref inputs i)
3543 "/lib/gstreamer-1.0"))
3548 "gst-plugins-ugly")))
3549 (out-append (lambda (. args)
3550 (apply string-append out args)))
3551 (gi-path (out-append "/lib/girepository-1.0"))
3552 (load-path (out-append "/share/guile/site/" effective))
3553 (comp-path (out-append "/lib/guile/"
3554 effective "/site-ccache"))
3555 (ext-path (out-append "/libexec/nomad")))
3556 (wrap-program (string-append out "/bin/nomad")
3557 `("GUILE_LOAD_PATH" ":" prefix
3559 ,(getenv "GUILE_LOAD_PATH")))
3560 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
3562 ,(getenv "GUILE_LOAD_COMPILED_PATH")))
3563 `("GI_TYPELIB_PATH" ":" prefix
3564 (,gi-path ,(getenv "GI_TYPELIB_PATH")))
3565 `("GIO_EXTRA_MODULES" ":" prefix
3566 (,(getenv "GIO_EXTRA_MODULES")))
3567 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix ,gst-plugins)
3568 `("NOMAD_WEB_EXTENSION_DIR" ":" prefix (,ext-path)))
3570 (home-page "https://savannah.nongnu.org/projects/nomad/")
3571 (synopsis "Extensible Web Browser in Guile Scheme")
3572 (description "Nomad is a Emacs-like web browser that consists of a modular
3573 feature-set, fully programmable in Guile Scheme.")
3574 (license license:gpl3+)))
3576 (define-public guile-cv
3582 (uri (string-append "mirror://gnu/guile-cv/guile-cv-"
3586 "0qdf0s2h1xj5lbhnc1pfw69i3zg08pqy2y6869b92ydfis8r82j9"))))
3587 (build-system gnu-build-system)
3590 (modify-phases %standard-phases
3591 (add-after 'unpack 'prepare-build
3592 (lambda* (#:key inputs outputs #:allow-other-keys)
3593 (substitute* "configure"
3594 (("SITEDIR=\"\\$datadir/guile-cv\"")
3595 "SITEDIR=\"$datadir/guile/site/$GUILE_EFFECTIVE_VERSION\"")
3596 (("SITECCACHEDIR=\"\\$libdir/guile-cv/")
3597 "SITECCACHEDIR=\"$libdir/"))
3598 (substitute* "cv/init.scm"
3599 (("\\(dynamic-link \"libvigra_c\"\\)")
3600 (string-append "(dynamic-link \""
3601 (assoc-ref inputs "vigra-c")
3602 "/lib/libvigra_c\")"))
3603 (("\\(dynamic-link \"libguile-cv\"\\)")
3606 (format #f "~alibguile-cv"
3607 (if (getenv "GUILE_CV_UNINSTALLED")
3609 ,(format #f "~a/lib/"
3610 (assoc-ref outputs "out"))))))))
3611 (setenv "GUILE_CV_UNINSTALLED" "1")
3612 ;; Only needed to satisfy the configure script.
3613 (setenv "LD_LIBRARY_PATH"
3614 (string-append (assoc-ref inputs "vigra-c") "/lib"))
3618 ("vigra-c" ,vigra-c)
3619 ("guile" ,guile-2.2)))
3621 `(("texlive" ,(texlive-union (list texlive-booktabs
3626 texlive-fonts-iwona)))
3627 ("pkg-config" ,pkg-config)))
3629 `(("guile-lib" ,guile2.2-lib)))
3630 (home-page "https://www.gnu.org/software/guile-cv/")
3631 (synopsis "Computer vision library for Guile")
3632 (description "Guile-CV is a Computer Vision functional programming library
3633 for the Guile Scheme language. It is based on Vigra (Vision with Generic
3634 Algorithms), a C++ image processing and analysis library. Guile-CV contains
3635 bindings to Vigra C (a C wrapper to most of the Vigra functionality) and is
3636 enriched with pure Guile Scheme algorithms, all accessible through a nice,
3637 clean and easy to use high level API.")
3638 (license license:gpl3+)))
3640 (define-public guile-ffi-fftw
3641 (let ((commit "294ad9e7491dcb40026d2fec9be2af05263be1c0")
3644 (name "guile-ffi-fftw")
3645 (version (git-version "0" revision commit))
3649 (url "https://github.com/lloda/guile-ffi-fftw")
3651 (file-name (git-file-name "guile-ffi-fftw" version))
3654 "08j40a5p6a8pgvhffmzb5rfdnrav2mksy3gfjkdqy93jfj1z5afg"))))
3655 (build-system guile-build-system)
3657 `(#:source-directory "mod"
3659 (modify-phases %standard-phases
3660 (add-after 'unpack 'prepare-build
3661 (lambda* (#:key inputs #:allow-other-keys)
3662 (substitute* "mod/ffi/fftw.scm"
3663 (("\\(getenv \"GUILE_FFI_FFTW_LIBFFTW3_PATH\"\\)")
3664 (format #f "\"~a/lib\"" (assoc-ref inputs "fftw"))))
3666 (add-after 'build 'check
3668 (invoke "guile" "-L" "mod"
3669 "-s" "test/test-ffi-fftw.scm"))))))
3672 ("guile" ,guile-2.2)))
3673 (home-page "https://github.com/lloda/guile-ffi-fftw/")
3674 (synopsis "Access FFTW through Guile's FFI")
3675 (description "This is a minimal set of Guile FFI bindings for the FFTW
3676 library's ‘guru interface’. It provides two functions: @code{fftw-dft! rank
3677 sign in out} and @code{fftw-dft rank sign in}. These bindings being minimal,
3678 there is no support for computing & reusing plans, or split r/i transforms, or
3679 anything other than straight complex DFTs.")
3680 (license license:lgpl3+))))
3682 (define-public srfi-64-driver
3684 (name "srfi-64-driver")
3688 (uri (string-append "https://files.ngyro.com/srfi-64-driver/"
3689 "srfi-64-driver-" version ".tar.gz"))
3692 "188b6mb7sjjg0a8zldikinglf40ky8mg8rwh5768gjmch6gkk3ph"))))
3693 (build-system gnu-build-system)
3697 (modify-phases %standard-phases
3700 `(("pkg-config" ,pkg-config)))
3702 `(("guile" ,guile-2.2)))
3703 (home-page "https://ngyro.com/software/srfi-64-driver.html")
3704 (synopsis "Automake test driver for SRFI 64 test suites")
3705 (description "This package provides an Automake test driver that can
3706 run SRFI 64 test suites. It gives Automake insight into the individual
3707 tests being run, resulting clearer and more specific output.")
3708 (license license:gpl3+)))
3710 (define-public guile-semver
3712 (name "guile-semver")
3716 (uri (string-append "https://files.ngyro.com/guile-semver/"
3717 "guile-semver-" version ".tar.gz"))
3720 "109p4n39ln44cxvwdccf9kgb96qx54makvd2ir521ssz6wchjyag"))))
3721 (build-system gnu-build-system)
3723 `(("pkg-config" ,pkg-config)))
3725 `(("guile" ,guile-3.0)))
3726 (home-page "https://ngyro.com/software/guile-semver.html")
3727 (synopsis "Semantic Versioning (SemVer) for Guile")
3728 (description "This Guile library provides tools for reading,
3729 comparing, and writing Semantic Versions. It also includes ranges in
3730 the style of the Node Package Manager (NPM).")
3731 (license license:gpl3+)))
3733 (define-public guile2.2-semver
3735 (inherit guile-semver)
3736 (name "guile2.2-semver")
3738 `(("guile" ,guile-2.2)))))
3740 (define-public guile-hashing
3742 (name "guile-hashing")
3744 (home-page "https://github.com/weinholt/hashing")
3749 (commit (string-append "v" version))))
3750 (file-name (git-file-name name version))
3753 "1362d3lmpv7slmv1zmr9wy8panq9sjr9787gc2hagd646mpsfpkl"))))
3754 (build-system guile-build-system)
3756 `(#:modules ((guix build guile-build-system)
3760 #:implicit-inputs? #f ;needs nothing but Guile
3761 #:phases (modify-phases %standard-phases
3762 (add-before 'build 'move-sls-files
3764 ;; Move the source under hashing/ in order to match
3765 ;; module names, and rename .sls files to .scm.
3766 (define (target file)
3767 (string-append "hashing/" file))
3769 (define (sls->scm sls)
3770 (string-append (string-drop-right sls 4)
3774 (for-each (lambda (file)
3775 (rename-file file (sls->scm file)))
3776 (find-files "." "\\.sls$"))
3777 (for-each (lambda (file)
3778 (rename-file file (target file)))
3779 (scandir "." (cut string-suffix? ".scm" <>)))
3780 (rename-file "private" "hashing/private")
3783 `(("guile" ,guile-3.0)))
3784 (synopsis "Cryprographic hash functions implemented in Scheme")
3786 "The @code{(hashing @dots{})} modules implement cryptographic hash
3787 functions in pure R6RS Scheme: CRC, HMAC, MD5, SHA-1, and SHA-2 (SHA-256,
3789 (license license:expat)))
3791 (define-public guile2.2-hashing
3793 (inherit guile-hashing)
3794 (name "guile2.2-hashing")
3796 `(("guile" ,guile-2.2)))))
3798 (define-public guile-packrat
3800 (name "guile-packrat")
3802 (home-page "https://github.com/weinholt/packrat")
3807 (commit (string-append "v" version))))
3808 (file-name (git-file-name name version))
3811 "1aga17164fkhbgllqc7ni6fk5zl8mkmgkl5zcsy67x7ngpyalbby"))))
3812 (build-system guile-build-system)
3814 `(#:implicit-inputs? #f ;needs nothing but Guile
3815 #:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
3816 #:not-compiled-file-regexp "/extensible\\.scm$"
3817 #:phases (modify-phases %standard-phases
3818 (add-before 'build 'no-srfi-23
3820 (substitute* "packrat.sls"
3821 (("\\(srfi :23 error\\)")
3822 (object->string '(only (guile) error))))
3825 `(("guile" ,guile-3.0)))
3826 (synopsis "Packrat parser library in R6RS Scheme")
3828 "This is an R6RS Scheme adaptation of the
3829 @uref{https://bford.info/packrat/, packrat parsing}. Packrat parsing is a
3830 memoizing, backtracking, recursive-descent parsing technique that runs in time
3831 and space linear in the size of the input text.")
3832 (license license:expat)))
3834 (define-public guile-ac-d-bus
3836 (name "guile-ac-d-bus")
3837 (version "1.0.0-beta.0")
3838 (home-page "https://gitlab.com/weinholt/ac-d-bus/")
3843 (commit (string-append "v" version))))
3844 (file-name (git-file-name name version))
3847 "0rl809qimhgz6b0rixakb42r2l4g53jr09a2g0s1hxgab0blz0kb"))))
3848 (build-system guile-build-system)
3850 `(#:implicit-inputs? #f ;needs nothing but Guile
3851 #:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
3852 #:phases (modify-phases %standard-phases
3853 (add-before 'build 'adjust-for-guile
3855 ;; Adjust source file names for Guile.
3856 (define (guile-sls->sls file)
3857 (string-append (string-drop-right
3858 file (string-length ".guile.sls"))
3861 ;; Remove files targeting other implementations:
3863 (for-each delete-file
3867 (not (string-contains file ".guile.")))))
3869 ;; Rename *.guile.sls to *.sls so the ".guile" bit does
3870 ;; not appear in .go file names.
3871 (for-each (lambda (file)
3872 (rename-file file (guile-sls->sls file)))
3873 (find-files "compat" "\\.guile\\.sls"))
3875 ;; Move directories under d-bus/ to match module names.
3877 (for-each (lambda (directory)
3878 (rename-file directory
3879 (string-append "d-bus/"
3881 '("compat" "protocol"))
3885 `(("guile" ,guile-3.0)))
3887 `(("guile-packrat" ,guile-packrat)))
3888 (synopsis "D-Bus protocol implementation in R6RS Scheme")
3890 "AC/D-Bus is an implementation of the D-Bus wire protocol. D-Bus is an
3891 interprocess communication protocol popular on GNU/Linux systems to
3892 communicate with a variety of services. Originally designed for desktop
3893 environments, it is now used by programs like VLC media player, BlueZ,
3894 NetworkManager, Pulseaudio, systemd (including logind and resolved), Polkit,
3895 gnome-keyring, and many more.")
3896 (license license:expat)))
3898 (define-public guile-webutils
3899 (let ((commit "8541904f761066dc9c27b1153e9a838be9a55299")
3902 (name "guile-webutils")
3903 (version (git-version "0.1" revision commit))
3907 (url "https://notabug.org/cwebber/guile-webutils.git")
3909 (file-name (git-file-name name version))
3912 "1s9n3hbxd7lfpdi0x8wr0cfvlsf6g62ird9gbspxdrp5p05rbi64"))
3913 (modules '((guix build utils)))
3916 ;; Allow builds with Guile 3.0.
3917 (substitute* "configure.ac"
3921 (build-system gnu-build-system)
3923 `(("autoconf" ,autoconf)
3924 ("automake" ,automake)
3925 ("pkg-config" ,pkg-config)
3926 ("texinfo" ,texinfo)))
3928 `(("guile" ,guile-3.0)))
3930 `(("guile-irregex" ,guile-irregex)
3931 ("guile-gcrypt" ,guile-gcrypt)))
3932 (home-page "https://notabug.org/cwebber/guile-webutils")
3933 (synopsis "Web application authoring utilities for Guile")
3935 "This package provides tooling to write web applications in Guile, such
3936 as signed sessions, multipart message support, etc.")
3937 (license license:gpl3+))))
3939 (define-public guile2.2-webutils
3941 (inherit guile-webutils)
3942 (name "guile2.2-webutils")
3944 `(("guile" ,guile-2.2)))
3946 `(("guile-irregex" ,guile2.2-irregex)
3947 ("guile-gcrypt" ,guile2.2-gcrypt)))))
3949 (define-public guile-lens
3950 (let ((commit "14b15d07255f9d3f55d40a3b750d13c9ee3a154f")
3954 (version (git-version "0.1" revision commit))
3958 (url "https://gitlab.com/a-sassmannshausen/guile-lens.git")
3960 (file-name (git-file-name name version))
3963 "0w8jzqyla56yrgj7acsgd4nspyir6zgp3vgxid4xmwhg9wmf1ida"))))
3964 (build-system gnu-build-system)
3967 (modify-phases %standard-phases
3968 (add-after 'unpack 'run-hall
3970 (setenv "HOME" "/tmp") ; for ~/.hall
3971 (invoke "hall" "dist" "-x"))))))
3973 `(("autoconf" ,autoconf)
3974 ("automake" ,automake)
3975 ("guile" ,guile-3.0)
3976 ("guile-hall" ,guile-hall)
3977 ("pkg-config" ,pkg-config)
3978 ("texinfo" ,texinfo)))
3979 (home-page "https://gitlab.com/a-sassmannshausen/guile-lens.git")
3980 (synopsis "Composable lenses for data structures in Guile")
3982 "Guile-Lens is a library implementing lenses in Guile. The library is
3983 currently a re-implementation of the lentes library for Clojure. Lenses
3984 provide composable procedures, which can be used to focus, apply functions
3985 over, or update a value in arbitrary data structures.")
3986 (license license:gpl3+))))
3988 (define-public guile2.2-lens
3990 (inherit guile-lens)
3991 (name "guile2.2-lens")
3993 `(("guile" ,guile-2.2)
3994 ,@(alist-delete "guile" (package-native-inputs guile-lens))))))
3996 (define-public guile-xapian
3998 (name "guile-xapian")
4000 (home-page "https://git.systemreboot.net/guile-xapian")
4004 (uri (git-reference (url home-page)
4005 (commit (string-append "v" version))))
4006 (file-name (git-file-name name version))
4009 "16k61f1jn3g48jaf3730b9l0izr5j933jzyri73nmcnjd09gm35i"))))
4010 (build-system gnu-build-system)
4012 '(#:make-flags '("GUILE_AUTO_COMPILE=0"))) ; to prevent guild warnings
4014 `(("guile" ,guile-3.0)
4018 `(("autoconf" ,autoconf)
4019 ("autoconf-archive" ,autoconf-archive)
4020 ("automake" ,automake)
4021 ("libtool" ,libtool)
4022 ("pkg-config" ,pkg-config)
4024 (synopsis "Guile bindings for Xapian")
4025 (description "@code{guile-xapian} provides Guile bindings for Xapian, a
4026 search engine library. Xapian is a highly adaptable toolkit which allows
4027 developers to easily add advanced indexing and search facilities to their own
4028 applications. It has built-in support for several families of weighting
4029 models and also supports a rich set of boolean query operators.")
4030 (license license:gpl2+)))
4032 (define-public guile2.2-xapian
4034 (inherit guile-xapian)
4035 (name "guile2.2-xapian")
4037 `(("guile" ,guile-2.2)
4038 ,@(alist-delete "guile" (package-inputs guile-xapian))))))
4040 (define-public guile-torrent
4042 (name "guile-torrent")
4044 (source (origin (method git-fetch)
4047 "https://github.com/o-nly/torrent")
4049 (file-name (git-file-name name version))
4052 "1yiagi55ncq1x7s9n7salzywjm4l96y3n7y3s47a9anvz87mrmim"))))
4053 (build-system gnu-build-system)
4055 `(("autoconf" ,autoconf)
4056 ("automake" ,automake)
4057 ("guile" ,guile-2.2)
4058 ("texinfo" ,texinfo)
4060 ("pkg-config" ,pkg-config)))
4062 `(("guile-gcrypt" ,guile-gcrypt)))
4063 (home-page "https://github.com/o-nly/torrent")
4064 (synopsis "Torrent library for GNU Guile")
4065 (description "This package provides facilities for working with
4066 @code{.torrent} or metainfo files. Implements a bencode reader and writer
4067 according to Bitorrent BEP003.")
4068 (license license:gpl3+)))
4070 (define-public guile-irc
4071 (let ((commit "375d3bde9c6ae7ccc9d7cc65817966b6fda8f26a")
4075 (version (git-version "0.3.0" revision commit))
4079 (url "https://github.com/rekado/guile-irc")
4081 (file-name (git-file-name name version))
4084 "113lcckcywrz9060w1c3fnvr8d7crdsjgsv4h47hgmr1slgadl4y"))))
4085 (build-system gnu-build-system)
4087 `(#:configure-flags '("--enable-gnutls=yes")))
4089 `(("autoconf" ,autoconf)
4090 ("automake" ,automake)
4091 ("texinfo" ,texinfo)))
4093 `(("gnutls" ,gnutls)
4094 ("guile" ,guile-3.0)))
4095 (home-page "https://github.com/rekado/guile-irc")
4096 (synopsis "IRC library for Guile")
4097 (description "This package provides a Guile library for @dfn{Internet
4098 Relay Chat} (IRC).")
4099 ;; Some file headers incorrectly say LGPLv2+.
4100 (license license:lgpl2.1+))))
4102 (define-public guile-websocket
4103 (let ((commit "d17878f6c12c10a49196bb08f737f36b11e61c31")
4106 (name "guile-websocket")
4107 (version (git-version "0.1" revision commit))
4112 (url "https://git.dthompson.us/guile-websocket.git")
4114 (file-name (git-file-name name version))
4117 "0kcmhjyb6amm4b9k4ng0r5s38m041mvh5jgmjbz6ichz39k255v7"))))
4118 (build-system gnu-build-system)
4121 '("GUILE_AUTO_COMPILE=0")))
4123 `(("autoconf" ,autoconf)
4124 ("automake" ,automake)
4125 ("pkg-config" ,pkg-config)))
4127 `(("guile" ,guile-3.0)))
4128 (synopsis "Websocket server/client for Guile")
4129 (description "Guile-websocket provides an implementation of the
4130 WebSocket protocol as defined by RFC 6455.")
4131 (home-page "https://git.dthompson.us/guile-websocket.git")
4132 (license license:lgpl3+))))
4134 (define-public guile-rdf
4142 (url "https://framagit.org/tyreunom/guile-rdf")
4144 (file-name (git-file-name name version))
4147 "0dwn3app1fscbpmpgvjs5jy1y0gwy3j5gdx8br79af6a88zjlnqf"))))
4148 (build-system gnu-build-system)
4150 `(#:tests? #f)); tests require network
4152 `(("guile" ,guile-3.0)))
4154 `(("automake" ,automake)
4155 ("autoconf" ,autoconf)
4156 ("pkg-config" ,pkg-config)
4157 ("texinfo" ,texinfo)))
4158 (home-page "https://framagit.org/tyreunom/guile-rdf")
4159 (synopsis "Guile implementation of the RDF abstract and concrete syntaxes")
4160 (description "Guile RDF is an implementation of the RDF (Resource Description
4161 Framework) format defined by the W3C for GNU Guile. RDF structures include
4162 triples (facts with a subject, a predicate and an object), graphs which are
4163 sets of triples, and datasets, which are collections of graphs.
4165 RDF specifications include the specification of concrete syntaxes and of
4166 operations on graphs. This library implements some basic functionalities,
4167 such as parsing and producing turtle and nquads syntax, as well as
4168 manipulating graphs and datasets.")
4169 (license license:gpl3+)))
4171 (define-public guile-jsonld
4173 (name "guile-jsonld")
4179 (url "https://framagit.org/tyreunom/guile-jsonld")
4181 (file-name (git-file-name name version))
4184 "1ryyvh71899z2inivqglb8d78zzp1sd0wv9a56kvcmrxf1966z6r"))))
4185 (build-system gnu-build-system)
4187 `(#:tests? #f)); require network
4189 `(("guile-gnutls" ,gnutls)
4190 ("guile-json" ,guile-json-4)
4191 ("guile-rdf" ,guile-rdf)))
4193 `(("guile" ,guile-3.0)))
4195 `(("automake" ,automake)
4196 ("autoconf" ,autoconf)
4197 ("pkg-config" ,pkg-config)
4198 ("texinfo" ,texinfo)))
4199 (home-page "https://framagit.org/tyreunom/guile-jsonld")
4200 (synopsis "Guile implementation of the JsonLD API specification")
4201 (description "Guile JsonLD is an implementation of the JsonLD (Json for
4202 Linked Data) API defined by the W3C for GNU Guile. It allows you to express links
4203 between data, in a way that is very similar to WikiData or RDF for instance.
4204 An object can have relations (in the form of an IRI) that relates it to one or
4205 more objects or strings, represented by a Json object or an IRI.")
4206 (license license:gpl3+)))
4208 (define-public guile-struct-pack
4210 (name "guile-struct-pack")
4216 (url "https://github.com/weinholt/struct-pack")
4217 (commit (string-append "v" version))))
4218 (file-name (git-file-name name version))
4220 (base32 "0hd72m821pahjphzyjn26i55542v8makr55xzjll2cycja4wsbc1"))))
4221 (build-system guile-build-system)
4223 `(#:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
4224 #:modules ((guix build guile-build-system)
4228 #:phases (modify-phases %standard-phases
4229 (add-before 'build 'move-sls-files
4231 ;; Move files under a struct/ directory to reflect the
4232 ;; module hierarchy.
4233 (define dst-folder "struct")
4234 (define (target file)
4235 (string-append dst-folder "/" file))
4237 (scandir "." (negate (cut member <> '("." "..")))))
4239 (for-each (lambda (file)
4240 (rename-file file (target file)))
4244 `(("guile" ,guile-3.0)))
4245 (home-page "https://github.com/weinholt/struct-pack")
4246 (synopsis "R6RS library for working with packed byte structures")
4248 "This is an R6RS library for working with packed byte structures. It is
4249 similar to struct in Python or pack and unpack in Perl.")
4250 (license license:expat)))
4252 (define-public guile-machine-code
4254 (name "guile-machine-code")
4260 (url "https://github.com/weinholt/machine-code")
4261 (commit (string-append "v" version))))
4262 (file-name (git-file-name name version))
4264 (base32 "0wzj3caj2jypzyjqfkfqkvr3kkbjabsnhldv9kvnx9w9qnria5yd"))))
4265 (build-system guile-build-system)
4267 `(#:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
4268 #:modules ((guix build guile-build-system)
4272 #:phases (modify-phases %standard-phases
4273 (add-before 'build 'move-sls-files
4275 ;; Move files under a struct/ directory to reflect the
4276 ;; module hierarchy.
4277 (define dst-folder "machine-code")
4278 (define (target file)
4279 (string-append dst-folder "/" file))
4281 (scandir "." (negate (cut member <> '("." "..")))))
4283 (for-each (lambda (file)
4284 (rename-file file (target file)))
4288 `(("guile" ,guile-3.0)))
4290 `(("guile-struct-pack" ,guile-struct-pack)))
4291 (home-page "https://github.com/weinholt/machine-code")
4292 (synopsis "Tools that relate to machine code and object formats")
4294 "This project is about the development of tools that relate to machine
4295 code and object formats; for all architectures. Here you'll find libraries
4296 for working with binary code: assembly, disassembly, instruction tables,
4297 object formats and related areas.")
4298 (license license:expat)))
4300 (define-public guile-laesare
4302 (name "guile-laesare")
4308 (url "https://github.com/weinholt/laesare")
4309 (commit (string-append "v" version))))
4310 (file-name (git-file-name name version))
4312 (base32 "15q619gzw717r8r1ql23zfdaibpnp9qqs96032vdc3rj74msxc92"))))
4313 (build-system guile-build-system)
4315 `(#:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
4316 #:modules ((guix build guile-build-system)
4320 #:phases (modify-phases %standard-phases
4321 (add-before 'build 'move-sls-files
4323 ;; Move files under a laesare directory to reflect
4324 ;; the module hierarchy.
4325 (define dst-folder "laesare")
4326 (define (target file)
4327 (string-append dst-folder "/" file))
4329 (scandir "." (negate (cut member <> '("." "..")))))
4331 (for-each (lambda (file)
4332 (rename-file file (target file)))
4336 `(("guile" ,guile-3.0)))
4337 (home-page "https://github.com/weinholt/laesare")
4338 (synopsis "R6RS Scheme library that provides a reader")
4340 "This is an R6RS Scheme library that provides a reader with some extra
4341 features not found in the standard read procedure such as a compatible mode
4342 with support for other RnRS standards and a tolerant mode that continues on
4344 (license license:expat)))
4346 (define-public guile-avahi
4347 (let ((commit "6d43caf64f672a9694bf6c98bbf7a734f17a51e8")
4350 (name "guile-avahi")
4351 (version (git-version "0.4.0" revision commit))
4355 (url "git://git.sv.gnu.org/guile-avahi.git")
4357 (file-name (git-file-name name version))
4360 "0fvrf8x22yvc71180hd3xkhspg9yvadi0pbv8shzlsaxqncwy1m9"))
4361 (modules '((guix build utils)))))
4362 (build-system gnu-build-system)
4364 `(#:modules (((guix build guile-build-system)
4365 #:select (target-guile-effective-version))
4366 ,@%gnu-build-system-modules)
4367 #:imported-modules ((guix build guile-build-system)
4368 ,@%gnu-build-system-modules)
4370 '("GUILE_AUTO_COMPILE=0") ;to prevent guild warnings
4371 ;; Parallel builds fail on powerpc64le-linux.
4372 ;; See https://lists.nongnu.org/archive/html/guile-avahi-bugs/2021-01/msg00000.html
4373 #:parallel-build? #f
4375 (modify-phases %standard-phases
4376 (add-before 'check 'fix-guile-avahi-file-name
4377 (lambda* (#:key outputs #:allow-other-keys)
4378 (with-directory-excursion "src"
4379 (invoke "make" "install"
4380 "-j" (number->string
4381 (parallel-job-count))))
4382 (let* ((out (assoc-ref outputs "out"))
4383 (files (find-files "modules" ".scm")))
4385 (("\"guile-avahi-v-0\"")
4386 (format #f "\"~a/lib/guile/~a/extensions/guile-avahi-v-0\""
4387 out (target-guile-effective-version))))
4390 `(("guile" ,guile-3.0)
4393 `(("autoconf" ,autoconf)
4394 ("automake" ,automake)
4395 ("libtool" ,libtool)
4396 ("pkg-config" ,pkg-config)
4397 ("texinfo" ,texinfo)))
4398 (synopsis "Guile bindings to Avahi")
4400 "This package provides bindings for Avahi. It allows programmers to
4401 use functionalities of the Avahi client library from Guile Scheme programs.
4402 Avahi itself is an implementation of multicast DNS (mDNS) and DNS Service
4403 Discovery (DNS-SD).")
4404 (home-page "https://www.nongnu.org/guile-avahi/")
4405 (license license:lgpl3+))))
4407 (define-public guile-jwt
4415 (url "https://github.com/aconchillo/guile-jwt")
4417 (file-name (git-file-name name version))
4420 "1p8sapiv5im18rjnzc8xnw6y7dr661rycf9g10z5ww0dl4rfz3z1"))))
4421 (build-system gnu-build-system)
4423 `(("autoconf" ,autoconf)
4424 ("automake" ,automake)
4425 ("pkg-config" ,pkg-config)))
4427 `(("guile-json" ,guile-json-4)))
4429 `(("guile" ,guile-3.0)))
4430 (home-page "https://github.com/aconchillo/guile-jwt")
4431 (synopsis "JSON Web Token library for Guile")
4433 "guile-jwt is a JSON Web Token module for Guile. JSON Web Tokens are an
4434 open, industry standard (RFC 7519) method for representing claims securely
4435 between two parties. guile-jwt allows you to decode, verify and generate
4436 JWT. Supported algorithms: HS256, HS384, HS512.")
4437 (license license:gpl3+)))
4439 (define-public guile-sodium
4441 (name "guile-sodium")
4447 (url "https://inqlab.net/git/guile-sodium.git")
4448 (commit (string-append "v" version))))
4449 (file-name (git-file-name name version))
4450 (sha256 (base32 "189jsj87hycs57a54x0b9lifwvhr63nypb9vfxdrq7rwrpcvi5f8"))))
4451 (build-system gnu-build-system)
4454 `(("autoconf" ,autoconf)
4455 ("automake" ,automake)
4456 ("pkg-config" ,pkg-config)
4457 ("texinfo" ,texinfo)))
4458 (inputs `(("guile" ,guile-3.0)))
4459 (propagated-inputs `(("libsodium" ,libsodium)))
4460 (synopsis "Guile bindings to the libsodium cryptographic library")
4462 "This package provides Guile bindings to the libsodium cryptographic library
4463 which provides core cryptographic primitives needed to build higher-level
4465 (home-page "https://inqlab.net/git/guile-sodium.git")
4466 (license license:gpl3+)))
4468 (define-public guile-eris
4476 (url "https://inqlab.net/git/eris.git")
4477 (commit (string-append "v" version))))
4478 (file-name (git-file-name name version))
4479 (sha256 (base32 "1ijglmwkdy1l87gj429qfjis0v8b1zlxhbyfhx5za8664h68nqka"))))
4480 (build-system gnu-build-system)
4483 `(("autoconf" ,autoconf)
4484 ("automake" ,automake)
4485 ("pkg-config" ,pkg-config)
4486 ("texinfo" ,texinfo)
4488 ("guile-srfi-180" ,guile-srfi-180)))
4489 (inputs `(("guile" ,guile-3.0)))
4491 `(("guile-sodium" ,guile-sodium)))
4492 (synopsis "Guile implementation of the Encoding for Robust Immutable Storage (ERIS)")
4494 "Guile-ERIS is the reference implementation of the Encoding for Robust
4495 Immutable Storage (ERIS). ERIS allows arbitrary content to be encoded into
4496 uniformly sized, encrypted blocks that can be reassembled using a short
4498 (home-page "https://inqlab.net/git/eris.git")
4499 (license license:gpl3+)))
4501 (define-public guile-r6rs-protobuf
4503 (name "guile-r6rs-protobuf")
4509 (url "https://gitlab.com/joolean/r6rs-protobuf")
4510 (commit (string-append "v" version))))
4511 (file-name (git-file-name name version))
4514 "1xmn7jlr1xiqgd35klq910p1bnil1iwdvqxkjr3zzml3spy8p2aa"))))
4515 (build-system guile-build-system)
4517 `(#:compile-flags '("--r6rs")))
4519 `(("guile" ,guile-3.0)))
4520 (home-page "https://gitlab.com/joolean/r6rs-protobuf/")
4521 (synopsis "Scheme implementation of Protocol Buffers")
4523 "This project provides a pure Scheme implementation of Protocol Buffers,
4524 including parsing and code generation.")
4525 (license license:gpl3+)))
4527 (define-public guile-shapefile
4529 (name "guile-shapefile")
4535 (url "https://github.com/HugoNikanor/guile-shapefile")
4536 (commit (string-append "v" version))))
4537 (file-name (git-file-name name version))
4540 "1zvrpc8bshw9w0vhdpmhv00j07mzsdyg2f9hfabr83v08zhfi8ml"))))
4541 (build-system guile-build-system)
4544 (modify-phases %standard-phases
4545 (add-after 'unpack 'delete-pre-generated-docs
4547 (delete-file-recursively "docs")
4549 (add-after 'install 'install-info-documentation
4550 (lambda* (#:key outputs #:allow-other-keys)
4551 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
4552 (doc (string-append share "/doc/" ,name "-" ,version))
4553 (info (string-append share "/info/"))
4554 (makeinfo (string-append (assoc-ref %build-inputs "texinfo")
4556 (invoke makeinfo "guile-shapefile.texi" "-o" info)
4559 `(("guile" ,guile-3.0)))
4561 `(("texinfo" ,texinfo)))
4562 (home-page "https://github.com/HugoNikanor/guile-shapefile")
4563 (synopsis "Parse shapefiles in Guile")
4565 "Guile Shapefile is a Guile library for reading shapefiles.")
4566 (license license:expat)))
4568 (define-public guile-drmaa
4570 (name "guile-drmaa")
4576 (url "https://git.elephly.net/software/guile-drmaa.git")
4578 (file-name (git-file-name name version))
4581 "1m2x62n3x5hi5vnsvv2zgqhgpzrfq7r5095fzzjd1aaybi9i9igg"))))
4582 (build-system gnu-build-system)
4584 `(("autoconf" ,autoconf)
4585 ("automake" ,automake)
4586 ("pkg-config" ,pkg-config)
4587 ("texinfo" ,texinfo)
4590 `(("guile" ,guile-3.0)))
4592 `(("guile-bytestructures" ,guile-bytestructures)
4594 (home-page "https://git.elephly.net/software/guile-drmaa.git")
4595 (synopsis "Guile bindings to DRMAA")
4596 (description "This project provides Guile bindings to the DRMAA library
4597 version 1. DRMAA is a resource management library implemented by HPC cluster
4599 (license license:gpl3+)))
4601 (define-public guile-libyaml
4602 (let ((commit "2bdacb72a65ab63264b2edc9dac9692df7ec9b3e")
4605 (name "guile-libyaml")
4606 (version (git-version "0" revision commit))
4611 (url "https://github.com/mwette/guile-libyaml")
4613 (file-name (git-file-name name version))
4616 "1bssby1ri1vjll2rvi8b33xr2ghwjyxsd4yc15najj3h8n2ss87i"))))
4617 (build-system gnu-build-system)
4619 `(#:modules (((guix build guile-build-system)
4621 ,@%gnu-build-system-modules)
4622 #:imported-modules ((guix build guile-build-system)
4623 ,@%gnu-build-system-modules)
4624 #:tests? #false ; there are none
4626 (modify-phases %standard-phases
4628 (add-after 'unpack 'remove-unused-files
4629 (lambda* (#:key inputs #:allow-other-keys)
4630 (for-each delete-file '("guix.scm" "demo1.yml" "demo1.scm"))))
4631 (add-before 'build 'build-ffi
4632 (lambda* (#:key inputs #:allow-other-keys)
4633 (invoke "guild" "compile-ffi"
4634 "--no-exec" ; allow us to patch the generated file
4636 (substitute* "yaml/libyaml.scm"
4637 (("dynamic-link \"libyaml\"")
4638 (format #false "dynamic-link \"~a/lib/libyaml\""
4639 (assoc-ref inputs "libyaml"))))))
4641 (assoc-ref guile:%standard-phases 'build))
4642 (delete 'install))))
4644 `(("guile" ,guile-3.0)
4645 ("libyaml" ,libyaml)))
4647 `(("guile-bytestructures" ,guile-bytestructures)
4649 (home-page "https://github.com/mwette/guile-libyaml")
4650 (synopsis "Guile wrapper for libyaml")
4652 "This package provides a simple yaml module for Guile using the
4653 ffi-helper from nyacc.")
4654 (license license:lgpl3+))))
4656 (define-public schmutz
4657 (let ((commit "add24588c59552537b8f1316df99a0cdd62c221e")
4661 (version (git-version "0" revision commit))
4665 (url "https://github.com/arximboldi/schmutz")
4667 (file-name (git-file-name name version))
4670 "1z3n61sj62lnn15mandvyrpjzli07rp9r62ypvgg3a8bvh37yc89"))))
4671 (build-system cmake-build-system)
4672 (arguments `(#:tests? #f))
4674 `(("pkg-config" ,pkg-config)))
4676 `(("guile" ,guile-2.2)))
4677 (home-page "https://github.com/arximboldi/schmutz")
4678 (synopsis "Bind C++ code to Scheme")
4679 (description "Schmutz is a header-only library to declare Scheme bindings
4680 for C++ code using a simple embedded DSL. Think of it as @code{Boost.Python}
4681 or @code{LuaBind} but for Scheme.")
4682 (license license:boost1.0))))
4684 (define-public guile-cbor
4692 (url "https://inqlab.net/git/guile-cbor.git")
4693 (commit (string-append "v" version))))
4694 (file-name (git-file-name name version))
4695 (sha256 (base32 "0bdqg3ifayf7m2j09lqrgdfprbdaa67azf09bcq9b4k71inxfnxl"))))
4696 (build-system gnu-build-system)
4699 `(("autoconf" ,autoconf)
4700 ("automake" ,automake)
4701 ("pkg-config" ,pkg-config)
4702 ("texinfo" ,texinfo)))
4703 (inputs `(("guile" ,guile-3.0)))
4704 (synopsis "Guile implementation of CBOR")
4706 "The Concise Binary Object Representation (CBOR), as specified by RFC 8949, is
4707 a binary data serialization format. CBOR is similar to JSON but serializes to
4708 binary which is smaller and faster to generate and parse. This package provides
4709 a Guile implementation of CBOR.")
4710 (home-page "https://inqlab.net/git/guile-cbor.git")
4711 (license license:gpl3+)))
4713 (define-public guile-quickcheck
4715 (name "guile-quickcheck")
4719 (uri (string-append "https://files.ngyro.com/"
4720 "guile-quickcheck/guile-quickcheck-"
4724 "03mwi1l3354x52nar0zwhcm0x29yai9xjln4p4gbchwvx5dsr6fb"))))
4725 (build-system gnu-build-system)
4727 `(("pkg-config" ,pkg-config)))
4729 `(("guile" ,guile-3.0)))
4730 (home-page "https://ngyro.com/software/guile-quickcheck.html")
4731 (synopsis "Randomized property-based testing for Guile")
4732 (description "Guile-Quickcheck is a library for random testing of program
4733 properties inspired by ghc-quickcheck. You can use it to express properties,
4734 which functions should satisfy, as Scheme code and then check whether they hold
4735 in a large number of randomly generated test cases.")
4736 (license license:gpl3+)))
4738 (define-public guile-fslib
4740 (name "guile-fslib")
4746 (url "https://notabug.org/ZelphirKaltstahl/guile-fslib/")
4748 (file-name (git-file-name name version))
4751 "118d84p443w7hrslv8hjyhgws631ia08mggiyklkmk0b9plfdsvz"))))
4752 (build-system guile-build-system)
4754 `(("guile" ,guile-3.0)))
4755 (home-page "https://notabug.org/ZelphirKaltstahl/guile-fslib")
4756 (synopsis "Helper functions for working with locations in file systems")
4758 "This package contains helper functions for working with file system
4760 (license license:agpl3+)))
4762 (define-public guile-netlink
4764 (name "guile-netlink")
4770 (url "https://git.lepiller.eu/git/guile-netlink")
4772 (file-name (git-file-name name version))
4775 "1x1rx6agjdah56r50cfs41vyvycydyjdq0plq3jxgvl1q2dar1gw"))))
4776 (build-system gnu-build-system)
4778 `(#:tests? #f)); no tests
4780 `(("guile" ,guile-3.0)))
4782 `(("automake" ,automake)
4783 ("autoconf" ,autoconf)
4784 ("pkg-config" ,pkg-config)
4785 ("texinfo" ,texinfo)))
4786 (home-page "https://git.lepiller.eu/guile-netlink")
4787 (synopsis "Netlink protocol implementation for Guile")
4788 (description "Guile Netlink is a GNU Guile library providing an implementation
4789 of the netlink protocol.
4791 It provides a generic library for writing implementations of a netlink
4792 protocol, a low-level rtnetlink implementation that uses that library and a
4793 high-level API for network management that uses rtnetlink.")
4794 (license license:gpl3+)))