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 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-2.2)))
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 (search-input-file inputs "/bin/openssl")))))
1177 ;; XXX: The code uses 'include' to include its own source
1178 ;; files, and "-L src" isn't enough in this case.
1179 (add-before 'build 'chdir
1180 (lambda _ (chdir "src") #t))
1181 (add-after 'build 'chdir-back
1182 (lambda _ (chdir "..") #t))
1184 (add-after 'install 'install-kernel
1185 (lambda* (#:key inputs outputs #:allow-other-keys)
1186 (let* ((out (assoc-ref outputs "out"))
1187 (json (assoc-ref inputs "guile-json"))
1188 (zmq (assoc-ref inputs "guile-simple-zmq"))
1189 (deps (list json zmq))
1191 out "/share/jupyter/kernels/guile"))
1192 (effective (target-guile-effective-version)))
1194 (install-file "src/kernel.json" dir)
1196 ;; Fix hard-coded file name in the kernel.
1197 (substitute* (string-append dir "/kernel.json")
1198 (("/usr/local/.*/guile-jupyter-kernel.scm")
1199 (string-append out "/share/guile/site/"
1200 (target-guile-effective-version)
1201 "/guile-jupyter-kernel.scm"))
1203 (string-append "\"" (assoc-ref inputs "guile")
1206 ;; Add '-L' and '-C' flags so that the kernel
1207 ;; finds its dependencies.
1208 (let ((-L (map (lambda (item)
1209 (string-append "\"" item
1210 "/share/guile/site/"
1213 (-C (map (lambda (item)
1214 (string-append "\"" item
1219 (string-append "--no-auto-compile\""
1220 (string-join -L ", \"-L\", "
1222 (string-join -C ", \"-C\", "
1227 `(("openssl" ,openssl)
1228 ("guile" ,guile-3.0)
1229 ("guile-json" ,guile-json-3)
1230 ("guile-simple-zmq" ,guile-simple-zmq)))
1231 (synopsis "Guile kernel for the Jupyter Notebook")
1233 "This package provides a Guile 2.x kernel for the Jupyter Notebook. It
1234 allows users to interact with the Guile REPL through Jupyter.")
1235 (home-page "https://github.com/jerry40/guile-kernel")
1236 (license license:gpl3+))))
1238 (define-public guile-sparql
1240 (name "guile-sparql")
1245 "https://github.com/roelj/guile-sparql/releases/download/"
1246 version "/guile-sparql-" version ".tar.gz"))
1248 (base32 "1jf4972f9fpm0rd865xpnc9mzl3xv6vhfnp0iygadydy905z9nln"))))
1249 (build-system gnu-build-system)
1251 `(("pkg-config" ,pkg-config)))
1253 `(("guile" ,guile-3.0)))
1254 (home-page "https://github.com/roelj/guile-sparql")
1255 (synopsis "SPARQL module for Guile")
1256 (description "This package provides the functionality to query a SPARQL
1257 endpoint. Additionally, it provides an interface to write SPARQL queries
1258 using S-expressions.")
1259 (license license:gpl3+)))
1261 (define-public guile-debbugs
1263 (name "guile-debbugs")
1267 (uri (string-append "mirror://gnu/guile-debbugs/guile-debbugs-"
1271 "1cc63nw3xdfjrfk8c58r6d5lidmfq5cpqcy32yd5xp81yccprvn9"))))
1272 (build-system gnu-build-system)
1274 `(("guile-email" ,guile-email)))
1276 `(("guile" ,guile-3.0)
1277 ("pkg-config" ,pkg-config)))
1278 (home-page "https://savannah.gnu.org/projects/guile-debbugs/")
1279 (synopsis "Guile interface to the Debbugs bug tracking service")
1281 "This package provides a Guile library to communicate with a Debbugs bug
1282 tracker's SOAP service, such as @url{https://bugs.gnu.org}.")
1283 (license license:gpl3+)))
1285 (define-public guile-email
1287 (name "guile-email")
1293 "https://guile-email.systemreboot.net/releases/guile-email-"
1297 "1rc8r0fgvflnyq5ckl7ii8sghpsgpkzxa8vskjr1ak2kyar6m35k"))
1299 (search-patches "guile-email-fix-tests.patch"))))
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 "1ri5065c16kmgrf2pysn2ymxjqi5302lhpb07wkl1jr75ym8fn8p"))))
1474 (build-system gnu-build-system)
1476 `(("pkg-config" ,pkg-config)))
1478 `(("guile" ,guile-2.2)
1480 ("libxext" ,libxext)
1481 ("libxinerama" ,libxinerama)
1483 (home-page "https://github.com/alezost/guile-xosd")
1484 (synopsis "XOSD bindings for Guile")
1486 "Guile-XOSD provides Guile bindings for @code{libxosd},
1487 @uref{http://sourceforge.net/projects/libxosd/, the X On Screen Display
1489 (license license:gpl3+)))
1491 (define-public guile-dbi
1498 (url "https://github.com/opencog/guile-dbi")
1499 (commit (string-append "guile-dbi-" version))))
1500 (file-name (git-file-name name version))
1503 "123m4j82bi60s1v95pjh4djb7bh6zdwmljbpyg7zq8ni2gyal7lw"))))
1504 (build-system gnu-build-system)
1506 `(#:modules (((guix build guile-build-system)
1507 #:select (target-guile-effective-version))
1508 ,@%gnu-build-system-modules)
1509 #:imported-modules ((guix build guile-build-system)
1510 ,@%gnu-build-system-modules)
1512 (list (string-append
1513 "--with-guile-site-dir=" %output "/share/guile/site/"
1514 (target-guile-effective-version (assoc-ref %build-inputs "guile"))))
1516 (modify-phases %standard-phases
1517 (add-after 'unpack 'chdir
1519 ;; The upstream Git repository contains all the code, so change
1520 ;; to the directory specific to guile-dbi.
1521 (chdir "guile-dbi")))
1522 (add-after 'install 'patch-extension-path
1523 (lambda* (#:key inputs outputs #:allow-other-keys)
1524 (let* ((out (assoc-ref outputs "out"))
1525 (dbi.scm (string-append out "/share/guile/site/"
1526 (target-guile-effective-version
1527 (assoc-ref inputs "guile"))
1529 (ext (string-append out "/lib/libguile-dbi")))
1530 (substitute* dbi.scm (("libguile-dbi") ext))))))))
1532 `(("autoconf" ,autoconf)
1533 ("automake" ,automake)
1534 ("libtool" ,libtool)
1536 ("texinfo" ,texinfo)))
1538 `(("guile" ,guile-2.2)))
1539 (synopsis "Guile database abstraction layer")
1540 (home-page "https://github.com/opencog/guile-dbi")
1542 "guile-dbi is a library for Guile that provides a convenient interface to
1543 SQL databases. Database programming with guile-dbi is generic in that the same
1544 programming interface is presented regardless of which database system is used.
1545 It currently supports MySQL, Postgres and SQLite3.")
1546 (license license:gpl2+)
1547 (native-search-paths
1548 (list (search-path-specification
1549 (variable "GUILE_DBD_PATH")
1550 (files '("lib")))))))
1552 (define-public guile-dbd-sqlite3
1555 (name "guile-dbd-sqlite3")
1557 (substitute-keyword-arguments (package-arguments guile-dbi)
1559 `(modify-phases ,phases
1562 ;; The upstream Git repository contains all the code, so change
1563 ;; to the directory specific to guile-dbd-sqlite3.
1564 (chdir "guile-dbd-sqlite3")))
1565 (delete 'patch-extension-path)))))
1567 `(("sqlite" ,sqlite)
1570 `(("guile-dbi" ,guile-dbi) ; only required for headers
1571 ("pkg-config" ,pkg-config)
1572 ,@(package-native-inputs guile-dbi)))
1573 (synopsis "Guile DBI driver for SQLite")
1575 "guile-dbi is a library for Guile that provides a convenient interface to
1576 SQL databases. This package implements the interface for SQLite.")))
1578 (define-public guile-dbd-postgresql
1581 (name "guile-dbd-postgresql")
1583 (substitute-keyword-arguments (package-arguments guile-dbi)
1585 `(modify-phases ,phases
1588 ;; The upstream Git repository contains all the code, so change
1589 ;; to the directory specific to guile-dbd-mysql.
1590 (chdir "guile-dbd-postgresql")))
1591 (add-after 'chdir 'patch-src
1593 (substitute* "src/guile-dbd-postgresql.c"
1594 (("postgresql/libpq-fe\\.h") "libpq-fe.h"))))
1595 (delete 'patch-extension-path)))))
1597 `(("postgresql" ,postgresql)
1600 `(("guile-dbi" ,guile-dbi) ; only required for headers
1601 ,@(package-native-inputs guile-dbi)))
1602 (synopsis "Guile DBI driver for PostgreSQL")
1604 "@code{guile-dbi} is a library for Guile that provides a convenient
1605 interface to SQL databases. This package implements the interface for
1608 (define-public guile-dbd-mysql
1611 (name "guile-dbd-mysql")
1613 (substitute-keyword-arguments (package-arguments guile-dbi)
1615 `(modify-phases ,phases
1618 ;; The upstream Git repository contains all the code, so change
1619 ;; to the directory specific to guile-dbd-mysql.
1620 (chdir "guile-dbd-mysql")))
1621 (add-after 'chdir 'patch-src
1623 (substitute* "configure.ac"
1624 (("mariadbclient") "mariadb"))
1625 (substitute* "src/guile-dbd-mysql.c"
1626 (("<mariadb/") "<mysql/"))))
1627 (delete 'patch-extension-path)))))
1629 `(("mariadb" ,mariadb "dev")
1630 ("mariadb" ,mariadb "lib")
1633 `(("guile-dbi" ,guile-dbi) ; only required for headers
1634 ,@(package-native-inputs guile-dbi)))
1635 (synopsis "Guile DBI driver for MySQL")
1636 (description "@code{guile-dbi} is a library for Guile that provides a
1637 convenient interface to SQL databases. This package implements the interface
1639 (license license:gpl2+)))
1641 (define-public guile-config
1643 (name "guile-config")
1649 (url "https://gitlab.com/a-sassmannshausen/guile-config")
1651 (file-name (git-file-name name version))
1653 "09028ylbddjdp3d67zdjz3pnsjqz6zs2bfck5rr3dfaa0qjap40n"))))
1654 (build-system gnu-build-system)
1656 `(("autoconf" ,autoconf)
1657 ("automake" ,automake)
1658 ("pkg-config" ,pkg-config)
1659 ("texinfo" ,texinfo)))
1660 (inputs `(("guile" ,guile-3.0)))
1662 "Guile application configuration parsing library.")
1664 "Guile Config is a library providing a declarative approach to
1665 application configuration specification. The library provides clean
1666 configuration declaration forms, and processors that take care of:
1667 configuration file creation; configuration file parsing; command-line
1668 parameter parsing using getopt-long; basic GNU command-line parameter
1669 generation (--help, --usage, --version); automatic output generation for the
1670 above command-line parameters.")
1672 "https://gitlab.com/a-sassmannshausen/guile-config")
1673 (license license:gpl3+)))
1675 (define-public guile2.2-config
1677 (inherit guile-config)
1678 (name "guile2.2-config")
1679 (inputs `(("guile" ,guile-2.2)
1680 ,@(alist-delete "guile" (package-inputs guile-config))))))
1682 (define-public guile-hall
1690 (url "https://gitlab.com/a-sassmannshausen/guile-hall")
1692 (file-name "guile-hall-0.3.1-checkout")
1694 (base32 "1s24nigdra6rvclvy15l2aw00c3aq9vv8qwxylzs60darbl36206"))))
1695 (build-system gnu-build-system)
1700 ,@%gnu-build-system-modules)
1704 (add-after 'install 'hall-wrap-binaries
1705 (lambda* (#:key inputs outputs #:allow-other-keys)
1706 (let* ((compiled-dir
1707 (lambda (out version)
1709 out "/lib/guile/" version "/site-ccache")))
1711 (lambda (out version)
1713 out "/share/guile/site"
1714 (if (string-null? version) "" "/") version)))
1716 (lambda (env modules path)
1717 (list env ":" 'prefix
1719 (map (lambda (input)
1721 (assoc-ref inputs input)
1723 ,''("guile-config"))))))
1724 (out (assoc-ref outputs "out"))
1725 (bin (string-append out "/bin/"))
1726 (site (uncompiled-dir out "")))
1727 (match (scandir site)
1732 (string-append bin file)
1735 (uncompiled-dir out version)
1736 (uncompiled-dir "" version))
1738 "GUILE_LOAD_COMPILED_PATH"
1739 (compiled-dir out version)
1740 (compiled-dir "" version))))
1744 `(("autoconf" ,autoconf)
1745 ("automake" ,automake)
1746 ("pkg-config" ,pkg-config)
1747 ("texinfo" ,texinfo)))
1748 (inputs `(("guile" ,guile-3.0)))
1750 `(("guile-config" ,guile-config)))
1751 (synopsis "Guile project tooling")
1753 "Hall is a command-line application and a set of Guile libraries that
1754 allow you to quickly create and publish Guile projects. It allows you to
1755 transparently support the GNU build system, manage a project hierarchy &
1756 provides tight coupling to Guix.")
1757 (home-page "https://gitlab.com/a-sassmannshausen/guile-hall")
1758 (license license:gpl3+)))
1760 (define-public guile2.2-hall
1762 (inherit guile-hall)
1763 (name "guile2.2-hall")
1764 (inputs `(("guile" ,guile-2.2)
1765 ,@(alist-delete "guile" (package-inputs guile-hall))))
1767 `(("guile-config" ,guile2.2-config)
1768 ,@(alist-delete "guile-config"
1769 (package-propagated-inputs guile-hall))))))
1771 (define-public guile-ics
1778 (url "https://github.com/artyom-poptsov/guile-ics")
1779 (commit (string-append "v" version))))
1780 (file-name (string-append name "-" version "-checkout"))
1783 "0qjjvadr7gibdq9jvwkmlkb4afsw9n2shfj9phpiadinxk3p4m2g"))
1784 (modules '((guix build utils)))
1787 ;; Allow builds with Guile 3.0.
1788 (substitute* "configure.ac"
1790 "GUILE_PKG([3.0 2.2 2.0])\n"))
1792 (build-system gnu-build-system)
1793 ;; XXX: Tests expect 'test-runner-current' to not return #f after
1794 ;; 'test-end', which is no longer the case in Guile 3.0.7.
1795 (arguments '(#:tests? #f))
1797 `(("autoconf" ,autoconf)
1798 ("automake" ,automake)
1799 ("texinfo" ,texinfo)
1800 ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
1801 ("gettext" ,gettext-minimal)
1802 ("pkg-config" ,pkg-config)))
1803 (inputs `(("guile" ,guile-3.0) ("which" ,which)))
1804 (propagated-inputs `(("guile-lib" ,guile-lib)))
1805 (home-page "https://github.com/artyom-poptsov/guile-ics")
1806 (synopsis "Guile parser library for the iCalendar format")
1808 "Guile-ICS is an iCalendar (RFC5545) format parser library written in
1809 pure Scheme. The library can be used to read and write iCalendar data.
1811 The library is shipped with documentation in Info format and usage examples.")
1812 (license license:gpl3+)))
1814 (define-public guile2.2-ics
1817 (name "guile2.2-ics")
1818 (inputs `(("guile" ,guile-2.2)
1819 ,@(alist-delete "guile" (package-inputs guile-ics))))
1820 (propagated-inputs `(("guile-lib" ,guile2.2-lib)))))
1822 (define-public guile-imanifest
1823 (let ((commit "ccd5a2111b008d778106f5595a3a585954d95d0")
1826 (name "guile-imanifest")
1827 (version (git-version "0.0.0" revision commit))
1831 (url "https://git.sr.ht/~brown121407/guile-imanifest")
1833 (file-name (git-file-name name version))
1836 "0i5qllcrhdjhspyj7j9h4dc9y37d3cfbpackmybm3030qgfxqirf"))))
1837 (build-system guile-build-system)
1839 `(("guile" ,guile-3.0)))
1841 `(("guile-readline" ,guile-readline)
1842 ("guile-colorized" ,guile-colorized)
1844 (home-page "https://sr.ht/~brown121407/guile-imanifest")
1845 (synopsis "Interactive Guix manifests")
1846 (description "This package provides functions to generate Guix manifests
1847 interactively. It works by scanning an alist of package categories, to ask the
1848 user which package sets would they like to install from it.")
1849 (license license:gpl3+))))
1851 (define-public guile-wisp
1858 (url "https://hg.sr.ht/~arnebab/wisp")
1859 (changeset (string-append "v" version))))
1860 (file-name (git-file-name name version))
1863 "00iknn03gf421gg3061g35fbraqrkcqypkrfn10rhlgg6j0lgk67"))))
1864 (build-system gnu-build-system)
1866 `(#:modules ((guix build gnu-build-system)
1867 ((guix build emacs-build-system) #:prefix emacs:)
1869 (guix build emacs-utils)
1872 #:imported-modules (,@%gnu-build-system-modules
1873 (guix build emacs-build-system)
1874 (guix build emacs-utils))
1876 (modify-phases %standard-phases
1879 (invoke "autoreconf" "-vif")
1881 (add-before 'configure 'patch-/usr/bin/env
1883 (substitute* "Makefile.in"
1884 (("/usr/bin/env bash") (which "bash")))
1886 ;; auto compilation breaks, but if we set HOME to /tmp,
1888 (add-before 'check 'auto-compile-hacky-workaround
1889 (lambda _ (setenv "HOME" "/tmp") #t))
1890 (add-after 'install 'install-go-files
1891 (lambda* (#:key outputs inputs #:allow-other-keys)
1892 (let* ((out (assoc-ref outputs "out"))
1893 (effective (read-line
1894 (open-pipe* OPEN_READ
1896 "(display (effective-version))")))
1897 (module-dir (string-append out "/share/guile/site/"
1899 (object-dir (string-append out "/lib/guile/" effective
1901 (prefix (string-length module-dir)))
1902 ;; compile to the destination
1903 (for-each (lambda (file)
1904 (let* ((base (string-drop (string-drop-right file 4)
1906 (go (string-append object-dir base ".go")))
1907 (invoke "guild" "compile" "-L" module-dir
1909 (find-files module-dir "\\.scm$"))
1911 (add-after 'install 'install-emacs-files
1912 (assoc-ref emacs:%standard-phases 'install))
1913 (add-after 'install-emacs-files 'compile-emacs-files
1914 (assoc-ref emacs:%standard-phases 'build))
1915 (add-after 'compile-emacs-files 'make-autoloads
1916 (assoc-ref emacs:%standard-phases 'make-autoloads)))))
1917 (home-page "https://www.draketo.de/english/wisp")
1919 `(("guile" ,guile-3.0)))
1921 `(("autoconf" ,autoconf)
1922 ("automake" ,automake)
1923 ("emacs" ,emacs-minimal)
1925 ("pkg-config" ,pkg-config)))
1926 (synopsis "Whitespace to lisp syntax for Guile")
1927 (description "Wisp is a syntax for Guile which provides a Python-like
1928 whitespace-significant language. It may be easier on the eyes for some
1929 users and in some situations.")
1930 (license (list license:gpl3+ ; the project as a whole
1931 license:expat)))) ; the language spec (see also SRFI 119)
1933 (define-public guile2.2-wisp
1935 (inherit guile-wisp)
1936 (name "guile2.2-wisp")
1937 (inputs `(("guile" ,guile-2.2)))))
1939 (define-public guile-udev
1946 (url "https://github.com/artyom-poptsov/guile-udev")
1947 (commit (string-append "v" version))))
1948 (file-name (git-file-name name version))
1951 "1l6csncjqnx58c6c3wdl7rshnhk4pzhjq2q8lnkg483564s9w5py"))))
1952 (build-system gnu-build-system)
1954 `(("autoconf" ,autoconf)
1955 ("automake" ,automake)
1956 ("gettext" ,gettext-minimal)
1957 ("libtool" ,libtool)
1958 ("texinfo" ,texinfo)
1959 ("pkg-config" ,pkg-config)
1962 `(("guile" ,guile-3.0)
1964 (home-page "https://github.com/artyom-poptsov/guile-udev")
1965 (synopsis "Guile bindings to libudev")
1967 "Guile-Udev provides GNU Guile bindings to libudev.")
1968 (license license:gpl3+)))
1970 (define-public guile-sly
1976 (uri (string-append "https://files.dthompson.us/sly/sly-"
1980 "1svzlbz2vripmyq2kjh0rig16bsrnbkwbsm558pjln9l65mcl4qq"))
1981 (modules '((guix build utils)))
1984 (substitute* "configure"
1985 (("_guile_required_version=\"2.0.11\"")
1986 "_guile_required_version=\"2\"")
1987 (("ac_subst_vars='")
1988 "ac_subst_vars='GUILE_EFFECTIVE_VERSION\n"))
1989 (substitute* (find-files "." "Makefile.in")
1993 "$(prefix)/share/guile/site/@GUILE_EFFECTIVE_VERSION@\n"))
1997 "$(prefix)/lib/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n")))
1999 (build-system gnu-build-system)
2002 (list (string-append "--with-libfreeimage-prefix="
2003 (assoc-ref %build-inputs "freeimage"))
2004 (string-append "--with-libgslcblas-prefix="
2005 (assoc-ref %build-inputs "gsl")))))
2007 `(("pkg-config" ,pkg-config)))
2009 `(("guile-sdl" ,guile-sdl)
2010 ("guile-opengl" ,guile-opengl)))
2012 `(("guile" ,guile-2.2)
2014 ("freeimage" ,freeimage)
2016 (synopsis "2D/3D game engine for GNU Guile")
2017 (description "Sly is a 2D/3D game engine written in Guile Scheme. Sly
2018 features a functional reactive programming interface and live coding
2020 (home-page "https://dthompson.us/projects/sly.html")
2021 (license license:gpl3+)))
2023 (define-public g-golf
2024 (let ((commit "ef830107b9765bd6a2da848d0cbe45e11374c0b5")
2028 (version (git-version "0.1.0" revision commit))
2033 (url "https://git.savannah.gnu.org/git/g-golf.git")
2035 (file-name (git-file-name name version))
2037 (base32 "0r472hvmf447kqvkahp1wy4irb5gy8y793hm8r9rc511smdx66cw"))))
2038 (build-system gnu-build-system)
2040 `(("autoconf" ,autoconf)
2041 ("automake" ,automake)
2042 ("texinfo" ,texinfo)
2043 ("gettext" ,gettext-minimal)
2044 ("libtool" ,libtool)
2045 ("pkg-config" ,pkg-config)
2046 ("xorg-server" ,xorg-server)))
2048 `(("guile" ,guile-2.2)
2049 ("guile-lib" ,guile2.2-lib)
2050 ("clutter" ,clutter)
2054 `(("gobject-introspection" ,gobject-introspection)))
2057 (modify-phases %standard-phases
2058 (add-before 'configure 'tests-work-arounds
2059 (lambda* (#:key inputs #:allow-other-keys)
2060 ;; In build environment, There is no /dev/tty
2062 "test-suite/tests/gobject.scm"
2063 (("/dev/tty") "/dev/null"))))
2064 (add-before 'configure 'substitute-libs
2065 (lambda* (#:key inputs outputs #:allow-other-keys)
2066 (let* ((get (lambda (key lib)
2067 (string-append (assoc-ref inputs key) "/lib/" lib)))
2068 (libgi (get "gobject-introspection" "libgirepository-1.0"))
2069 (libglib (get "glib" "libglib-2.0"))
2070 (libgobject (get "glib" "libgobject-2.0"))
2071 (libgdk (get "gtk" "libgdk-3")))
2072 (substitute* "configure"
2073 (("SITEDIR=\"\\$datadir/g-golf\"")
2074 "SITEDIR=\"$datadir/guile/site/$GUILE_EFFECTIVE_VERSION\"")
2075 (("SITECCACHEDIR=\"\\$libdir/g-golf/")
2076 "SITECCACHEDIR=\"$libdir/"))
2077 (substitute* "g-golf/init.scm"
2078 (("libgirepository-1.0") libgi)
2079 (("libglib-2.0") libglib)
2080 (("libgdk-3") libgdk)
2081 (("libgobject-2.0") libgobject)
2082 (("\\(dynamic-link \"libg-golf\"\\)")
2085 (format #f "~alibg-golf"
2086 (if (getenv "GUILE_GGOLF_UNINSTALLED")
2088 ,(format #f "~a/lib/"
2089 (assoc-ref outputs "out"))))))))
2090 (setenv "GUILE_AUTO_COMPILE" "0")
2091 (setenv "GUILE_GGOLF_UNINSTALLED" "1")
2093 (add-before 'check 'start-xorg-server
2094 (lambda* (#:key inputs #:allow-other-keys)
2095 ;; The test suite requires a running X server.
2096 (system (format #f "~a/bin/Xvfb :1 &"
2097 (assoc-ref inputs "xorg-server")))
2098 (setenv "DISPLAY" ":1")
2100 (home-page "https://www.gnu.org/software/g-golf/")
2101 (synopsis "Guile bindings for GObject Introspection")
2103 "G-Golf (Gnome: (Guile Object Library for)) is a library for developing
2104 modern applications in Guile Scheme. It comprises a direct binding to the
2105 GObject Introspection API and higher-level functionality for importing Gnome
2106 libraries and making GObject classes (and methods) available in Guile's
2107 object-oriented programming system, GOOPS.")
2108 (license license:lgpl3+))))
2110 (define-public g-wrap
2116 (uri (string-append "mirror://savannah/g-wrap/g-wrap-"
2120 "0ak0bha37dfpj9kmyw1r8fj8nva639aw5xr66wr5gd3l1rqf5xhg"))))
2121 (build-system gnu-build-system)
2123 `(("pkg-config" ,pkg-config)))
2125 `(("guile" ,guile-2.2)
2126 ("guile-lib" ,guile-lib)))
2128 `(("libffi" ,libffi)))
2130 `(#:configure-flags '("--disable-Werror")
2132 (modify-phases %standard-phases
2133 (add-before 'configure 'pre-configure
2134 (lambda* (#:key outputs #:allow-other-keys)
2135 (let ((out (assoc-ref outputs "out")))
2136 (substitute* (find-files "." "^Makefile.in$")
2137 (("guilemoduledir =.*guile/site" all)
2138 (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
2140 (synopsis "Generate C bindings for Guile")
2141 (description "G-Wrap is a tool and Guile library for generating function
2142 wrappers for inter-language calls. It currently only supports generating Guile
2143 wrappers for C functions. Given a definition of the types and prototypes for
2144 a given C interface, G-Wrap will automatically generate the C code that
2145 provides access to that interface and its types from the Scheme level.")
2146 (home-page "https://www.nongnu.org/g-wrap/index.html")
2147 (license license:lgpl2.1+)))
2149 (define-public guile-miniadapton
2150 (let ((commit "1b5749422304567c96ac5367f2221dda9eff5880")
2153 (name "guile-miniadapton")
2154 (version (string-append "0-" revision "." (string-take commit 9)))
2158 (url "https://github.com/fisherdj/miniAdapton")
2160 (file-name (string-append name "-" version "-checkout"))
2163 "09q51zkw2fypad5xixskfzw2cjhjgs5cswdp3i7cpp651rb3zndh"))))
2164 (build-system guile-build-system)
2166 `(("guile" ,guile-2.2)))
2167 (home-page "https://github.com/fisherdj/miniAdapton")
2168 (synopsis "Minimal implementation of incremental computation in Guile
2170 (description "This package provides a complete Scheme implementation of
2171 miniAdapton, which implements the core functionality of the Adapton system for
2172 incremental computation (also known as self-adjusting computation). Like
2173 Adapton, miniAdapton allows programmers to safely combine mutation and
2174 memoization. miniAdapton is built on top of an even simpler system,
2175 microAdapton. Both miniAdapton and microAdapton are designed to be easy to
2176 understand, extend, and port to host languages other than Scheme.")
2177 (license license:expat))))
2179 (define-public guile-raw-strings
2180 (let ((commit "aa1cf783f2542811b473f797e12490920b779baa")
2183 (name "guile-raw-strings")
2184 (version (git-version "0.0.0" revision commit))
2188 (url "https://github.com/lloda/guile-raw-strings")
2190 (file-name (git-file-name name version))
2193 "1r2gx86zw5hb6byllra3nap3fw9p7q7rvdmg6qn9myrdxyjpns3l"))))
2194 (build-system guile-build-system)
2197 (modify-phases %standard-phases
2198 (add-after 'build 'check
2199 (lambda* (#:key tests? #:allow-other-keys)
2201 (invoke "guile" "-L" "." "-s" "test.scm")))))))
2203 `(("guile" ,guile-3.0)))
2204 (home-page "https://github.com/lloda/guile-raw-strings")
2205 (synopsis "Guile reader extension for `raw strings'")
2206 (description "This package provides A Guile reader extension for `raw
2207 strings', it lets you write verbatim strings without having to escape double
2209 (license license:public-domain))))
2211 (define-public guile-reader
2213 (name "guile-reader")
2217 (uri (string-append "mirror://savannah/guile-reader/guile-reader-"
2221 "1fyjckmygkhq22lq8nqc86yl5zzbqd7a944dnz5c1f6vx92b9hiq"))))
2222 (build-system gnu-build-system)
2223 (native-inputs `(("pkgconfig" ,pkg-config)
2225 (inputs `(("guile" ,guile-3.0)))
2226 (synopsis "Framework for building readers for GNU Guile")
2228 "Guile-Reader is a simple framework for building readers for GNU Guile.
2230 The idea is to make it easy to build procedures that extend Guile’s read
2231 procedure. Readers supporting various syntax variants can easily be written,
2232 possibly by re-using existing “token readers” of a standard Scheme
2233 readers. For example, it is used to implement Skribilo’s R5RS-derived
2236 Guile-Reader’s approach is similar to Common Lisp’s “read table”, but
2237 hopefully more powerful and flexible (for instance, one may instantiate as
2238 many readers as needed).")
2239 (home-page "https://www.nongnu.org/guile-reader/")
2240 (license license:gpl3+)))
2242 (define-public guile2.2-reader
2244 (inherit guile-reader)
2245 (name "guile2.2-reader")
2246 (inputs `(("guile" ,guile-2.2)))))
2248 (define-public guile-ncurses
2250 (name "guile-ncurses")
2254 (uri (string-append "mirror://gnu/guile-ncurses/guile-ncurses-"
2258 "038xbffalhymg26lvmzgf7ljilxz2f2zmqg5r5nfzbipfbprwjhf"))))
2259 (build-system gnu-build-system)
2260 (inputs `(("ncurses" ,ncurses)
2261 ("guile" ,guile-3.0)))
2262 (native-inputs `(("pkg-config" ,pkg-config)))
2264 `(#:modules ((guix build gnu-build-system)
2265 ((guix build guile-build-system)
2266 #:select (target-guile-effective-version))
2268 #:imported-modules ((guix build guile-build-system)
2269 ,@%gnu-build-system-modules)
2270 #:configure-flags (list "--with-ncursesw" ; Unicode support
2271 "--with-gnu-filesystem-hierarchy")
2273 (modify-phases %standard-phases
2274 (add-before 'build 'fix-libguile-ncurses-file-name
2275 (lambda* (#:key outputs #:allow-other-keys)
2276 (invoke "make" "install"
2278 "-j" (number->string
2279 (parallel-job-count)))
2280 (let* ((out (assoc-ref outputs "out"))
2282 (files (find-files dir ".scm")))
2284 (("\"libguile-ncurses\"")
2285 (format #f "\"~a/lib/guile/~a/libguile-ncurses\""
2286 out (target-guile-effective-version))))
2288 (home-page "https://www.gnu.org/software/guile-ncurses/")
2289 (synopsis "Guile bindings to ncurses")
2291 "guile-ncurses provides Guile language bindings for the ncurses
2293 (license license:lgpl3+)))
2295 (define-public guile2.2-ncurses
2297 (inherit guile-ncurses)
2298 (name "guile2.2-ncurses")
2299 (inputs `(("ncurses" ,ncurses)
2300 ("guile" ,guile-2.2)))))
2302 (define-public guile-ncurses/gpm
2304 (inherit guile-ncurses)
2305 (name "guile-ncurses-with-gpm")
2306 (inputs `(("ncurses" ,ncurses/gpm)
2307 ("guile" ,guile-3.0)))))
2309 (define-public guile-lib
2315 (uri (string-append "mirror://savannah/guile-lib/guile-lib-"
2319 "1ph4z4a64m75in36pdb4dw63dzdq3hdgh16gq33q460jby23pvz4"))))
2320 (build-system gnu-build-system)
2322 '(#:make-flags '("GUILE_AUTO_COMPILE=0") ;placate guild warnings
2324 (modify-phases %standard-phases
2325 (add-before 'configure 'patch-module-dir
2327 (substitute* "src/Makefile.in"
2328 (("^moddir = ([[:graph:]]+)")
2329 "moddir = $(datadir)/guile/site/@GUILE_EFFECTIVE_VERSION@\n")
2330 (("^godir = ([[:graph:]]+)")
2332 $(libdir)/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n")))))))
2334 `(("autoconf" ,autoconf)
2335 ("automake" ,automake)
2336 ("gettext" ,gettext-minimal)
2337 ("guile" ,guile-3.0)
2338 ("pkg-config" ,pkg-config)))
2340 `(("guile" ,guile-3.0))) ;for cross-compilation
2341 (home-page "https://www.nongnu.org/guile-lib/")
2342 (synopsis "Collection of useful Guile Scheme modules")
2344 "Guile-Lib is intended as an accumulation place for pure-scheme Guile
2345 modules, allowing for people to cooperate integrating their generic Guile
2346 modules into a coherent library. Think \"a down-scaled, limited-scope CPAN
2347 for Guile\". It provides the following modules:
2349 +@item (apicheck) Describe and verify library programming interfaces.
2350 +@item (config load) Loading configuration files.
2351 +@item (container async-queue) A thread-safe message queue.
2352 +@item (container nodal-tree) A tree consisting of nodes with attributes.
2353 +@item (container delay-tree) A nodal tree with lazily evaluated fields.
2354 +@item (debugging assert) Helpful assert macro.
2355 +@item (debugging time) A simple macro to time the execution of an expression.
2356 +@item (graph topological-sort) Routines to perform topological sorts.
2357 +@item (htmlprag) Neil Van Dyke's permissive (\"pragmatic\") HTML parser.
2358 +@item (io string) SLIB's IO routines dealing with strings.
2359 +@item (logging logger) A flexible logging system.
2360 +@item (logging port-log) A logger that outputs to a port.
2361 +@item (logging rotating-log) A logger that rotates its output files.
2362 +@item (match-bind) Nifty and concise regular expression routines.
2363 +@item (math minima) A golden-section minimum finder.
2364 +@item (math primes) Functions related to prime numbers and factorization.
2365 +@item (os process) Spawning processes and capturing their output.
2366 +@item (scheme documentation) Macros to define different kinds of variables
2367 +with documentation.
2368 +@item (scheme kwargs) Defining functions with flexible keyword arguments.
2369 +@item (search basic) Classic search functions.
2370 +@item (string completion) Building blocks for tab completion.
2371 +@item (string soundex) The SOUNDEX string categorization algorithm.
2372 +@item (string transform) Beyond SRFI-13.
2373 +@item (string wrap) A versatile string formatter.
2374 +@item (term ansi-color) Generate ANSI color escape sequences.
2375 +@item (unit-test) A JUnit-style unit testing framework.
2377 ;; The whole is under GPLv3+, but some modules are under laxer
2378 ;; distribution terms such as LGPL and public domain. See `COPYING' for
2380 (license license:gpl3+)))
2382 (define-public guile2.0-lib
2385 (name "guile2.0-lib")
2387 (alist-replace "guile" (list guile-2.0)
2388 (package-native-inputs guile-lib)))
2390 (alist-replace "guile" (list guile-2.0)
2391 (package-inputs guile-lib)))))
2393 (define-public guile2.2-lib
2396 (name "guile2.2-lib")
2398 (alist-replace "guile" (list guile-2.2)
2399 (package-native-inputs guile-lib)))
2401 (alist-replace "guile" (list guile-2.2)
2402 (package-inputs guile-lib)))))
2404 (define-public guile-minikanren
2406 (name "guile-minikanren")
2407 (version "20150424.e844d85")
2411 (url "https://github.com/ijp/minikanren")
2412 (commit "e844d85512f8c055d3f96143ee506007389a25e3")))
2413 (file-name (string-append name "-" version "-checkout"))
2416 "0r50jlpzi940jlmxyy3ddqqwmj5r12gb4bcv0ssini9v8km13xz6"))))
2417 (build-system guile-build-system)
2419 `(("guile" ,guile-3.0)))
2420 (home-page "https://github.com/ijp/minikanren")
2421 (synopsis "MiniKanren declarative logic system, packaged for Guile")
2423 "MiniKanren is a relational programming extension to the Scheme
2424 programming Language, written as a smaller version of Kanren suitable for
2425 pedagogical purposes. It is featured in the book, The Reasoned Schemer,
2426 written by Dan Friedman, William Byrd, and Oleg Kiselyov.
2428 This is Ian Price's r6rs packaged version of miniKanren, which deviates
2429 slightly from miniKanren mainline.
2431 See http://minikanren.org/ for more on miniKanren generally.")
2432 (license license:expat)))
2434 (define-public guile2.0-minikanren
2436 (inherit guile-minikanren)
2437 (name "guile2.0-minikanren")
2438 (native-inputs `(("guile" ,guile-2.0)))))
2440 (define-public guile2.2-minikanren
2442 (inherit guile-minikanren)
2443 (name "guile2.2-minikanren")
2444 (native-inputs `(("guile" ,guile-2.2)))))
2446 (define-public guile-irregex
2448 (name "guile-irregex")
2453 "http://synthcode.com/scheme/irregex/irregex-"
2457 "1ia3m7dp3lcxa048q0gqbiwwsyvn99baw6xkhb4bhhzn4k7bwyqq"))))
2458 (build-system guile-build-system)
2460 '(#:phases (modify-phases %standard-phases
2461 (add-after 'unpack 'move-files-around
2463 ;; Move the relevant source files to src/ and create the
2464 ;; rx/ directory to match the expected module hierarchy.
2465 (mkdir-p "src/rx/source")
2466 (rename-file "irregex-guile.scm"
2467 "src/rx/irregex.scm")
2468 (rename-file "irregex.scm"
2469 "src/rx/source/irregex.scm")
2470 ;; Not really reachable via guile's packaging system,
2471 ;; but nice to have around.
2472 (rename-file "irregex-utils.scm"
2473 "src/rx/source/irregex-utils.scm")
2475 #:source-directory "src"))
2477 `(("guile" ,guile-3.0)))
2478 (home-page "http://synthcode.com/scheme/irregex")
2479 (synopsis "S-expression based regular expressions")
2481 "Irregex is an s-expression based alternative to your classic
2482 string-based regular expressions. It implements SRFI 115 and is deeply
2483 inspired by the SCSH regular expression system.")
2484 (license license:bsd-3)))
2486 (define-public guile2.0-irregex
2488 (inherit guile-irregex)
2489 (name "guile2.0-irregex")
2490 (native-inputs `(("guile" ,guile-2.0)))))
2492 (define-public guile2.2-irregex
2494 (inherit guile-irregex)
2495 (name "guile2.2-irregex")
2496 (native-inputs `(("guile" ,guile-2.2)))))
2498 (define-public haunt
2504 (uri (string-append "https://files.dthompson.us/haunt/haunt-"
2508 "1gy45l6m91b3wpdbpd9bpisp00zl8610zs0a2nwmbjlpd2cbf90k"))))
2509 (build-system gnu-build-system)
2511 `(#:modules ((ice-9 match) (ice-9 ftw)
2512 ,@%gnu-build-system-modules)
2513 #:tests? #f ; test suite is non-deterministic :(
2514 #:phases (modify-phases %standard-phases
2515 (add-after 'install 'wrap-haunt
2516 (lambda* (#:key inputs outputs #:allow-other-keys)
2517 ;; Wrap the 'haunt' command to refer to the right
2519 (let* ((out (assoc-ref outputs "out"))
2520 (bin (string-append out "/bin"))
2521 (site (string-append
2522 out "/share/guile/site"))
2523 (guile-reader (assoc-ref inputs "guile-reader"))
2524 (deps `(,@(if guile-reader
2527 ,(assoc-ref inputs "guile-commonmark"))))
2528 (match (scandir site)
2530 (let ((modules (string-append site "/" version))
2531 (compiled-modules (string-append
2532 out "/lib/guile/" version
2534 (wrap-program (string-append bin "/haunt")
2535 `("GUILE_LOAD_PATH" ":" prefix
2537 ,@(map (lambda (dep)
2539 "/share/guile/site/"
2542 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
2544 ,@(map (lambda (dep)
2545 (string-append dep "/lib/guile/"
2551 `(("pkg-config" ,pkg-config)
2552 ("texinfo" ,texinfo)))
2554 ;; Depend on the latest Guile to avoid bytecode compatibility issues when
2555 ;; using modules built against the latest version.
2556 `(("guile" ,guile-3.0-latest)))
2558 `(("guile-reader" ,guile-reader)
2559 ("guile-commonmark" ,guile-commonmark)))
2560 (synopsis "Functional static site generator")
2561 (description "Haunt is a static site generator written in Guile
2562 Scheme. Haunt features a functional build system and an extensible
2563 interface for reading articles in any format.")
2564 (home-page "https://dthompson.us/projects/haunt.html")
2565 (license license:gpl3+)))
2567 (define-public guile2.2-haunt
2570 (name "guile2.2-haunt")
2571 (inputs `(("guile" ,guile-2.2)))
2573 `(("guile-reader" ,guile2.2-reader)
2574 ("guile-commonmark" ,guile2.2-commonmark)))))
2576 (define-public guile2.0-haunt
2579 (name "guile2.0-haunt")
2580 (inputs `(("guile" ,guile-2.0)))))
2582 (define-public guile-redis
2584 (name "guile-redis")
2586 (home-page "https://github.com/aconchillo/guile-redis")
2592 (file-name (git-file-name name version))
2595 "0pvk4yadgx64wk81cpisdc7zqhk6ww58xi5fs5fs6s28wb6l5bfj"))))
2596 (build-system gnu-build-system)
2598 '(#:make-flags '("GUILE_AUTO_COMPILE=0")))
2600 `(("autoconf" ,autoconf)
2601 ("automake" ,automake)
2602 ("pkg-config" ,pkg-config)
2603 ("guile" ,guile-3.0)))
2604 (synopsis "Redis client library for Guile")
2605 (description "Guile-redis provides a Scheme interface to the Redis
2606 key-value cache and store.")
2607 (license license:lgpl3+)))
2609 (define-public guile2.2-redis
2611 (inherit guile-redis)
2612 (name "guile2.2-redis")
2613 (native-inputs `(("guile" ,guile-2.2)
2614 ,@(alist-delete "guile"
2615 (package-native-inputs guile-redis))))))
2617 (define-public guile2.0-redis
2619 (inherit guile-redis)
2620 (name "guile2.0-redis")
2623 (modify-phases %standard-phases
2624 (add-after 'unpack 'patch-source
2626 ;; put-string is in (rnrs io ports) in guile2.0,
2627 ;; not in (ice-9 textual-ports)
2628 (substitute* "redis/utils.scm"
2629 (("\\(ice-9 textual-ports\\)")
2632 ,@(package-arguments guile-redis)))
2633 (native-inputs `(("guile" ,guile-2.0)
2634 ,@(alist-delete "guile"
2635 (package-native-inputs guile-redis))))))
2637 (define-public guile-commonmark
2639 (name "guile-commonmark")
2643 (uri (string-append "https://github.com/OrangeShark/" name
2644 "/releases/download/v" version
2645 "/" name "-" version ".tar.gz"))
2648 "17lrsdisa3kckh24q114vfmzdc4wkqa6ccwl4hdlrng5wpn1iman"))
2649 (modules '((guix build utils)))
2652 ;; Allow builds with Guile 3.0.
2653 (substitute* "configure"
2657 (build-system gnu-build-system)
2658 ;; The tests throw exceptions with Guile 3.0.5, because they evaluate
2661 ;; This has been fixed upstream, but there has not been a new release
2662 ;; containing this change.
2665 (modify-phases %standard-phases
2666 (add-after 'unpack 'fix-tests-when-building-with-guile-3.0.5
2668 (substitute* (find-files "tests" "\\.scm$")
2672 `(("guile" ,guile-3.0)))
2674 `(("pkg-config" ,pkg-config)))
2675 (synopsis "CommonMark parser for Guile")
2677 "guile-commonmark is a library for parsing CommonMark, a fully specified
2678 variant of Markdown. The library is written in Guile Scheme and is designed
2679 to transform a CommonMark document to SXML. guile-commonmark tries to closely
2680 follow the @uref{http://commonmark.org/, CommonMark spec}, the main difference
2681 is no support for parsing block and inline level HTML.")
2682 (home-page "https://github.com/OrangeShark/guile-commonmark")
2683 (license license:lgpl3+)))
2685 (define-public guile2.2-commonmark
2687 (inherit guile-commonmark)
2688 (name "guile2.2-commonmark")
2689 (inputs `(("guile" ,guile-2.2)))))
2691 (define-public guile2.0-commonmark
2693 (inherit guile-commonmark)
2694 (name "guile2.0-commonmark")
2695 (inputs `(("guile" ,guile-2.0)))))
2697 (define-public mcron
2703 (uri (string-append "mirror://gnu/mcron/mcron-"
2707 "0bkn235g2ia4f7ispr9d55c7bc18282r3qd8ldhh5q2kiin75zi0"))))
2708 (build-system gnu-build-system)
2710 '(#:phases (modify-phases %standard-phases
2711 (add-before 'check 'adjust-tests
2713 (substitute* "tests/job-specifier.scm"
2714 ;; (getpw) fails with "entry not found" in the build
2715 ;; environment, so pass an argument.
2717 "(getpwnam (getuid))")
2718 ;; The build environment lacks an entry for root in
2721 "(getpwnam \"nobody\")")
2723 ;; FIXME: Skip the 4 faulty tests (see above).
2724 (("\\(test-equal \"next-year\"" all)
2725 (string-append "(test-skip 4)\n" all)))
2727 (native-inputs `(("pkg-config" ,pkg-config)
2728 ("tzdata" ,tzdata-for-tests)
2729 ("guile-native" ;for 'guild compile'
2730 ,@(assoc-ref (package-inputs this-package) "guile"))))
2731 (inputs `(("guile" ,guile-3.0)))
2732 (home-page "https://www.gnu.org/software/mcron/")
2733 (synopsis "Run jobs at scheduled times")
2735 "GNU Mcron is a complete replacement for Vixie cron. It is used to run
2736 tasks on a schedule, such as every hour or every Monday. Mcron is written in
2737 Guile, so its configuration can be written in Scheme; the original cron
2738 format is also supported.")
2739 (license license:gpl3+)))
2741 (define-public guile2.2-mcron
2744 (name "guile2.2-mcron")
2745 (inputs `(("guile" ,guile-2.2)))))
2747 (define-public guile-picture-language
2748 (let ((commit "a1322bf11945465241ca5b742a70893f24156d12")
2751 (name "guile-picture-language")
2752 (version (git-version "0.0.1" revision commit))
2756 (url "https://git.elephly.net/software/guile-picture-language.git")
2758 (file-name (git-file-name name version))
2761 "03i528z92ainccgm28shg4haxiav5x4cyhyi5dggq1rm027vbm99"))))
2762 (build-system gnu-build-system)
2764 `(("guile" ,guile-3.0)))
2766 `(("guile-cairo" ,guile-cairo)
2767 ("guile-rsvg" ,guile-rsvg)))
2769 `(("autoconf" ,autoconf)
2770 ("automake" ,automake)
2771 ("librsvg" ,librsvg)
2772 ("pkg-config" ,pkg-config)
2773 ("texinfo" ,texinfo)))
2774 (home-page "https://git.elephly.net/software/guile-picture-language.git")
2775 (synopsis "Picture language for Guile")
2777 "This package provides a simple SVG-based picture language for Guile.
2778 The picture values can directly be displayed in Geiser.")
2779 ;; (pict base64) is under GPLv3+, the rest is under LGPLv3+
2780 (license (list license:lgpl3+
2783 (define-public guile2.2-picture-language
2785 (inherit guile-picture-language)
2786 (name "guile2.2-picture-language")
2787 (inputs `(("guile" ,guile-2.2)))
2789 `(("guile-cairo" ,guile2.2-cairo)
2790 ("guile-rsvg" ,guile2.2-rsvg)))))
2792 (define-public guile-studio
2793 (let ((commit "dd0ad42e51feafebda7cc29afe7c8bc7a182a842")
2796 (name "guile-studio")
2797 (version (git-version "0.1.1" revision commit))
2801 (url "https://git.elephly.net/software/guile-studio.git")
2803 (file-name (git-file-name name version))
2806 "1cpqilly8dqmai1qsgjxy99zs34sfz95zwxhzx979wryqb69vi0q"))))
2807 (build-system gnu-build-system)
2812 ,@%gnu-build-system-modules)
2813 #:tests? #f ; there are none
2815 (list (string-append "PICT_DIR="
2816 (assoc-ref %build-inputs "guile-picture-language"))
2817 (string-append "EMACS_DIR="
2818 (assoc-ref %build-inputs "emacs"))
2819 (string-append "GUILE_DIR="
2820 (assoc-ref %build-inputs "guile"))
2821 (string-join (cons "INPUTS="
2826 (and (string-prefix? "emacs" label) pkg))))
2828 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2830 (modify-phases %standard-phases
2832 (delete 'install))))
2834 `(("guile" ,guile-3.0)
2835 ("guile-picture-language" ,guile-picture-language)
2837 ("emacs-f" ,emacs-f) ; needed by doom-modeline
2838 ("emacs-memoize" ,emacs-memoize) ; needed by all-the-icons
2839 ("emacs-all-the-icons" ,emacs-all-the-icons) ; needed by doom-modeline
2840 ("emacs-all-the-icons-dired" ,emacs-all-the-icons-dired)
2841 ("emacs-dired-sidebar" ,emacs-dired-sidebar)
2842 ("emacs-doom-modeline" ,emacs-doom-modeline)
2843 ("emacs-modus-themes" ,emacs-modus-themes)
2844 ("emacs-geiser" ,emacs-geiser)
2845 ("emacs-geiser-guile" ,emacs-geiser-guile)
2846 ("emacs-company" ,emacs-company)
2847 ("emacs-ivy" ,emacs-ivy)
2848 ("emacs-flycheck" ,emacs-flycheck)
2849 ("emacs-flycheck-guile" ,emacs-flycheck-guile)
2850 ("emacs-paren-face" ,emacs-paren-face)))
2852 `(("texinfo" ,texinfo)))
2853 (home-page "https://gnu.org/software/guile")
2854 (synopsis "IDE for Guile")
2856 "This is Emacs with a few settings that make working with Guile easier
2857 for people new to Emacs. Features include: CUA mode, Geiser, tool bar icons
2858 to evaluate Guile buffers, support for Guile's very own picture language, code
2859 completion, a simple mode line, etc.")
2860 (license license:gpl3+))))
2862 (define-public guile-stis-parser
2864 (name "guile-stis-parser")
2869 (url "https://gitlab.com/tampe/stis-parser")
2870 (commit (string-append "v" version))))
2871 (file-name (git-file-name name version))
2874 "1fvxdfvc80zqhwzq5x3kxyr6j8p4b51yx85fx1gr3d4gy2ddpx5w"))))
2875 (build-system gnu-build-system)
2877 `(#:parallel-build? #f ; not supported
2879 (modify-phases %standard-phases
2880 (add-after 'unpack 'chdir
2881 (lambda _ (chdir "modules") #t))
2882 (add-after 'chdir 'delete-broken-symlink
2884 (delete-file "parser/stis-parser/lang/.#calc.scm")
2887 `(("guile" ,guile-3.0)))
2889 `(("autoconf" ,autoconf)
2890 ("automake" ,automake)
2891 ("pkg-config" ,pkg-config)))
2892 (home-page "https://gitlab.com/tampe/stis-parser")
2893 (synopsis "Parser combinator framework")
2895 "This package provides a functional parser combinator library that
2896 supports backtracking and a small logical framework. The idea is to build up
2897 chunks that are memoized and there is no clear scanner/parser separation,
2898 chunks can be expressions as well as simple tokens.")
2899 (license license:lgpl2.0+)))
2901 (define-public guile-persist
2903 (name "guile-persist")
2908 (url "https://gitlab.com/tampe/guile-persist")
2909 (commit (string-append "v" version))))
2910 (file-name (git-file-name name version))
2913 "19f8hqcax4v40858kx2j8fy1cvzc2djj99r0n17dy1xxmwa097qi"))))
2914 (build-system gnu-build-system)
2917 (modify-phases %standard-phases
2918 (add-after 'unpack 'patch-prefix
2919 (lambda* (#:key inputs outputs #:allow-other-keys)
2920 (substitute* "src/Makefile.am"
2921 (("/usr/local/lib/guile")
2922 (string-append (assoc-ref outputs "out") "/lib/guile"))
2923 (("/usr/local/include/guile")
2924 (search-input-directory inputs "/include/guile"))
2925 (("-L/usr/local/lib")
2926 (string-append "-L" (assoc-ref inputs "guile") "/lib")))
2928 (add-after 'unpack 'patch-library-reference
2929 (lambda* (#:key outputs #:allow-other-keys)
2930 (let ((out (assoc-ref outputs "out")))
2931 (substitute* "persist/persistance.scm"
2932 (("\"libguile-persist\"")
2933 (format #f "\"~a/lib/guile/3.0/extensions/libguile-persist\"" out)))
2936 `(("guile" ,guile-3.0)))
2938 `(("autoconf" ,autoconf)
2939 ("automake" ,automake)
2940 ("libtool" ,libtool)
2941 ("pkg-config" ,pkg-config)))
2942 (home-page "https://gitlab.com/tampe/guile-persist")
2943 (synopsis "Persistence programming framework for Guile")
2945 "This is a serialization library for serializing objects like classes
2946 and objects, closures and structs. This currently does not support
2947 serializing continuations or delimited continuations.")
2948 (license license:lgpl2.0+)))
2950 (define-public python-on-guile
2952 (name "python-on-guile")
2954 (home-page "https://gitlab.com/python-on-guile/python-on-guile")
2957 (uri (git-reference (url home-page)
2958 (commit (string-append "v" version))))
2959 (file-name (git-file-name name version))
2962 "05xrvcj6a4gzq1ybyin270qz8wamgc7w2skyi9iy6hkpgdhxy8vf"))))
2963 (build-system gnu-build-system)
2965 `(#:parallel-build? #f ;not supported
2966 #:make-flags '("GUILE_AUTO_COMPILE=0") ;to prevent guild warnings
2968 (modify-phases %standard-phases
2969 (add-after 'unpack 'chdir
2970 (lambda _ (chdir "modules") #t))
2971 (add-after 'chdir 'augment-GUILE_LOAD_PATH
2973 ;; TODO: It would be better to patch the Makefile.
2974 (setenv "GUILE_LOAD_PATH"
2976 (getenv "GUILE_LOAD_PATH")))
2978 (add-after 'install 'wrap
2979 (lambda* (#:key outputs #:allow-other-keys)
2980 ;; Wrap the 'python' executable so it can find its
2981 ;; dependencies and own modules.
2982 (let* ((out (assoc-ref outputs "out"))
2983 (guile-version ,(version-major+minor
2984 (package-version guile-3.0)))
2985 (scm (string-append out "/share/guile/site/"
2987 (ccache (string-append out "/lib/guile/" guile-version
2989 (load-path (string-join
2991 ;; XXX: cdr because we augment it above.
2993 (getenv "GUILE_LOAD_PATH") #\:)))
2995 (compiled-path (string-append
2997 (getenv "GUILE_LOAD_COMPILED_PATH"))))
2998 (wrap-program (string-append out "/bin/python")
2999 `("GUILE_LOAD_PATH" ":" prefix
3001 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
3005 `(("guile" ,guile-3.0)
3006 ("guile-persist" ,guile-persist)
3007 ("guile-readline" ,guile-readline)
3008 ("guile-stis-parser" ,guile-stis-parser)))
3010 `(("autoconf" ,autoconf)
3011 ("automake" ,automake)
3012 ("libtool" ,libtool)
3013 ("pkg-config" ,pkg-config)))
3014 (synopsis "Python implementation in Guile")
3016 "This package allows you to compile a Guile Python file to any target
3017 from @code{tree-il}.")
3018 (license license:lgpl2.0+)))
3020 (define-public guile-file-names
3022 (name "guile-file-names")
3026 (uri (string-append "http://brandon.invergo.net/software/download/"
3027 "guile-file-names/guile-file-names-"
3031 "01chizdxkhw6aqv629vxka9f5x3534ij7r0jqndawsg2vxm1r9sz"))))
3032 (build-system gnu-build-system)
3035 (modify-phases %standard-phases
3036 (add-after 'unpack 'fix-target-directory
3038 (substitute* "src/Makefile.in"
3039 (("guilemoddir = \\$\\(GUILE_SITE\\)")
3040 "guilemoddir = $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
3043 `(("guile" ,guile-2.2)))
3045 `(("pkg-config" ,pkg-config)))
3046 (home-page "https://gitlab.com/brandoninvergo/guile-file-names")
3047 (synopsis "Manipulate file names")
3049 "The @code{(file-names)} module provides tools for manipulating file
3050 names. The module was built on the idea that doing anything more than a
3051 non-trivial modification of a file name string is a pain (making sure all
3052 slashes are present and accounted for, resolving @code{.} and @code{..}, etc).
3053 Inevitably, you have to break the string up into chunks and operate on that
3054 list of components. This module takes care of that for you.")
3055 (license license:lgpl3+)))
3057 (define-public guile-gi
3063 (uri (string-append "http://lonelycactus.com/tarball/guile_gi-"
3067 "1ljcfyar1nb6h4jskxnnzrcxcsblawc50qqfdn8cax3zqfskmvzj"))))
3068 (build-system glib-or-gtk-build-system)
3070 `(#:configure-flags '("--with-gnu-filesystem-hierarchy")
3071 #:modules ((guix build glib-or-gtk-build-system)
3076 (modify-phases %standard-phases
3077 (add-after 'unpack 'remove-dotted-circle-from-combining-character
3078 ;; The test/string.scm files contain ◌̀, which is a dotted circle
3079 ;; (U+25cc) followed by an upper combining character (U+0300). The
3080 ;; old guile 3.0.2 reader incorrectly ignores the dotted circle,
3081 ;; and parses it as the combining character alone, but the new
3082 ;; guile reader does not.
3083 ;; See https://github.com/spk121/guile-gi/issues/112
3085 (substitute* "test/string.scm"
3086 (("#\\\\◌̀") "#\\x0300"))))
3087 (add-after 'unpack 'patch-references-to-extension
3088 (lambda* (#:key outputs #:allow-other-keys)
3089 (let ((effective (read-line
3090 (open-pipe* OPEN_READ
3092 "(display (effective-version))"))))
3093 (substitute* (find-files "module" ".*\\.scm")
3094 (("\\(load-extension \"libguile-gi\" \"(.*)\"\\)" m arg)
3097 (format #f "~alibguile-gi"
3098 (if (getenv "GUILE_GI_UNINSTALLED")
3100 ,(format #f "~a/lib/guile/~a/extensions/"
3101 (assoc-ref outputs "out")
3104 (setenv "GUILE_GI_UNINSTALLED" "1")
3106 (add-before 'check 'start-xorg-server
3107 (lambda* (#:key inputs #:allow-other-keys)
3108 ;; The init_check test requires a running X server.
3109 (system (format #f "~a/bin/Xvfb :1 &"
3110 (assoc-ref inputs "xorg-server")))
3111 (setenv "DISPLAY" ":1")
3114 `(("gettext" ,gettext-minimal)
3115 ("glib:bin" ,glib "bin") ; for glib-compile-resources
3116 ("libtool" ,libtool)
3117 ("pkg-config" ,pkg-config)
3118 ("xorg-server" ,xorg-server)))
3121 ("gobject-introspection" ,gobject-introspection)
3122 ("gssettings-desktop-schemas" ,gsettings-desktop-schemas)
3124 ("guile-lib" ,guile-lib)
3125 ("webkitgtk" ,webkitgtk)))
3126 (inputs `(("guile" ,guile-3.0)))
3127 (home-page "https://github.com/spk121/guile-gi")
3128 (synopsis "GObject bindings for Guile")
3130 "Guile-GI is a library for Guile that allows using GObject-based
3131 libraries, such as GTK+3. Its README comes with the disclaimer: This is
3133 (license license:gpl3+)))
3135 (define-public guile2.2-gi
3138 (name "guile2.2-gi")
3140 `(("guile" ,guile-2.2)
3141 ,@(alist-delete "guile" (package-inputs guile-gi))))))
3143 (define-public guile-srfi-89
3145 (name "guile-srfi-89")
3151 (url "https://gitlab.com/mjbecze/guile-srfi-89.git")
3155 "1981c0rrzxqx3md9jx8ir7j3m2mzg9m72b33p5jvw36zirbzpl20"))
3156 (file-name (git-file-name name version))))
3157 (build-system guile-build-system)
3159 `(("guile" ,guile-3.0)))
3160 (home-page "https://gitlab.com/mjbecze/guile-srfi-89")
3161 (synopsis "Hygienic implementation of SRFI-89 for Guile")
3163 "This package provides SRFI-89 optional positional and named
3164 parameters, which define* and lambda* special forms")
3165 (license license:gpl3+)))
3167 (define-public guile-srfi-145
3169 (name "guile-srfi-145")
3175 (url "https://gitlab.com/mjbecze/guile-srfi-145.git")
3179 "1gssa8cmcp8640fil9z8dpil8v5l279wlalqjcx3fls5jwv13q1b"))
3180 (file-name (git-file-name name version))))
3181 (build-system guile-build-system)
3183 `(("guile" ,guile-3.0)))
3184 (home-page "https://gitlab.com/mjbecze/guile-srfi-145")
3185 (synopsis "SRFI-145 port for Guile")
3187 "This package provides SRFI-145. This provides the means to
3188 denote the invalidity of certain code paths in a Scheme program.")
3189 (license license:gpl3+)))
3191 (define-public guile-srfi-158
3193 (name "guile-srfi-158")
3199 (url "https://gitlab.com/mjbecze/guile-srfi-158.git")
3203 "0b8hlv1bldbcwkcxi9y8mm6xp5gbgpg7b15bwqxv70iynl9d9a7c"))
3204 (file-name (git-file-name name version))))
3205 (build-system gnu-build-system)
3207 `(("autoconf" ,autoconf)
3208 ("automake" ,automake)
3209 ("pkg-config" ,pkg-config)))
3211 `(("guile" ,guile-3.0)))
3212 (home-page "https://gitlab.com/samplet/guile-srfi-158")
3213 (synopsis "SRFI 158 (Generators and Accumulators) for Guile")
3214 (description "This package provides an implementation of SRFI 158
3215 for Guile. SRFI 158 defines utility procedures that create,
3216 transform, and consume generators. It also defines procedures that
3217 return accumulators. It is implemented by wrapping the sample
3218 implementation in a thin Guile compatibility layer.")
3219 (license license:gpl3+)))
3221 (define-public guile-srfi-159
3222 (let ((commit "1bd98abda2ae4ef8f36761a167903e55c6bda7bb")
3225 (name "guile-srfi-159")
3226 (version (git-version "0" revision commit))
3227 (home-page "https://bitbucket.org/bjoli/guile-srfi-159")
3230 (uri (hg-reference (changeset commit)
3234 "1zw6cmcy7xdbfiz3nz9arqnn7l2daidaps6ixkcrc9b6k51fdv3p"))
3235 (file-name (git-file-name name version))))
3236 (build-system guile-build-system)
3238 ;; The *-impl.scm files are actually included from module files; they
3239 ;; should not be compiled separately, but they must be installed.
3240 '(#:not-compiled-file-regexp "-impl\\.scm$"))
3242 `(("guile" ,guile-2.2)))
3243 (synopsis "Formatting combinators for Guile")
3245 "The @code{(srfi-159)} module and its sub-modules implement the
3246 formatting combinators specified by
3247 @uref{https://srfi.schemers.org/srfi-159/srfi-159.html, SRFI-159}. These are
3248 more expressive and flexible than the traditional @code{format} procedure.")
3249 (license license:bsd-3))))
3251 (define-public guile-srfi-180
3252 (let ((commit "9188bf9724c6d320ef804579d222e855b007b193")
3255 (name "guile-srfi-180")
3256 (version (git-version "0" revision commit))
3261 (url "https://github.com/scheme-requests-for-implementation/srfi-180")
3265 "08lf70rsak8mwfij55xc37pg9zg7c87fizmhz7ln46skzj68sl3y"))
3266 (modules '((guix build utils)))
3269 (delete-file-recursively "srfi/files")
3270 (delete-file "srfi/run-r7rs-checks.guile.scm")
3271 (delete-file "srfi/run-r7rs-checks.scm")
3272 (delete-file "srfi/check.scm")
3274 (file-name (git-file-name name version))))
3275 (build-system guile-build-system)
3277 '(#:not-compiled-file-regexp "body\\.scm$"))
3279 `(("guile" ,guile-3.0)))
3281 `(("guile-srfi-145" ,guile-srfi-145)))
3282 (home-page "https://srfi.schemers.org/srfi-180/")
3283 (synopsis "JSON parser and printer for Guile")
3285 "This library implements a JavaScript Object Notation (JSON) parser and printer.
3286 It also supports parsing JSON objects that may be bigger than memory with a streaming
3288 (license license:expat))))
3290 (define-public emacsy
3296 (uri (string-append "mirror://savannah/emacsy/emacsy-"
3300 "1cpb85dl1nibd34c2x2h7vfmjpkgh353p5b1w20v6cs6gmvgg4np"))
3301 (modules '((guix build utils)))
3304 (substitute* "configure"
3305 ;; Allow builds with Guile 3.0.
3309 ;; Freeglut 3.2 provides 'glut.pc', not 'freeglut.pc'.
3313 (substitute* '("emacsy/emacsy.c"
3314 "example/hello-emacsy.c")
3315 (("#include <libguile\\.h>")
3316 (string-append "#include <stdlib.h>\n"
3317 "#include <stdio.h>\n"
3318 "#include <string.h>\n"
3319 "#include <unistd.h>\n"
3320 "#include <libguile.h>\n")))))))
3321 (build-system gnu-build-system)
3324 ("guile" ,guile-3.0)
3325 ("gettext" ,gettext-minimal)
3326 ("libtool" ,libtool)
3328 ("pkg-config" ,pkg-config)
3329 ("texinfo" ,texinfo)
3330 ("texlive" ,(texlive-updmap.cfg (list texlive-epsf)))))
3332 `(("dbus-glib" ,dbus-glib)
3333 ("guile" ,guile-3.0)
3334 ("guile-lib" ,guile-lib)
3335 ("guile-readline" ,guile-readline)
3336 ("freeglut" ,freeglut)
3337 ("webkitgtk" ,webkitgtk)))
3339 `(("glib-networking" ,glib-networking)
3340 ("gssettings-desktop-schemas" ,gsettings-desktop-schemas)))
3342 `(#:modules ((guix build gnu-build-system)
3350 (modify-phases %standard-phases
3351 (add-before 'configure 'setenv
3353 (setenv "GUILE_AUTO_COMPILE" "0")
3355 (add-after 'install 'wrap-binaries
3356 (lambda* (#:key inputs outputs #:allow-other-keys)
3357 (let* ((out (assoc-ref outputs "out"))
3358 (effective (read-line
3359 (open-pipe* OPEN_READ
3361 "(display (effective-version))")))
3362 (deps (map (cut assoc-ref inputs <>)
3363 '("guile-lib" "guile-readline")))
3364 (scm-path (map (cut string-append <> "/share/guile/site/"
3365 effective) `(,out ,@deps)))
3366 (go-path (map (cut string-append <> "/lib/guile/" effective
3367 "/site-ccache/") `(,out ,@deps)))
3368 (examples (filter (cut string-match "emacsy" <>)
3369 (scandir (string-append out "/bin/"))))
3370 (progs (map (cut string-append out "/bin/" <>)
3372 (map (cut wrap-program <>
3373 `("GUILE_LOAD_PATH" ":" prefix ,scm-path)
3374 `("GUILE_LOAD_COMPILED_PATH" ":" prefix ,go-path))
3377 (home-page "https://savannah.nongnu.org/projects/emacsy")
3378 (synopsis "Embeddable GNU Emacs-like library using Guile")
3380 "Emacsy is an embeddable Emacs-like library that uses GNU Guile
3381 as extension language. Emacsy can give a C program an Emacsy feel with
3382 keymaps, minibuffer, recordable macros, history, tab completion, major
3383 and minor modes, etc., and can also be used as a pure Guile library. It
3384 comes with a simple counter example using FreeGLUT and browser examples
3385 in C using Gtk+-3 and WebKitGtk.")
3386 (license license:gpl3+)))
3388 (define-public emacsy-minimal
3389 (let ((commit "v0.4.1-37-g5f91ee6"))
3392 (name "emacsy-minimal")
3393 (version (string-drop commit 1))
3398 (url "https://git.savannah.gnu.org/git/emacsy.git")
3400 (file-name (git-file-name name version))
3402 (base32 "03ym14g9qhjqmryr5z065kynqm8yhmvnbs2djl6vp3i9cmqln8cl"))))
3403 (build-system gnu-build-system)
3405 `(("autoconf" ,autoconf)
3406 ("automake" ,automake)
3407 ("gettext" ,gettext-minimal)
3408 ("libtool" ,libtool)
3409 ("makeinfo" ,texinfo)
3410 ("pkg-config" ,pkg-config)))
3412 `(("guile" ,guile-2.2)
3413 ("guile-lib" ,guile2.2-lib)
3414 ("guile-readline" ,guile2.2-readline)))
3415 (propagated-inputs '())
3417 `(#:configure-flags '("--without-examples")
3419 (modify-phases %standard-phases
3420 (add-before 'configure 'setenv
3422 (setenv "GUILE_AUTO_COMPILE" "0")
3425 (define-public guile-jpeg
3426 (let ((commit "6a1673578b297c2c1b28e44a76bd5c49e76a5046")
3430 (version (git-version "0.0" revision commit))
3431 (home-page "https://gitlab.com/wingo/guile-jpeg")
3434 (uri (git-reference (url home-page)
3438 "05z9m408w3h6aqb5k3r3qa7khir0k10rxwvsrzhkcq1hr5vbmr4m"))
3439 (file-name (git-file-name name version))
3440 (modules '((guix build utils)))
3443 ;; Install .go files in the right place.
3444 (substitute* "Makefile.am"
3445 (("/ccache") "/site-ccache"))
3447 (build-system gnu-build-system)
3449 `(("autoconf" ,autoconf)
3450 ("automake" ,automake)
3451 ("pkg-config" ,pkg-config)
3452 ("guile" ,guile-2.2)))
3453 (synopsis "JPEG file parsing library for Guile")
3455 "Guile-JPEG is a Scheme library to parse JPEG image files and to
3456 perform geometrical transforms on JPEG images.")
3457 (license license:gpl3+))))
3459 (define-public nomad
3462 (version "0.2.0-alpha-199-g3e7a475")
3466 (url "https://git.savannah.gnu.org/git/nomad.git/")
3468 (file-name (git-file-name name version))
3471 "0p0ha6prp7pyadp61clbhc6b55023vxzfwy14j2qygb2mkq7fhic"))))
3472 (build-system gnu-build-system)
3474 `(("autoconf" ,autoconf)
3475 ("automake" ,automake)
3477 ("pkg-config" ,pkg-config)
3478 ("libtool" ,libtool)
3479 ("guile" ,guile-2.2)
3480 ("glib:bin" ,glib "bin")
3481 ("texinfo" ,texinfo)
3482 ("gettext" ,gettext-minimal)
3486 ("guile" ,guile-2.2)
3487 ("guile-lib" ,guile2.2-lib)
3488 ("guile-readline" ,guile2.2-readline)
3489 ("guile-gcrypt" ,guile2.2-gcrypt)
3493 ("emacsy" ,emacsy-minimal)
3496 ("dbus-glib" ,dbus-glib)
3497 ("glib-networking" ,glib-networking)
3499 ("gtk+:bin" ,gtk+ "bin")
3500 ("webkitgtk" ,webkitgtk)
3501 ("gtksourceview" ,gtksourceview)
3502 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
3505 ("gstreamer" ,gstreamer)
3506 ("gst-plugins-base" ,gst-plugins-base)
3507 ("gst-plugins-good" ,gst-plugins-good)
3508 ("gst-plugins-bad" ,gst-plugins-bad)
3509 ("gst-plugins-ugly" ,gst-plugins-ugly)
3511 ("xorg-server" ,xorg-server)))
3513 `(#:modules ((guix build gnu-build-system)
3519 (modify-phases %standard-phases
3520 (add-before 'check 'start-xorg-server
3521 (lambda* (#:key inputs #:allow-other-keys)
3522 ;; The test suite requires a running X server.
3523 (system (format #f "~a/bin/Xvfb :1 &"
3524 (assoc-ref inputs "xorg-server")))
3525 (setenv "DISPLAY" ":1")
3527 (add-after 'install 'wrap-binaries
3528 (lambda* (#:key inputs outputs #:allow-other-keys)
3529 (let* ((out (assoc-ref outputs "out"))
3530 (effective (read-line (open-pipe*
3533 "(display (effective-version))")))
3534 (gst-plugins (map (lambda (i)
3535 (string-append (assoc-ref inputs i)
3536 "/lib/gstreamer-1.0"))
3541 "gst-plugins-ugly")))
3542 (out-append (lambda (. args)
3543 (apply string-append out args)))
3544 (gi-path (out-append "/lib/girepository-1.0"))
3545 (load-path (out-append "/share/guile/site/" effective))
3546 (comp-path (out-append "/lib/guile/"
3547 effective "/site-ccache"))
3548 (ext-path (out-append "/libexec/nomad")))
3549 (wrap-program (string-append out "/bin/nomad")
3550 `("GUILE_LOAD_PATH" ":" prefix
3552 ,(getenv "GUILE_LOAD_PATH")))
3553 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
3555 ,(getenv "GUILE_LOAD_COMPILED_PATH")))
3556 `("GI_TYPELIB_PATH" ":" prefix
3557 (,gi-path ,(getenv "GI_TYPELIB_PATH")))
3558 `("GIO_EXTRA_MODULES" ":" prefix
3559 (,(getenv "GIO_EXTRA_MODULES")))
3560 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix ,gst-plugins)
3561 `("NOMAD_WEB_EXTENSION_DIR" ":" prefix (,ext-path)))
3563 (home-page "https://savannah.nongnu.org/projects/nomad/")
3564 (synopsis "Extensible Web Browser in Guile Scheme")
3565 (description "Nomad is a Emacs-like web browser that consists of a modular
3566 feature-set, fully programmable in Guile Scheme.")
3567 (license license:gpl3+)))
3569 (define-public guile-cv
3575 (uri (string-append "mirror://gnu/guile-cv/guile-cv-"
3579 "0qdf0s2h1xj5lbhnc1pfw69i3zg08pqy2y6869b92ydfis8r82j9"))))
3580 (build-system gnu-build-system)
3583 (modify-phases %standard-phases
3584 (add-after 'unpack 'prepare-build
3585 (lambda* (#:key inputs outputs #:allow-other-keys)
3586 (substitute* "configure"
3587 (("SITEDIR=\"\\$datadir/guile-cv\"")
3588 "SITEDIR=\"$datadir/guile/site/$GUILE_EFFECTIVE_VERSION\"")
3589 (("SITECCACHEDIR=\"\\$libdir/guile-cv/")
3590 "SITECCACHEDIR=\"$libdir/"))
3591 (substitute* "cv/init.scm"
3592 (("\\(dynamic-link \"libvigra_c\"\\)")
3593 (string-append "(dynamic-link \""
3594 (assoc-ref inputs "vigra-c")
3595 "/lib/libvigra_c\")"))
3596 (("\\(dynamic-link \"libguile-cv\"\\)")
3599 (format #f "~alibguile-cv"
3600 (if (getenv "GUILE_CV_UNINSTALLED")
3602 ,(format #f "~a/lib/"
3603 (assoc-ref outputs "out"))))))))
3604 (setenv "GUILE_CV_UNINSTALLED" "1")
3605 ;; Only needed to satisfy the configure script.
3606 (setenv "LD_LIBRARY_PATH"
3607 (string-append (assoc-ref inputs "vigra-c") "/lib"))
3611 ("vigra-c" ,vigra-c)
3612 ("guile" ,guile-2.2)))
3614 `(("texlive" ,(texlive-updmap.cfg (list texlive-booktabs
3619 texlive-fonts-iwona)))
3620 ("pkg-config" ,pkg-config)))
3622 `(("guile-lib" ,guile2.2-lib)))
3623 (home-page "https://www.gnu.org/software/guile-cv/")
3624 (synopsis "Computer vision library for Guile")
3625 (description "Guile-CV is a Computer Vision functional programming library
3626 for the Guile Scheme language. It is based on Vigra (Vision with Generic
3627 Algorithms), a C++ image processing and analysis library. Guile-CV contains
3628 bindings to Vigra C (a C wrapper to most of the Vigra functionality) and is
3629 enriched with pure Guile Scheme algorithms, all accessible through a nice,
3630 clean and easy to use high level API.")
3631 (license license:gpl3+)))
3633 (define-public guile-ffi-fftw
3634 (let ((commit "294ad9e7491dcb40026d2fec9be2af05263be1c0")
3637 (name "guile-ffi-fftw")
3638 (version (git-version "0" revision commit))
3642 (url "https://github.com/lloda/guile-ffi-fftw")
3644 (file-name (git-file-name "guile-ffi-fftw" version))
3647 "08j40a5p6a8pgvhffmzb5rfdnrav2mksy3gfjkdqy93jfj1z5afg"))))
3648 (build-system guile-build-system)
3650 `(#:source-directory "mod"
3652 (modify-phases %standard-phases
3653 (add-after 'unpack 'prepare-build
3654 (lambda* (#:key inputs #:allow-other-keys)
3655 (substitute* "mod/ffi/fftw.scm"
3656 (("\\(getenv \"GUILE_FFI_FFTW_LIBFFTW3_PATH\"\\)")
3657 (format #f "\"~a/lib\"" (assoc-ref inputs "fftw"))))
3659 (add-after 'build 'check
3661 (invoke "guile" "-L" "mod"
3662 "-s" "test/test-ffi-fftw.scm"))))))
3665 ("guile" ,guile-2.2)))
3666 (home-page "https://github.com/lloda/guile-ffi-fftw/")
3667 (synopsis "Access FFTW through Guile's FFI")
3668 (description "This is a minimal set of Guile FFI bindings for the FFTW
3669 library's ‘guru interface’. It provides two functions: @code{fftw-dft! rank
3670 sign in out} and @code{fftw-dft rank sign in}. These bindings being minimal,
3671 there is no support for computing & reusing plans, or split r/i transforms, or
3672 anything other than straight complex DFTs.")
3673 (license license:lgpl3+))))
3675 (define-public srfi-64-driver
3677 (name "srfi-64-driver")
3681 (uri (string-append "https://files.ngyro.com/srfi-64-driver/"
3682 "srfi-64-driver-" version ".tar.gz"))
3685 "188b6mb7sjjg0a8zldikinglf40ky8mg8rwh5768gjmch6gkk3ph"))))
3686 (build-system gnu-build-system)
3690 (modify-phases %standard-phases
3693 `(("pkg-config" ,pkg-config)))
3695 `(("guile" ,guile-2.2)))
3696 (home-page "https://ngyro.com/software/srfi-64-driver.html")
3697 (synopsis "Automake test driver for SRFI 64 test suites")
3698 (description "This package provides an Automake test driver that can
3699 run SRFI 64 test suites. It gives Automake insight into the individual
3700 tests being run, resulting clearer and more specific output.")
3701 (license license:gpl3+)))
3703 (define-public guile-semver
3705 (name "guile-semver")
3709 (uri (string-append "https://files.ngyro.com/guile-semver/"
3710 "guile-semver-" version ".tar.gz"))
3713 "109p4n39ln44cxvwdccf9kgb96qx54makvd2ir521ssz6wchjyag"))))
3714 (build-system gnu-build-system)
3716 `(("pkg-config" ,pkg-config)))
3718 `(("guile" ,guile-3.0)))
3719 (home-page "https://ngyro.com/software/guile-semver.html")
3720 (synopsis "Semantic Versioning (SemVer) for Guile")
3721 (description "This Guile library provides tools for reading,
3722 comparing, and writing Semantic Versions. It also includes ranges in
3723 the style of the Node Package Manager (NPM).")
3724 (license license:gpl3+)))
3726 (define-public guile2.2-semver
3728 (inherit guile-semver)
3729 (name "guile2.2-semver")
3731 `(("guile" ,guile-2.2)))))
3733 (define-public guile-hashing
3735 (name "guile-hashing")
3737 (home-page "https://github.com/weinholt/hashing")
3742 (commit (string-append "v" version))))
3743 (file-name (git-file-name name version))
3746 "1362d3lmpv7slmv1zmr9wy8panq9sjr9787gc2hagd646mpsfpkl"))))
3747 (build-system guile-build-system)
3749 `(#:modules ((guix build guile-build-system)
3753 #:implicit-inputs? #f ;needs nothing but Guile
3754 #:phases (modify-phases %standard-phases
3755 (add-before 'build 'move-sls-files
3757 ;; Move the source under hashing/ in order to match
3758 ;; module names, and rename .sls files to .scm.
3759 (define (target file)
3760 (string-append "hashing/" file))
3762 (define (sls->scm sls)
3763 (string-append (string-drop-right sls 4)
3767 (for-each (lambda (file)
3768 (rename-file file (sls->scm file)))
3769 (find-files "." "\\.sls$"))
3770 (for-each (lambda (file)
3771 (rename-file file (target file)))
3772 (scandir "." (cut string-suffix? ".scm" <>)))
3773 (rename-file "private" "hashing/private")
3776 `(("guile" ,guile-3.0)))
3777 (synopsis "Cryprographic hash functions implemented in Scheme")
3779 "The @code{(hashing @dots{})} modules implement cryptographic hash
3780 functions in pure R6RS Scheme: CRC, HMAC, MD5, SHA-1, and SHA-2 (SHA-256,
3782 (license license:expat)))
3784 (define-public guile2.2-hashing
3786 (inherit guile-hashing)
3787 (name "guile2.2-hashing")
3789 `(("guile" ,guile-2.2)))))
3791 (define-public guile-packrat
3793 (name "guile-packrat")
3795 (home-page "https://github.com/weinholt/packrat")
3800 (commit (string-append "v" version))))
3801 (file-name (git-file-name name version))
3804 "1aga17164fkhbgllqc7ni6fk5zl8mkmgkl5zcsy67x7ngpyalbby"))))
3805 (build-system guile-build-system)
3807 `(#:implicit-inputs? #f ;needs nothing but Guile
3808 #:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
3809 #:not-compiled-file-regexp "/extensible\\.scm$"
3810 #:phases (modify-phases %standard-phases
3811 (add-before 'build 'no-srfi-23
3813 (substitute* "packrat.sls"
3814 (("\\(srfi :23 error\\)")
3815 (object->string '(only (guile) error))))
3818 `(("guile" ,guile-3.0)))
3819 (synopsis "Packrat parser library in R6RS Scheme")
3821 "This is an R6RS Scheme adaptation of the
3822 @uref{https://bford.info/packrat/, packrat parsing}. Packrat parsing is a
3823 memoizing, backtracking, recursive-descent parsing technique that runs in time
3824 and space linear in the size of the input text.")
3825 (license license:expat)))
3827 (define-public guile-ac-d-bus
3829 (name "guile-ac-d-bus")
3830 (version "1.0.0-beta.0")
3831 (home-page "https://gitlab.com/weinholt/ac-d-bus/")
3836 (commit (string-append "v" version))))
3837 (file-name (git-file-name name version))
3840 "0rl809qimhgz6b0rixakb42r2l4g53jr09a2g0s1hxgab0blz0kb"))))
3841 (build-system guile-build-system)
3843 `(#:implicit-inputs? #f ;needs nothing but Guile
3844 #:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
3845 #:phases (modify-phases %standard-phases
3846 (add-before 'build 'adjust-for-guile
3848 ;; Adjust source file names for Guile.
3849 (define (guile-sls->sls file)
3850 (string-append (string-drop-right
3851 file (string-length ".guile.sls"))
3854 ;; Remove files targeting other implementations:
3856 (for-each delete-file
3860 (not (string-contains file ".guile.")))))
3862 ;; Rename *.guile.sls to *.sls so the ".guile" bit does
3863 ;; not appear in .go file names.
3864 (for-each (lambda (file)
3865 (rename-file file (guile-sls->sls file)))
3866 (find-files "compat" "\\.guile\\.sls"))
3868 ;; Move directories under d-bus/ to match module names.
3870 (for-each (lambda (directory)
3871 (rename-file directory
3872 (string-append "d-bus/"
3874 '("compat" "protocol"))
3878 `(("guile" ,guile-3.0)))
3880 `(("guile-packrat" ,guile-packrat)))
3881 (synopsis "D-Bus protocol implementation in R6RS Scheme")
3883 "AC/D-Bus is an implementation of the D-Bus wire protocol. D-Bus is an
3884 interprocess communication protocol popular on GNU/Linux systems to
3885 communicate with a variety of services. Originally designed for desktop
3886 environments, it is now used by programs like VLC media player, BlueZ,
3887 NetworkManager, Pulseaudio, systemd (including logind and resolved), Polkit,
3888 gnome-keyring, and many more.")
3889 (license license:expat)))
3891 (define-public guile-webutils
3892 (let ((commit "8541904f761066dc9c27b1153e9a838be9a55299")
3895 (name "guile-webutils")
3896 (version (git-version "0.1" revision commit))
3900 (url "https://notabug.org/cwebber/guile-webutils.git")
3902 (file-name (git-file-name name version))
3905 "1s9n3hbxd7lfpdi0x8wr0cfvlsf6g62ird9gbspxdrp5p05rbi64"))
3906 (modules '((guix build utils)))
3909 ;; Allow builds with Guile 3.0.
3910 (substitute* "configure.ac"
3914 (build-system gnu-build-system)
3916 `(("autoconf" ,autoconf)
3917 ("automake" ,automake)
3918 ("pkg-config" ,pkg-config)
3919 ("texinfo" ,texinfo)))
3921 `(("guile" ,guile-3.0)))
3923 `(("guile-irregex" ,guile-irregex)
3924 ("guile-gcrypt" ,guile-gcrypt)))
3925 (home-page "https://notabug.org/cwebber/guile-webutils")
3926 (synopsis "Web application authoring utilities for Guile")
3928 "This package provides tooling to write web applications in Guile, such
3929 as signed sessions, multipart message support, etc.")
3930 (license license:gpl3+))))
3932 (define-public guile2.2-webutils
3934 (inherit guile-webutils)
3935 (name "guile2.2-webutils")
3937 `(("guile" ,guile-2.2)))
3939 `(("guile-irregex" ,guile2.2-irregex)
3940 ("guile-gcrypt" ,guile2.2-gcrypt)))))
3942 (define-public guile-lens
3943 (let ((commit "14b15d07255f9d3f55d40a3b750d13c9ee3a154f")
3947 (version (git-version "0.1" revision commit))
3951 (url "https://gitlab.com/a-sassmannshausen/guile-lens.git")
3953 (file-name (git-file-name name version))
3956 "0w8jzqyla56yrgj7acsgd4nspyir6zgp3vgxid4xmwhg9wmf1ida"))))
3957 (build-system gnu-build-system)
3960 (modify-phases %standard-phases
3961 (add-after 'unpack 'run-hall
3963 (setenv "HOME" "/tmp") ; for ~/.hall
3964 (invoke "hall" "dist" "-x"))))))
3966 `(("autoconf" ,autoconf)
3967 ("automake" ,automake)
3968 ("guile" ,guile-3.0)
3969 ("guile-hall" ,guile-hall)
3970 ("pkg-config" ,pkg-config)
3971 ("texinfo" ,texinfo)))
3972 (home-page "https://gitlab.com/a-sassmannshausen/guile-lens.git")
3973 (synopsis "Composable lenses for data structures in Guile")
3975 "Guile-Lens is a library implementing lenses in Guile. The library is
3976 currently a re-implementation of the lentes library for Clojure. Lenses
3977 provide composable procedures, which can be used to focus, apply functions
3978 over, or update a value in arbitrary data structures.")
3979 (license license:gpl3+))))
3981 (define-public guile2.2-lens
3983 (inherit guile-lens)
3984 (name "guile2.2-lens")
3986 `(("guile" ,guile-2.2)
3987 ,@(alist-delete "guile" (package-native-inputs guile-lens))))))
3989 (define-public guile-xapian
3991 (name "guile-xapian")
3993 (home-page "https://git.systemreboot.net/guile-xapian")
3997 (uri (git-reference (url home-page)
3998 (commit (string-append "v" version))))
3999 (file-name (git-file-name name version))
4002 "16k61f1jn3g48jaf3730b9l0izr5j933jzyri73nmcnjd09gm35i"))
4003 (modules '((guix build utils)))
4005 ;; Guile >= 3.0.7 no longer uses libltdl so we need to explicitly add
4006 ;; ".libs" so that 'load-extension' finds the '.so' file.
4007 '(substitute* "pre-inst-env.in"
4008 (("^LD_LIBRARY_PATH=.*$")
4009 "LD_LIBRARY_PATH=\"$abs_top_builddir/.libs\"\n")))))
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 inputs 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 (search-input-file inputs
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 "f5d33a6880e96571d3cb079ed7755ffc156cac46")
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 "12x91983fh1j39zy7kbk19acc1rqdh8515ddx1mh7l26j04k9wgq"))))
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
4631 '("guix.scm" "demo1.yml" "demo1.scm"
4633 ;; This file is mismatched with the generated FFI code.
4634 "yaml/ffi-help-rt.scm"))
4635 (copy-file (search-input-file
4636 inputs "/share/guile/site/3.0/system/ffi-help-rt.scm")
4637 "yaml/ffi-help-rt.scm")
4638 (substitute* "yaml/ffi-help-rt.scm"
4639 (("system ffi-help-rt") "yaml ffi-help-rt"))
4641 (add-before 'build 'build-ffi
4642 (lambda* (#:key inputs #:allow-other-keys)
4643 (invoke "guild" "compile-ffi"
4644 "--no-exec" ; allow us to patch the generated file
4646 (substitute* "yaml/libyaml.scm"
4647 (("system ffi-help-rt") "yaml ffi-help-rt")
4648 (("dynamic-link \"libyaml\"")
4649 (format #false "dynamic-link \"~a/lib/libyaml\""
4650 (assoc-ref inputs "libyaml"))))
4653 (assoc-ref guile:%standard-phases 'build))
4654 (delete 'install))))
4656 `(("guile" ,guile-3.0)
4657 ("libyaml" ,libyaml)))
4659 `(("guile-bytestructures" ,guile-bytestructures)))
4661 `(("nyacc" ,nyacc)))
4662 (home-page "https://github.com/mwette/guile-libyaml")
4663 (synopsis "Guile wrapper for libyaml")
4665 "This package provides a simple yaml module for Guile using the
4666 ffi-helper from nyacc.")
4667 (license license:lgpl3+))))
4669 (define-public schmutz
4670 (let ((commit "add24588c59552537b8f1316df99a0cdd62c221e")
4674 (version (git-version "0" revision commit))
4678 (url "https://github.com/arximboldi/schmutz")
4680 (file-name (git-file-name name version))
4683 "1z3n61sj62lnn15mandvyrpjzli07rp9r62ypvgg3a8bvh37yc89"))))
4684 (build-system cmake-build-system)
4685 (arguments `(#:tests? #f))
4687 `(("pkg-config" ,pkg-config)))
4689 `(("guile" ,guile-2.2)))
4690 (home-page "https://github.com/arximboldi/schmutz")
4691 (synopsis "Bind C++ code to Scheme")
4692 (description "Schmutz is a header-only library to declare Scheme bindings
4693 for C++ code using a simple embedded DSL. Think of it as @code{Boost.Python}
4694 or @code{LuaBind} but for Scheme.")
4695 (license license:boost1.0))))
4697 (define-public guile-cbor
4705 (url "https://inqlab.net/git/guile-cbor.git")
4706 (commit (string-append "v" version))))
4707 (file-name (git-file-name name version))
4708 (sha256 (base32 "0bdqg3ifayf7m2j09lqrgdfprbdaa67azf09bcq9b4k71inxfnxl"))))
4709 (build-system gnu-build-system)
4712 `(("autoconf" ,autoconf)
4713 ("automake" ,automake)
4714 ("pkg-config" ,pkg-config)
4715 ("texinfo" ,texinfo)))
4716 (inputs `(("guile" ,guile-3.0)))
4717 (synopsis "Guile implementation of CBOR")
4719 "The Concise Binary Object Representation (CBOR), as specified by RFC 8949, is
4720 a binary data serialization format. CBOR is similar to JSON but serializes to
4721 binary which is smaller and faster to generate and parse. This package provides
4722 a Guile implementation of CBOR.")
4723 (home-page "https://inqlab.net/git/guile-cbor.git")
4724 (license license:gpl3+)))
4726 (define-public guile-quickcheck
4728 (name "guile-quickcheck")
4732 (uri (string-append "https://files.ngyro.com/"
4733 "guile-quickcheck/guile-quickcheck-"
4737 "03mwi1l3354x52nar0zwhcm0x29yai9xjln4p4gbchwvx5dsr6fb"))))
4738 (build-system gnu-build-system)
4740 `(("pkg-config" ,pkg-config)))
4742 `(("guile" ,guile-3.0)))
4743 (home-page "https://ngyro.com/software/guile-quickcheck.html")
4744 (synopsis "Randomized property-based testing for Guile")
4745 (description "Guile-Quickcheck is a library for random testing of program
4746 properties inspired by ghc-quickcheck. You can use it to express properties,
4747 which functions should satisfy, as Scheme code and then check whether they hold
4748 in a large number of randomly generated test cases.")
4749 (license license:gpl3+)))
4751 (define-public guile-fslib
4753 (name "guile-fslib")
4759 (url "https://notabug.org/ZelphirKaltstahl/guile-fslib/")
4761 (file-name (git-file-name name version))
4764 "118d84p443w7hrslv8hjyhgws631ia08mggiyklkmk0b9plfdsvz"))))
4765 (build-system guile-build-system)
4767 `(("guile" ,guile-3.0)))
4768 (home-page "https://notabug.org/ZelphirKaltstahl/guile-fslib")
4769 (synopsis "Helper functions for working with locations in file systems")
4771 "This package contains helper functions for working with file system
4773 (license license:agpl3+)))
4775 (define-public guile-netlink
4777 (name "guile-netlink")
4783 (url "https://git.lepiller.eu/git/guile-netlink")
4785 (file-name (git-file-name name version))
4788 "1x1rx6agjdah56r50cfs41vyvycydyjdq0plq3jxgvl1q2dar1gw"))))
4789 (build-system gnu-build-system)
4791 `(#:tests? #f)); no tests
4793 `(("guile" ,guile-3.0)))
4795 `(("automake" ,automake)
4796 ("autoconf" ,autoconf)
4797 ("pkg-config" ,pkg-config)
4798 ("texinfo" ,texinfo)))
4799 (home-page "https://git.lepiller.eu/guile-netlink")
4800 (synopsis "Netlink protocol implementation for Guile")
4801 (description "Guile Netlink is a GNU Guile library providing an implementation
4802 of the netlink protocol.
4804 It provides a generic library for writing implementations of a netlink
4805 protocol, a low-level rtnetlink implementation that uses that library and a
4806 high-level API for network management that uses rtnetlink.")
4807 (license license:gpl3+)))