1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012-2022 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2014, 2015, 2018 Mark H Weaver <mhw@netris.org>
4 ;;; Copyright © 2015, 2017, 2022 Christine Lemmer-Webber <cwebber@dustycloud.org>
5 ;;; Copyright © 2016 Alex Sassmannshausen <alex@pompo.co>
6 ;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021, 2022 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2016 Erik Edrosa <erik.edrosa@gmail.com>
8 ;;; Copyright © 2016, 2019, 2020, 2021 Eraim Flashner <efraim@flashner.co.il>
9 ;;; Copyright © 2016, 2017, 2021 Alex Kost <alezost@gmail.com>
10 ;;; Copyright © 2016, 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@openmailbox.org>
11 ;;; Copyright © 2016, 2021 Amirouche <amirouche@hypermove.net>
12 ;;; Copyright © 2016, 2019, 2021 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
13 ;;; Copyright © 2017 Andy Wingo <wingo@igalia.com>
14 ;;; Copyright © 2017 David Thompson <davet@gnu.org>
15 ;;; Copyright © 2017, 2018, 2019, 2020 Mathieu Othacehe <m.othacehe@gmail.com>
16 ;;; Copyright © 2017 Theodoros Foradis <theodoros@foradis.org>
17 ;;; Copyright © 2017 Nikita <nikita@n0.is>
18 ;;; Copyright © 2017, 2018, 2021 Tobias Geerinckx-Rice <me@tobias.gr>
19 ;;; Copyright © 2018, 2021, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
20 ;;; Copyright © 2018, 2019, 2020, 2021, 2022 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, 2022 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>
41 ;;; Copyright © 2021, 2022 Artyom V. Poptsov <poptsov.artyom@gmail.com>
42 ;;; Copyright © 2022 Maxime Devos <maximedevos@telenet.be>
43 ;;; Copyright © 2022 Zhu Zihao <all_but_last@163.com>
44 ;;; Copyright © 2022 Antero Mejr <antero@mailbox.org>
45 ;;; Copyright © 2022 Taiju HIGASHI <higashi@taiju.info>
46 ;;; Copyright © 2022 Zheng Junjie <873216071@qq.com>
48 ;;; This file is part of GNU Guix.
50 ;;; GNU Guix is free software; you can redistribute it and/or modify it
51 ;;; under the terms of the GNU General Public License as published by
52 ;;; the Free Software Foundation; either version 3 of the License, or (at
53 ;;; your option) any later version.
55 ;;; GNU Guix is distributed in the hope that it will be useful, but
56 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
57 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
58 ;;; GNU General Public License for more details.
60 ;;; You should have received a copy of the GNU General Public License
61 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
63 (define-module (gnu packages guile-xyz)
64 #:use-module ((guix licenses) #:prefix license:)
65 #:use-module (gnu packages)
66 #:use-module (gnu packages admin)
67 #:use-module (gnu packages algebra)
68 #:use-module (gnu packages aspell)
69 #:use-module (gnu packages autotools)
70 #:use-module (gnu packages avahi)
71 #:use-module (gnu packages base)
72 #:use-module (gnu packages bash)
73 #:use-module (gnu packages compression)
74 #:use-module (gnu packages crypto)
75 #:use-module (gnu packages databases)
76 #:use-module (gnu packages disk)
77 #:use-module (gnu packages emacs)
78 #:use-module (gnu packages emacs-xyz)
79 #:use-module (gnu packages gawk)
80 #:use-module (gnu packages gettext)
81 #:use-module (gnu packages gl)
82 #:use-module (gnu packages glib)
83 #:use-module (gnu packages gnome)
84 #:use-module (gnu packages gnupg)
85 #:use-module (gnu packages gperf)
86 #:use-module (gnu packages gstreamer)
87 #:use-module (gnu packages gtk)
88 #:use-module (gnu packages guile)
89 #:use-module (gnu packages haskell-xyz) ;pandoc
90 #:use-module (gnu packages hurd)
91 #:use-module (gnu packages image)
92 #:use-module (gnu packages imagemagick)
93 #:use-module (gnu packages libffi)
94 #:use-module (gnu packages libunistring)
95 #:use-module (gnu packages linux)
96 #:use-module (gnu packages man)
97 #:use-module (gnu packages maths)
98 #:use-module (gnu packages mes)
99 #:use-module (gnu packages multiprecision)
100 #:use-module (gnu packages ncurses)
101 #:use-module (gnu packages networking)
102 #:use-module (gnu packages noweb)
103 #:use-module (gnu packages nss)
104 #:use-module (gnu packages package-management)
105 #:use-module (gnu packages password-utils)
106 #:use-module (gnu packages pcre)
107 #:use-module (gnu packages perl)
108 #:use-module (gnu packages pkg-config)
109 #:use-module (gnu packages python)
110 #:use-module (gnu packages readline)
111 #:use-module (gnu packages sdl)
112 #:use-module (gnu packages search)
113 #:use-module (gnu packages serialization)
114 #:use-module (gnu packages slang)
115 #:use-module (gnu packages sqlite)
116 #:use-module (gnu packages swig)
117 #:use-module (gnu packages tex)
118 #:use-module (gnu packages texinfo)
119 #:use-module (gnu packages tls)
120 #:use-module (gnu packages version-control)
121 #:use-module (gnu packages webkit)
122 #:use-module (gnu packages xdisorg)
123 #:use-module (gnu packages xorg)
124 #:use-module (guix packages)
125 #:use-module (guix download)
126 #:use-module (guix gexp)
127 #:use-module (guix git-download)
128 #:use-module (guix hg-download)
129 #:use-module (guix build-system cmake)
130 #:use-module (guix build-system glib-or-gtk)
131 #:use-module (guix build-system gnu)
132 #:use-module (guix build-system guile)
133 #:use-module (guix utils)
134 #:use-module ((guix build utils) #:select (alist-replace))
135 #:use-module (ice-9 match)
136 #:use-module ((srfi srfi-1) #:select (alist-delete))
137 #:use-module (srfi srfi-26))
139 (define-public artanis
145 (uri (string-append "mirror://gnu/artanis/artanis-"
149 "1zfg49s7wp37px7k22qcr06rxfwyn3gv1c3jmma346xw0m8jr63w"))
150 (modules '((guix build utils)))
153 ;; Unbundle guile-redis and guile-json
154 (delete-file-recursively "artanis/third-party/json.scm")
155 (delete-file-recursively "artanis/third-party/json")
156 (delete-file-recursively "artanis/third-party/redis.scm")
157 (delete-file-recursively "artanis/third-party/redis")
158 (substitute* '("artanis/artanis.scm"
161 "artanis/tpl/parser.scm")
162 (("(#:use-module \\()artanis third-party (json\\))" _
164 (string-append use-module json)))
165 (substitute* '("artanis/lpc.scm"
166 "artanis/session.scm")
167 (("(#:use-module \\()artanis third-party (redis\\))" _
169 (string-append use-module redis)))
170 (substitute* "artanis/oht.scm"
171 (("([[:punct:][:space:]]+)(->json-string)([[:punct:][:space:]]+)"
172 _ pre json-string post)
176 (substitute* "artanis/artanis.scm"
177 (("[[:punct:][:space:]]+->json-string[[:punct:][:space:]]+")
180 (build-system gnu-build-system)
182 (list guile-3.0 nspr nss))
183 ;; FIXME the bundled csv contains one more exported procedure
184 ;; (sxml->csv-string) than guile-csv. The author is maintainer of both
186 ;; TODO: Add guile-dbi and guile-dbd optional dependencies.
188 (list guile-json-3 guile-readline guile-redis))
190 (list bash-minimal ;for the `source' builtin
192 util-linux)) ;for the `script' command
194 `(#:modules (((guix build guile-build-system)
195 #:select (target-guile-effective-version))
196 ,@%gnu-build-system-modules)
197 #:imported-modules ((guix build guile-build-system)
198 ,@%gnu-build-system-modules)
200 ;; TODO: The documentation must be built with the `docs' target.
201 (let* ((out (assoc-ref %outputs "out"))
202 ;; We pass guile explicitly here since this executes before the
203 ;; set-paths phase and therefore guile is not yet in PATH.
204 (effective-version (target-guile-effective-version
205 (assoc-ref %build-inputs "guile")))
206 (scm (string-append out "/share/guile/site/" effective-version))
207 (go (string-append out "/lib/guile/" effective-version "/site-ccache")))
208 ;; Don't use (%site-dir) for site paths.
209 (list (string-append "MOD_PATH=" scm)
210 (string-append "MOD_COMPILED_PATH=" go)))
213 (modify-phases %standard-phases
214 (add-after 'unpack 'patch-site-dir
215 (lambda* (#:key outputs #:allow-other-keys)
216 (substitute* "artanis/commands/help.scm"
219 (assoc-ref outputs "out")
221 (target-guile-effective-version)
223 (add-after 'unpack 'patch-reference-to-libnss
224 (lambda* (#:key inputs #:allow-other-keys)
225 (substitute* "artanis/security/nss.scm"
226 (("ffi-binding \"libnss3\"")
229 (assoc-ref inputs "nss") "/lib/nss/libnss3.so"
231 (("ffi-binding \"libssl3\"")
233 "ffi-binding \"" (assoc-ref inputs "nss") "/lib/nss/libssl3.so\"")))))
234 (add-before 'install 'substitute-root-dir
235 (lambda* (#:key outputs #:allow-other-keys)
236 (let ((out (assoc-ref outputs "out")))
237 (substitute* "Makefile" ;ignore the execution of bash.bashrc
238 ((" /etc/bash.bashrc") " /dev/null"))
239 (substitute* "Makefile" ;set the root of config files to OUT
240 ((" /etc") (string-append " " out "/etc")))
241 (mkdir-p (string-append out "/bin")) )))
242 (add-after 'install 'wrap-art
243 (lambda* (#:key inputs outputs #:allow-other-keys)
244 (let* ((out (assoc-ref outputs "out"))
245 (effective-version (target-guile-effective-version))
246 (bin (string-append out "/bin"))
247 (scm (string-append out "/share/guile/site/" effective-version))
248 (go (string-append out "/lib/guile/" effective-version
250 (wrap-program (string-append bin "/art")
251 `("GUILE_LOAD_PATH" ":" prefix
252 (,scm ,(getenv "GUILE_LOAD_PATH")))
253 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
254 (,go ,(getenv "GUILE_LOAD_COMPILED_PATH"))))))))))
255 (synopsis "Web application framework written in Guile")
256 (description "GNU Artanis is a web application framework written in Guile
257 Scheme. A web application framework (WAF) is a software framework that is
258 designed to support the development of dynamic websites, web applications, web
259 services and web resources. The framework aims to alleviate the overhead
260 associated with common activities performed in web development. Artanis
261 provides several tools for web development: database access, templating
262 frameworks, session management, URL-remapping for RESTful, page caching, and
264 (home-page "https://www.gnu.org/software/artanis/")
265 (license (list license:gpl3+ license:lgpl3+)))) ;dual license
267 ;; There are no releases yet of this package.
268 (define-public guile-pipe
269 (let ((commit "0746ec38d19d844dff0c6f62f209b2b6c8d8872e")
273 (version (git-version "0.0.0" revision commit))
278 (url "https://github.com/joshwalters/guile-pipe")
280 (file-name (git-file-name name version))
282 (base32 "038gwrhfywgs8372q478wn4623lhcmkknfj4p8yaa93bykfc0fml"))))
283 (build-system guile-build-system)
286 (home-page "https://github.com/joshwalters/guile-pipe")
287 (synopsis "Guile pipe macros for functional chaining")
289 "This package provides macros for functional chaining in Guile, similar
290 to UNIX pipes (@code{|}), Clojure's threading macros (@code{->} and
292 (license license:gpl3+))))
294 (define-public guile-f-scm
302 (url "https://git.sr.ht/~brown121407/f.scm")
304 (file-name (git-file-name name version))
306 (base32 "14wyrs3m1649l3km4pl2175dmap1372j5h8nkhykrbxg5xqp6ivd"))))
307 (build-system guile-build-system)
310 (home-page "https://git.sr.ht/~brown121407/f.scm")
311 (synopsis "Library for working with files and directories")
313 "f.scm is a library intended to facilitate working with files and
314 directories (the file system in general). It was initially inspired by the
315 f library for Emacs.")
316 (license license:gpl3+)))
318 ;; There has not been any release yet.
319 (define-public guildhall
320 (let ((commit "2fe2cc539f4b811bbcd69e58738db03eb5a2b778")
324 (version (string-append "0-" revision "." (string-take commit 9)))
328 (url "https://github.com/ijp/guildhall")
330 (file-name (string-append name "-" version "-checkout"))
333 "115bym7bg66h3gs399yb2vkzc2ygriaqsn4zbrg8f054mgy8wzn1"))))
334 (build-system gnu-build-system)
337 (modify-phases %standard-phases
338 ;; Tests fail without this fix because they try to load the bash
339 ;; executable as a Scheme file. See bug report at
340 ;; https://github.com/ijp/guildhall/issues/22
341 (add-after 'unpack 'fix-bug-22
343 (substitute* "Makefile.am"
344 (("TESTS_ENVIRONMENT=.*")
345 "AM_TESTS_ENVIRONMENT=srcdir=$(abs_top_srcdir)/tests/
346 TEST_EXTENSIONS = .scm
347 SCM_LOG_COMPILER= $(top_builddir)/env $(GUILE)
348 AM_SCM_LOG_FLAGS = --no-auto-compile -s")
349 ;; FIXME: one of the database tests fails for unknown
350 ;; reasons. It does not fail when run outside of Guix.
351 (("tests/database.scm") ""))
356 (list zip ; for tests
357 autoconf automake texinfo))
358 (synopsis "Package manager for Guile")
360 "Guildhall is a package manager written for Guile Scheme. A guild is
361 an association of independent craftspeople. A guildhall is where they meet.
362 This Guildhall aims to make a virtual space for Guile wizards and journeyfolk
365 On a practical level, Guildhall lets you share Scheme modules and programs
366 over the internet, and install code that has been shared by others. Guildhall
367 can handle dependencies, so when a program requires several libraries, and
368 each of those has further dependencies, all of the prerequisites for the
369 program can be installed in one go.")
370 (home-page "https://github.com/ijp/guildhall")
371 (license license:gpl3+))))
373 (define-public guile-aspell
375 (name "guile-aspell")
380 "http://lonelycactus.com/tarball/guile_aspell-"
384 "0vpk5xj9m9qc702z3khmkwhgpb949qbsyz8kw2qycda6qnxk0077"))))
385 (build-system gnu-build-system)
387 '(#:phases (modify-phases %standard-phases
388 (add-before 'configure 'set-guilesitedir
390 (substitute* "Makefile.in"
391 (("^guilesitedir =.*$")
393 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
395 (add-before 'build 'set-libaspell-file-name
396 (lambda* (#:key inputs #:allow-other-keys)
397 (let ((aspell (assoc-ref inputs "aspell")))
398 (substitute* "aspell.scm"
399 (("\"libaspell\\.so\"")
400 (string-append "\"" aspell
401 "/lib/libaspell\"")))
403 (native-inputs (list pkg-config))
404 (inputs (list guile-2.2 aspell))
405 (home-page "https://github.com/spk121/guile-aspell")
406 (synopsis "Spell-checking from Guile")
408 "guile-aspell is a Guile Scheme library for comparing a string against a
409 dictionary and suggesting spelling corrections.")
410 (license license:gpl3+)))
412 (define-public guile2.0-bash
413 ;; This project is currently retired. It was initially announced here:
414 ;; <https://lists.gnu.org/archive/html/guile-user/2015-02/msg00003.html>.
415 (let ((commit "1eabc563ca5692b3e08d84f1f0e6fd2283284469")
418 (name "guile2.0-bash")
419 (version (string-append "0.1.6-" revision "." (string-take commit 7)))
424 (url "https://git.sr.ht/~kaction/guile-bash")))
427 "097vny990wp2qpjij6a5a5gwc6fxzg5wk56inhy18iki5v6pif1p"))
428 (file-name (string-append name "-" version "-checkout"))))
429 (build-system gnu-build-system)
433 #~(list (string-append "CPPFLAGS=-I" ; match bash.pc
434 (assoc-ref %build-inputs "bash:include")
435 "/include/bash/include")
436 ;; The '.a' file is useless.
438 ;; Install 'lib/bash' as Bash 4.4 expects.
439 (string-append "--libdir=" #$output "/lib/bash"))))
443 bash ; with loadable module support, for tests
444 gettext-minimal ; for AC_LIB_LINKFLAGS_FROM_LIBS
447 (inputs `(("guile" ,guile-2.0)
448 ("bash:include" ,bash "include")))
449 (home-page "https://git.sr.ht/~kaction/guile-bash")
450 (synopsis "Extend Bash using Guile")
452 "Guile-Bash provides a shared library and set of Guile modules,
453 allowing you to extend Bash in Scheme. Scheme interfaces allow you to access
454 the following aspects of Bash:
458 @item setting and getting Bash variables;
459 @item creating dynamic variables;
460 @item creating Bash functions with a Scheme implementation;
461 @item reader macro for output capturing;
462 @item reader macro for evaluating raw Bash commands.
468 enable -f ~/.guix-profile/lib/bash/libguile-bash.so scm
471 and then run @command{scm example.scm}.")
472 (license license:gpl3+))))
474 (define-public guile-bash
476 (inherit guile2.0-bash)
479 (modify-inputs (package-inputs guile2.0-bash)
480 (replace "guile" guile-3.0-latest)))
482 (substitute-keyword-arguments (package-arguments guile2.0-bash)
483 ;; XXX The tests succeed with Guile 2.0 but fail with 3.0.
485 ((#:phases phases #~%standard-phases)
486 #~(modify-phases #$phases
487 (add-after 'install 'install-guile
488 (lambda* (#:key inputs outputs #:allow-other-keys)
490 (string-append (assoc-ref outputs "out")
491 (assoc-ref inputs "guile") "/share")
492 (string-append (assoc-ref outputs "out") "/share"))))))))))
494 (define-public guile-8sync
495 (let ((commit "183b4f02e68279d4984e79b79e06bfcf1861fcbf") (revision "0"))
498 (version (git-version "0.4.2" revision commit))
503 (url "https://git.savannah.gnu.org/git/8sync.git")))
506 "0r22kxasv1zqnf1ykzyx6c226qxn1wgjb1gc54526bid24x508ij"))
507 (file-name (git-file-name name version))))
508 (build-system gnu-build-system)
509 (native-inputs (list autoconf automake guile-3.0 pkg-config texinfo))
512 #~(list "GUILE_AUTO_COMPILE=0")))
513 (home-page "https://gnu.org/s/8sync/")
514 (synopsis "Asynchronous actor model library for Guile")
516 "GNU 8sync (pronounced \"eight-sync\") is an asynchronous programming
517 library for GNU Guile based on the actor model.")
518 (properties '((upstream-name . "8sync")))
519 (license license:lgpl3+))))
521 (define-public guile-daemon
523 (name "guile-daemon")
527 (uri (string-append "https://github.com/alezost/" name
528 "/releases/download/v" version
529 "/" name "-" version ".tar.gz"))
532 "08gaqrgjlly9k5si72vvpbr4xhq5v52l5ma5y6a7spid5dd057cy"))))
533 (build-system gnu-build-system)
538 (home-page "https://github.com/alezost/guile-daemon")
539 (synopsis "Evaluate code in a running Guile process")
541 "Guile-Daemon is a small Guile program that loads your initial
542 configuration file, and then reads and evaluates Guile expressions that
543 you send to a FIFO file.")
544 (license license:gpl3+)))
546 (define-public guile-dsv
553 (url "https://github.com/artyom-poptsov/guile-dsv")
554 (commit (string-append "v" version))))
555 (file-name (string-append name "-" version "-checkout"))
558 "10wssilin4qphdmmqmms20bp3cy007kh22l1g45wfka0minmhkgs"))))
559 (build-system gnu-build-system)
561 (list autoconf automake pkg-config texinfo))
562 (inputs (list guile-3.0))
563 (propagated-inputs (list guile-lib))
565 `(#:modules (((guix build guile-build-system)
566 #:select (target-guile-effective-version))
567 ,@%gnu-build-system-modules)
568 #:imported-modules ((guix build guile-build-system)
569 ,@%gnu-build-system-modules)
570 #:phases (modify-phases %standard-phases
571 (add-after 'install 'wrap-program
572 (lambda* (#:key inputs outputs #:allow-other-keys)
573 (let* ((out (assoc-ref outputs "out"))
574 (bin (string-append out "/bin"))
575 (guile-lib (assoc-ref inputs "guile-lib"))
576 (version (target-guile-effective-version))
577 (scm (string-append "/share/guile/site/"
579 (go (string-append "/lib/guile/"
580 version "/site-ccache")))
581 (wrap-program (string-append bin "/dsv")
582 `("GUILE_LOAD_PATH" prefix
583 (,(string-append out scm)
584 ,(string-append guile-lib scm)))
585 `("GUILE_LOAD_COMPILED_PATH" prefix
586 (,(string-append out go)
587 ,(string-append guile-lib go)))))
589 (home-page "https://github.com/artyom-poptsov/guile-dsv")
590 (synopsis "DSV module for Guile")
592 "Guile-DSV is a GNU Guile module for working with the
593 delimiter-separated values (DSV) data format. Guile-DSV supports the
594 Unix-style DSV format and RFC 4180 format.")
595 (license license:gpl3+)))
597 (define-public guile2.2-dsv
600 (name "guile2.2-dsv")
601 (inputs (list guile-2.2))
602 (propagated-inputs `(("guile-lib" ,guile2.2-lib)))))
604 (define-public guile-fibers-1.1
606 (name "guile-fibers")
611 (url "https://github.com/wingo/fibers")
612 (commit (string-append "v" version))))
613 (file-name (git-file-name name version))
616 "0ll63d7202clapg1k4bilbnlmfa4qvpjnsd7chbkka4kxf5klilc"))
618 (search-patches "guile-fibers-wait-for-io-readiness.patch"
619 "guile-fibers-epoll-instance-is-dead.patch"))))
620 (build-system gnu-build-system)
623 #~(list "GUILE_AUTO_COMPILE=0")
627 #~(modify-phases %standard-phases
628 (add-before 'check 'disable-some-tests
630 ;; This test can take more than an hour on some systems.
631 (substitute* "tests/basic.scm"
632 ((".*spawn-fiber loop-to-1e4.*") ""))
633 ;; These tests can take more than an hour and/or segfault.
634 (substitute* "Makefile"
635 (("tests/speedup.scm") ""))))))))
637 (list texinfo pkg-config autoconf automake libtool
638 guile-3.0 ;for 'guild compile
639 ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'
642 (list guile-3.0)) ;for libguile-3.0.so
644 ;; This version requires 'epoll' and is thus limited to Linux-based
645 ;; systems, but this may change soon:
646 ;; <https://github.com/wingo/fibers/pull/53>.
647 (filter (cut string-suffix? "-linux" <>) %supported-systems))
648 (synopsis "Lightweight concurrency facility for Guile")
650 "Fibers is a Guile library that implements a a lightweight concurrency
651 facility, inspired by systems like Concurrent ML, Go, and Erlang. A fiber is
652 like a \"goroutine\" from the Go language: a lightweight thread-like
653 abstraction. Systems built with Fibers can scale up to millions of concurrent
654 fibers, tens of thousands of concurrent socket connections, and many parallel
655 cores. The Fibers library also provides Concurrent ML-like channels for
656 communication between fibers.
658 Note that Fibers makes use of some Guile 2.1/2.2-specific features and
659 is not available for Guile 2.0.")
660 (home-page "https://github.com/wingo/fibers")
661 (properties '((upstream-name . "fibers")))
662 (license license:lgpl3+)))
664 (define-public guile-fibers
666 (inherit guile-fibers-1.1)
670 (uri (string-append "https://wingolog.org/pub/fibers/fibers-"
674 "0vjkg72ghgdgphzbjz9ig8al8271rq8974viknb2r1rg4lz92ld0"))
675 (modules '((guix build utils)))
678 ;; Allow builds with Guile 3.0.
679 (substitute* "configure"
680 (("search=\"2\\.2\"")
681 "search=\"3.0 2.2\""))
683 ;; Explicitly include system headers rather than relying on
684 ;; <libguile.h> to do it for us.
685 (substitute* "epoll.c"
686 (("#include.*libguile\\.h.*$" all)
687 (string-append "#include <unistd.h>\n"
688 "#include <string.h>\n"
691 ;; Import (ice-9 threads) for 'current-processor-count'.
692 (substitute* "tests/channels.scm"
693 (("#:use-module \\(fibers\\)")
694 (string-append "#:use-module (fibers)\n"
695 "#:use-module (ice-9 threads)\n")))
698 ;; fixes a resource leak that causes crashes in the tests
699 (search-patches "guile-fibers-destroy-peer-schedulers.patch"))))
701 '(;; The code uses 'scm_t_uint64' et al., which are deprecated in 3.0.
702 #:configure-flags '("CFLAGS=-Wno-error=deprecated-declarations")
703 #:phases (modify-phases %standard-phases
704 (add-after 'install 'mode-guile-objects
705 (lambda* (#:key outputs #:allow-other-keys)
706 ;; .go files are installed to "lib/guile/X.Y/cache".
707 ;; This phase moves them to "…/site-ccache".
708 (let* ((out (assoc-ref outputs "out"))
709 (lib (string-append out "/lib/guile"))
710 (old (car (find-files lib "^ccache$"
712 (new (string-append (dirname old)
714 (rename-file old new)
717 (define-public guile2.2-fibers
719 (inherit guile-fibers-1.1)
720 (name "guile2.2-fibers")
722 (modify-inputs (package-inputs guile-fibers-1.1)
723 (replace "guile" guile-2.2)))
725 (modify-inputs (package-native-inputs guile-fibers-1.1)
726 (replace "guile" guile-2.2)))))
728 (define-public guile-filesystem
730 (name "guile-filesystem")
735 (url "https://gitlab.com/leoprikler/guile-filesystem.git")
737 (file-name (git-file-name name version))
740 "1shmkc0y9r2sj3kw7hrsnamnp7y8xifkhf3m3rnfxczqg63k67vy"))))
741 (build-system gnu-build-system)
743 (list autoconf automake pkg-config texinfo))
746 (home-page "https://gitlab.com/leoprikler/guile-filesystem")
747 (synopsis "Complementary library to Guile's built-in file system procedures")
748 (description "@code{guile-filesystem} provides a set of utility functions,
749 that augment Guile's support for handling files and their names.")
750 (license license:lgpl3+)))
752 (define-public guile2.0-filesystem
754 (inherit guile-filesystem)
755 (name "guile2.0-filesystem")
756 (inputs (list guile-2.0))))
758 (define-public guile2.2-filesystem
760 (inherit guile-filesystem)
761 (name "guile2.2-filesystem")
762 (inputs (list guile-2.2))))
764 (define-public guile-syntax-highlight
766 (name "guile-syntax-highlight")
770 (uri (string-append "https://files.dthompson.us/"
771 "guile-syntax-highlight/"
772 "guile-syntax-highlight-"
776 "1p771kq15x83483m23bhah1sz6vkalg3drm7x279f4j1cxligkzi"))
777 (modules '((guix build utils)))
780 ;; Allow builds with Guile 3.0.
781 (substitute* "configure"
785 (build-system gnu-build-system)
790 (synopsis "General-purpose syntax highlighter for GNU Guile")
791 (description "Guile-syntax-highlight is a general-purpose syntax
792 highlighting library for GNU Guile. It can parse code written in various
793 programming languages into a simple s-expression that can be converted to
794 HTML (via SXML) or any other format for rendering.")
795 (home-page "https://dthompson.us/projects/guile-syntax-highlight.html")
796 (license license:lgpl3+)))
798 ;; gitile requires a more recent version than the latest release.
799 (define-public guile-syntax-highlight-for-gitile
800 (let ((commit "897fa5156ff41588e0d281eb00e4e94de63ccd8a")
803 (inherit guile-syntax-highlight)
804 (version (git-version "0.1" revision commit))
808 (url "https://git.dthompson.us/guile-syntax-highlight.git")
810 (file-name (git-file-name "guile-syntax-highlight" version))
813 "18zlg4mkgd3swgv2ggfz91ivnnzc0zhvc9ybgrxg1y762va9hyvj"))))
815 (modify-inputs (package-native-inputs guile-syntax-highlight)
816 (prepend autoconf automake texinfo)))
817 (properties '((hidden? . #t))))))
819 (define-public guile2.2-syntax-highlight
821 (inherit guile-syntax-highlight)
822 (name "guile2.2-syntax-highlight")
823 (inputs (list guile-2.2))))
825 (define-public guile-sjson
831 (uri (string-append "https://dustycloud.org/misc/sjson-" version
835 "08sr16fg5cqvik3wblav6k4b6djc5ydhgfvxa49bc5bh1irqvrcn"))
836 (modules '((guix build utils)))
839 ;; Allow builds with Guile 3.0.
840 (substitute* "configure"
844 (build-system gnu-build-system)
846 (list autoconf automake pkg-config))
849 (home-page "https://gitlab.com/dustyweb/guile-sjson")
850 (synopsis "S-expression based json reader/writer for Guile")
851 (description "guile-sjson is a json reader/writer for Guile.
852 It has a nice, simple s-expression based syntax.")
853 (license license:lgpl3+)))
855 (define-public guile2.2-sjson
857 (inherit guile-sjson)
858 (name "guile2.2-sjson")
859 (inputs (list guile-2.2))))
861 (define-public guile-squee
862 (let ((commit "a151fd006fa819945ca1d4749b173854269b9f70")
866 (version (string-append "0-" revision "." (string-take commit 7)))
870 (url "https://notabug.org/cwebber/guile-squee.git")
872 (file-name (git-file-name name version))
875 "1jps14z8653ah2kr367iayzyi3ql2s55l77xrafz7gk3mzcvgrrg"))))
876 (build-system guile-build-system)
879 (modify-phases %standard-phases
880 (add-after 'unpack 'patch
881 (lambda* (#:key inputs #:allow-other-keys)
882 (substitute* "squee.scm"
883 (("dynamic-link \"libpq\"")
886 (search-input-file inputs "/lib/libpq.so")
892 (home-page "https://notabug.org/cwebber/guile-squee")
893 (synopsis "Connect to PostgreSQL using Guile")
895 "@code{squee} is a Guile library for connecting to PostgreSQL databases
896 using Guile's foreign function interface.")
897 (license license:lgpl3+))))
899 (define-public guile2.2-squee
901 (inherit guile-squee)
902 (name "guile2.2-squee")
903 (native-inputs (modify-inputs (package-native-inputs guile-squee)
904 (replace "guile" guile-2.2)))))
906 (define-public guile-colorized
908 (name "guile-colorized")
914 (url "https://gitlab.com/NalaGinrut/guile-colorized.git")
915 (commit (string-append "v" version))))
916 (file-name (git-file-name name version))
918 (base32 "10mv8c63159r3qvwwdvsgnsvdg7nc2ghak85zapwqpv4ywrqp9zc"))))
919 (build-system guile-build-system)
922 (home-page "https://gitlab.com/NalaGinrut/guile-colorized")
923 (synopsis "Colorized REPL for Guile")
925 "Guile-colorized provides you with a colorized REPL for GNU Guile.")
926 (license license:gpl3+)))
928 (define-public guile2.2-colorized
930 (inherit guile-colorized)
931 (name "guile2.2-colorized")
932 (native-inputs (list guile-2.2))))
934 (define-public guile-pfds
938 (home-page "https://github.com/ijp/pfds")
943 (commit (string-append "v" version))))
946 "19y33wg94pf0n98dkfqd1zbw93fgky4sawxsxl6s3vyqwl0yi5vh"))
947 (file-name (string-append name "-" version "-checkout"))))
948 (build-system guile-build-system)
950 '(#:source-directory "src"
951 #:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
952 #:phases (modify-phases %standard-phases
953 (add-after 'unpack 'patch-sources
954 ;; Initially reported here:
955 ;; https://github.com/ijp/pfds/pull/6, and merged into
956 ;; other projects such as IronScheme (see:
957 ;; https://github.com/IronScheme/pfds/pull/1).
959 (substitute* "hamts.sls"
960 (("subtrie-vector vector")
961 "subtrie-vector trie"))))
962 (add-after 'patch-sources 'move-files-around
964 ;; Move files under a pfds/ directory to reflect the
967 (for-each (lambda (file)
969 file (string-append "src/pfds/" file)))
985 (synopsis "Purely functional data structures for Guile")
987 "This package provides purely functional data structures written in R6RS
988 Scheme and compiled for Guile. It has been tested with Racket, Guile 2,
989 Vicare Scheme and IronScheme. Right now it contains:
997 @item priority search queues (PSQs)
1001 @item hash array mapped tries (HAMTs).
1003 (license license:bsd-3)))
1005 (define-public guile2.0-pg
1007 (name "guile2.0-pg")
1011 (uri (string-append "mirror://savannah/guile-pg/guile-pg-"
1015 "1fizcqga96p9n2jjhi9nprhry20hg9wvcl5b8gya4vhzwz6qhysp"))))
1016 (build-system gnu-build-system)
1019 (modify-phases %standard-phases
1020 (add-before 'install 'patch-src/Makefile
1021 (lambda* (#:key outputs #:allow-other-keys)
1022 (substitute* "src/Makefile"
1023 (("\\/share\\/guile\\/site") "/share/guile/site/2.0"))
1026 (list procps ; fake-cluster-control uses ps
1027 guile-2.0 postgresql))
1029 (list guile-2.0 postgresql))
1030 (home-page "https://www.nongnu.org/guile-pg/")
1031 (synopsis "Guile modules for accessing PostgreSQL")
1033 "Guile-PG is a collection of modules for Guile allowing access to the
1034 PostgreSQL RDBMS from Scheme programs.
1036 This has been tested against PostgreSQL 10 through 13, but currently only
1037 works with Guile 1.4.x to 2.0.x.")
1038 (license license:gpl3+)))
1040 (define-public guile-prometheus
1041 (let ((commit "35dc26c0ea44c3d70f1819f240d84e2cbb4b7b4c")
1044 (name "guile-prometheus")
1045 (version (git-version "0" revision commit))
1049 (url "https://git.cbaines.net/git/guile/prometheus")
1053 "07822jj4appw37lf444kc4xlgl7nm64mgldag56072l55kwashgb"))
1054 (file-name (string-append name "-" version "-checkout"))))
1055 (build-system gnu-build-system)
1057 (list pkg-config autoconf automake guile-3.0))
1060 (home-page "https://git.cbaines.net/guile/prometheus")
1061 (synopsis "Prometheus client library for Guile")
1063 "This Guile library provides instrumentation code intended to be used
1064 with the Prometheus time series service. Counter, gauge and histogram metric
1065 types are supported.")
1066 (license license:gpl3+))))
1068 (define-public guile2.2-pfds
1070 (inherit guile-pfds)
1071 (name "guile2.2-pfds")
1072 (native-inputs (list guile-2.2))
1074 (substitute-keyword-arguments (package-arguments guile-pfds)
1076 `(modify-phases ,phases
1077 (delete 'work-around-guile-bug)
1078 (add-after 'move-files-around 'sls->scm
1080 ;; In Guile <= 2.2.4, there's no way to tell 'guild
1081 ;; compile' to accept the ".sls" extension. So...
1082 (for-each (lambda (file)
1085 (string-drop-right file 4)
1087 (find-files "." "\\.sls$"))
1090 (define-public guile-aa-tree
1092 (name "guile-aa-tree")
1096 (uri (string-append "mirror://savannah/guile-aa-tree/guile-aa-tree-"
1100 "0044c105r3q9vpl17pv3phl1b79kjm1llhkakqgiasixyav01blh"))))
1101 (build-system guile-build-system)
1102 (native-inputs (list guile-2.2))
1103 ;; https://savannah.nongnu.org/projects/guile-aa-tree
1104 (home-page "https://qlfiles.net/guile-aa-tree/")
1105 (synopsis "AA tree data structure for Guile")
1107 "This package provides an implementation of @dfn{AA trees}, a
1108 self-balancing binary tree data structure, for Guile. It ensure @math{O(log
1109 n)} worst case performance for core operations. The module provides
1110 non-mutating insert, delete, and search operations, with support for
1111 convenient nested tree operations.")
1112 (license license:gpl3+)))
1114 (define-public guile-simple-zmq
1115 (let ((commit "b2ea97e5a0e7417ce718b27b6fd55a3146364b82")
1118 (name "guile-simple-zmq")
1119 (version (git-version "0.0.0" revision commit))
1124 (url "https://github.com/jerry40/guile-simple-zmq")
1128 "08qvcxx0njz9545xa0lq3wpf55v9cl9nbb640ry1lig11wpymqxb"))
1129 (file-name (git-file-name name version))))
1130 (build-system gnu-build-system)
1133 '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
1138 (list autoconf automake pkg-config zeromq))
1139 (home-page "https://github.com/jerry40/guile-simple-zmq")
1140 (synopsis "Guile wrapper over ZeroMQ library")
1142 "This package provides a Guile programming interface to the ZeroMQ
1143 messaging library.")
1144 (license license:gpl3+))))
1146 (define-public guile2.2-simple-zmq
1148 (inherit guile-simple-zmq)
1149 (name "guile2.2-simple-zmq")
1150 (native-inputs (list guile-2.2))))
1152 (define-public jupyter-guile-kernel
1153 (let ((commit "f25fb90b95529b17a006a807bd04e6aee12ea304")
1156 (name "jupyter-guile-kernel")
1157 (version (git-version "0.0.0" revision commit))
1162 (url "https://github.com/jerry40/guile-kernel")
1164 (file-name (git-file-name name version))
1167 "0zr1fasdb2yv9kn21yll993y9higqss4jnfs030ndhjb93raa9sr"))))
1168 (build-system guile-build-system)
1170 '(#:phases (modify-phases %standard-phases
1171 (add-after 'unpack 'set-openssl-file-name
1172 (lambda* (#:key inputs #:allow-other-keys)
1173 ;; Record the absolute file name of the 'openssl'
1175 (substitute* "src/hmac.scm"
1177 (search-input-file inputs "/bin/openssl")))))
1179 ;; XXX: The code uses 'include' to include its own source
1180 ;; files, and "-L src" isn't enough in this case.
1181 (add-before 'build 'chdir
1182 (lambda _ (chdir "src") #t))
1183 (add-after 'build 'chdir-back
1184 (lambda _ (chdir "..") #t))
1186 (add-after 'install 'install-kernel
1187 (lambda* (#:key inputs outputs #:allow-other-keys)
1188 (let* ((out (assoc-ref outputs "out"))
1189 (json (assoc-ref inputs "guile-json"))
1190 (zmq (assoc-ref inputs "guile-simple-zmq"))
1191 (deps (list json zmq))
1193 out "/share/jupyter/kernels/guile"))
1194 (effective (target-guile-effective-version)))
1196 (install-file "src/kernel.json" dir)
1198 ;; Fix hard-coded file name in the kernel.
1199 (substitute* (string-append dir "/kernel.json")
1200 (("/usr/local/.*/guile-jupyter-kernel.scm")
1201 (string-append out "/share/guile/site/"
1202 (target-guile-effective-version)
1203 "/guile-jupyter-kernel.scm"))
1205 (string-append "\"" (assoc-ref inputs "guile")
1208 ;; Add '-L' and '-C' flags so that the kernel
1209 ;; finds its dependencies.
1210 (let ((-L (map (lambda (item)
1211 (string-append "\"" item
1212 "/share/guile/site/"
1215 (-C (map (lambda (item)
1216 (string-append "\"" item
1221 (string-append "--no-auto-compile\""
1222 (string-join -L ", \"-L\", "
1224 (string-join -C ", \"-C\", "
1229 (list openssl guile-3.0 guile-json-3 guile-simple-zmq))
1230 (synopsis "Guile kernel for the Jupyter Notebook")
1232 "This package provides a Guile 2.x kernel for the Jupyter Notebook. It
1233 allows users to interact with the Guile REPL through Jupyter.")
1234 (home-page "https://github.com/jerry40/guile-kernel")
1235 (license license:gpl3+))))
1237 (define-public guile-sparql
1239 (name "guile-sparql")
1244 "https://github.com/roelj/guile-sparql/releases/download/"
1245 version "/guile-sparql-" version ".tar.gz"))
1247 (base32 "1jf4972f9fpm0rd865xpnc9mzl3xv6vhfnp0iygadydy905z9nln"))))
1248 (build-system gnu-build-system)
1253 (home-page "https://github.com/roelj/guile-sparql")
1254 (synopsis "SPARQL module for Guile")
1255 (description "This package provides the functionality to query a SPARQL
1256 endpoint. Additionally, it provides an interface to write SPARQL queries
1257 using S-expressions.")
1258 (license license:gpl3+)))
1260 (define-public guile-debbugs
1262 (name "guile-debbugs")
1266 (uri (string-append "mirror://gnu/guile-debbugs/guile-debbugs-"
1270 "1cc63nw3xdfjrfk8c58r6d5lidmfq5cpqcy32yd5xp81yccprvn9"))))
1271 (build-system gnu-build-system)
1275 (list guile-3.0 pkg-config))
1276 (home-page "https://savannah.gnu.org/projects/guile-debbugs/")
1277 (synopsis "Guile interface to the Debbugs bug tracking service")
1279 "This package provides a Guile library to communicate with a Debbugs bug
1280 tracker's SOAP service, such as @url{https://bugs.gnu.org}.")
1281 (license license:gpl3+)))
1283 (define-public guile-email
1285 (name "guile-email")
1291 "https://guile-email.systemreboot.net/releases/guile-email-"
1295 "1rc8r0fgvflnyq5ckl7ii8sghpsgpkzxa8vskjr1ak2kyar6m35k"))
1297 (search-patches "guile-email-fix-tests.patch"))))
1298 (build-system gnu-build-system)
1300 (list pkg-config lzip))
1304 '(#:make-flags '("GUILE_AUTO_COMPILE=0"))) ; to prevent guild warnings
1305 (home-page "https://guile-email.systemreboot.net")
1306 (synopsis "Guile email parser")
1307 (description "guile-email is a collection of email utilities implemented
1308 in pure guile. It supports parsing MIME (Multipurpose Internet Mail
1309 Extensions) compliant email messages and reading emails from the mbox
1311 (license license:agpl3+)))
1313 (define-public guile-email-latest
1314 (let ((commit "ea60bb902d3677d5c653851c7aa6afbbf710140e")
1317 (inherit guile-email)
1318 (name "guile-email-latest")
1319 (version (git-version "0.2.2" revision commit))
1324 (url "https://git.systemreboot.net/guile-email")
1326 (file-name (git-file-name name version))
1329 "1g4rn7ai3nfxmpppc8qbpv8b18wnsld29y5xa58cv9b8pf3pbwnj"))))
1331 (list pkg-config autoconf automake texinfo)))))
1333 (define-public guile2.2-email
1335 (inherit guile-email)
1336 (name "guile2.2-email")
1337 (inputs (modify-inputs (package-inputs guile-email)
1338 (replace "guile" guile-2.2)))))
1340 (define-public guile-newt
1347 (url "https://gitlab.com/mothacehe/guile-newt")
1349 (file-name (git-file-name name version))
1352 "0hbznqigdkyh0kdkpnkp7sz2qd0g5dvmibcdi1rki02zg78mzypv"))))
1353 (build-system gnu-build-system)
1356 '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
1358 (list guile-3.0 newt))
1360 (list autoconf automake pkg-config guile-3.0))
1361 (synopsis "Guile bindings to Newt")
1363 "This package provides bindings for Newt, a programming library for
1364 color text mode, widget based user interfaces. The bindings are written in pure
1365 Scheme by using Guile’s foreign function interface.")
1366 (home-page "https://gitlab.com/mothacehe/guile-newt")
1367 (license license:gpl3+)))
1369 (define-public guile2.2-newt
1371 (inherit guile-newt)
1372 (name "guile2.2-newt")
1373 (inputs (modify-inputs (package-inputs guile-newt)
1374 (replace "guile" guile-2.2)))))
1376 (define-public guile-mastodon
1377 (let ((commit "74b75bcf547df92acee1e0466ecd7ec07f775392")
1380 (name "guile-mastodon")
1381 (version (git-version "0.0.1" revision commit))
1385 (url "https://framagit.org/prouby/guile-mastodon.git")
1387 (file-name (string-append name "-" version "-checkout"))
1390 "1wx5h6wa9c0na8mrnr2nv1nzjvq68zyrly8yyp11dsskhaw4y33h"))))
1391 (build-system gnu-build-system)
1393 (list autoconf automake emacs-minimal pkg-config texinfo))
1395 (list guile-3.0 gnutls guile-json-4))
1396 (home-page "https://framagit.org/prouby/guile-mastodon")
1397 (synopsis "Guile Mastodon REST API module")
1398 (description "This package provides Guile modules to access the
1399 @uref{https://docs.joinmastodon.org/api/, REST API of Mastodon}, a federated
1400 microblogging service.")
1401 (license license:gpl3+))))
1403 (define-public guile-parted
1405 (name "guile-parted")
1410 (url "https://gitlab.com/mothacehe/guile-parted")
1412 (file-name (git-file-name name version))
1415 "12ygz0dw8zjr8g3z4g3sh4d1yw3fiphh0ssyqd4nllqa3sfwv21f"))
1416 (modules '((guix build utils)))))
1417 (build-system gnu-build-system)
1420 '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
1422 (list autoconf automake guile-3.0 guile-bytestructures pkg-config))
1424 (list guile-3.0 parted))
1426 (list guile-bytestructures))
1427 (synopsis "Guile bindings to GNU Parted")
1429 "This package provides bindings for GNU Parted library, a C library
1430 allowing disk partition tables creation and manipulation. The bindings are
1431 written in pure Scheme by using Guile's foreign function interface.")
1432 (home-page "https://gitlab.com/mothacehe/guile-parted")
1433 (license license:gpl3+)))
1435 (define-public guile2.2-parted
1437 (inherit guile-parted)
1438 (name "guile2.2-parted")
1439 (inputs (modify-inputs (package-inputs guile-parted)
1440 (replace "guile" guile-2.2)))
1442 `(("guile-bytestructures" ,guile2.2-bytestructures)))))
1444 (define-public guile-xosd
1450 (uri (string-append "https://github.com/alezost/" name
1451 "/releases/download/v" version
1452 "/" name "-" version ".tar.gz"))
1455 "10r29bpyrsvjalnzkam2falj9k34lvxmch05zs606zp1nk93whp3"))))
1456 (build-system gnu-build-system)
1459 (modify-phases %standard-phases
1460 (add-before 'build 'set-cpath
1461 (lambda* (#:key inputs #:allow-other-keys)
1464 (assoc-ref inputs "guile") "/include/guile/3.0:"
1465 (or (getenv "CPATH") "")))
1470 (list guile-3.0 libx11 libxext libxinerama xosd))
1471 (home-page "https://github.com/alezost/guile-xosd")
1472 (synopsis "XOSD bindings for Guile")
1474 "Guile-XOSD provides Guile bindings for @code{libxosd},
1475 @uref{http://sourceforge.net/projects/libxosd/, the X On Screen Display
1477 (license license:gpl3+)))
1479 (define-public guile-dbi
1486 (url "https://github.com/opencog/guile-dbi")
1487 (commit (string-append "guile-dbi-" version))))
1488 (file-name (git-file-name name version))
1491 "123m4j82bi60s1v95pjh4djb7bh6zdwmljbpyg7zq8ni2gyal7lw"))))
1492 (build-system gnu-build-system)
1494 `(#:modules (((guix build guile-build-system)
1495 #:select (target-guile-effective-version))
1496 ,@%gnu-build-system-modules)
1497 #:imported-modules ((guix build guile-build-system)
1498 ,@%gnu-build-system-modules)
1500 (list (string-append
1501 "--with-guile-site-dir=" %output "/share/guile/site/"
1502 (target-guile-effective-version (assoc-ref %build-inputs "guile"))))
1504 (modify-phases %standard-phases
1505 (add-after 'unpack 'chdir
1507 ;; The upstream Git repository contains all the code, so change
1508 ;; to the directory specific to guile-dbi.
1509 (chdir "guile-dbi")))
1510 (add-after 'install 'patch-extension-path
1511 (lambda* (#:key inputs outputs #:allow-other-keys)
1512 (let* ((out (assoc-ref outputs "out"))
1513 (dbi.scm (string-append out "/share/guile/site/"
1514 (target-guile-effective-version
1515 (assoc-ref inputs "guile"))
1517 (ext (string-append out "/lib/libguile-dbi")))
1518 (substitute* dbi.scm (("libguile-dbi") ext))))))))
1520 (list autoconf automake libtool perl texinfo))
1523 (synopsis "Guile database abstraction layer")
1524 (home-page "https://github.com/opencog/guile-dbi")
1526 "guile-dbi is a library for Guile that provides a convenient interface to
1527 SQL databases. Database programming with guile-dbi is generic in that the same
1528 programming interface is presented regardless of which database system is used.
1529 It currently supports MySQL, Postgres and SQLite3.")
1530 (license license:gpl2+)
1531 (native-search-paths
1532 (list (search-path-specification
1533 (variable "GUILE_DBD_PATH")
1534 (files '("lib")))))))
1536 (define-public guile-dbd-sqlite3
1539 (name "guile-dbd-sqlite3")
1541 (substitute-keyword-arguments (package-arguments guile-dbi)
1543 `(modify-phases ,phases
1546 ;; The upstream Git repository contains all the code, so change
1547 ;; to the directory specific to guile-dbd-sqlite3.
1548 (chdir "guile-dbd-sqlite3")))
1549 (delete 'patch-extension-path)))))
1553 (modify-inputs (package-native-inputs guile-dbi)
1554 (prepend guile-dbi ; only required for headers
1556 (synopsis "Guile DBI driver for SQLite")
1558 "guile-dbi is a library for Guile that provides a convenient interface to
1559 SQL databases. This package implements the interface for SQLite.")))
1561 (define-public guile-dbd-postgresql
1564 (name "guile-dbd-postgresql")
1566 (substitute-keyword-arguments (package-arguments guile-dbi)
1568 `(modify-phases ,phases
1571 ;; The upstream Git repository contains all the code, so change
1572 ;; to the directory specific to guile-dbd-mysql.
1573 (chdir "guile-dbd-postgresql")))
1574 (add-after 'chdir 'patch-src
1576 (substitute* "src/guile-dbd-postgresql.c"
1577 (("postgresql/libpq-fe\\.h") "libpq-fe.h"))))
1578 (delete 'patch-extension-path)))))
1580 (list postgresql zlib))
1582 (modify-inputs (package-native-inputs guile-dbi)
1583 (prepend guile-dbi ; only required for headers
1585 (synopsis "Guile DBI driver for PostgreSQL")
1587 "@code{guile-dbi} is a library for Guile that provides a convenient
1588 interface to SQL databases. This package implements the interface for
1591 (define-public guile-dbd-mysql
1594 (name "guile-dbd-mysql")
1596 (substitute-keyword-arguments (package-arguments guile-dbi)
1598 `(modify-phases ,phases
1601 ;; The upstream Git repository contains all the code, so change
1602 ;; to the directory specific to guile-dbd-mysql.
1603 (chdir "guile-dbd-mysql")))
1604 (add-after 'chdir 'patch-src
1606 (substitute* "configure.ac"
1607 (("mariadbclient") "mariadb"))
1608 (substitute* "src/guile-dbd-mysql.c"
1609 (("<mariadb/") "<mysql/"))))
1610 (delete 'patch-extension-path)))))
1612 (list `(,mariadb "dev")
1613 `(,mariadb "lib") zlib))
1615 (modify-inputs (package-native-inputs guile-dbi)
1616 (prepend guile-dbi ; only required for headers
1618 (synopsis "Guile DBI driver for MySQL")
1619 (description "@code{guile-dbi} is a library for Guile that provides a
1620 convenient interface to SQL databases. This package implements the interface
1622 (license license:gpl2+)))
1624 (define-public guile-config
1626 (name "guile-config")
1632 (url "https://gitlab.com/a-sassmannshausen/guile-config")
1634 (file-name (git-file-name name version))
1636 "0s708k6qnk9155bjrcy1f1v7lqhlpaj4mjip46sr3iw85hca92wz"))))
1637 (build-system gnu-build-system)
1639 (list autoconf automake pkg-config texinfo))
1640 (inputs (list guile-3.0))
1642 "Guile application configuration parsing library.")
1644 "Guile Config is a library providing a declarative approach to
1645 application configuration specification. The library provides clean
1646 configuration declaration forms, and processors that take care of:
1647 configuration file creation; configuration file parsing; command-line
1648 parameter parsing using getopt-long; basic GNU command-line parameter
1649 generation (--help, --usage, --version); automatic output generation for the
1650 above command-line parameters.")
1652 "https://gitlab.com/a-sassmannshausen/guile-config")
1653 (license license:gpl3+)))
1655 (define-public guile2.2-config
1657 (inherit guile-config)
1658 (name "guile2.2-config")
1659 (inputs (modify-inputs (package-inputs guile-config)
1660 (replace "guile" guile-2.2)))))
1662 (define-public guile-hall
1670 (url "https://gitlab.com/a-sassmannshausen/guile-hall")
1672 (file-name (git-file-name name version))
1674 (base32 "0yrrik1v1xbik5h5q7w2cxrx6gvkmcdm32dl36i7xqdq8pr8sh2d"))))
1675 (build-system gnu-build-system)
1680 ,@%gnu-build-system-modules)
1684 (add-after 'install 'hall-wrap-binaries
1685 (lambda* (#:key inputs outputs #:allow-other-keys)
1686 (let* ((compiled-dir
1687 (lambda (out version)
1689 out "/lib/guile/" version "/site-ccache")))
1691 (lambda (out version)
1693 out "/share/guile/site"
1694 (if (string-null? version) "" "/") version)))
1696 (lambda (env modules path)
1697 (list env ":" 'prefix
1699 (map (lambda (input)
1701 (assoc-ref inputs input)
1703 ,''("guile-config"))))))
1704 (out (assoc-ref outputs "out"))
1705 (bin (string-append out "/bin/"))
1706 (site (uncompiled-dir out "")))
1707 (match (scandir site)
1712 (string-append bin file)
1715 (uncompiled-dir out version)
1716 (uncompiled-dir "" version))
1718 "GUILE_LOAD_COMPILED_PATH"
1719 (compiled-dir out version)
1720 (compiled-dir "" version))))
1724 (list autoconf automake pkg-config texinfo))
1725 (inputs (list guile-3.0))
1727 (list guile-config))
1728 (synopsis "Guile project tooling")
1730 "Hall is a command-line application and a set of Guile libraries that
1731 allow you to quickly create and publish Guile projects. It allows you to
1732 transparently support the GNU build system, manage a project hierarchy &
1733 provides tight coupling to Guix.")
1734 (home-page "https://gitlab.com/a-sassmannshausen/guile-hall")
1735 (license license:gpl3+)))
1737 (define-public guile2.2-hall
1739 (inherit guile-hall)
1740 (name "guile2.2-hall")
1741 (inputs (modify-inputs (package-inputs guile-hall)
1742 (replace "guile" guile-2.2)))
1744 `(("guile-config" ,guile2.2-config)
1745 ,@(alist-delete "guile-config"
1746 (package-propagated-inputs guile-hall))))))
1748 (define-public guile-ics
1756 (url "https://github.com/artyom-poptsov/guile-ics")
1757 (commit (string-append "v" version))))
1758 (file-name (string-append name "-" version "-checkout"))
1761 "1526kdzcn0qvf5hpb4x5q01vb9mph9gfw24p81inqgjvy7a57lf9"))))
1762 (build-system gnu-build-system)
1764 (list #:phases #~(modify-phases %standard-phases
1770 gettext-minimal ;Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
1773 (inputs (list guile-3.0 which))
1774 (propagated-inputs (list guile-lib guile-smc))
1775 (home-page "https://github.com/artyom-poptsov/guile-ics")
1776 (synopsis "Guile parser library for the iCalendar format")
1778 "Guile-ICS is an iCalendar (RFC5545) format parser library written in
1779 pure Scheme. The library can be used to read and write iCalendar data.
1781 The library is shipped with documentation in Info format and usage examples.")
1782 (license license:gpl3+)))
1784 (define-public guile2.2-ics
1787 (name "guile2.2-ics")
1788 (inputs (list guile-2.2 which))
1789 (propagated-inputs (list guile2.2-lib guile2.2-smc))))
1791 (define-public guile-imanifest
1792 (let ((commit "ccd5a2111b008d778106f5595a3a585954d95d0")
1795 (name "guile-imanifest")
1796 (version (git-version "0.0.0" revision commit))
1800 (url "https://git.sr.ht/~brown121407/guile-imanifest")
1802 (file-name (git-file-name name version))
1805 "0i5qllcrhdjhspyj7j9h4dc9y37d3cfbpackmybm3030qgfxqirf"))))
1806 (build-system guile-build-system)
1810 (list guile-readline guile-colorized guix))
1811 (home-page "https://sr.ht/~brown121407/guile-imanifest")
1812 (synopsis "Interactive Guix manifests")
1813 (description "This package provides functions to generate Guix manifests
1814 interactively. It works by scanning an alist of package categories, to ask the
1815 user which package sets would they like to install from it.")
1816 (license license:gpl3+))))
1818 (define-public guile-wisp
1825 (url "https://hg.sr.ht/~arnebab/wisp")
1826 (changeset (string-append "v" version))))
1827 (file-name (git-file-name name version))
1830 "0fxngiy8dmryh3gx4g1q7nnamc4dpszjh130g6d0pmi12ycxd2y9"))))
1831 (build-system gnu-build-system)
1833 `(#:modules ((guix build gnu-build-system)
1834 ((guix build emacs-build-system) #:prefix emacs:)
1836 (guix build emacs-utils)
1839 #:imported-modules (,@%gnu-build-system-modules
1840 (guix build emacs-build-system)
1841 (guix build emacs-utils))
1843 (modify-phases %standard-phases
1846 (invoke "autoreconf" "-vif")))
1847 (add-before 'configure 'patch-/usr/bin/env
1849 (substitute* "Makefile.in"
1850 (("/usr/bin/env bash") (which "bash")))))
1851 ;; auto compilation breaks, but if we set HOME to /tmp,
1853 (add-before 'check 'auto-compile-hacky-workaround
1854 (lambda _ (setenv "HOME" "/tmp") #t))
1855 (add-after 'install 'install-go-files
1856 (lambda* (#:key outputs inputs #:allow-other-keys)
1857 (let* ((out (assoc-ref outputs "out"))
1858 (effective (read-line
1859 (open-pipe* OPEN_READ
1861 "(display (effective-version))")))
1862 (module-dir (string-append out "/share/guile/site/"
1864 (object-dir (string-append out "/lib/guile/" effective
1866 (prefix (string-length module-dir)))
1867 ;; compile to the destination
1868 (for-each (lambda (file)
1869 (let* ((base (string-drop (string-drop-right file 4)
1871 (go (string-append object-dir base ".go")))
1872 (invoke "guild" "compile" "-L" module-dir
1874 (find-files module-dir "\\.scm$")))))
1875 (add-after 'install 'install-emacs-files
1876 (assoc-ref emacs:%standard-phases 'install))
1877 (add-after 'install-emacs-files 'compile-emacs-files
1878 (assoc-ref emacs:%standard-phases 'build))
1879 (add-after 'compile-emacs-files 'make-autoloads
1880 (assoc-ref emacs:%standard-phases 'make-autoloads)))))
1881 (home-page "https://www.draketo.de/english/wisp")
1885 `(("autoconf" ,autoconf)
1886 ("automake" ,automake)
1887 ("emacs" ,emacs-minimal)
1889 ("pkg-config" ,pkg-config)))
1890 (synopsis "Whitespace to lisp syntax for Guile")
1891 (description "Wisp is a syntax for Guile which provides a Python-like
1892 whitespace-significant language. It may be easier on the eyes for some
1893 users and in some situations.")
1894 (license (list license:gpl3+ ; the project as a whole
1895 license:expat)))) ; the language spec (see also SRFI 119)
1897 (define-public guile2.2-wisp
1899 (inherit guile-wisp)
1900 (name "guile2.2-wisp")
1901 (inputs (list guile-2.2))))
1903 (define-public guile-udev
1910 (url "https://github.com/artyom-poptsov/guile-udev")
1911 (commit (string-append "v" version))))
1912 (file-name (git-file-name name version))
1915 "0xvh4wscxmiqm8lnmfyh5cjzn89kv2wslkfvqvcjhinzpnpbg91x"))))
1916 (build-system gnu-build-system)
1926 (list guile-3.0 eudev))
1927 (home-page "https://github.com/artyom-poptsov/guile-udev")
1928 (synopsis "Guile bindings to libudev")
1930 "Guile-Udev provides GNU Guile bindings to libudev.")
1931 (license license:gpl3+)))
1933 (define-public guile-sly
1939 (uri (string-append "https://files.dthompson.us/sly/sly-"
1943 "1svzlbz2vripmyq2kjh0rig16bsrnbkwbsm558pjln9l65mcl4qq"))
1944 (modules '((guix build utils)))
1947 (substitute* "configure"
1948 (("_guile_required_version=\"2.0.11\"")
1949 "_guile_required_version=\"2\"")
1950 (("ac_subst_vars='")
1951 "ac_subst_vars='GUILE_EFFECTIVE_VERSION\n"))
1952 (substitute* (find-files "." "Makefile.in")
1956 "$(prefix)/share/guile/site/@GUILE_EFFECTIVE_VERSION@\n"))
1960 "$(prefix)/lib/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n")))
1962 (build-system gnu-build-system)
1965 (list (string-append "--with-libfreeimage-prefix="
1966 (assoc-ref %build-inputs "freeimage"))
1967 (string-append "--with-libgslcblas-prefix="
1968 (assoc-ref %build-inputs "gsl")))))
1972 (list guile-sdl guile-opengl))
1974 (list guile-2.2 gsl freeimage mesa))
1975 (synopsis "2D/3D game engine for GNU Guile")
1976 (description "Sly is a 2D/3D game engine written in Guile Scheme. Sly
1977 features a functional reactive programming interface and live coding
1979 (home-page "https://dthompson.us/projects/sly.html")
1980 (license license:gpl3+)))
1982 (define-public guile-g-golf
1983 (let ((commit "1824633d37da3794f349d6829e9dac2cf89adaa8")
1986 (name "guile-g-golf")
1987 (version (git-version "0.1.0" revision commit))
1992 (url "https://git.savannah.gnu.org/git/g-golf.git")
1994 (file-name (git-file-name name version))
1996 (base32 "0ncpqv6pbsx9fjmdzvzbjljnhqgw9pynqy9vr9aq35nb7rzrhfdf"))))
1997 (build-system gnu-build-system)
2001 #~(list "--with-guile-site=no")
2003 #~(modify-phases %standard-phases
2004 (add-after 'unpack 'fix-guile-site-directory
2006 (substitute* "configure.ac"
2008 "SITEDIR=\"$datadir/guile/site/$GUILE_EFFECTIVE_VERSION\";\n")
2009 (("SITECCACHEDIR=\"\\$libdir/g-golf/")
2010 "SITECCACHEDIR=\"$libdir/"))))
2011 (add-before 'configure 'tests-work-arounds
2012 (lambda* (#:key inputs #:allow-other-keys)
2013 ;; In build environment, There is no /dev/tty
2014 (substitute* "test-suite/tests/gobject.scm"
2015 (("/dev/tty") "/dev/null"))))
2016 (add-before 'configure 'substitute-libs
2017 (lambda* (#:key inputs outputs #:allow-other-keys)
2019 (search-input-file inputs (string-append "lib/" lib ".so")))
2021 (let* ((libgi (get "libgirepository-1.0"))
2022 (libglib (get "libglib-2.0"))
2023 (libgobject (get "libgobject-2.0"))
2024 (libg-golf (string-append #$output "/lib/libg-golf")))
2025 (substitute* "g-golf/init.scm"
2026 (("libgirepository-1.0") libgi)
2027 (("libglib-2.0") libglib)
2028 (("libgobject-2.0") libgobject)
2029 (("\\(dynamic-link \"libg-golf\"\\)")
2033 (dynamic-link "libg-golf"))
2035 (dynamic-link ,libg-golf))))))
2036 (setenv "GUILE_AUTO_COMPILE" "0")
2038 (add-before 'check 'start-xorg-server
2039 (lambda* (#:key inputs #:allow-other-keys)
2040 ;; The test suite requires a running X server.
2041 (system "Xvfb :1 &")
2042 (setenv "DISPLAY" ":1")
2045 (list guile-3.0 guile-lib glib))
2053 ;; required for tests
2056 xorg-server-for-tests))
2058 (list gobject-introspection))
2059 (home-page "https://www.gnu.org/software/g-golf/")
2060 (synopsis "Guile bindings for GObject Introspection")
2062 "G-Golf (Gnome: (Guile Object Library for)) is a library for developing
2063 modern applications in Guile Scheme. It comprises a direct binding to the
2064 GObject Introspection API and higher-level functionality for importing Gnome
2065 libraries and making GObject classes (and methods) available in Guile's
2066 object-oriented programming system, GOOPS.")
2067 (license license:lgpl3+))))
2069 (define-public g-golf
2070 (deprecated-package "g-golf" guile-g-golf))
2072 (define-public guile2.2-g-golf
2074 (inherit guile-g-golf)
2075 (name "guile2.2-g-golf")
2077 (modify-inputs (package-inputs guile-g-golf)
2078 (replace "guile" guile-2.2)
2079 (replace "guile-lib" guile2.2-lib)))))
2081 (define-public g-wrap
2087 (uri (string-append "mirror://savannah/g-wrap/g-wrap-"
2091 "0ak0bha37dfpj9kmyw1r8fj8nva639aw5xr66wr5gd3l1rqf5xhg"))))
2092 (build-system gnu-build-system)
2096 (list guile-2.2 guile-lib))
2100 `(#:configure-flags '("--disable-Werror")
2102 (modify-phases %standard-phases
2103 (add-before 'configure 'pre-configure
2104 (lambda* (#:key outputs #:allow-other-keys)
2105 (let ((out (assoc-ref outputs "out")))
2106 (substitute* (find-files "." "^Makefile.in$")
2107 (("guilemoduledir =.*guile/site" all)
2108 (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
2110 (synopsis "Generate C bindings for Guile")
2111 (description "G-Wrap is a tool and Guile library for generating function
2112 wrappers for inter-language calls. It currently only supports generating Guile
2113 wrappers for C functions. Given a definition of the types and prototypes for
2114 a given C interface, G-Wrap will automatically generate the C code that
2115 provides access to that interface and its types from the Scheme level.")
2116 (home-page "https://www.nongnu.org/g-wrap/index.html")
2117 (license license:lgpl2.1+)))
2119 (define-public guile-miniadapton
2120 (let ((commit "1b5749422304567c96ac5367f2221dda9eff5880")
2123 (name "guile-miniadapton")
2124 (version (string-append "0-" revision "." (string-take commit 9)))
2128 (url "https://github.com/fisherdj/miniAdapton")
2130 (file-name (string-append name "-" version "-checkout"))
2133 "09q51zkw2fypad5xixskfzw2cjhjgs5cswdp3i7cpp651rb3zndh"))))
2134 (build-system guile-build-system)
2137 (home-page "https://github.com/fisherdj/miniAdapton")
2138 (synopsis "Minimal implementation of incremental computation in Guile
2140 (description "This package provides a complete Scheme implementation of
2141 miniAdapton, which implements the core functionality of the Adapton system for
2142 incremental computation (also known as self-adjusting computation). Like
2143 Adapton, miniAdapton allows programmers to safely combine mutation and
2144 memoization. miniAdapton is built on top of an even simpler system,
2145 microAdapton. Both miniAdapton and microAdapton are designed to be easy to
2146 understand, extend, and port to host languages other than Scheme.")
2147 (license license:expat))))
2149 (define-public guile-raw-strings
2150 (let ((commit "aa1cf783f2542811b473f797e12490920b779baa")
2153 (name "guile-raw-strings")
2154 (version (git-version "0.0.0" revision commit))
2158 (url "https://github.com/lloda/guile-raw-strings")
2160 (file-name (git-file-name name version))
2163 "1r2gx86zw5hb6byllra3nap3fw9p7q7rvdmg6qn9myrdxyjpns3l"))))
2164 (build-system guile-build-system)
2167 (modify-phases %standard-phases
2168 (add-after 'build 'check
2169 (lambda* (#:key tests? #:allow-other-keys)
2171 (invoke "guile" "-L" "." "-s" "test.scm")))))))
2174 (home-page "https://github.com/lloda/guile-raw-strings")
2175 (synopsis "Guile reader extension for `raw strings'")
2176 (description "This package provides A Guile reader extension for `raw
2177 strings', it lets you write verbatim strings without having to escape double
2179 (license license:public-domain))))
2181 (define-public guile-reader
2183 (name "guile-reader")
2187 (uri (string-append "mirror://savannah/guile-reader/guile-reader-"
2191 "1fyjckmygkhq22lq8nqc86yl5zzbqd7a944dnz5c1f6vx92b9hiq"))))
2192 (build-system gnu-build-system)
2193 (native-inputs (list pkg-config gperf))
2194 (inputs (list guile-3.0))
2195 (synopsis "Framework for building readers for GNU Guile")
2197 "Guile-Reader is a simple framework for building readers for GNU Guile.
2199 The idea is to make it easy to build procedures that extend Guile’s read
2200 procedure. Readers supporting various syntax variants can easily be written,
2201 possibly by re-using existing “token readers” of a standard Scheme
2202 readers. For example, it is used to implement Skribilo’s R5RS-derived
2205 Guile-Reader’s approach is similar to Common Lisp’s “read table”, but
2206 hopefully more powerful and flexible (for instance, one may instantiate as
2207 many readers as needed).")
2208 (home-page "https://www.nongnu.org/guile-reader/")
2209 (license license:gpl3+)))
2211 (define-public guile2.2-reader
2213 (inherit guile-reader)
2214 (name "guile2.2-reader")
2215 (inputs (list guile-2.2))))
2217 (define-public guile-ncurses
2219 (name "guile-ncurses")
2223 (uri (string-append "mirror://gnu/guile-ncurses/guile-ncurses-"
2227 "038xbffalhymg26lvmzgf7ljilxz2f2zmqg5r5nfzbipfbprwjhf"))))
2228 (build-system gnu-build-system)
2229 (inputs (list ncurses guile-3.0))
2230 (native-inputs (list pkg-config))
2232 `(#:modules ((guix build gnu-build-system)
2233 ((guix build guile-build-system)
2234 #:select (target-guile-effective-version))
2236 #:imported-modules ((guix build guile-build-system)
2237 ,@%gnu-build-system-modules)
2238 #:configure-flags (list "--with-ncursesw" ; Unicode support
2239 "--with-gnu-filesystem-hierarchy")
2241 (modify-phases %standard-phases
2242 (add-before 'build 'fix-libguile-ncurses-file-name
2243 (lambda* (#:key outputs #:allow-other-keys)
2244 (invoke "make" "install"
2246 "-j" (number->string
2247 (parallel-job-count)))
2248 (let* ((out (assoc-ref outputs "out"))
2250 (files (find-files dir ".scm")))
2252 (("\"libguile-ncurses\"")
2253 (format #f "\"~a/lib/guile/~a/libguile-ncurses\""
2254 out (target-guile-effective-version))))
2256 (home-page "https://www.gnu.org/software/guile-ncurses/")
2257 (synopsis "Guile bindings to ncurses")
2259 "guile-ncurses provides Guile language bindings for the ncurses
2261 (license license:lgpl3+)))
2263 (define-public guile2.2-ncurses
2265 (inherit guile-ncurses)
2266 (name "guile2.2-ncurses")
2267 (inputs (list ncurses guile-2.2))))
2269 (define-public guile-ncurses/gpm
2271 (inherit guile-ncurses)
2272 (name "guile-ncurses-with-gpm")
2273 (inputs `(("ncurses" ,ncurses/gpm)
2274 ("guile" ,guile-3.0)))))
2276 (define-public guile-lib
2282 (uri (string-append "mirror://savannah/guile-lib/guile-lib-"
2286 "1ph4z4a64m75in36pdb4dw63dzdq3hdgh16gq33q460jby23pvz4"))))
2287 (build-system gnu-build-system)
2289 '(#:make-flags '("GUILE_AUTO_COMPILE=0") ;placate guild warnings
2291 (modify-phases %standard-phases
2292 (add-before 'configure 'patch-module-dir
2294 (substitute* "src/Makefile.in"
2295 (("^moddir = ([[:graph:]]+)")
2296 "moddir = $(datadir)/guile/site/@GUILE_EFFECTIVE_VERSION@\n")
2297 (("^godir = ([[:graph:]]+)")
2299 $(libdir)/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n")))))))
2301 `(("autoconf" ,autoconf)
2302 ("automake" ,automake)
2303 ("gettext" ,gettext-minimal)
2304 ("guile" ,guile-3.0)
2305 ("pkg-config" ,pkg-config)))
2307 (list guile-3.0)) ;for cross-compilation
2308 (home-page "https://www.nongnu.org/guile-lib/")
2309 (synopsis "Collection of useful Guile Scheme modules")
2311 "Guile-Lib is intended as an accumulation place for pure-scheme Guile
2312 modules, allowing for people to cooperate integrating their generic Guile
2313 modules into a coherent library. Think \"a down-scaled, limited-scope CPAN
2314 for Guile\". It provides the following modules:
2316 +@item (apicheck) Describe and verify library programming interfaces.
2317 +@item (config load) Loading configuration files.
2318 +@item (container async-queue) A thread-safe message queue.
2319 +@item (container nodal-tree) A tree consisting of nodes with attributes.
2320 +@item (container delay-tree) A nodal tree with lazily evaluated fields.
2321 +@item (debugging assert) Helpful assert macro.
2322 +@item (debugging time) A simple macro to time the execution of an expression.
2323 +@item (graph topological-sort) Routines to perform topological sorts.
2324 +@item (htmlprag) Neil Van Dyke's permissive (\"pragmatic\") HTML parser.
2325 +@item (io string) SLIB's IO routines dealing with strings.
2326 +@item (logging logger) A flexible logging system.
2327 +@item (logging port-log) A logger that outputs to a port.
2328 +@item (logging rotating-log) A logger that rotates its output files.
2329 +@item (match-bind) Nifty and concise regular expression routines.
2330 +@item (math minima) A golden-section minimum finder.
2331 +@item (math primes) Functions related to prime numbers and factorization.
2332 +@item (os process) Spawning processes and capturing their output.
2333 +@item (scheme documentation) Macros to define different kinds of variables
2334 +with documentation.
2335 +@item (scheme kwargs) Defining functions with flexible keyword arguments.
2336 +@item (search basic) Classic search functions.
2337 +@item (string completion) Building blocks for tab completion.
2338 +@item (string soundex) The SOUNDEX string categorization algorithm.
2339 +@item (string transform) Beyond SRFI-13.
2340 +@item (string wrap) A versatile string formatter.
2341 +@item (term ansi-color) Generate ANSI color escape sequences.
2342 +@item (unit-test) A JUnit-style unit testing framework.
2344 ;; The whole is under GPLv3+, but some modules are under laxer
2345 ;; distribution terms such as LGPL and public domain. See `COPYING' for
2347 (license license:gpl3+)))
2349 (define-public guile2.0-lib
2352 (name "guile2.0-lib")
2354 (alist-replace "guile" (list guile-2.0)
2355 (package-native-inputs guile-lib)))
2357 (alist-replace "guile" (list guile-2.0)
2358 (package-inputs guile-lib)))))
2360 (define-public guile2.2-lib
2363 (name "guile2.2-lib")
2365 (alist-replace "guile" (list guile-2.2)
2366 (package-native-inputs guile-lib)))
2368 (alist-replace "guile" (list guile-2.2)
2369 (package-inputs guile-lib)))))
2371 (define-public guile-minikanren
2373 (name "guile-minikanren")
2374 (version "20150424.e844d85")
2378 (url "https://github.com/ijp/minikanren")
2379 (commit "e844d85512f8c055d3f96143ee506007389a25e3")))
2380 (file-name (string-append name "-" version "-checkout"))
2383 "0r50jlpzi940jlmxyy3ddqqwmj5r12gb4bcv0ssini9v8km13xz6"))))
2384 (build-system guile-build-system)
2387 (home-page "https://github.com/ijp/minikanren")
2388 (synopsis "MiniKanren declarative logic system, packaged for Guile")
2390 "MiniKanren is a relational programming extension to the Scheme
2391 programming Language, written as a smaller version of Kanren suitable for
2392 pedagogical purposes. It is featured in the book, The Reasoned Schemer,
2393 written by Dan Friedman, William Byrd, and Oleg Kiselyov.
2395 This is Ian Price's r6rs packaged version of miniKanren, which deviates
2396 slightly from miniKanren mainline.
2398 See http://minikanren.org/ for more on miniKanren generally.")
2399 (license license:expat)))
2401 (define-public guile2.0-minikanren
2403 (inherit guile-minikanren)
2404 (name "guile2.0-minikanren")
2405 (native-inputs (list guile-2.0))))
2407 (define-public guile2.2-minikanren
2409 (inherit guile-minikanren)
2410 (name "guile2.2-minikanren")
2411 (native-inputs (list guile-2.2))))
2413 (define-public guile-irregex
2415 (name "guile-irregex")
2420 "http://synthcode.com/scheme/irregex/irregex-"
2424 "1ia3m7dp3lcxa048q0gqbiwwsyvn99baw6xkhb4bhhzn4k7bwyqq"))))
2425 (build-system guile-build-system)
2427 '(#:phases (modify-phases %standard-phases
2428 (add-after 'unpack 'move-files-around
2430 ;; Move the relevant source files to src/ and create the
2431 ;; rx/ directory to match the expected module hierarchy.
2432 (mkdir-p "src/rx/source")
2433 (rename-file "irregex-guile.scm"
2434 "src/rx/irregex.scm")
2435 (rename-file "irregex.scm"
2436 "src/rx/source/irregex.scm")
2437 ;; Not really reachable via guile's packaging system,
2438 ;; but nice to have around.
2439 (rename-file "irregex-utils.scm"
2440 "src/rx/source/irregex-utils.scm")
2442 #:source-directory "src"))
2445 (home-page "http://synthcode.com/scheme/irregex")
2446 (synopsis "S-expression based regular expressions")
2448 "Irregex is an s-expression based alternative to your classic
2449 string-based regular expressions. It implements SRFI 115 and is deeply
2450 inspired by the SCSH regular expression system.")
2451 (license license:bsd-3)))
2453 (define-public guile2.0-irregex
2455 (inherit guile-irregex)
2456 (name "guile2.0-irregex")
2457 (native-inputs (list guile-2.0))))
2459 (define-public guile2.2-irregex
2461 (inherit guile-irregex)
2462 (name "guile2.2-irregex")
2463 (native-inputs (list guile-2.2))))
2465 (define-public haunt
2471 (uri (string-append "https://files.dthompson.us/haunt/haunt-"
2475 "1nwhwngx0gl2892vrvrzrxy5w6a5l08j1w0522kdh9a3v11qpwmw"))))
2476 (build-system gnu-build-system)
2478 `(#:modules ((ice-9 match) (ice-9 ftw)
2479 ,@%gnu-build-system-modules)
2480 #:tests? #f ; test suite is non-deterministic :(
2481 #:phases (modify-phases %standard-phases
2482 (add-after 'install 'wrap-haunt
2483 (lambda* (#:key inputs outputs #:allow-other-keys)
2484 ;; Wrap the 'haunt' command to refer to the right
2486 (let* ((out (assoc-ref outputs "out"))
2487 (bin (string-append out "/bin"))
2488 (site (string-append
2489 out "/share/guile/site"))
2490 (guile-reader (assoc-ref inputs "guile-reader"))
2491 (deps `(,@(if guile-reader
2494 ,(assoc-ref inputs "guile-commonmark"))))
2495 (match (scandir site)
2497 (let ((modules (string-append site "/" version))
2498 (compiled-modules (string-append
2499 out "/lib/guile/" version
2501 (wrap-program (string-append bin "/haunt")
2502 `("GUILE_LOAD_PATH" ":" prefix
2504 ,@(map (lambda (dep)
2506 "/share/guile/site/"
2509 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
2511 ,@(map (lambda (dep)
2512 (string-append dep "/lib/guile/"
2518 (list pkg-config texinfo))
2520 ;; Depend on the latest Guile to avoid bytecode compatibility issues when
2521 ;; using modules built against the latest version.
2522 (list guile-3.0-latest))
2524 (list guile-reader guile-commonmark))
2525 (synopsis "Functional static site generator")
2526 (description "Haunt is a static site generator written in Guile
2527 Scheme. Haunt features a functional build system and an extensible
2528 interface for reading articles in any format.")
2529 (home-page "https://dthompson.us/projects/haunt.html")
2530 (license license:gpl3+)))
2532 (define-public guile2.2-haunt
2535 (name "guile2.2-haunt")
2536 (inputs (list guile-2.2))
2538 `(("guile-reader" ,guile2.2-reader)
2539 ("guile-commonmark" ,guile2.2-commonmark)))))
2541 (define-public guile2.0-haunt
2544 (name "guile2.0-haunt")
2545 (inputs (list guile-2.0))))
2547 (define-public guile-redis
2549 (name "guile-redis")
2551 (home-page "https://github.com/aconchillo/guile-redis")
2557 (file-name (git-file-name name version))
2560 "0cb31vj88f3hj93v1lzxcqjyz7ym2gmpk31gv5i2dqv721frnlyj"))))
2561 (build-system gnu-build-system)
2563 '(#:make-flags '("GUILE_AUTO_COMPILE=0")))
2565 (list autoconf automake pkg-config guile-3.0))
2566 (synopsis "Redis client library for Guile")
2567 (description "Guile-redis provides a Scheme interface to the Redis
2568 key-value cache and store.")
2569 (license license:lgpl3+)))
2571 (define-public guile2.2-redis
2573 (inherit guile-redis)
2574 (name "guile2.2-redis")
2575 (native-inputs (modify-inputs (package-native-inputs guile-redis)
2576 (replace "guile" guile-2.2)))))
2578 (define-public guile2.0-redis
2580 (inherit guile-redis)
2581 (name "guile2.0-redis")
2584 (modify-phases %standard-phases
2585 (add-after 'unpack 'patch-source
2587 ;; put-string is in (rnrs io ports) in guile2.0,
2588 ;; not in (ice-9 textual-ports)
2589 (substitute* "redis/utils.scm"
2590 (("\\(ice-9 textual-ports\\)")
2593 ,@(package-arguments guile-redis)))
2594 (native-inputs (modify-inputs (package-native-inputs guile-redis)
2595 (replace "guile" guile-2.0)))))
2597 (define-public guile-commonmark
2599 (name "guile-commonmark")
2603 (uri (string-append "https://github.com/OrangeShark/" name
2604 "/releases/download/v" version
2605 "/" name "-" version ".tar.gz"))
2608 "17lrsdisa3kckh24q114vfmzdc4wkqa6ccwl4hdlrng5wpn1iman"))
2609 (modules '((guix build utils)))
2612 ;; Allow builds with Guile 3.0.
2613 (substitute* "configure"
2617 (build-system gnu-build-system)
2618 ;; The tests throw exceptions with Guile 3.0.5, because they evaluate
2621 ;; This has been fixed upstream, but there has not been a new release
2622 ;; containing this change.
2625 (modify-phases %standard-phases
2626 (add-after 'unpack 'fix-tests-when-building-with-guile-3.0.5
2628 (substitute* (find-files "tests" "\\.scm$")
2635 (synopsis "CommonMark parser for Guile")
2637 "guile-commonmark is a library for parsing CommonMark, a fully specified
2638 variant of Markdown. The library is written in Guile Scheme and is designed
2639 to transform a CommonMark document to SXML. guile-commonmark tries to closely
2640 follow the @uref{http://commonmark.org/, CommonMark spec}, the main difference
2641 is no support for parsing block and inline level HTML.")
2642 (home-page "https://github.com/OrangeShark/guile-commonmark")
2643 (license license:lgpl3+)))
2645 (define-public guile2.2-commonmark
2647 (inherit guile-commonmark)
2648 (name "guile2.2-commonmark")
2649 (inputs (list guile-2.2))))
2651 (define-public guile2.0-commonmark
2653 (inherit guile-commonmark)
2654 (name "guile2.0-commonmark")
2655 (inputs (list guile-2.0))))
2657 (define-public mcron
2663 (uri (string-append "mirror://gnu/mcron/mcron-"
2667 "0bkn235g2ia4f7ispr9d55c7bc18282r3qd8ldhh5q2kiin75zi0"))))
2668 (build-system gnu-build-system)
2670 '(#:phases (modify-phases %standard-phases
2671 (add-before 'check 'adjust-tests
2673 (substitute* "tests/job-specifier.scm"
2674 ;; (getpw) fails with "entry not found" in the build
2675 ;; environment, so pass an argument.
2677 "(getpwnam (getuid))")
2678 ;; The build environment lacks an entry for root in
2681 "(getpwnam \"nobody\")")
2683 ;; FIXME: Skip the 4 faulty tests (see above).
2684 (("\\(test-equal \"next-year\"" all)
2685 (string-append "(test-skip 4)\n" all)))
2687 (native-inputs `(("pkg-config" ,pkg-config)
2688 ("tzdata" ,tzdata-for-tests)
2689 ("guile-native" ;for 'guild compile'
2690 ,@(assoc-ref (package-inputs this-package) "guile"))))
2691 (inputs (list guile-3.0))
2692 (home-page "https://www.gnu.org/software/mcron/")
2693 (synopsis "Run jobs at scheduled times")
2695 "GNU Mcron is a complete replacement for Vixie cron. It is used to run
2696 tasks on a schedule, such as every hour or every Monday. Mcron is written in
2697 Guile, so its configuration can be written in Scheme; the original cron
2698 format is also supported.")
2699 (license license:gpl3+)))
2701 (define-public guile2.2-mcron
2704 (name "guile2.2-mcron")
2705 (inputs (list guile-2.2))))
2707 (define-public guile-picture-language
2708 (let ((commit "a1322bf11945465241ca5b742a70893f24156d12")
2711 (name "guile-picture-language")
2712 (version (git-version "0.0.1" revision commit))
2716 (url "https://git.elephly.net/software/guile-picture-language.git")
2718 (file-name (git-file-name name version))
2721 "03i528z92ainccgm28shg4haxiav5x4cyhyi5dggq1rm027vbm99"))))
2722 (build-system gnu-build-system)
2726 (list guile-cairo guile-rsvg))
2728 (list autoconf automake librsvg pkg-config texinfo))
2729 (home-page "https://git.elephly.net/software/guile-picture-language.git")
2730 (synopsis "Picture language for Guile")
2732 "This package provides a simple SVG-based picture language for Guile.
2733 The picture values can directly be displayed in Geiser.")
2734 ;; (pict base64) is under GPLv3+, the rest is under LGPLv3+
2735 (license (list license:lgpl3+
2738 (define-public guile2.2-picture-language
2740 (inherit guile-picture-language)
2741 (name "guile2.2-picture-language")
2742 (inputs (list guile-2.2))
2744 (list guile2.2-cairo guile2.2-rsvg))))
2746 (define-public guile-studio
2747 (let ((commit "dd0ad42e51feafebda7cc29afe7c8bc7a182a842")
2750 (name "guile-studio")
2751 (version (git-version "0.1.1" revision commit))
2755 (url "https://git.elephly.net/software/guile-studio.git")
2757 (file-name (git-file-name name version))
2760 "1cpqilly8dqmai1qsgjxy99zs34sfz95zwxhzx979wryqb69vi0q"))))
2761 (build-system gnu-build-system)
2766 ,@%gnu-build-system-modules)
2767 #:tests? #f ; there are none
2769 (list (string-append "PICT_DIR="
2770 (assoc-ref %build-inputs "guile-picture-language"))
2771 (string-append "EMACS_DIR="
2772 (assoc-ref %build-inputs "emacs"))
2773 (string-append "GUILE_DIR="
2774 (assoc-ref %build-inputs "guile"))
2775 (string-join (cons "INPUTS="
2780 (and (string-prefix? "emacs" label) pkg))))
2782 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2784 (modify-phases %standard-phases
2786 (delete 'install))))
2789 guile-picture-language
2791 emacs-f ; needed by doom-modeline
2792 emacs-memoize ; needed by all-the-icons
2793 emacs-all-the-icons ; needed by doom-modeline
2794 emacs-all-the-icons-dired
2803 emacs-flycheck-guile
2807 (home-page "https://gnu.org/software/guile")
2808 (synopsis "IDE for Guile")
2810 "This is Emacs with a few settings that make working with Guile easier
2811 for people new to Emacs. Features include: CUA mode, Geiser, tool bar icons
2812 to evaluate Guile buffers, support for Guile's very own picture language, code
2813 completion, a simple mode line, etc.")
2814 (license license:gpl3+))))
2816 (define-public guile-stis-parser
2818 (name "guile-stis-parser")
2823 (url "https://gitlab.com/tampe/stis-parser")
2824 (commit (string-append "v" version))))
2825 (file-name (git-file-name name version))
2828 "1fvxdfvc80zqhwzq5x3kxyr6j8p4b51yx85fx1gr3d4gy2ddpx5w"))))
2829 (build-system gnu-build-system)
2831 `(#:parallel-build? #f ; not supported
2833 (modify-phases %standard-phases
2834 (add-after 'unpack 'chdir
2835 (lambda _ (chdir "modules") #t))
2836 (add-after 'chdir 'delete-broken-symlink
2838 (delete-file "parser/stis-parser/lang/.#calc.scm")
2843 (list autoconf automake pkg-config))
2844 (home-page "https://gitlab.com/tampe/stis-parser")
2845 (synopsis "Parser combinator framework")
2847 "This package provides a functional parser combinator library that
2848 supports backtracking and a small logical framework. The idea is to build up
2849 chunks that are memoized and there is no clear scanner/parser separation,
2850 chunks can be expressions as well as simple tokens.")
2851 (license license:lgpl2.0+)))
2853 (define-public guile-persist
2855 (name "guile-persist")
2860 (url "https://gitlab.com/tampe/guile-persist")
2861 (commit (string-append "v" version))))
2862 (file-name (git-file-name name version))
2865 "19f8hqcax4v40858kx2j8fy1cvzc2djj99r0n17dy1xxmwa097qi"))))
2866 (build-system gnu-build-system)
2869 (modify-phases %standard-phases
2870 (add-after 'unpack 'patch-prefix
2871 (lambda* (#:key inputs outputs #:allow-other-keys)
2872 (substitute* "src/Makefile.am"
2873 (("/usr/local/lib/guile")
2874 (string-append (assoc-ref outputs "out") "/lib/guile"))
2875 (("/usr/local/include/guile")
2876 (search-input-directory inputs "/include/guile"))
2877 (("-L/usr/local/lib")
2878 (string-append "-L" (assoc-ref inputs "guile") "/lib")))
2880 (add-after 'unpack 'patch-library-reference
2881 (lambda* (#:key outputs #:allow-other-keys)
2882 (let ((out (assoc-ref outputs "out")))
2883 (substitute* "persist/persistance.scm"
2884 (("\"libguile-persist\"")
2885 (format #f "\"~a/lib/guile/3.0/extensions/libguile-persist\"" out)))
2890 (list autoconf automake libtool pkg-config))
2891 (home-page "https://gitlab.com/tampe/guile-persist")
2892 (synopsis "Persistence programming framework for Guile")
2894 "This is a serialization library for serializing objects like classes
2895 and objects, closures and structs. This currently does not support
2896 serializing continuations or delimited continuations.")
2897 (license license:lgpl2.0+)))
2899 (define-public python-on-guile
2901 (name "python-on-guile")
2903 (home-page "https://gitlab.com/python-on-guile/python-on-guile")
2906 (uri (git-reference (url home-page)
2907 (commit (string-append "v" version))))
2908 (file-name (git-file-name name version))
2911 "05xrvcj6a4gzq1ybyin270qz8wamgc7w2skyi9iy6hkpgdhxy8vf"))))
2912 (build-system gnu-build-system)
2914 `(#:parallel-build? #f ;not supported
2915 #:make-flags '("GUILE_AUTO_COMPILE=0") ;to prevent guild warnings
2917 (modify-phases %standard-phases
2918 (add-after 'unpack 'chdir
2919 (lambda _ (chdir "modules") #t))
2920 (add-after 'chdir 'augment-GUILE_LOAD_PATH
2922 ;; TODO: It would be better to patch the Makefile.
2923 (setenv "GUILE_LOAD_PATH"
2925 (getenv "GUILE_LOAD_PATH")))
2927 (add-after 'install 'wrap
2928 (lambda* (#:key outputs #:allow-other-keys)
2929 ;; Wrap the 'python' executable so it can find its
2930 ;; dependencies and own modules.
2931 (let* ((out (assoc-ref outputs "out"))
2932 (guile-version ,(version-major+minor
2933 (package-version guile-3.0)))
2934 (scm (string-append out "/share/guile/site/"
2936 (ccache (string-append out "/lib/guile/" guile-version
2938 (load-path (string-join
2940 ;; XXX: cdr because we augment it above.
2942 (getenv "GUILE_LOAD_PATH") #\:)))
2944 (compiled-path (string-append
2946 (getenv "GUILE_LOAD_COMPILED_PATH"))))
2947 (wrap-program (string-append out "/bin/python")
2948 `("GUILE_LOAD_PATH" ":" prefix
2950 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
2954 (list guile-3.0 guile-persist guile-readline guile-stis-parser))
2956 (list autoconf automake libtool pkg-config))
2957 (synopsis "Python implementation in Guile")
2959 "This package allows you to compile a Guile Python file to any target
2960 from @code{tree-il}.")
2961 (license license:lgpl2.0+)))
2963 (define-public guile-file-names
2965 (name "guile-file-names")
2969 (uri (string-append "http://brandon.invergo.net/software/download/"
2970 "guile-file-names/guile-file-names-"
2974 "01chizdxkhw6aqv629vxka9f5x3534ij7r0jqndawsg2vxm1r9sz"))))
2975 (build-system gnu-build-system)
2978 (modify-phases %standard-phases
2979 (add-after 'unpack 'fix-target-directory
2981 (substitute* "src/Makefile.in"
2982 (("guilemoddir = \\$\\(GUILE_SITE\\)")
2983 "guilemoddir = $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
2989 (home-page "https://gitlab.com/brandoninvergo/guile-file-names")
2990 (synopsis "Manipulate file names")
2992 "The @code{(file-names)} module provides tools for manipulating file
2993 names. The module was built on the idea that doing anything more than a
2994 non-trivial modification of a file name string is a pain (making sure all
2995 slashes are present and accounted for, resolving @code{.} and @code{..}, etc).
2996 Inevitably, you have to break the string up into chunks and operate on that
2997 list of components. This module takes care of that for you.")
2998 (license license:lgpl3+)))
3000 (define-public guile-gi
3006 (uri (string-append "http://lonelycactus.com/tarball/guile_gi-"
3010 "019mbhgyga57k2074kg97mh3qsa8ny9l0kjgqids8cg3c6vbjdby"))))
3011 (build-system glib-or-gtk-build-system)
3013 `(#:configure-flags '("--with-gnu-filesystem-hierarchy")
3014 #:modules ((guix build glib-or-gtk-build-system)
3018 #:disallowed-references ,(list gtk+ webkitgtk)
3020 (modify-phases %standard-phases
3021 (add-after 'unpack 'remove-dotted-circle-from-combining-character
3022 ;; The test/string.scm files contain ◌̀, which is a dotted circle
3023 ;; (U+25cc) followed by an upper combining character (U+0300). The
3024 ;; old guile 3.0.2 reader incorrectly ignores the dotted circle,
3025 ;; and parses it as the combining character alone, but the new
3026 ;; guile reader does not.
3027 ;; See https://github.com/spk121/guile-gi/issues/112
3029 (substitute* "test/string.scm"
3030 (("#\\\\◌̀") "#\\x0300"))))
3031 (add-after 'unpack 'patch-references-to-extension
3032 (lambda* (#:key outputs #:allow-other-keys)
3033 (let ((effective (read-line
3034 (open-pipe* OPEN_READ
3036 "(display (effective-version))"))))
3037 (substitute* (find-files "module" ".*\\.scm")
3038 (("\\(load-extension \"libguile-gi\" \"(.*)\"\\)" m arg)
3041 (format #f "~alibguile-gi"
3042 (if (getenv "GUILE_GI_UNINSTALLED")
3044 ,(format #f "~a/lib/guile/~a/extensions/"
3045 (assoc-ref outputs "out")
3048 (setenv "GUILE_GI_UNINSTALLED" "1")
3050 (add-before 'check 'start-xorg-server
3051 (lambda* (#:key inputs #:allow-other-keys)
3052 ;; The init_check test requires a running X server.
3053 (system (format #f "~a/bin/Xvfb :1 &"
3054 (assoc-ref inputs "xorg-server")))
3055 (setenv "DISPLAY" ":1")
3058 (list gettext-minimal
3059 `(,glib "bin") ; for glib-compile-resources
3060 libtool pkg-config xorg-server))
3061 (propagated-inputs (list gobject-introspection))
3062 (inputs (list guile-3.0 glib
3063 ;; For tests, only relevant when compiling natively
3065 (home-page "https://github.com/spk121/guile-gi")
3066 (synopsis "GObject bindings for Guile")
3068 "Guile-GI is a library for Guile that allows using GObject-based
3069 libraries, such as GTK+3. Its README comes with the disclaimer: This is
3071 (license license:gpl3+)))
3073 (define-public guile2.2-gi
3076 (name "guile2.2-gi")
3078 (modify-inputs (package-inputs guile-gi)
3079 (replace "guile" guile-2.2)))))
3081 (define-public guile-srfi-89
3083 (name "guile-srfi-89")
3089 (url "https://gitlab.com/mjbecze/guile-srfi-89.git")
3093 "1981c0rrzxqx3md9jx8ir7j3m2mzg9m72b33p5jvw36zirbzpl20"))
3094 (file-name (git-file-name name version))))
3095 (build-system guile-build-system)
3098 (home-page "https://gitlab.com/mjbecze/guile-srfi-89")
3099 (synopsis "Hygienic implementation of SRFI-89 for Guile")
3101 "This package provides SRFI-89 optional positional and named
3102 parameters, which define* and lambda* special forms")
3103 (license license:gpl3+)))
3105 (define-public guile-srfi-128
3107 (name "guile-srfi-128")
3113 (url "https://inqlab.net/git/guile-srfi-128.git")
3114 (commit (string-append "v" version))))
3117 "03d85q5l2gc2c8cmri6zd4pfndvnadlhwh77hsx6ixvvm8vwq4sy"))
3118 (file-name (git-file-name name version))))
3119 (build-system guile-build-system)
3122 (home-page "https://inqlab.net/git/guile-srfi-128.git")
3123 (synopsis "SRFI 128 Comparators (reduced) port for Guile")
3125 "This package provides an implementation of SRFI 128 for Guile.
3126 SRFI 128 defines comparators, which bundles a test type predicate, an
3127 equality predicate, an ordering predicate and a hash function into a
3128 single Scheme object. This can be used in the implementation of data
3129 structures. This package re-uses the SRFI sample implementation.")
3131 (list license:lgpl3+
3132 ;; contains ISC code from the SRFI sample implementation
3135 (define-public guile-srfi-145
3137 (name "guile-srfi-145")
3143 (url "https://gitlab.com/mjbecze/guile-srfi-145.git")
3147 "1gssa8cmcp8640fil9z8dpil8v5l279wlalqjcx3fls5jwv13q1b"))
3148 (file-name (git-file-name name version))))
3149 (build-system guile-build-system)
3152 (home-page "https://gitlab.com/mjbecze/guile-srfi-145")
3153 (synopsis "SRFI-145 port for Guile")
3155 "This package provides SRFI-145. This provides the means to
3156 denote the invalidity of certain code paths in a Scheme program.")
3157 (license license:gpl3+)))
3159 (define-public guile-srfi-146
3161 (name "guile-srfi-146")
3167 (url "https://inqlab.net/git/guile-srfi-146.git")
3168 (commit (string-append "v" version))))
3171 "13dbzlav4fql8lcfr021z5368lwri6i15x0ykv8llzyghlbbx2w6"))
3172 (file-name (git-file-name name version))))
3173 (build-system gnu-build-system)
3176 guile-srfi-128 guile-srfi-145 guile-srfi-158
3177 autoconf automake pkg-config))
3178 (inputs (list guile-3.0))
3180 (list guile-srfi-128 guile-srfi-145 guile-srfi-158))
3181 (synopsis "SRFI 146 (Mappings) for Guile")
3183 "This package provides an implementation of SRFI 146 for Guile.
3184 SRFI 146 defines datastructures that implement mappings (finite sets
3185 of associations consiting of a key and a value). Two types of
3186 mappings are defined: One using a comparator to define an order on the
3187 keys and another using a hash function on the keys. The
3188 datastructures and procedures are by default purely-functional. This
3189 package re-uses the SRFI sample implementation that is based on
3190 red-black trees and Hash Array Mapped Trie (HAMT).")
3191 (home-page "https://inqlab.net/git/guile-srfi-146.git")
3193 (list license:lgpl3+
3194 ;; contains ISC code from the SRFI sample implementation
3197 (define-public guile-srfi-158
3198 (let ((commit "13126d1ed37892c864337a600a43d6876625fb99")
3201 (name "guile-srfi-158")
3202 (version (git-version "0.0.1" revision commit))
3207 (url "https://gitlab.com/mjbecze/guile-srfi-158.git")
3211 "0hg57l3w5qamip1clkab0q01np5nqln9y054q39smm4ki0svdl8w"))
3212 (file-name (git-file-name name version))))
3213 (build-system gnu-build-system)
3215 (list guile-3.0 autoconf automake pkg-config))
3216 (inputs (list guile-3.0))
3217 (home-page "https://gitlab.com/samplet/guile-srfi-158")
3218 (synopsis "SRFI 158 (Generators and Accumulators) for Guile")
3219 (description "This package provides an implementation of SRFI 158
3220 for Guile. SRFI 158 defines utility procedures that create,
3221 transform, and consume generators. It also defines procedures that
3222 return accumulators. It is implemented by wrapping the sample
3223 implementation in a thin Guile compatibility layer.")
3224 (license license:gpl3+))))
3226 (define-public guile-srfi-159
3227 (let ((commit "1bd98abda2ae4ef8f36761a167903e55c6bda7bb")
3230 (name "guile-srfi-159")
3231 (version (git-version "0" revision commit))
3232 (home-page "https://bitbucket.org/bjoli/guile-srfi-159")
3235 (uri (hg-reference (changeset commit)
3239 "1zw6cmcy7xdbfiz3nz9arqnn7l2daidaps6ixkcrc9b6k51fdv3p"))
3240 (file-name (git-file-name name version))))
3241 (build-system guile-build-system)
3243 ;; The *-impl.scm files are actually included from module files; they
3244 ;; should not be compiled separately, but they must be installed.
3245 '(#:not-compiled-file-regexp "-impl\\.scm$"))
3248 (synopsis "Formatting combinators for Guile")
3250 "The @code{(srfi-159)} module and its sub-modules implement the
3251 formatting combinators specified by
3252 @uref{https://srfi.schemers.org/srfi-159/srfi-159.html, SRFI-159}. These are
3253 more expressive and flexible than the traditional @code{format} procedure.")
3254 (license license:bsd-3))))
3256 (define-public guile-srfi-180
3257 (let ((commit "9188bf9724c6d320ef804579d222e855b007b193")
3260 (name "guile-srfi-180")
3261 (version (git-version "0" revision commit))
3266 (url "https://github.com/scheme-requests-for-implementation/srfi-180")
3270 "08lf70rsak8mwfij55xc37pg9zg7c87fizmhz7ln46skzj68sl3y"))
3271 (modules '((guix build utils)))
3274 (delete-file-recursively "srfi/files")
3275 (delete-file "srfi/run-r7rs-checks.guile.scm")
3276 (delete-file "srfi/run-r7rs-checks.scm")
3277 (delete-file "srfi/check.scm")
3279 (file-name (git-file-name name version))))
3280 (build-system guile-build-system)
3282 '(#:not-compiled-file-regexp "body\\.scm$"))
3286 (list guile-srfi-145))
3287 (home-page "https://srfi.schemers.org/srfi-180/")
3288 (synopsis "JSON parser and printer for Guile")
3290 "This library implements a JavaScript Object Notation (JSON) parser and printer.
3291 It also supports parsing JSON objects that may be bigger than memory with a streaming
3293 (license license:expat))))
3295 (define-public guile-srfi-189
3296 (let ((commit "659e3cd0fc2bfca9085424eda8cad804ead2a9ea")
3299 (name "guile-srfi-189")
3300 ;; 'final' is the name of the latest git tag.
3301 (version (git-version "final" revision commit))
3306 (url "https://github.com/scheme-requests-for-implementation/srfi-189")
3310 "0iqv4sjwbp4k87r9l9abzbs5yjcljm69m91kb1ypb03b0rx7napy"))
3311 (modules '((guix build utils)))
3314 (delete-file "test-syntax.scm")
3315 (delete-file "test.scm")))
3316 (file-name (git-file-name name version))))
3317 (build-system guile-build-system)
3319 '(#:not-compiled-file-regexp "srfi/189\\.scm$")) ; it's INCLUDE'd
3323 (list guile-srfi-145))
3324 (home-page "https://srfi.schemers.org/srfi-189/")
3325 (synopsis "Scheme SRFI implementation of Maybe and Either")
3327 "This SRFI defines two disjoint immutable container types known as
3328 Maybe and Either, both of which can contain objects collectively known
3329 as their payload. A Maybe object is either a Just object or the unique
3330 object Nothing (which has no payload); an Either object is either a Right
3331 object or a Left object. Maybe represents the concept of optional values;
3332 Either represents the concept of values which are either correct (Right)
3334 (license license:expat))))
3336 (define-public emacsy
3342 (uri (string-append "mirror://savannah/emacsy/emacsy-"
3346 "1cpb85dl1nibd34c2x2h7vfmjpkgh353p5b1w20v6cs6gmvgg4np"))
3347 (modules '((guix build utils)))
3350 (substitute* "configure"
3351 ;; Allow builds with Guile 3.0.
3355 ;; Freeglut 3.2 provides 'glut.pc', not 'freeglut.pc'.
3359 (substitute* '("emacsy/emacsy.c"
3360 "example/hello-emacsy.c")
3361 (("#include <libguile\\.h>")
3362 (string-append "#include <stdlib.h>\n"
3363 "#include <stdio.h>\n"
3364 "#include <string.h>\n"
3365 "#include <unistd.h>\n"
3366 "#include <libguile.h>\n")))))))
3367 (build-system gnu-build-system)
3370 ("guile" ,guile-3.0)
3371 ("gettext" ,gettext-minimal)
3372 ("libtool" ,libtool)
3374 ("pkg-config" ,pkg-config)
3375 ("texinfo" ,texinfo)
3376 ("texlive" ,(texlive-updmap.cfg (list texlive-epsf)))))
3383 webkitgtk-with-libsoup2))
3385 `(("glib-networking" ,glib-networking)
3386 ("gssettings-desktop-schemas" ,gsettings-desktop-schemas)))
3388 `(#:modules ((guix build gnu-build-system)
3396 (modify-phases %standard-phases
3397 (add-before 'configure 'setenv
3399 (setenv "GUILE_AUTO_COMPILE" "0")))
3400 (add-after 'install 'wrap-binaries
3401 (lambda* (#:key inputs outputs #:allow-other-keys)
3402 (let* ((out (assoc-ref outputs "out"))
3403 (effective (read-line
3404 (open-pipe* OPEN_READ
3406 "(display (effective-version))")))
3407 (deps (map (cut assoc-ref inputs <>)
3408 '("guile-lib" "guile-readline")))
3409 (scm-path (map (cut string-append <> "/share/guile/site/"
3410 effective) `(,out ,@deps)))
3411 (go-path (map (cut string-append <> "/lib/guile/" effective
3412 "/site-ccache/") `(,out ,@deps)))
3413 (examples (filter (cut string-match "emacsy" <>)
3414 (scandir (string-append out "/bin/"))))
3415 (progs (map (cut string-append out "/bin/" <>)
3417 (map (cut wrap-program <>
3418 `("GUILE_LOAD_PATH" ":" prefix ,scm-path)
3419 `("GUILE_LOAD_COMPILED_PATH" ":" prefix ,go-path))
3421 (home-page "https://savannah.nongnu.org/projects/emacsy")
3422 (synopsis "Embeddable GNU Emacs-like library using Guile")
3424 "Emacsy is an embeddable Emacs-like library that uses GNU Guile
3425 as extension language. Emacsy can give a C program an Emacsy feel with
3426 keymaps, minibuffer, recordable macros, history, tab completion, major
3427 and minor modes, etc., and can also be used as a pure Guile library. It
3428 comes with a simple counter example using FreeGLUT and browser examples
3429 in C using Gtk+-3 and WebKitGtk.")
3430 (license license:gpl3+)))
3432 (define-public emacsy-minimal
3433 (let ((commit "v0.4.1-37-g5f91ee6"))
3436 (name "emacsy-minimal")
3437 (version (string-drop commit 1))
3442 (url "https://git.savannah.gnu.org/git/emacsy.git")
3444 (file-name (git-file-name name version))
3446 (base32 "03ym14g9qhjqmryr5z065kynqm8yhmvnbs2djl6vp3i9cmqln8cl"))))
3447 (build-system gnu-build-system)
3449 `(("autoconf" ,autoconf)
3450 ("automake" ,automake)
3451 ("gettext" ,gettext-minimal)
3452 ("libtool" ,libtool)
3453 ("makeinfo" ,texinfo)
3454 ("pkg-config" ,pkg-config)))
3456 `(("guile" ,guile-2.2)
3457 ("guile-lib" ,guile2.2-lib)
3458 ("guile-readline" ,guile2.2-readline)))
3459 (propagated-inputs '())
3461 `(#:configure-flags '("--without-examples")
3463 (modify-phases %standard-phases
3464 (add-before 'configure 'setenv
3466 (setenv "GUILE_AUTO_COMPILE" "0")
3469 (define-public guile-jpeg
3470 (let ((commit "6a1673578b297c2c1b28e44a76bd5c49e76a5046")
3474 (version (git-version "0.0" revision commit))
3475 (home-page "https://gitlab.com/wingo/guile-jpeg")
3478 (uri (git-reference (url home-page)
3482 "05z9m408w3h6aqb5k3r3qa7khir0k10rxwvsrzhkcq1hr5vbmr4m"))
3483 (file-name (git-file-name name version))
3484 (modules '((guix build utils)))
3487 ;; Install .go files in the right place.
3488 (substitute* "Makefile.am"
3489 (("/ccache") "/site-ccache"))
3491 (build-system gnu-build-system)
3493 (list autoconf automake pkg-config guile-2.2))
3494 (synopsis "JPEG file parsing library for Guile")
3496 "Guile-JPEG is a Scheme library to parse JPEG image files and to
3497 perform geometrical transforms on JPEG images.")
3498 (license license:gpl3+))))
3500 (define-public nomad
3503 (version "0.2.0-alpha-199-g3e7a475")
3507 (url "https://git.savannah.gnu.org/git/nomad.git/")
3509 (file-name (git-file-name name version))
3512 "0p0ha6prp7pyadp61clbhc6b55023vxzfwy14j2qygb2mkq7fhic"))))
3513 (build-system gnu-build-system)
3515 `(("autoconf" ,autoconf)
3516 ("automake" ,automake)
3518 ("pkg-config" ,pkg-config)
3519 ("libtool" ,libtool)
3520 ("guile" ,guile-2.2)
3521 ("glib:bin" ,glib "bin")
3522 ("texinfo" ,texinfo)
3523 ("gettext" ,gettext-minimal)
3527 ("guile" ,guile-2.2)
3528 ("guile-lib" ,guile2.2-lib)
3529 ("guile-readline" ,guile2.2-readline)
3530 ("guile-gcrypt" ,guile2.2-gcrypt)
3532 ("g-golf" ,guile2.2-g-golf)
3534 ("emacsy" ,emacsy-minimal)
3537 ("dbus-glib" ,dbus-glib)
3538 ("glib-networking" ,glib-networking)
3540 ("gtk+:bin" ,gtk+ "bin")
3541 ("webkitgtk" ,webkitgtk)
3542 ("gtksourceview" ,gtksourceview-4)
3543 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
3546 ("gstreamer" ,gstreamer)
3547 ("gst-plugins-base" ,gst-plugins-base)
3548 ("gst-plugins-good" ,gst-plugins-good)
3549 ("gst-plugins-bad" ,gst-plugins-bad)
3550 ("gst-plugins-ugly" ,gst-plugins-ugly)
3552 ("xorg-server" ,xorg-server)))
3554 `(#:modules ((guix build gnu-build-system)
3560 (modify-phases %standard-phases
3561 (add-after 'unpack 'fix-webkitgtk
3563 ;; Adapt to the version we have in Guix.
3564 (substitute* "configure.ac"
3565 (("webkit2gtk-4\\.0") "webkit2gtk-4.1")
3566 (("webkit2gtk-web-extension-4\\.0")
3567 "webkit2gtk-web-extension-4.1"))
3569 (substitute* "typelib/Makefile.am"
3570 (("WebKit2-4\\.0") "WebKit2-4.1"))))
3571 (add-before 'check 'start-xorg-server
3572 (lambda* (#:key inputs #:allow-other-keys)
3573 ;; The test suite requires a running X server.
3574 (system (format #f "~a/bin/Xvfb :1 &"
3575 (assoc-ref inputs "xorg-server")))
3576 (setenv "DISPLAY" ":1")
3578 (add-after 'install 'wrap-binaries
3579 (lambda* (#:key inputs outputs #:allow-other-keys)
3580 (let* ((out (assoc-ref outputs "out"))
3581 (effective (read-line (open-pipe*
3584 "(display (effective-version))")))
3585 (gst-plugins (map (lambda (i)
3586 (string-append (assoc-ref inputs i)
3587 "/lib/gstreamer-1.0"))
3592 "gst-plugins-ugly")))
3593 (out-append (lambda (. args)
3594 (apply string-append out args)))
3595 (gi-path (out-append "/lib/girepository-1.0"))
3596 (load-path (out-append "/share/guile/site/" effective))
3597 (comp-path (out-append "/lib/guile/"
3598 effective "/site-ccache"))
3599 (ext-path (out-append "/libexec/nomad")))
3600 (wrap-program (string-append out "/bin/nomad")
3601 `("GUILE_LOAD_PATH" ":" prefix
3603 ,(getenv "GUILE_LOAD_PATH")))
3604 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
3606 ,(getenv "GUILE_LOAD_COMPILED_PATH")))
3607 `("GI_TYPELIB_PATH" ":" prefix
3608 (,gi-path ,(getenv "GI_TYPELIB_PATH")))
3609 `("GIO_EXTRA_MODULES" ":" prefix
3610 (,(getenv "GIO_EXTRA_MODULES")))
3611 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix ,gst-plugins)
3612 `("NOMAD_WEB_EXTENSION_DIR" ":" prefix (,ext-path)))
3614 (home-page "https://savannah.nongnu.org/projects/nomad/")
3615 (synopsis "Extensible Web Browser in Guile Scheme")
3616 (description "Nomad is a Emacs-like web browser that consists of a modular
3617 feature-set, fully programmable in Guile Scheme.")
3618 (license license:gpl3+)))
3620 (define-public guile-cv
3626 (uri (string-append "mirror://gnu/guile-cv/guile-cv-"
3630 "0qdf0s2h1xj5lbhnc1pfw69i3zg08pqy2y6869b92ydfis8r82j9"))))
3631 (build-system gnu-build-system)
3634 (modify-phases %standard-phases
3635 (add-after 'unpack 'prepare-build
3636 (lambda* (#:key inputs outputs #:allow-other-keys)
3637 (substitute* "configure"
3638 (("SITEDIR=\"\\$datadir/guile-cv\"")
3639 "SITEDIR=\"$datadir/guile/site/$GUILE_EFFECTIVE_VERSION\"")
3640 (("SITECCACHEDIR=\"\\$libdir/guile-cv/")
3641 "SITECCACHEDIR=\"$libdir/"))
3642 (substitute* "cv/init.scm"
3643 (("\\(dynamic-link \"libvigra_c\"\\)")
3644 (string-append "(dynamic-link \""
3645 (assoc-ref inputs "vigra-c")
3646 "/lib/libvigra_c\")"))
3647 (("\\(dynamic-link \"libguile-cv\"\\)")
3650 (format #f "~alibguile-cv"
3651 (if (getenv "GUILE_CV_UNINSTALLED")
3653 ,(format #f "~a/lib/"
3654 (assoc-ref outputs "out"))))))))
3655 (setenv "GUILE_CV_UNINSTALLED" "1")
3656 ;; Only needed to satisfy the configure script.
3657 (setenv "LD_LIBRARY_PATH"
3658 (string-append (assoc-ref inputs "vigra-c") "/lib"))
3661 (list vigra vigra-c guile-2.2))
3663 `(("texlive" ,(texlive-updmap.cfg (list texlive-booktabs
3668 texlive-fonts-iwona)))
3669 ("pkg-config" ,pkg-config)))
3671 `(("guile-lib" ,guile2.2-lib)))
3672 (home-page "https://www.gnu.org/software/guile-cv/")
3673 (synopsis "Computer vision library for Guile")
3674 (description "Guile-CV is a Computer Vision functional programming library
3675 for the Guile Scheme language. It is based on Vigra (Vision with Generic
3676 Algorithms), a C++ image processing and analysis library. Guile-CV contains
3677 bindings to Vigra C (a C wrapper to most of the Vigra functionality) and is
3678 enriched with pure Guile Scheme algorithms, all accessible through a nice,
3679 clean and easy to use high level API.")
3680 (license license:gpl3+)))
3682 (define-public guile-ffi-fftw
3683 (let ((commit "294ad9e7491dcb40026d2fec9be2af05263be1c0")
3686 (name "guile-ffi-fftw")
3687 (version (git-version "0" revision commit))
3691 (url "https://github.com/lloda/guile-ffi-fftw")
3693 (file-name (git-file-name "guile-ffi-fftw" version))
3696 "08j40a5p6a8pgvhffmzb5rfdnrav2mksy3gfjkdqy93jfj1z5afg"))))
3697 (build-system guile-build-system)
3699 `(#:source-directory "mod"
3701 (modify-phases %standard-phases
3702 (add-after 'unpack 'prepare-build
3703 (lambda* (#:key inputs #:allow-other-keys)
3704 (substitute* "mod/ffi/fftw.scm"
3705 (("\\(getenv \"GUILE_FFI_FFTW_LIBFFTW3_PATH\"\\)")
3706 (format #f "\"~a/lib\"" (assoc-ref inputs "fftw"))))
3708 (add-after 'build 'check
3710 (invoke "guile" "-L" "mod"
3711 "-s" "test/test-ffi-fftw.scm"))))))
3713 (list fftw guile-2.2))
3714 (home-page "https://github.com/lloda/guile-ffi-fftw/")
3715 (synopsis "Access FFTW through Guile's FFI")
3716 (description "This is a minimal set of Guile FFI bindings for the FFTW
3717 library's ‘guru interface’. It provides two functions: @code{fftw-dft! rank
3718 sign in out} and @code{fftw-dft rank sign in}. These bindings being minimal,
3719 there is no support for computing & reusing plans, or split r/i transforms, or
3720 anything other than straight complex DFTs.")
3721 (license license:lgpl3+))))
3723 (define-public srfi-64-driver
3725 (name "srfi-64-driver")
3729 (uri (string-append "https://files.ngyro.com/srfi-64-driver/"
3730 "srfi-64-driver-" version ".tar.gz"))
3733 "188b6mb7sjjg0a8zldikinglf40ky8mg8rwh5768gjmch6gkk3ph"))))
3734 (build-system gnu-build-system)
3738 (modify-phases %standard-phases
3744 (home-page "https://ngyro.com/software/srfi-64-driver.html")
3745 (synopsis "Automake test driver for SRFI 64 test suites")
3746 (description "This package provides an Automake test driver that can
3747 run SRFI 64 test suites. It gives Automake insight into the individual
3748 tests being run, resulting clearer and more specific output.")
3749 (license license:gpl3+)))
3751 (define-public guile-semver
3753 (name "guile-semver")
3757 (uri (string-append "https://files.ngyro.com/guile-semver/"
3758 "guile-semver-" version ".tar.gz"))
3761 "109p4n39ln44cxvwdccf9kgb96qx54makvd2ir521ssz6wchjyag"))))
3762 (build-system gnu-build-system)
3767 (home-page "https://ngyro.com/software/guile-semver.html")
3768 (synopsis "Semantic Versioning (SemVer) for Guile")
3769 (description "This Guile library provides tools for reading,
3770 comparing, and writing Semantic Versions. It also includes ranges in
3771 the style of the Node Package Manager (NPM).")
3772 (license license:gpl3+)))
3774 (define-public guile2.2-semver
3776 (inherit guile-semver)
3777 (name "guile2.2-semver")
3781 (define-public guile-hashing
3783 (name "guile-hashing")
3785 (home-page "https://gitlab.com/weinholt/hashing")
3790 (commit "f138deaec38d54ddb621c082764ece276deebe7f")))
3791 (file-name (git-file-name name version))
3794 "1362d3lmpv7slmv1zmr9wy8panq9sjr9787gc2hagd646mpsfpkl"))))
3795 (build-system guile-build-system)
3797 `(#:modules ((guix build guile-build-system)
3801 #:implicit-inputs? #f ;needs nothing but Guile
3802 #:phases (modify-phases %standard-phases
3803 (add-before 'build 'move-sls-files
3805 ;; Move the source under hashing/ in order to match
3806 ;; module names, and rename .sls files to .scm.
3807 (define (target file)
3808 (string-append "hashing/" file))
3810 (define (sls->scm sls)
3811 (string-append (string-drop-right sls 4)
3815 (for-each (lambda (file)
3816 (rename-file file (sls->scm file)))
3817 (find-files "." "\\.sls$"))
3818 (for-each (lambda (file)
3819 (rename-file file (target file)))
3820 (scandir "." (cut string-suffix? ".scm" <>)))
3821 (rename-file "private" "hashing/private")
3825 (synopsis "Cryprographic hash functions implemented in Scheme")
3827 "The @code{(hashing @dots{})} modules implement cryptographic hash
3828 functions in pure R6RS Scheme: CRC, HMAC, MD5, SHA-1, and SHA-2 (SHA-256,
3830 (license license:expat)))
3832 (define-public guile2.2-hashing
3834 (inherit guile-hashing)
3835 (name "guile2.2-hashing")
3839 (define-public guile-packrat
3841 (name "guile-packrat")
3843 (home-page "https://gitlab.com/weinholt/packrat")
3848 (commit "4201ebe741b605db58a21d70195cfb7db3c38eae")))
3849 (file-name (git-file-name name version))
3852 "1aga17164fkhbgllqc7ni6fk5zl8mkmgkl5zcsy67x7ngpyalbby"))))
3853 (build-system guile-build-system)
3855 `(#:implicit-inputs? #f ;needs nothing but Guile
3856 #:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
3857 #:not-compiled-file-regexp "/extensible\\.scm$"
3858 #:phases (modify-phases %standard-phases
3859 (add-before 'build 'no-srfi-23
3861 (substitute* "packrat.sls"
3862 (("\\(srfi :23 error\\)")
3863 (object->string '(only (guile) error))))
3867 (synopsis "Packrat parser library in R6RS Scheme")
3869 "This is an R6RS Scheme adaptation of the
3870 @uref{https://bford.info/packrat/, packrat parsing}. Packrat parsing is a
3871 memoizing, backtracking, recursive-descent parsing technique that runs in time
3872 and space linear in the size of the input text.")
3873 (license license:expat)))
3875 (define-public guile-ac-d-bus
3877 (name "guile-ac-d-bus")
3878 (version "1.0.0-beta.0")
3879 (home-page "https://gitlab.com/weinholt/ac-d-bus/")
3884 (commit (string-append "v" version))))
3885 (file-name (git-file-name name version))
3888 "0rl809qimhgz6b0rixakb42r2l4g53jr09a2g0s1hxgab0blz0kb"))
3889 (patches (search-patches "guile-ac-d-bus-fix-tests.patch"))))
3890 (build-system guile-build-system)
3893 #:implicit-inputs? #f ;needs nothing but Guile
3894 #:compile-flags #~(list "--r6rs" "-Wunbound-variable" "-Warity-mismatch")
3896 #~(modify-phases %standard-phases
3897 (add-before 'build 'adjust-for-guile
3899 ;; Adjust source file names for Guile.
3900 (define (guile-sls->sls file)
3901 (string-append (string-drop-right
3902 file (string-length ".guile.sls"))
3905 ;; Remove files targeting other implementations: *.mosh.sls,
3907 (for-each delete-file
3911 (not (string-contains file ".guile.")))))
3913 ;; Rename *.guile.sls to *.sls so the ".guile" bit does not
3914 ;; appear in .go file names.
3915 (for-each (lambda (file)
3916 (rename-file file (guile-sls->sls file)))
3917 (find-files "compat" "\\.guile\\.sls"))
3919 ;; Move directories under d-bus/ to match module names.
3921 (for-each (lambda (directory)
3922 (rename-file directory
3923 (string-append "d-bus/"
3925 '("compat" "protocol"))))
3926 (add-after 'build 'build-doc
3928 (with-directory-excursion "docs"
3929 (invoke "makeinfo" "ac-d-bus"))))
3930 (add-after 'build-doc 'check
3931 (lambda* (#:key (tests? #t) #:allow-other-keys)
3933 ;; There is no locale for the ö character, which crashes
3934 ;; substitute*; reset the conversion strategy to workaround it.
3935 (with-fluids ((%default-port-conversion-strategy 'substitute))
3936 (substitute* (find-files "tests")
3937 (("#!/usr/bin/env scheme-script")
3938 (string-append "#!" (which "guile")))))
3939 (invoke "./run-tests.sh"))))
3940 (add-after 'install 'install-doc
3942 (install-file "docs/ac-d-bus.info"
3943 (string-append #$output "/share/info")))))))
3945 (list bash-minimal guile-3.0 texinfo))
3947 (list guile-packrat))
3948 (synopsis "D-Bus protocol implementation in R6RS Scheme")
3950 "AC/D-Bus is an implementation of the D-Bus wire protocol. D-Bus is an
3951 interprocess communication protocol popular on GNU/Linux systems to
3952 communicate with a variety of services. Originally designed for desktop
3953 environments, it is now used by programs like VLC media player, BlueZ,
3954 NetworkManager, Pulseaudio, systemd (including logind and resolved), Polkit,
3955 gnome-keyring, and many more.")
3956 (license license:expat)))
3958 (define-public guile-webutils
3959 (let ((commit "8541904f761066dc9c27b1153e9a838be9a55299")
3962 (name "guile-webutils")
3963 (version (git-version "0.1" revision commit))
3967 (url "https://notabug.org/cwebber/guile-webutils.git")
3969 (file-name (git-file-name name version))
3972 "1s9n3hbxd7lfpdi0x8wr0cfvlsf6g62ird9gbspxdrp5p05rbi64"))
3973 (modules '((guix build utils)))
3976 ;; Allow builds with Guile 3.0.
3977 (substitute* "configure.ac"
3981 (build-system gnu-build-system)
3983 (list autoconf automake pkg-config texinfo))
3987 (list guile-irregex guile-gcrypt))
3988 (home-page "https://notabug.org/cwebber/guile-webutils")
3989 (synopsis "Web application authoring utilities for Guile")
3991 "This package provides tooling to write web applications in Guile, such
3992 as signed sessions, multipart message support, etc.")
3993 (license license:gpl3+))))
3995 (define-public guile2.2-webutils
3997 (inherit guile-webutils)
3998 (name "guile2.2-webutils")
4002 (list guile2.2-irregex guile2.2-gcrypt))))
4004 (define-public guile-lens
4005 (let ((commit "14b15d07255f9d3f55d40a3b750d13c9ee3a154f")
4009 (version (git-version "0.1" revision commit))
4013 (url "https://gitlab.com/a-sassmannshausen/guile-lens.git")
4015 (file-name (git-file-name name version))
4018 "0w8jzqyla56yrgj7acsgd4nspyir6zgp3vgxid4xmwhg9wmf1ida"))))
4019 (build-system gnu-build-system)
4022 (modify-phases %standard-phases
4023 (add-after 'unpack 'run-hall
4025 (setenv "HOME" "/tmp") ; for ~/.hall
4026 (invoke "hall" "build-system" "-x"))))))
4034 (home-page "https://gitlab.com/a-sassmannshausen/guile-lens.git")
4035 (synopsis "Composable lenses for data structures in Guile")
4037 "Guile-Lens is a library implementing lenses in Guile. The library is
4038 currently a re-implementation of the lentes library for Clojure. Lenses
4039 provide composable procedures, which can be used to focus, apply functions
4040 over, or update a value in arbitrary data structures.")
4041 (license license:gpl3+))))
4043 (define-public guile2.2-lens
4045 (inherit guile-lens)
4046 (name "guile2.2-lens")
4048 (modify-inputs (package-native-inputs guile-lens)
4049 (replace "guile" guile-2.2)))))
4051 (define-public guile-xapian
4053 (name "guile-xapian")
4055 (home-page "https://git.systemreboot.net/guile-xapian")
4059 (uri (git-reference (url home-page)
4060 (commit (string-append "v" version))))
4061 (file-name (git-file-name name version))
4064 "140cwzpzk4y16ajxrg5zd2d7q60f5ivx5jk8w1h0qfjq2mp14sh7"))))
4065 (build-system gnu-build-system)
4067 '(#:make-flags '("GUILE_AUTO_COMPILE=0"))) ; to prevent guild warnings
4069 (list guile-3.0 xapian zlib))
4077 (synopsis "Guile bindings for Xapian")
4078 (description "@code{guile-xapian} provides Guile bindings for Xapian, a
4079 search engine library. Xapian is a highly adaptable toolkit which allows
4080 developers to easily add advanced indexing and search facilities to their own
4081 applications. It has built-in support for several families of weighting
4082 models and also supports a rich set of boolean query operators.")
4083 (license license:gpl2+)))
4085 (define-public guile2.2-xapian
4087 (inherit guile-xapian)
4088 (name "guile2.2-xapian")
4090 (modify-inputs (package-inputs guile-xapian)
4091 (replace "guile" guile-2.2)))))
4093 (define-public guile-torrent
4095 (name "guile-torrent")
4097 (source (origin (method git-fetch)
4100 "https://github.com/o-nly/torrent")
4102 (file-name (git-file-name name version))
4105 "1yiagi55ncq1x7s9n7salzywjm4l96y3n7y3s47a9anvz87mrmim"))))
4106 (build-system gnu-build-system)
4115 (list guile-gcrypt))
4116 (home-page "https://github.com/o-nly/torrent")
4117 (synopsis "Torrent library for GNU Guile")
4118 (description "This package provides facilities for working with
4119 @code{.torrent} or metainfo files. Implements a bencode reader and writer
4120 according to Bitorrent BEP003.")
4121 (license license:gpl3+)))
4123 (define-public guile-irc
4124 (let ((commit "7d08ce6fdcb87ac668c5d3bfd5584247805507bb")
4128 (version (git-version "0.3.0" revision commit))
4132 (url "https://github.com/rekado/guile-irc")
4134 (file-name (git-file-name name version))
4137 "1jx8704200l29ndg9bfyamgxrzknya0f0vwb2sxhd0k3b8r94avw"))))
4138 (build-system gnu-build-system)
4140 `(#:configure-flags '("--enable-gnutls=yes")))
4142 (list autoconf automake texinfo pkg-config))
4144 (list gnutls guile-3.0))
4145 (home-page "https://github.com/rekado/guile-irc")
4146 (synopsis "IRC library for Guile")
4147 (description "This package provides a Guile library for @dfn{Internet
4148 Relay Chat} (IRC).")
4149 ;; Some file headers incorrectly say LGPLv2+.
4150 (license license:lgpl2.1+))))
4152 (define-public guile-websocket
4153 (let ((commit "d17878f6c12c10a49196bb08f737f36b11e61c31")
4156 (name "guile-websocket")
4157 (version (git-version "0.1" revision commit))
4162 (url "https://git.dthompson.us/guile-websocket.git")
4164 (file-name (git-file-name name version))
4167 "0kcmhjyb6amm4b9k4ng0r5s38m041mvh5jgmjbz6ichz39k255v7"))))
4168 (build-system gnu-build-system)
4171 '("GUILE_AUTO_COMPILE=0")))
4173 (list autoconf automake pkg-config))
4176 (synopsis "Websocket server/client for Guile")
4177 (description "Guile-websocket provides an implementation of the
4178 WebSocket protocol as defined by RFC 6455.")
4179 (home-page "https://git.dthompson.us/guile-websocket.git")
4180 (license license:lgpl3+))))
4182 (define-public guile-rdf
4190 (url "https://framagit.org/tyreunom/guile-rdf")
4192 (file-name (git-file-name name version))
4195 "0dwn3app1fscbpmpgvjs5jy1y0gwy3j5gdx8br79af6a88zjlnqf"))))
4196 (build-system gnu-build-system)
4198 `(#:tests? #f)); tests require network
4202 (list automake autoconf pkg-config texinfo))
4203 (home-page "https://framagit.org/tyreunom/guile-rdf")
4204 (synopsis "Guile implementation of the RDF abstract and concrete syntaxes")
4205 (description "Guile RDF is an implementation of the RDF (Resource Description
4206 Framework) format defined by the W3C for GNU Guile. RDF structures include
4207 triples (facts with a subject, a predicate and an object), graphs which are
4208 sets of triples, and datasets, which are collections of graphs.
4210 RDF specifications include the specification of concrete syntaxes and of
4211 operations on graphs. This library implements some basic functionalities,
4212 such as parsing and producing turtle and nquads syntax, as well as
4213 manipulating graphs and datasets.")
4214 (license license:gpl3+)))
4216 (define-public guile-jsonld
4218 (name "guile-jsonld")
4224 (url "https://framagit.org/tyreunom/guile-jsonld")
4226 (file-name (git-file-name name version))
4229 "1ryyvh71899z2inivqglb8d78zzp1sd0wv9a56kvcmrxf1966z6r"))))
4230 (build-system gnu-build-system)
4232 `(#:tests? #f)); require network
4234 `(("guile-gnutls" ,gnutls)
4235 ("guile-json" ,guile-json-4)
4236 ("guile-rdf" ,guile-rdf)))
4240 (list automake autoconf pkg-config texinfo))
4241 (home-page "https://framagit.org/tyreunom/guile-jsonld")
4242 (synopsis "Guile implementation of the JsonLD API specification")
4243 (description "Guile JsonLD is an implementation of the JsonLD (Json for
4244 Linked Data) API defined by the W3C for GNU Guile. It allows you to express links
4245 between data, in a way that is very similar to WikiData or RDF for instance.
4246 An object can have relations (in the form of an IRI) that relates it to one or
4247 more objects or strings, represented by a Json object or an IRI.")
4248 (license license:gpl3+)))
4250 (define-public guile-struct-pack
4252 (name "guile-struct-pack")
4258 (url "https://gitlab.com/weinholt/struct-pack")
4259 (commit "11b71963793ed4a3bf761efdd83cf2fe123239ee")))
4260 (file-name (git-file-name name version))
4262 (base32 "0hd72m821pahjphzyjn26i55542v8makr55xzjll2cycja4wsbc1"))))
4263 (build-system guile-build-system)
4265 `(#:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
4266 #:modules ((guix build guile-build-system)
4270 #:phases (modify-phases %standard-phases
4271 (add-before 'build 'move-sls-files
4273 ;; Move files under a struct/ directory to reflect the
4274 ;; module hierarchy.
4275 (define dst-folder "struct")
4276 (define (target file)
4277 (string-append dst-folder "/" file))
4279 (scandir "." (negate (cut member <> '("." "..")))))
4281 (for-each (lambda (file)
4282 (rename-file file (target file)))
4287 (home-page "https://gitlab.com/weinholt/struct-pack")
4288 (synopsis "R6RS library for working with packed byte structures")
4290 "This is an R6RS library for working with packed byte structures. It is
4291 similar to struct in Python or pack and unpack in Perl.")
4292 (license license:expat)))
4294 (define-public guile-machine-code
4296 (name "guile-machine-code")
4302 (url "https://gitlab.com/weinholt/machine-code")
4303 (commit (string-append "v" version))))
4304 (file-name (git-file-name name version))
4306 (base32 "1yjzpg5p082kg4vaqlwbwddrrhxyxar6gsx9ql72hpwah4ka82h5"))))
4307 (build-system guile-build-system)
4309 `(#:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
4310 #:modules ((guix build guile-build-system)
4314 #:phases (modify-phases %standard-phases
4315 (add-before 'build 'move-sls-files
4317 ;; Move files under a struct/ directory to reflect the
4318 ;; module hierarchy.
4319 (define dst-folder "machine-code")
4320 (define (target file)
4321 (string-append dst-folder "/" file))
4323 (scandir "." (negate (cut member <> '("." "..")))))
4325 (for-each (lambda (file)
4326 (rename-file file (target file)))
4332 (list guile-struct-pack))
4333 (home-page "https://gitlab.com/weinholt/machine-code")
4334 (synopsis "Tools that relate to machine code and object formats")
4336 "This project is about the development of tools that relate to machine
4337 code and object formats; for all architectures. Here you'll find libraries
4338 for working with binary code: assembly, disassembly, instruction tables,
4339 object formats and related areas.")
4340 (license license:expat)))
4342 (define-public guile-laesare
4344 (name "guile-laesare")
4350 (url "https://gitlab.com/weinholt/laesare")
4351 (commit (string-append "v" version))))
4352 (file-name (git-file-name name version))
4354 (base32 "15q619gzw717r8r1ql23zfdaibpnp9qqs96032vdc3rj74msxc92"))))
4355 (build-system guile-build-system)
4357 `(#:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
4358 #:modules ((guix build guile-build-system)
4362 #:phases (modify-phases %standard-phases
4363 (add-before 'build 'move-sls-files
4365 ;; Move files under a laesare directory to reflect
4366 ;; the module hierarchy.
4367 (define dst-folder "laesare")
4368 (define (target file)
4369 (string-append dst-folder "/" file))
4371 (scandir "." (negate (cut member <> '("." "..")))))
4373 (for-each (lambda (file)
4374 (rename-file file (target file)))
4379 (home-page "https://gitlab.com/weinholt/laesare")
4380 (synopsis "R6RS Scheme library that provides a reader")
4382 "This is an R6RS Scheme library that provides a reader with some extra
4383 features not found in the standard read procedure such as a compatible mode
4384 with support for other RnRS standards and a tolerant mode that continues on
4386 (license license:expat)))
4388 (define-public guile-avahi
4389 (let ((commit "6d43caf64f672a9694bf6c98bbf7a734f17a51e8")
4392 (name "guile-avahi")
4393 (version (git-version "0.4.0" revision commit))
4397 (url "git://git.sv.gnu.org/guile-avahi.git")
4399 (file-name (git-file-name name version))
4402 "0fvrf8x22yvc71180hd3xkhspg9yvadi0pbv8shzlsaxqncwy1m9"))
4403 (modules '((guix build utils)))))
4404 (build-system gnu-build-system)
4406 `(#:modules (((guix build guile-build-system)
4407 #:select (target-guile-effective-version))
4408 ,@%gnu-build-system-modules)
4409 #:imported-modules ((guix build guile-build-system)
4410 ,@%gnu-build-system-modules)
4412 '("GUILE_AUTO_COMPILE=0") ;to prevent guild warnings
4413 ;; Parallel builds fail on powerpc64le-linux.
4414 ;; See https://lists.nongnu.org/archive/html/guile-avahi-bugs/2021-01/msg00000.html
4415 #:parallel-build? #f
4417 (modify-phases %standard-phases
4418 (add-before 'check 'fix-guile-avahi-file-name
4419 (lambda* (#:key outputs #:allow-other-keys)
4420 (with-directory-excursion "src"
4421 (invoke "make" "install"
4422 "-j" (number->string
4423 (parallel-job-count))))
4424 (let* ((out (assoc-ref outputs "out"))
4425 (files (find-files "modules" ".scm")))
4427 (("\"guile-avahi-v-0\"")
4428 (format #f "\"~a/lib/guile/~a/extensions/guile-avahi-v-0\""
4429 out (target-guile-effective-version))))
4432 (list guile-3.0 avahi))
4434 (list autoconf automake libtool pkg-config texinfo))
4435 (synopsis "Guile bindings to Avahi")
4437 "This package provides bindings for Avahi. It allows programmers to
4438 use functionalities of the Avahi client library from Guile Scheme programs.
4439 Avahi itself is an implementation of multicast DNS (mDNS) and DNS Service
4440 Discovery (DNS-SD).")
4441 (home-page "https://www.nongnu.org/guile-avahi/")
4442 (license license:lgpl3+))))
4444 (define-public guile-dns
4451 (url "https://git.lysator.liu.se/hugo/guile-dns")
4453 (file-name (git-file-name name version))
4456 "18skivracv6jh1zab9dknkcpbizc416n0pb2mcwb20dpzc2md9yf"))))
4457 (build-system gnu-build-system)
4459 (list #:make-flags #~(list (string-append "PREFIX=" #$output)
4460 ;; Prevent guild warnings.
4461 "GUILE_AUTO_COMPILE=0"
4462 ;; Make tests verbose and disable coverage
4463 ;; report. The coverage report fails on
4465 "TEST_FLAGS=--verbose")
4467 #~(modify-phases %standard-phases
4468 (add-after 'unpack 'fix-makefile
4470 (substitute* "Makefile"
4471 ;; CURDIR is a standard GNU Make variable. Prefer it to
4472 ;; PWD. PWD is set by the shell and is absent in the
4475 ;; Install info file at share/info, not at share.
4476 (("share doc") "share/info doc"))))
4477 (delete 'configure))))
4482 (home-page "https://git.lysator.liu.se/hugo/guile-dns")
4483 (synopsis "Guile DNS library")
4484 (description "@code{guile-dns} is a DNS library written in pure Guile
4486 (license license:gpl3+)))
4488 (define-public guile-jwt
4496 (url "https://github.com/aconchillo/guile-jwt")
4498 (file-name (git-file-name name version))
4501 "1p8sapiv5im18rjnzc8xnw6y7dr661rycf9g10z5ww0dl4rfz3z1"))))
4502 (build-system gnu-build-system)
4504 (list autoconf automake pkg-config))
4506 (list guile-json-4))
4509 (home-page "https://github.com/aconchillo/guile-jwt")
4510 (synopsis "JSON Web Token library for Guile")
4512 "guile-jwt is a JSON Web Token module for Guile. JSON Web Tokens are an
4513 open, industry standard (RFC 7519) method for representing claims securely
4514 between two parties. guile-jwt allows you to decode, verify and generate
4515 JWT. Supported algorithms: HS256, HS384, HS512.")
4516 (license license:gpl3+)))
4518 (define-public guile-sodium
4520 (name "guile-sodium")
4526 (url "https://inqlab.net/git/guile-sodium.git")
4527 (commit (string-append "v" version))))
4528 (file-name (git-file-name name version))
4529 (sha256 (base32 "189jsj87hycs57a54x0b9lifwvhr63nypb9vfxdrq7rwrpcvi5f8"))))
4530 (build-system gnu-build-system)
4533 (list autoconf automake pkg-config texinfo))
4534 (inputs (list guile-3.0))
4535 (propagated-inputs (list libsodium))
4536 (synopsis "Guile bindings to the libsodium cryptographic library")
4538 "This package provides Guile bindings to the libsodium cryptographic library
4539 which provides core cryptographic primitives needed to build higher-level
4541 (home-page "https://inqlab.net/git/guile-sodium.git")
4542 (license license:gpl3+)))
4544 (define-public guile-eris
4552 (url "https://codeberg.org/eris/guile-eris.git")
4553 (commit (string-append "v" version))))
4554 (file-name (git-file-name name version))
4555 (sha256 (base32 "0d4wbjwwaxk0zn5gjhl86qhvk1aisgzp1vnvy4xbvrv5ydqpgyqm"))))
4556 (build-system gnu-build-system)
4566 (inputs (list guile-3.0))
4568 (list guile-sodium))
4569 (synopsis "Guile implementation of the Encoding for Robust Immutable Storage (ERIS)")
4571 "Guile-ERIS is a Guile implementation of the @url{http://purl.org/eris,
4572 Encoding for Robust Immutable Storage (ERIS)}. ERIS allows arbitrary content
4573 to be encoded into uniformly sized, encrypted blocks that can be reassembled
4574 using a short read-capability.")
4575 (home-page "https://codeberg.org/eris/guile-eris")
4576 (license license:gpl3+)))
4578 (define-public guile-r6rs-protobuf
4580 (name "guile-r6rs-protobuf")
4586 (url "https://gitlab.com/joolean/r6rs-protobuf")
4587 (commit (string-append "v" version))))
4588 (file-name (git-file-name name version))
4591 "1xmn7jlr1xiqgd35klq910p1bnil1iwdvqxkjr3zzml3spy8p2aa"))))
4592 (build-system guile-build-system)
4594 `(#:compile-flags '("--r6rs")))
4597 (home-page "https://gitlab.com/joolean/r6rs-protobuf/")
4598 (synopsis "Scheme implementation of Protocol Buffers")
4600 "This project provides a pure Scheme implementation of Protocol Buffers,
4601 including parsing and code generation.")
4602 (license license:gpl3+)))
4604 (define-public guile-shapefile
4606 (name "guile-shapefile")
4612 (url "https://github.com/HugoNikanor/guile-shapefile")
4613 (commit (string-append "v" version))))
4614 (file-name (git-file-name name version))
4617 "1zvrpc8bshw9w0vhdpmhv00j07mzsdyg2f9hfabr83v08zhfi8ml"))))
4618 (build-system guile-build-system)
4621 (modify-phases %standard-phases
4622 (add-after 'unpack 'delete-pre-generated-docs
4624 (delete-file-recursively "docs")
4626 (add-after 'install 'install-info-documentation
4627 (lambda* (#:key inputs outputs #:allow-other-keys)
4628 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
4629 (doc (string-append share "/doc/" ,name "-" ,version))
4630 (info (string-append share "/info/"))
4631 (makeinfo (search-input-file inputs
4633 (invoke makeinfo "guile-shapefile.texi" "-o" info)
4639 (home-page "https://github.com/HugoNikanor/guile-shapefile")
4640 (synopsis "Parse shapefiles in Guile")
4642 "Guile Shapefile is a Guile library for reading shapefiles.")
4643 (license license:expat)))
4645 (define-public guile-drmaa
4647 (name "guile-drmaa")
4653 (url "https://git.elephly.net/software/guile-drmaa.git")
4655 (file-name (git-file-name name version))
4658 "1pail39f3iwllcdma4pk4sxsaypplgb5zjyvjwqf5hdv8s3y211x"))))
4659 (build-system gnu-build-system)
4661 (list autoconf automake pkg-config texinfo sed))
4665 (list guile-bytestructures nyacc))
4666 (home-page "https://git.elephly.net/software/guile-drmaa.git")
4667 (synopsis "Guile bindings to DRMAA")
4668 (description "This project provides Guile bindings to the DRMAA library
4669 version 1. DRMAA is a resource management library implemented by HPC cluster
4671 (license license:gpl3+)))
4673 (define-public guile-libyaml
4674 (let ((commit "2bdacb72a65ab63264b2edc9dac9692df7ec9b3e")
4677 (name "guile-libyaml")
4678 (version (git-version "0" revision commit))
4683 (url "https://github.com/mwette/guile-libyaml")
4685 (file-name (git-file-name name version))
4688 "1bssby1ri1vjll2rvi8b33xr2ghwjyxsd4yc15najj3h8n2ss87i"))))
4689 (build-system gnu-build-system)
4691 `(#:modules (((guix build guile-build-system)
4693 ,@%gnu-build-system-modules)
4694 #:imported-modules ((guix build guile-build-system)
4695 ,@%gnu-build-system-modules)
4696 #:tests? #false ; there are none
4698 (modify-phases %standard-phases
4700 (add-after 'unpack 'remove-unused-files
4701 (lambda* (#:key inputs #:allow-other-keys)
4702 (for-each delete-file '("guix.scm" "demo1.yml" "demo1.scm"))))
4703 (add-before 'build 'build-ffi
4704 (lambda* (#:key inputs #:allow-other-keys)
4705 (invoke "guild" "compile-ffi"
4706 "--no-exec" ; allow us to patch the generated file
4708 (substitute* "yaml/libyaml.scm"
4709 (("dynamic-link \"libyaml\"")
4710 (format #false "dynamic-link \"~a/lib/libyaml\""
4711 (assoc-ref inputs "libyaml"))))))
4713 (assoc-ref guile:%standard-phases 'build))
4714 (delete 'install))))
4716 (list guile-3.0 libyaml))
4718 (list guile-bytestructures nyacc))
4719 (home-page "https://github.com/mwette/guile-libyaml")
4720 (synopsis "Guile wrapper for libyaml")
4722 "This package provides a simple yaml module for Guile using the
4723 ffi-helper from nyacc.")
4724 (license license:lgpl3+))))
4726 (define-public schmutz
4727 (let ((commit "add24588c59552537b8f1316df99a0cdd62c221e")
4731 (version (git-version "0" revision commit))
4735 (url "https://github.com/arximboldi/schmutz")
4737 (file-name (git-file-name name version))
4740 "1z3n61sj62lnn15mandvyrpjzli07rp9r62ypvgg3a8bvh37yc89"))))
4741 (build-system cmake-build-system)
4742 (arguments `(#:tests? #f))
4747 (home-page "https://github.com/arximboldi/schmutz")
4748 (synopsis "Bind C++ code to Scheme")
4749 (description "Schmutz is a header-only library to declare Scheme bindings
4750 for C++ code using a simple embedded DSL. Think of it as @code{Boost.Python}
4751 or @code{LuaBind} but for Scheme.")
4752 (license license:boost1.0))))
4754 (define-public guile-cbor
4762 (url "https://inqlab.net/git/guile-cbor.git")
4763 (commit (string-append "v" version))))
4764 (file-name (git-file-name name version))
4765 (sha256 (base32 "0bdqg3ifayf7m2j09lqrgdfprbdaa67azf09bcq9b4k71inxfnxl"))))
4766 (build-system gnu-build-system)
4769 (list autoconf automake pkg-config texinfo))
4770 (inputs (list guile-3.0))
4771 (synopsis "Guile implementation of CBOR")
4773 "The Concise Binary Object Representation (CBOR), as specified by RFC 8949, is
4774 a binary data serialization format. CBOR is similar to JSON but serializes to
4775 binary which is smaller and faster to generate and parse. This package provides
4776 a Guile implementation of CBOR.")
4777 (home-page "https://inqlab.net/git/guile-cbor.git")
4778 (license license:gpl3+)))
4780 (define-public guile-quickcheck
4782 (name "guile-quickcheck")
4786 (uri (string-append "https://files.ngyro.com/"
4787 "guile-quickcheck/guile-quickcheck-"
4791 "03mwi1l3354x52nar0zwhcm0x29yai9xjln4p4gbchwvx5dsr6fb"))))
4792 (build-system gnu-build-system)
4797 (home-page "https://ngyro.com/software/guile-quickcheck.html")
4798 (synopsis "Randomized property-based testing for Guile")
4799 (description "Guile-Quickcheck is a library for random testing of program
4800 properties inspired by ghc-quickcheck. You can use it to express properties,
4801 which functions should satisfy, as Scheme code and then check whether they hold
4802 in a large number of randomly generated test cases.")
4803 (license license:gpl3+)))
4805 (define-public guile-fslib
4807 (name "guile-fslib")
4813 (url "https://notabug.org/ZelphirKaltstahl/guile-fslib/")
4815 (file-name (git-file-name name version))
4818 "118d84p443w7hrslv8hjyhgws631ia08mggiyklkmk0b9plfdsvz"))))
4819 (build-system guile-build-system)
4822 (home-page "https://notabug.org/ZelphirKaltstahl/guile-fslib")
4823 (synopsis "Helper functions for working with locations in file systems")
4825 "This package contains helper functions for working with file system
4827 (license license:agpl3+)))
4829 (define-public guile-netlink
4831 (name "guile-netlink")
4837 (url "https://git.lepiller.eu/git/guile-netlink")
4839 (file-name (git-file-name name version))
4842 "0jcl6mzqy04if5drflmygmggbgzsxa42mlmskqb3cfqmksq0zj0y"))))
4843 (build-system gnu-build-system)
4850 guile-3.0 ;for 'guild compile' + guile.m4
4852 (home-page "https://git.lepiller.eu/guile-netlink")
4853 (synopsis "Netlink protocol implementation for Guile")
4854 (description "Guile Netlink is a GNU Guile library providing an implementation
4855 of the netlink protocol.
4857 It provides a generic library for writing implementations of a netlink
4858 protocol, a low-level rtnetlink implementation that uses that library and a
4859 high-level API for network management that uses rtnetlink.")
4860 (license license:gpl3+)))
4862 (define-public guile-gitlab
4864 (name "guile-gitlab")
4870 (url "https://github.com/artyom-poptsov/guile-gitlab")
4871 (commit (string-append "v" version))))
4872 (file-name (string-append name "-" version))
4875 "0srkmchd4kmfa7q65r6fdzwklhgdlck1ll0s7smzs8ddjdgz2lwm"))))
4876 (build-system gnu-build-system)
4878 `(#:make-flags '("GUILE_AUTO_COMPILE=0") ;to prevent guild warnings
4879 #:modules (((guix build guile-build-system)
4880 #:select (target-guile-effective-version))
4881 ,@%gnu-build-system-modules)
4882 #:imported-modules ((guix build guile-build-system)
4883 ,@%gnu-build-system-modules)
4885 (modify-phases %standard-phases
4886 (add-after 'install 'wrap-program
4887 (lambda* (#:key inputs outputs #:allow-other-keys)
4888 (let* ((out (assoc-ref outputs "out"))
4889 (bin (string-append out "/bin"))
4890 (guile-lib (assoc-ref inputs "guile-lib"))
4891 (json (assoc-ref inputs "guile-json"))
4892 (tls (assoc-ref inputs "guile-gnutls"))
4893 (version (target-guile-effective-version))
4894 (scm (string-append "/share/guile/site/"
4896 (go (string-append "/lib/guile/"
4897 version "/site-ccache")))
4898 (wrap-program (string-append bin "/gitlab-cli")
4899 `("GUILE_LOAD_PATH" prefix
4900 (,(string-append out scm)
4901 ,(string-append guile-lib scm)
4902 ,(string-append json scm)
4903 ,(string-append tls scm)))
4904 `("GUILE_LOAD_COMPILED_PATH" prefix
4905 (,(string-append out go)
4906 ,(string-append guile-lib go)
4907 ,(string-append json go)
4908 ,(string-append tls go))))))))))
4910 (list autoconf automake pkg-config texinfo))
4912 `(("bash" ,bash-minimal)
4913 ("guile" ,guile-2.2)
4914 ("guile-json" ,guile2.2-json)
4915 ("guile-lib" ,guile2.2-lib)
4916 ("guile-gnutls" ,guile2.2-gnutls)))
4917 (home-page "https://github.com/artyom-poptsov/guile-gitlab")
4918 (synopsis "Guile interface to GitLab")
4920 "This package provides bindings to the GitLab Community Edition REST API
4921 as well as the @samp{gitlab-cli} command line tool for interacting with a
4923 (license license:gpl3)))
4925 (define-public guile-smc
4933 (url "https://github.com/artyom-poptsov/guile-smc")
4934 (commit (string-append "v" version))))
4935 (file-name (string-append name "-" version))
4938 "05q20vi59whjs7jb8bgcxnnfy6c3wx26m5ps2fwlsz52nggarxzb"))))
4939 (build-system gnu-build-system)
4941 `(#:make-flags '("GUILE_AUTO_COMPILE=0") ;to prevent guild warnings
4942 #:modules (((guix build guile-build-system)
4943 #:select (target-guile-effective-version))
4944 ,@%gnu-build-system-modules)
4945 #:imported-modules ((guix build guile-build-system)
4946 ,@%gnu-build-system-modules)
4948 (modify-phases %standard-phases
4950 (add-after 'install 'wrap-program
4951 (lambda* (#:key inputs outputs #:allow-other-keys)
4952 (let* ((out (assoc-ref outputs "out"))
4953 (bin (string-append out "/bin"))
4954 (guile-lib (assoc-ref inputs "guile-lib"))
4955 (version (target-guile-effective-version))
4956 (scm (string-append "/share/guile/site/"
4958 (go (string-append "/lib/guile/"
4959 version "/site-ccache")))
4960 (wrap-program (string-append bin "/smc")
4961 `("GUILE_LOAD_PATH" prefix
4962 (,(string-append out scm)
4963 ,(string-append guile-lib scm)))
4964 `("GUILE_LOAD_COMPILED_PATH" prefix
4965 (,(string-append out go)
4966 ,(string-append guile-lib go))))))))))
4968 (list autoconf automake pkg-config texinfo help2man which))
4970 (list bash-minimal guile-3.0 guile-lib inetutils))
4971 (home-page "https://github.com/artyom-poptsov/guile-smc")
4972 (synopsis "GNU Guile state machine compiler")
4974 "Guile-SMC is a state machine compiler that allows users to describe
4975 finite state machines (FSMs) in Scheme in terms of transition tables. It is
4976 capable to generate such transition tables from a @url{https://plantuml.com/,
4977 PlantUML} state diagrams.
4979 A transition table can be verified and checked for dead-ends and infinite
4980 loops. Also Guile-SMC FSMs gather statistics when they run.
4982 Guile-SMC comes with a Scheme program called @command{smc} -- a state machine
4983 compiler itself. It produces a Scheme code for an FSM from the PlantUML
4984 format. This tool is meant to be called on a PlantUML file when a program
4985 with a FSM is being built (for example, from a Makefile.)")
4986 (license license:gpl3)))
4988 (define-public guile2.2-smc
4991 (name "guile2.2-smc")
4992 (inputs (modify-inputs (package-inputs guile-smc)
4993 (replace "guile" guile-2.2)
4994 (replace "guile-lib" guile2.2-lib)))))
4996 (define-public guile-ini
5003 (url "https://github.com/artyom-poptsov/guile-ini")
5004 (commit (string-append "v" version))))
5005 (file-name (string-append name "-" version))
5008 "17fbys3gsfyx4f77a2fswirx76dlr57il2z27z77wljaz777jk36"))))
5009 (build-system gnu-build-system)
5011 `(#:make-flags '("GUILE_AUTO_COMPILE=0") ;to prevent guild warnings
5012 #:phases (modify-phases %standard-phases
5014 (native-inputs (list autoconf automake pkg-config texinfo))
5015 (inputs (list bash-minimal guile-3.0 guile-lib))
5016 (propagated-inputs (list guile-smc))
5017 (home-page "https://github.com/artyom-poptsov/guile-ini")
5018 (synopsis "Guile library for INI format support")
5020 "@code{guile-ini} is a GNU Guile library for working with the
5021 @url{https://en.wikipedia.org/wiki/INI_file, INI format}. This library
5022 provides API for reading and writing INI data.")
5023 (license license:gpl3)))
5025 (define-public guile-schemetran
5026 (let ((commit "3f5e15273ee88ba60ad8caf2de6302ad2bab582b")
5029 (name "guile-schemetran")
5030 (version (git-version "0" revision commit))
5035 (url "https://gitlab.com/codetk/schemetran")
5037 (file-name (git-file-name name version))
5040 "1r4nq7wmy854hvbkcc23sidn4kq3p7r4p15y5czwvd52p9djff3m"))))
5041 (build-system guile-build-system)
5043 (list #:not-compiled-file-regexp "/doc/.*\\.scm$"
5044 #:source-directory "src"))
5047 (home-page "https://gitlab.com/codetk/schemetran")
5048 (synopsis "Write Fortran in Scheme")
5050 "Fortran is great in expressing operations on multi-dimensional arrays
5051 of numbers. Scheme is great at expressing your coding thoughts. This project
5052 is an attempt to combine both into something useful.")
5053 (license license:asl2.0))))
5055 (define-public guile-kolam
5057 (name "guile-kolam")
5062 (uri (string-append "https://kolam.systemreboot.net/releases/kolam-"
5066 "083r3n3wvzysa9jhlwjj1xppdm6ja56rkizr6hvj4q1806v8n6mn"))))
5067 (build-system gnu-build-system)
5069 '(#:make-flags '("GUILE_AUTO_COMPILE=0"))) ; to prevent guild warnings
5071 (list guile-3.0 lzip))
5073 (list guile-json-4))
5074 (home-page "https://kolam.systemreboot.net")
5075 (synopsis "GraphQL implementation for Scheme")
5076 (description "@code{guile-kolam} is a GraphQL implementation for Scheme. kolam
5077 features a parser to parse and serialize GraphQL documents, a type system to
5078 create GraphQL schemas, an execution engine to execute GraphQL queries, and a
5079 HTTP handler to implement a HTTP GraphQL endpoint.")
5080 (license license:agpl3+)))
5082 (define-public lokke
5083 (let ((commit "92d36370dc6d218ff3bf315e56ebef93808c1b79")
5087 (version (git-version "0.0.0" revision commit))
5088 (home-page "https://github.com/lokke-org/lokke")
5091 (uri (git-reference (url home-page) (commit commit)))
5092 (file-name (git-file-name name version))
5095 "1c913md4dcfb0x4n26wbx9wdw453wxg3c5rn49k3f6j8zjqv63yv"))))
5096 (build-system gnu-build-system)
5099 (modify-phases %standard-phases
5100 (add-before 'bootstrap 'pre-bootstrap
5102 (for-each patch-shebang
5103 '("setup" "gen-makefile"
5104 "dev/gen-module-paths"
5106 (invoke "./setup")))
5107 (add-before 'build 'set-home
5109 (setenv "HOME" (getcwd)))))))
5117 ;; Use Guile >= 3.0.8 to work around
5118 ;; <https://bugs.gnu.org/49305>.
5122 (synopsis "Clojure implementation in Guile")
5124 "Lokke intends to provide a full dialect of Clojure for Guile. It also
5125 consists of a set of Guile modules providing some of Clojure's functionality
5126 in two different guises.")
5127 ;; Dual license: LGPLv2.1+ or EPLv1.0+ at the user's option.
5128 (license (list license:lgpl2.1+ license:epl1.0)))))
5130 (define-public guile-tap
5137 (url "https://github.com/ft/guile-tap")
5138 (commit (string-append "v" version))))
5139 (file-name (git-file-name name version))
5142 "04ip5cbvsjjcicsri813f4711yh7db6fvc2px4788rl8p1iqvi6x"))))
5143 (build-system gnu-build-system)
5146 #~(modify-phases %standard-phases
5149 (substitute* "Makefile"
5150 (("PREFIX = /usr/local") (string-append "PREFIX="
5155 (invoke "make" "-C" "doc" "man")
5156 (invoke "make" "install")))
5158 (lambda* (#:key tests? #:allow-other-keys)
5160 (invoke "make" "test")))))))
5161 (native-inputs (list guile-3.0 pandoc))
5162 (home-page "https://github.com/ft/guile-tap")
5163 (synopsis "Guile test framework that emits TAP output")
5165 "guile-tap is a library for GNU Guile that implements a framework for
5166 specifying test cases that emit output that adheres to the Test Anything
5167 Protocol (TAP). It comes with an experimental harness (tap-harness).")
5168 (license license:bsd-2)))
5170 (define-public guile-termios
5172 (name "guile-termios")
5177 (url "https://github.com/ft/guile-termios")
5178 (commit (string-append "v" version))))
5179 (file-name (git-file-name name version))
5182 "020p3c84z09wyyb6gfzj2x6q2rfmvas7c92fcm2hhg8z1q60sqkg"))))
5183 (build-system gnu-build-system)
5186 #~(modify-phases %standard-phases
5189 (substitute* "Makefile"
5190 (("CC = cc") (string-append "CC="
5192 (("PREFIX = /usr/local") (string-append "PREFIX="
5197 (invoke "make" "-C" "doc" "man")
5198 (invoke "make" "install")))
5200 (lambda* (#:key tests? #:allow-other-keys)
5202 (invoke "make" "test")))))))
5203 (native-inputs (list guile-3.0 guile-tap pandoc perl perl-io-tty))
5204 (home-page "https://github.com/ft/guile-termios")
5205 (synopsis "POSIX termios interface for GNU Guile")
5207 "To query and change settings of serial devices on POSIX systems, the
5208 termios API is used. GNU Guile doesn't have an interface for that built in.
5209 This module implements this interface by use of Guile's dynamic FFI.")
5210 (license license:bsd-2)))
5212 (define-public guile-goblins
5214 (name "guile-goblins")
5220 (url "https://gitlab.com/spritely/guile-goblins/")
5221 (commit (string-append "v" version))))
5222 (file-name (string-append name "-" version))
5225 "1mmyykh79jwhrfgnhhw94aw7a8m6qw249kj7k60ynj16mcfm5iyy"))))
5226 (build-system gnu-build-system)
5229 #~(list "GUILE_AUTO_COMPILE=0")))
5231 (list autoconf automake pkg-config texinfo))
5232 (inputs (list guile-3.0))
5234 (list guile-fibers guile-gcrypt))
5235 (home-page "https://spritely.institute/goblins")
5236 (synopsis "Distributed programming environment for Guile")
5237 ;; In guile-goblins 0.9, OCapN support will be added (it already
5238 ;; exists in racket-goblins). At that point we should add the
5239 ;; following to this description:
5241 ;; Goblins allows for cooperation between networked programs
5242 ;; in a mutually suspicious network through OCapN, the Object
5243 ;; Capability Network. This includes collaboration across
5244 ;; runtimes; for instance, programs written in the Guile and Racket
5245 ;; versions of Goblins are able to speak to each other.
5247 "@code{guile-goblins} is the Guile version of
5248 @url{https://spritely.institute/goblins, Spritely Goblins},
5249 a transactional, distributed programming environment following object
5250 capability security designs. Goblins is a general toolkit, and also
5251 the core layer of Spritely's work to support healthy distributed
5252 networked communities.")
5253 (license license:asl2.0)))
5256 ;;; Avoid adding new packages to the end of this file. To reduce the chances
5257 ;;; of a merge conflict, place them above by existing packages with similar
5258 ;;; functionality or similar names.