1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2014, 2015, 2018 Mark H Weaver <mhw@netris.org>
4 ;;; Copyright © 2015, 2017 Christopher Allan Webber <cwebber@dustycloud.org>
5 ;;; Copyright © 2016 Alex Sassmannshausen <alex@pompo.co>
6 ;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2016 Erik Edrosa <erik.edrosa@gmail.com>
8 ;;; Copyright © 2016, 2019, 2020, 2021 Eraim Flashner <efraim@flashner.co.il>
9 ;;; Copyright © 2016, 2017 Alex Kost <alezost@gmail.com>
10 ;;; Copyright © 2016, 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@openmailbox.org>
11 ;;; Copyright © 2016 Amirouche <amirouche@hypermove.net>
12 ;;; Copyright © 2016, 2019 Jan Nieuwenhuizen <janneke@gnu.org>
13 ;;; Copyright © 2017 Andy Wingo <wingo@igalia.com>
14 ;;; Copyright © 2017 David Thompson <davet@gnu.org>
15 ;;; Copyright © 2017, 2018, 2019, 2020 Mathieu Othacehe <m.othacehe@gmail.com>
16 ;;; Copyright © 2017 Theodoros Foradis <theodoros@foradis.org>
17 ;;; Copyright © 2017 Nikita <nikita@n0.is>
18 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
19 ;;; Copyright © 2018 Maxim Cournoyer <maxim.cournoyer@gmail.com>
20 ;;; Copyright © 2018, 2019, 2020 Arun Isaac <arunisaac@systemreboot.net>
21 ;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
22 ;;; Copyright © 2018 Eric Bavier <bavier@member.fsf.org>
23 ;;; Copyright © 2019 swedebugia <swedebugia@riseup.net>
24 ;;; Copyright © 2019, 2020 Amar Singh <nly@disroot.org>
25 ;;; Copyright © 2019 Timothy Sample <samplet@ngyro.com>
26 ;;; Copyright © 2019, 2020 Martin Becze <mjbecze@riseup.net>
27 ;;; Copyright © 2020 Evan Straw <evan.straw99@gmail.com>
28 ;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
29 ;;; Copyright © 2020 Julien Lepiler <julien@lepiller.eu>
30 ;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
31 ;;; Copyright © 2020 Masaya Tojo <masaya@tojo.tokyo>
32 ;;; Copyright © 2020 Jesse Gibbons <jgibbons2357@gmail.com>
33 ;;; Copyright © 2020 Mike Rosset <mike.rosset@gmail.com>
34 ;;; Copyright © 2020 Leo Prikler <leo.prikler@student.tugraz.at>
35 ;;; Copyright © 2020, 2021 pukkamustard <pukkamustard@posteo.net>
36 ;;; Copyright © 2021 Bonface Munyoki Kilyungi <me@bonfacemunyoki.com>
38 ;;; This file is part of GNU Guix.
40 ;;; GNU Guix is free software; you can redistribute it and/or modify it
41 ;;; under the terms of the GNU General Public License as published by
42 ;;; the Free Software Foundation; either version 3 of the License, or (at
43 ;;; your option) any later version.
45 ;;; GNU Guix is distributed in the hope that it will be useful, but
46 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
47 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48 ;;; GNU General Public License for more details.
50 ;;; You should have received a copy of the GNU General Public License
51 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
53 (define-module (gnu packages guile-xyz)
54 #:use-module ((guix licenses) #:prefix license:)
55 #:use-module (gnu packages)
56 #:use-module (gnu packages algebra)
57 #:use-module (gnu packages aspell)
58 #:use-module (gnu packages autotools)
59 #:use-module (gnu packages avahi)
60 #:use-module (gnu packages base)
61 #:use-module (gnu packages bash)
62 #:use-module (gnu packages compression)
63 #:use-module (gnu packages crypto)
64 #:use-module (gnu packages databases)
65 #:use-module (gnu packages disk)
66 #:use-module (gnu packages emacs)
67 #:use-module (gnu packages emacs-xyz)
68 #:use-module (gnu packages gawk)
69 #:use-module (gnu packages gettext)
70 #:use-module (gnu packages gl)
71 #:use-module (gnu packages glib)
72 #:use-module (gnu packages gnome)
73 #:use-module (gnu packages gnupg)
74 #:use-module (gnu packages gperf)
75 #:use-module (gnu packages gstreamer)
76 #:use-module (gnu packages gtk)
77 #:use-module (gnu packages guile)
78 #:use-module (gnu packages hurd)
79 #:use-module (gnu packages image)
80 #:use-module (gnu packages imagemagick)
81 #:use-module (gnu packages libffi)
82 #:use-module (gnu packages libunistring)
83 #:use-module (gnu packages linux)
84 #:use-module (gnu packages man)
85 #:use-module (gnu packages maths)
86 #:use-module (gnu packages mes)
87 #:use-module (gnu packages multiprecision)
88 #:use-module (gnu packages ncurses)
89 #:use-module (gnu packages networking)
90 #:use-module (gnu packages noweb)
91 #:use-module (gnu packages nss)
92 #:use-module (gnu packages password-utils)
93 #:use-module (gnu packages perl)
94 #:use-module (gnu packages pkg-config)
95 #:use-module (gnu packages python)
96 #:use-module (gnu packages readline)
97 #:use-module (gnu packages sdl)
98 #:use-module (gnu packages search)
99 #:use-module (gnu packages slang)
100 #:use-module (gnu packages sqlite)
101 #:use-module (gnu packages swig)
102 #:use-module (gnu packages tex)
103 #:use-module (gnu packages texinfo)
104 #:use-module (gnu packages tls)
105 #:use-module (gnu packages version-control)
106 #:use-module (gnu packages web)
107 #:use-module (gnu packages webkit)
108 #:use-module (gnu packages xdisorg)
109 #:use-module (gnu packages xorg)
110 #:use-module (guix packages)
111 #:use-module (guix download)
112 #:use-module (guix git-download)
113 #:use-module (guix hg-download)
114 #:use-module (guix build-system cmake)
115 #:use-module (guix build-system glib-or-gtk)
116 #:use-module (guix build-system gnu)
117 #:use-module (guix build-system guile)
118 #:use-module (guix utils)
119 #:use-module (ice-9 match)
120 #:use-module ((srfi srfi-1) #:select (alist-delete)))
122 (define-public artanis
128 (uri (string-append "mirror://gnu/artanis/artanis-"
132 "0nnmdfx5xwcc3kck64var7msz7g3qk817d7bv9l159nkmic0v9w4"))
133 (modules '((guix build utils)))
136 ;; Unbundle guile-redis and guile-json
137 (delete-file-recursively "artanis/third-party/json.scm")
138 (delete-file-recursively "artanis/third-party/json")
139 (delete-file-recursively "artanis/third-party/redis.scm")
140 (delete-file-recursively "artanis/third-party/redis")
141 (substitute* '("artanis/artanis.scm"
144 (("(#:use-module \\()artanis third-party (json\\))" _
146 (string-append use-module json)))
147 (substitute* '("artanis/lpc.scm"
148 "artanis/session.scm")
149 (("(#:use-module \\()artanis third-party (redis\\))" _
151 (string-append use-module redis)))
152 (substitute* "artanis/oht.scm"
153 (("([[:punct:][:space:]]+)(->json-string)([[:punct:][:space:]]+)"
154 _ pre json-string post)
158 (substitute* "artanis/artanis.scm"
159 (("[[:punct:][:space:]]+->json-string[[:punct:][:space:]]+")
162 (build-system gnu-build-system)
164 `(("guile" ,guile-2.2)
166 ;; FIXME the bundled csv contains one more exported procedure
167 ;; (sxml->csv-string) than guile-csv. The author is maintainer of both
169 ;; TODO: Add guile-dbi and guile-dbd optional dependencies.
171 `(("guile-json" ,guile-json-1) ; This is already using guile-2.2.
172 ("guile-readline" ,guile2.2-readline)
173 ("guile-redis" ,guile2.2-redis)))
175 `(("bash" ,bash) ;for the `source' builtin
176 ("pkgconfig" ,pkg-config)
177 ("util-linux" ,util-linux))) ;for the `script' command
180 ;; TODO: The documentation must be built with the `docs' target.
181 (let* ((out (assoc-ref %outputs "out"))
182 (scm (string-append out "/share/guile/site/2.2"))
183 (go (string-append out "/lib/guile/2.2/site-ccache")))
184 ;; Don't use (%site-dir) for site paths.
185 (list (string-append "MOD_PATH=" scm)
186 (string-append "MOD_COMPILED_PATH=" go)))
189 (modify-phases %standard-phases
190 (add-after 'unpack 'patch-site-dir
191 (lambda* (#:key outputs #:allow-other-keys)
192 (substitute* "artanis/commands/help.scm"
195 (assoc-ref outputs "out")
196 "/share/guile/site/2.2\"")))))
197 (add-after 'unpack 'patch-reference-to-libnss
198 (lambda* (#:key inputs #:allow-other-keys)
199 (substitute* "artanis/security/nss.scm"
200 (("ffi-binding \"libnss3\"")
203 (assoc-ref inputs "nss") "/lib/nss/libnss3.so"
206 (add-before 'install 'substitute-root-dir
207 (lambda* (#:key outputs #:allow-other-keys)
208 (let ((out (assoc-ref outputs "out")))
209 (substitute* "Makefile" ;ignore the execution of bash.bashrc
210 ((" /etc/bash.bashrc") " /dev/null"))
211 (substitute* "Makefile" ;set the root of config files to OUT
212 ((" /etc") (string-append " " out "/etc")))
213 (mkdir-p (string-append out "/bin")) ;for the `art' executable
215 (add-after 'install 'wrap-art
216 (lambda* (#:key inputs outputs #:allow-other-keys)
217 (let* ((out (assoc-ref outputs "out"))
218 (bin (string-append out "/bin"))
219 (scm (string-append out "/share/guile/site/2.2"))
220 (go (string-append out "/lib/guile/2.2/site-ccache")))
221 (wrap-program (string-append bin "/art")
222 `("GUILE_LOAD_PATH" ":" prefix
223 (,scm ,(getenv "GUILE_LOAD_PATH")))
224 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
225 (,go ,(getenv "GUILE_LOAD_COMPILED_PATH"))))
227 (synopsis "Web application framework written in Guile")
228 (description "GNU Artanis is a web application framework written in Guile
229 Scheme. A web application framework (WAF) is a software framework that is
230 designed to support the development of dynamic websites, web applications, web
231 services and web resources. The framework aims to alleviate the overhead
232 associated with common activities performed in web development. Artanis
233 provides several tools for web development: database access, templating
234 frameworks, session management, URL-remapping for RESTful, page caching, and
236 (home-page "https://www.gnu.org/software/artanis/")
237 (license (list license:gpl3+ license:lgpl3+)))) ;dual license
239 ;; There has not been any release yet.
240 (define-public guildhall
241 (let ((commit "2fe2cc539f4b811bbcd69e58738db03eb5a2b778")
245 (version (string-append "0-" revision "." (string-take commit 9)))
249 (url "https://github.com/ijp/guildhall")
251 (file-name (string-append name "-" version "-checkout"))
254 "115bym7bg66h3gs399yb2vkzc2ygriaqsn4zbrg8f054mgy8wzn1"))))
255 (build-system gnu-build-system)
258 (modify-phases %standard-phases
259 ;; Tests fail without this fix because they try to load the bash
260 ;; executable as a Scheme file. See bug report at
261 ;; https://github.com/ijp/guildhall/issues/22
262 (add-after 'unpack 'fix-bug-22
264 (substitute* "Makefile.am"
265 (("TESTS_ENVIRONMENT=.*")
266 "AM_TESTS_ENVIRONMENT=srcdir=$(abs_top_srcdir)/tests/
267 TEST_EXTENSIONS = .scm
268 SCM_LOG_COMPILER= $(top_builddir)/env $(GUILE)
269 AM_SCM_LOG_FLAGS = --no-auto-compile -s")
270 ;; FIXME: one of the database tests fails for unknown
271 ;; reasons. It does not fail when run outside of Guix.
272 (("tests/database.scm") ""))
275 `(("guile" ,guile-2.0)))
277 `(("zip" ,zip) ; for tests
278 ("autoconf" ,autoconf)
279 ("automake" ,automake)
280 ("texinfo" ,texinfo)))
281 (synopsis "Package manager for Guile")
283 "Guildhall is a package manager written for Guile Scheme. A guild is
284 an association of independent craftspeople. A guildhall is where they meet.
285 This Guildhall aims to make a virtual space for Guile wizards and journeyfolk
288 On a practical level, Guildhall lets you share Scheme modules and programs
289 over the internet, and install code that has been shared by others. Guildhall
290 can handle dependencies, so when a program requires several libraries, and
291 each of those has further dependencies, all of the prerequisites for the
292 program can be installed in one go.")
293 (home-page "https://github.com/ijp/guildhall")
294 (license license:gpl3+))))
296 (define-public guile-aspell
298 (name "guile-aspell")
303 "http://lonelycactus.com/tarball/guile_aspell-"
307 "0vpk5xj9m9qc702z3khmkwhgpb949qbsyz8kw2qycda6qnxk0077"))))
308 (build-system gnu-build-system)
310 '(#:phases (modify-phases %standard-phases
311 (add-before 'configure 'set-guilesitedir
313 (substitute* "Makefile.in"
314 (("^guilesitedir =.*$")
316 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
318 (add-before 'build 'set-libaspell-file-name
319 (lambda* (#:key inputs #:allow-other-keys)
320 (let ((aspell (assoc-ref inputs "aspell")))
321 (substitute* "aspell.scm"
322 (("\"libaspell\\.so\"")
323 (string-append "\"" aspell
324 "/lib/libaspell\"")))
326 (native-inputs `(("pkg-config" ,pkg-config)))
327 (inputs `(("guile" ,guile-2.2)
329 (home-page "https://github.com/spk121/guile-aspell")
330 (synopsis "Spell-checking from Guile")
332 "guile-aspell is a Guile Scheme library for comparing a string against a
333 dictionary and suggesting spelling corrections.")
334 (license license:gpl3+)))
336 (define-public guile-bash
337 ;; This project is currently retired. It was initially announced here:
338 ;; <https://lists.gnu.org/archive/html/guile-user/2015-02/msg00003.html>.
339 (let ((commit "1eabc563ca5692b3e08d84f1f0e6fd2283284469")
343 (version (string-append "0.1.6-" revision "." (string-take commit 7)))
345 "https://anonscm.debian.org/cgit/users/kaction-guest/retired/dev.guile-bash.git")
353 "097vny990wp2qpjij6a5a5gwc6fxzg5wk56inhy18iki5v6pif1p"))
354 (file-name (string-append name "-" version "-checkout"))))
355 (build-system gnu-build-system)
358 ;; Add -I to match 'bash.pc' of Bash 4.4.
359 (list (string-append "CPPFLAGS=-I"
360 (assoc-ref %build-inputs "bash:include")
361 "/include/bash/include")
363 ;; The '.a' file is useless.
366 ;; Install 'lib/bash' as Bash 4.4 expects.
367 (string-append "--libdir=" (assoc-ref %outputs "out")
369 (native-inputs `(("pkg-config" ,pkg-config)
370 ("autoconf" ,autoconf-wrapper)
371 ("automake" ,automake)
373 ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
374 ("gettext" ,gettext-minimal)
376 ;; Bash with loadable module support, for the test
378 ("bash-full" ,bash)))
379 (inputs `(("guile" ,guile-2.0)
380 ("bash:include" ,bash "include")))
381 (synopsis "Extend Bash using Guile")
383 "Guile-Bash provides a shared library and set of Guile modules,
384 allowing you to extend Bash in Scheme. Scheme interfaces allow you to access
385 the following aspects of Bash:
389 @item setting and getting Bash variables;
390 @item creating dynamic variables;
391 @item creating Bash functions with a Scheme implementation;
392 @item reader macro for output capturing;
393 @item reader macro for evaluating raw Bash commands.
399 enable -f ~/.guix-profile/lib/bash/libguile-bash.so scm
402 and then run @command{scm example.scm}.")
403 (license license:gpl3+))))
405 (define-public guile-8sync
411 (uri (string-append "mirror://gnu/8sync/8sync-" version
415 "031wm13srak3wsnll7j2mbbi29g1pcm4swdb71ds9yn567pn20qw"))))
416 (build-system gnu-build-system)
417 (native-inputs `(("autoconf" ,autoconf)
418 ("automake" ,automake)
420 ("pkg-config" ,pkg-config)
421 ("texinfo" ,texinfo)))
423 `(#:phases (modify-phases %standard-phases
424 (add-before 'configure 'setenv
427 (setenv "GUILE_AUTO_COMPILE" "0")
429 (home-page "https://gnu.org/s/8sync/")
430 (synopsis "Asynchronous actor model library for Guile")
432 "GNU 8sync (pronounced \"eight-sync\") is an asynchronous programming
433 library for GNU Guile based on the actor model.
435 Note that 8sync is only available for Guile 2.2.")
436 (properties '((upstream-name . "8sync")))
437 (license license:lgpl3+)))
439 (define-public guile-daemon
441 (name "guile-daemon")
445 (uri (string-append "https://github.com/alezost/" name
446 "/releases/download/v" version
447 "/" name "-" version ".tar.gz"))
450 "08gaqrgjlly9k5si72vvpbr4xhq5v52l5ma5y6a7spid5dd057cy"))))
451 (build-system gnu-build-system)
453 `(("pkg-config" ,pkg-config)))
455 `(("guile" ,guile-2.2)))
456 (home-page "https://github.com/alezost/guile-daemon")
457 (synopsis "Evaluate code in a running Guile process")
459 "Guile-Daemon is a small Guile program that loads your initial
460 configuration file, and then reads and evaluates Guile expressions that
461 you send to a FIFO file.")
462 (license license:gpl3+)))
464 (define-public guile-dsv
471 (url "https://github.com/artyom-poptsov/guile-dsv")
472 (commit (string-append "v" version))))
473 (file-name (string-append name "-" version "-checkout"))
476 "1mvyc8i38j56frjh3p6vwziv8lrzlyqndz30663h5nwcp0044sdn"))))
477 (build-system gnu-build-system)
479 `(("autoconf" ,autoconf)
480 ("automake" ,automake)
481 ("pkg-config" ,pkg-config)
482 ("texinfo" ,texinfo)))
483 (inputs `(("guile" ,guile-3.0)))
484 (propagated-inputs `(("guile-lib" ,guile-lib)))
486 `(#:modules (((guix build guile-build-system)
487 #:select (target-guile-effective-version))
488 ,@%gnu-build-system-modules)
489 #:imported-modules ((guix build guile-build-system)
490 ,@%gnu-build-system-modules)
491 #:phases (modify-phases %standard-phases
492 (add-before 'configure 'set-guilesitedir
494 (substitute* "Makefile.in"
495 (("^guilesitedir =.*$")
497 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
498 (substitute* "modules/Makefile.in"
499 (("^guilesitedir =.*$")
501 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
502 (substitute* "modules/dsv/Makefile.in"
503 (("^guilesitedir =.*$")
505 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
507 (add-after 'install 'wrap-program
508 (lambda* (#:key inputs outputs #:allow-other-keys)
509 (let* ((out (assoc-ref outputs "out"))
510 (bin (string-append out "/bin"))
511 (guile-lib (assoc-ref inputs "guile-lib"))
512 (version (target-guile-effective-version))
513 (scm (string-append "/share/guile/site/"
515 (go (string-append "/lib/guile/"
516 version "/site-ccache")))
517 (wrap-program (string-append bin "/dsv")
518 `("GUILE_LOAD_PATH" prefix
519 (,(string-append out scm)
520 ,(string-append guile-lib scm)))
521 `("GUILE_LOAD_COMPILED_PATH" prefix
522 (,(string-append out go)
523 ,(string-append guile-lib go)))))
525 (home-page "https://github.com/artyom-poptsov/guile-dsv")
526 (synopsis "DSV module for Guile")
528 "Guile-DSV is a GNU Guile module for working with the
529 delimiter-separated values (DSV) data format. Guile-DSV supports the
530 Unix-style DSV format and RFC 4180 format.")
531 (license license:gpl3+)))
533 (define-public guile2.2-dsv
536 (name "guile2.2-dsv")
537 (inputs `(("guile" ,guile-2.2)))
538 (propagated-inputs `(("guile-lib" ,guile2.2-lib)))))
540 (define-public guile-fibers
542 (name "guile-fibers")
546 (uri (string-append "https://wingolog.org/pub/fibers/fibers-"
550 "0vjkg72ghgdgphzbjz9ig8al8271rq8974viknb2r1rg4lz92ld0"))
551 (modules '((guix build utils)))
554 ;; Allow builds with Guile 3.0.
555 (substitute* "configure"
556 (("search=\"2\\.2\"")
557 "search=\"3.0 2.2\""))
559 ;; Explicitly include system headers rather than relying on
560 ;; <libguile.h> to do it for us.
561 (substitute* "epoll.c"
562 (("#include.*libguile\\.h.*$" all)
563 (string-append "#include <unistd.h>\n"
564 "#include <string.h>\n"
567 ;; Import (ice-9 threads) for 'current-processor-count'.
568 (substitute* "tests/channels.scm"
569 (("#:use-module \\(fibers\\)")
570 (string-append "#:use-module (fibers)\n"
571 "#:use-module (ice-9 threads)\n")))
574 ;; fixes a resource leak that causes crashes in the tests
575 (search-patches "guile-fibers-destroy-peer-schedulers.patch"))))
576 (build-system gnu-build-system)
578 '(;; The code uses 'scm_t_uint64' et al., which are deprecated in 3.0.
579 #:configure-flags '("CFLAGS=-Wno-error=deprecated-declarations")
580 #:phases (modify-phases %standard-phases
581 (add-after 'install 'mode-guile-objects
582 (lambda* (#:key outputs #:allow-other-keys)
583 ;; .go files are installed to "lib/guile/X.Y/cache".
584 ;; This phase moves them to "…/site-ccache".
585 (let* ((out (assoc-ref outputs "out"))
586 (lib (string-append out "/lib/guile"))
587 (old (car (find-files lib "^ccache$"
589 (new (string-append (dirname old)
591 (rename-file old new)
594 `(("texinfo" ,texinfo)
595 ("pkg-config" ,pkg-config)))
597 `(("guile" ,guile-3.0)))
598 (synopsis "Lightweight concurrency facility for Guile")
600 "Fibers is a Guile library that implements a a lightweight concurrency
601 facility, inspired by systems like Concurrent ML, Go, and Erlang. A fiber is
602 like a \"goroutine\" from the Go language: a lightweight thread-like
603 abstraction. Systems built with Fibers can scale up to millions of concurrent
604 fibers, tens of thousands of concurrent socket connections, and many parallel
605 cores. The Fibers library also provides Concurrent ML-like channels for
606 communication between fibers.
608 Note that Fibers makes use of some Guile 2.1/2.2-specific features and
609 is not available for Guile 2.0.")
610 (home-page "https://github.com/wingo/fibers")
611 (license license:lgpl3+)))
613 (define-public guile2.0-fibers
615 (inherit guile-fibers)
616 (name "guile2.2-fibers")
617 (inputs `(("guile" ,guile-2.2)))))
619 (define-public guile3.0-fibers
620 (deprecated-package "guile3.0-fibers" guile-fibers))
622 (define-public guile-filesystem
624 (name "guile-filesystem")
629 (url "https://gitlab.com/leoprikler/guile-filesystem.git")
631 (file-name (git-file-name name version))
634 "1shmkc0y9r2sj3kw7hrsnamnp7y8xifkhf3m3rnfxczqg63k67vy"))))
635 (build-system gnu-build-system)
637 `(("autoconf" ,autoconf-wrapper)
638 ("automake" ,automake)
639 ("pkg-config" ,pkg-config)
640 ("texinfo" ,texinfo)))
642 `(("guile" ,guile-3.0)))
643 (home-page "https://gitlab.com/leoprikler/guile-filesystem")
644 (synopsis "Complementary library to Guile's built-in file system procedures")
645 (description "@code{guile-filesystem} provides a set of utility functions,
646 that augment Guile's support for handling files and their names.")
647 (license license:lgpl3+)))
649 (define-public guile2.0-filesystem
651 (inherit guile-filesystem)
652 (name "guile2.0-filesystem")
653 (inputs `(("guile" ,guile-2.0)))))
655 (define-public guile2.2-filesystem
657 (inherit guile-filesystem)
658 (name "guile2.2-filesystem")
659 (inputs `(("guile" ,guile-2.2)))))
661 (define-public guile-syntax-highlight
663 (name "guile-syntax-highlight")
667 (uri (string-append "https://files.dthompson.us/"
668 "guile-syntax-highlight/"
669 "guile-syntax-highlight-"
673 "1p771kq15x83483m23bhah1sz6vkalg3drm7x279f4j1cxligkzi"))
674 (modules '((guix build utils)))
677 ;; Allow builds with Guile 3.0.
678 (substitute* "configure"
682 (build-system gnu-build-system)
684 `(("pkg-config" ,pkg-config)))
686 `(("guile" ,guile-3.0)))
687 (synopsis "General-purpose syntax highlighter for GNU Guile")
688 (description "Guile-syntax-highlight is a general-purpose syntax
689 highlighting library for GNU Guile. It can parse code written in various
690 programming languages into a simple s-expression that can be converted to
691 HTML (via SXML) or any other format for rendering.")
692 (home-page "https://dthompson.us/projects/guile-syntax-highlight.html")
693 (license license:lgpl3+)))
695 (define-public guile2.2-syntax-highlight
697 (inherit guile-syntax-highlight)
698 (name "guile2.2-syntax-highlight")
699 (inputs `(("guile" ,guile-2.2)))))
701 (define-public guile3.0-syntax-highlight
702 (deprecated-package "guile3.0-syntax-highlight" guile-syntax-highlight))
704 (define-public guile-sjson
710 (uri (string-append "https://dustycloud.org/misc/sjson-" version
714 "1mzmapln79vv10qxaggz9qwcdbag3jnrj19xx8bgkmxss8h03sv3"))
715 (modules '((guix build utils)))
718 ;; Allow builds with Guile 3.0.
719 (substitute* "configure"
723 (build-system gnu-build-system)
725 `(("autoconf" ,autoconf)
726 ("automake" ,automake)
727 ("pkg-config" ,pkg-config)))
729 `(("guile" ,guile-3.0)))
730 (home-page "https://gitlab.com/dustyweb/guile-sjson")
731 (synopsis "S-expression based json reader/writer for Guile")
732 (description "guile-sjson is a json reader/writer for Guile.
733 It has a nice, simple s-expression based syntax.")
734 (license license:lgpl3+)))
736 (define-public guile2.2-sjson
738 (inherit guile-sjson)
739 (name "guile2.2-sjson")
740 (inputs `(("guile" ,guile-2.2)))))
742 (define-public guile-squee
743 (let ((commit "c1497a216e881cfde39d6aa7c73d0bf6b497c89b")
747 (version (string-append "0-" revision "." (string-take commit 7)))
751 (url "https://notabug.org/cwebber/guile-squee.git")
753 (file-name (git-file-name name version))
756 "1alskrplnyl1n5wb39drn72cwplp47a8cpdd1n9cdnw3jhk5p12p"))))
757 (build-system guile-build-system)
760 (modify-phases %standard-phases
761 (add-after 'unpack 'patch
762 (lambda* (#:key inputs #:allow-other-keys)
763 (substitute* "squee.scm"
764 (("dynamic-link \"libpq\"")
767 (assoc-ref inputs "postgresql") "/lib/libpq.so"
771 `(("postgresql" ,postgresql)))
773 `(("guile" ,guile-3.0)))
774 (home-page "https://notabug.org/cwebber/guile-squee")
775 (synopsis "Connect to PostgreSQL using Guile")
777 "@code{squee} is a Guile library for connecting to PostgreSQL databases
778 using Guile's foreign function interface.")
779 (license license:lgpl3+))))
781 (define-public guile2.2-squee
783 (inherit guile-squee)
784 (name "guile2.2-squee")
785 (native-inputs `(("guile" ,guile-2.2)
786 ,@(alist-delete "guile"
787 (package-native-inputs guile-squee))))))
789 (define-public guile3.0-squee
790 (deprecated-package "guile3.0-squee" guile-squee))
792 (define-public guile-colorized
794 (name "guile-colorized")
800 (url "https://gitlab.com/NalaGinrut/guile-colorized.git")
801 (commit (string-append "v" version))))
802 (file-name (git-file-name name version))
804 (base32 "10mv8c63159r3qvwwdvsgnsvdg7nc2ghak85zapwqpv4ywrqp9zc"))))
805 (build-system guile-build-system)
807 `(("guile" ,guile-3.0)))
808 (home-page "https://gitlab.com/NalaGinrut/guile-colorized")
809 (synopsis "Colorized REPL for Guile")
811 "Guile-colorized provides you with a colorized REPL for GNU Guile.")
812 (license license:gpl3+)))
814 (define-public guile2.2-colorized
816 (inherit guile-colorized)
817 (name "guile2.2-colorized")
818 (native-inputs `(("guile" ,guile-2.2)))))
820 (define-public guile3.0-colorized
821 (deprecated-package "guile3.0-colorized" guile-colorized))
823 (define-public guile-pfds
827 (home-page "https://github.com/ijp/pfds")
832 (commit (string-append "v" version))))
835 "19y33wg94pf0n98dkfqd1zbw93fgky4sawxsxl6s3vyqwl0yi5vh"))
836 (file-name (string-append name "-" version "-checkout"))))
837 (build-system guile-build-system)
839 '(#:source-directory "src"
840 #:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
841 #:phases (modify-phases %standard-phases
842 (add-after 'unpack 'move-files-around
844 ;; Move files under a pfds/ directory to reflect the
847 (for-each (lambda (file)
849 (string-append "src/pfds/" file)))
865 `(("guile" ,guile-3.0)))
866 (synopsis "Purely functional data structures for Guile")
868 "This package provides purely functional data structures written in R6RS
869 Scheme and compiled for Guile. It has been tested with Racket, Guile 2,
870 Vicare Scheme and IronScheme. Right now it contains:
878 @item priority search queues (PSQs)
882 @item hash array mapped tries (HAMTs).
884 (license license:bsd-3)))
886 (define-public guile2.0-pg
892 (uri (string-append "mirror://savannah/guile-pg/guile-pg-"
896 "1fizcqga96p9n2jjhi9nprhry20hg9wvcl5b8gya4vhzwz6qhysp"))))
897 (build-system gnu-build-system)
900 (modify-phases %standard-phases
901 (add-before 'install 'patch-src/Makefile
902 (lambda* (#:key outputs #:allow-other-keys)
903 (substitute* "src/Makefile"
904 (("\\/share\\/guile\\/site") "/share/guile/site/2.0"))
907 `(("procps" ,procps) ; fake-cluster-control uses ps
909 ("postgresql" ,postgresql)))
911 `(("guile" ,guile-2.0)
912 ("postgresql" ,postgresql)))
913 (home-page "https://www.nongnu.org/guile-pg/")
914 (synopsis "Guile modules for accessing PostgreSQL")
916 "Guile-PG is a collection of modules for Guile allowing access to the
917 PostgreSQL RDBMS from Scheme programs.
919 This has been tested against PostgreSQL 10 through 13, but currently only
920 works with Guile 1.4.x to 2.0.x.")
921 (license license:gpl3+)))
923 (define-public guile-prometheus
924 (let ((commit "35dc26c0ea44c3d70f1819f240d84e2cbb4b7b4c")
927 (name "guile-prometheus")
928 (version (git-version "0" revision commit))
932 (url "https://git.cbaines.net/git/guile/prometheus")
936 "07822jj4appw37lf444kc4xlgl7nm64mgldag56072l55kwashgb"))
937 (file-name (string-append name "-" version "-checkout"))))
938 (build-system gnu-build-system)
940 `(("pkg-config" ,pkg-config)
941 ("autoconf" ,autoconf)
942 ("automake" ,automake)
943 ("guile" ,guile-3.0)))
945 `(("guile" ,guile-3.0)))
946 (home-page "https://git.cbaines.net/guile/prometheus")
947 (synopsis "Prometheus client library for Guile")
949 "This Guile library provides instrumentation code intended to be used
950 with the Prometheus time series service. Counter, gauge and histogram metric
951 types are supported.")
952 (license license:gpl3+))))
954 (define-public guile2.2-pfds
957 (name "guile2.2-pfds")
958 (native-inputs `(("guile" ,guile-2.2)))
960 (substitute-keyword-arguments (package-arguments guile-pfds)
962 `(modify-phases ,phases
963 (delete 'work-around-guile-bug)
964 (add-after 'move-files-around 'sls->scm
966 ;; In Guile <= 2.2.4, there's no way to tell 'guild
967 ;; compile' to accept the ".sls" extension. So...
968 (for-each (lambda (file)
971 (string-drop-right file 4)
973 (find-files "." "\\.sls$"))
976 (define-public guile3.0-pfds
977 (deprecated-package "guile3.0-pfds" guile-pfds))
979 (define-public guile-aa-tree
981 (name "guile-aa-tree")
985 (uri (string-append "mirror://savannah/guile-aa-tree/guile-aa-tree-"
989 "0044c105r3q9vpl17pv3phl1b79kjm1llhkakqgiasixyav01blh"))))
990 (build-system guile-build-system)
991 (native-inputs `(("guile" ,guile-2.2)))
992 ;; https://savannah.nongnu.org/projects/guile-aa-tree
993 (home-page "https://qlfiles.net/guile-aa-tree/")
994 (synopsis "AA tree data structure for Guile")
996 "This package provides an implementation of @dfn{AA trees}, a
997 self-balancing binary tree data structure, for Guile. It ensure @math{O(log
998 n)} worst case performance for core operations. The module provides
999 non-mutating insert, delete, and search operations, with support for
1000 convenient nested tree operations.")
1001 (license license:gpl3+)))
1003 (define-public guile-simple-zmq
1004 (let ((commit "e9446173280117e98ab4208e2aa5273128650e19")
1007 (name "guile-simple-zmq")
1008 (version (git-version "0.0.0" revision commit))
1013 (url "https://github.com/jerry40/guile-simple-zmq")
1017 "1nhlp5kl1095k1irvv0kgdbc7lp5qki3d3wg9rla6f7822hkmrzw"))
1018 (file-name (git-file-name name version))))
1019 (build-system gnu-build-system)
1022 '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
1025 `(("guile" ,guile-3.0)))
1027 `(("autoconf" ,autoconf)
1028 ("automake" ,automake)
1029 ("pkg-config" ,pkg-config)
1030 ("zeromq" ,zeromq)))
1031 (home-page "https://github.com/jerry40/guile-simple-zmq")
1032 (synopsis "Guile wrapper over ZeroMQ library")
1034 "This package provides a Guile programming interface to the ZeroMQ
1035 messaging library.")
1036 (license license:gpl3+))))
1038 (define-public guile2.2-simple-zmq
1040 (inherit guile-simple-zmq)
1041 (name "guile2.2-simple-zmq")
1042 (native-inputs `(("guile" ,guile-2.2)))))
1044 (define-public guile3.0-simple-zmq
1045 (deprecated-package "guile3.0-simple-zmq" guile-simple-zmq))
1047 (define-public jupyter-guile-kernel
1048 (let ((commit "f25fb90b95529b17a006a807bd04e6aee12ea304")
1051 (name "jupyter-guile-kernel")
1052 (version (git-version "0.0.0" revision commit))
1057 (url "https://github.com/jerry40/guile-kernel")
1059 (file-name (git-file-name name version))
1062 "0zr1fasdb2yv9kn21yll993y9higqss4jnfs030ndhjb93raa9sr"))))
1063 (build-system guile-build-system)
1065 '(#:phases (modify-phases %standard-phases
1066 (add-after 'unpack 'set-openssl-file-name
1067 (lambda* (#:key inputs #:allow-other-keys)
1068 ;; Record the absolute file name of the 'openssl'
1070 (substitute* "src/hmac.scm"
1072 (string-append (assoc-ref inputs "openssl")
1076 ;; XXX: The code uses 'include' to include its own source
1077 ;; files, and "-L src" isn't enough in this case.
1078 (add-before 'build 'chdir
1079 (lambda _ (chdir "src") #t))
1080 (add-after 'build 'chdir-back
1081 (lambda _ (chdir "..") #t))
1083 (add-after 'install 'install-kernel
1084 (lambda* (#:key inputs outputs #:allow-other-keys)
1085 (let* ((out (assoc-ref outputs "out"))
1086 (json (assoc-ref inputs "guile-json"))
1087 (zmq (assoc-ref inputs "guile-simple-zmq"))
1088 (deps (list json zmq))
1090 out "/share/jupyter/kernels/guile"))
1091 (effective (target-guile-effective-version)))
1093 (install-file "src/kernel.json" dir)
1095 ;; Fix hard-coded file name in the kernel.
1096 (substitute* (string-append dir "/kernel.json")
1097 (("/usr/local/.*/guile-jupyter-kernel.scm")
1098 (string-append out "/share/guile/site/"
1099 (target-guile-effective-version)
1100 "/guile-jupyter-kernel.scm"))
1102 (string-append "\"" (assoc-ref inputs "guile")
1105 ;; Add '-L' and '-C' flags so that the kernel
1106 ;; finds its dependencies.
1107 (let ((-L (map (lambda (item)
1108 (string-append "\"" item
1109 "/share/guile/site/"
1112 (-C (map (lambda (item)
1113 (string-append "\"" item
1118 (string-append "--no-auto-compile\""
1119 (string-join -L ", \"-L\", "
1121 (string-join -C ", \"-C\", "
1126 `(("openssl" ,openssl)
1127 ("guile" ,guile-3.0)
1128 ("guile-json" ,guile-json-3)
1129 ("guile-simple-zmq" ,guile-simple-zmq)))
1130 (synopsis "Guile kernel for the Jupyter Notebook")
1132 "This package provides a Guile 2.x kernel for the Jupyter Notebook. It
1133 allows users to interact with the Guile REPL through Jupyter.")
1134 (home-page "https://github.com/jerry40/guile-kernel")
1135 (license license:gpl3+))))
1137 (define-public guile-sparql
1139 (name "guile-sparql")
1144 "https://github.com/roelj/guile-sparql/releases/download/"
1145 version "/guile-sparql-" version ".tar.gz"))
1147 (base32 "1jf4972f9fpm0rd865xpnc9mzl3xv6vhfnp0iygadydy905z9nln"))))
1148 (build-system gnu-build-system)
1150 `(("pkg-config" ,pkg-config)))
1152 `(("guile" ,guile-3.0)))
1153 (home-page "https://github.com/roelj/guile-sparql")
1154 (synopsis "SPARQL module for Guile")
1155 (description "This package provides the functionality to query a SPARQL
1156 endpoint. Additionally, it provides an interface to write SPARQL queries
1157 using S-expressions.")
1158 (license license:gpl3+)))
1160 (define-public guile-debbugs
1162 (name "guile-debbugs")
1166 (uri (string-append "mirror://gnu/guile-debbugs/guile-debbugs-"
1170 "1cc63nw3xdfjrfk8c58r6d5lidmfq5cpqcy32yd5xp81yccprvn9"))))
1171 (build-system gnu-build-system)
1173 `(("guile-email" ,guile-email)))
1175 `(("guile" ,guile-3.0)
1176 ("pkg-config" ,pkg-config)))
1177 (home-page "https://savannah.gnu.org/projects/guile-debbugs/")
1178 (synopsis "Guile interface to the Debbugs bug tracking service")
1180 "This package provides a Guile library to communicate with a Debbugs bug
1181 tracker's SOAP service, such as @url{https://bugs.gnu.org}.")
1182 (license license:gpl3+)))
1184 (define-public guile-email
1186 (name "guile-email")
1192 "https://guile-email.systemreboot.net/releases/guile-email-"
1196 "1rc8r0fgvflnyq5ckl7ii8sghpsgpkzxa8vskjr1ak2kyar6m35k"))))
1197 (build-system gnu-build-system)
1199 `(("pkg-config" ,pkg-config)
1202 `(("guile" ,guile-3.0)))
1204 '(#:make-flags '("GUILE_AUTO_COMPILE=0"))) ; to prevent guild warnings
1205 (home-page "https://guile-email.systemreboot.net")
1206 (synopsis "Guile email parser")
1207 (description "guile-email is a collection of email utilities implemented
1208 in pure guile. It supports parsing MIME (Multipurpose Internet Mail
1209 Extensions) compliant email messages and reading emails from the mbox
1211 (license license:agpl3+)))
1213 (define-public guile-email-latest
1214 (let ((commit "03e9cacb826bd4a56d3d834fe5526e497d7c57eb")
1217 (inherit guile-email)
1218 (name "guile-email-latest")
1219 (version (git-version "0.2.2" revision commit))
1224 (url "https://git.systemreboot.net/guile-email")
1226 (file-name (git-file-name name version))
1229 "1a15gdlbmzx220xg82fgyd0zk2wqn13ddmzs13nhgfzx8d5cns68"))))
1231 `(("pkg-config" ,pkg-config)
1232 ("autoconf" ,autoconf)
1233 ("automake" ,automake)
1234 ("texinfo" ,texinfo))))))
1236 (define-public guile2.2-email
1238 (inherit guile-email)
1239 (name "guile2.2-email")
1240 (inputs `(("guile" ,guile-2.2)
1241 ,@(alist-delete "guile" (package-inputs guile-email))))))
1243 (define-public guile3.0-email
1244 (deprecated-package "guile3.0-email" guile-email))
1246 (define-public guile-newt
1253 (url "https://gitlab.com/mothacehe/guile-newt")
1255 (file-name (git-file-name name version))
1258 "1gksd1lzgjjh1p9vczghg8jw995d22hm34kbsiv8rcryirv2xy09"))))
1259 (build-system gnu-build-system)
1262 '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
1264 `(("guile" ,guile-3.0)
1267 `(("autoconf" ,autoconf)
1268 ("automake" ,automake)
1269 ("pkg-config" ,pkg-config)))
1270 (synopsis "Guile bindings to Newt")
1272 "This package provides bindings for Newt, a programming library for
1273 color text mode, widget based user interfaces. The bindings are written in pure
1274 Scheme by using Guile’s foreign function interface.")
1275 (home-page "https://gitlab.com/mothacehe/guile-newt")
1276 (license license:gpl3+)))
1278 (define-public guile2.2-newt
1280 (inherit guile-newt)
1281 (name "guile2.2-newt")
1282 (inputs `(("guile" ,guile-2.2)
1283 ,@(alist-delete "guile" (package-inputs guile-newt))))))
1285 (define-public guile3.0-newt
1286 (deprecated-package "guile3.0-newt" guile-newt))
1288 (define-public guile-mastodon
1290 (name "guile-mastodon")
1295 (url "https://framagit.org/prouby/guile-mastodon.git")
1296 (commit (string-append "v" version))))
1297 (file-name (git-file-name name version))
1300 "1vblf3d1bbwna3l09p2ap5y8ycvl549bz6whgk78imyfmn28ygry"))
1301 (modules '((guix build utils)))
1304 ;; Allow builds with Guile 3.0.
1305 (substitute* "configure.ac"
1306 (("^PKG_CHECK.*") "")
1308 "GUILE_PKG([3.0 2.2])\n"))
1310 (build-system gnu-build-system)
1312 `(("autoconf" ,autoconf)
1313 ("automake" ,automake)
1314 ("emacs" ,emacs-minimal)
1315 ("pkg-config" ,pkg-config)
1316 ("texinfo" ,texinfo)))
1318 `(("guile" ,guile-3.0)
1320 ("guile-json" ,guile-json-4)))
1321 (home-page "https://framagit.org/prouby/guile-mastodon")
1322 (synopsis "Guile Mastodon REST API module")
1323 (description "This package provides Guile modules to access the
1324 @uref{https://docs.joinmastodon.org/api/, REST API of Mastodon}, a federated
1325 microblogging service.")
1326 (license license:gpl3+)))
1328 (define-public guile-parted
1330 (name "guile-parted")
1335 (url "https://gitlab.com/mothacehe/guile-parted")
1337 (file-name (git-file-name name version))
1340 "0b7h8psfm9gmmwb65pp5zwzglvwnfmw5j40g09hhf3f7kwxc0mv2"))
1341 (modules '((guix build utils)))))
1342 (build-system gnu-build-system)
1345 '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
1347 `(("guile" ,guile-3.0)
1348 ("parted" ,parted)))
1350 `(("guile-bytestructures" ,guile-bytestructures)))
1352 `(("autoconf" ,autoconf)
1353 ("automake" ,automake)
1354 ("pkg-config" ,pkg-config)))
1355 (synopsis "Guile bindings to GNU Parted")
1357 "This package provides bindings for GNU Parted library, a C library
1358 allowing disk partition tables creation and manipulation. The bindings are
1359 written in pure Scheme by using Guile's foreign function interface.")
1360 (home-page "https://gitlab.com/mothacehe/guile-parted")
1361 (license license:gpl3+)))
1363 (define-public guile2.2-parted
1365 (inherit guile-parted)
1366 (name "guile2.2-parted")
1367 (inputs `(("guile" ,guile-2.2)
1368 ,@(alist-delete "guile" (package-inputs guile-parted))))
1370 `(("guile-bytestructures" ,guile2.2-bytestructures)))))
1372 (define-public guile3.0-parted
1373 (deprecated-package "guile3.0-parted" guile-parted))
1375 (define-public guile-xosd
1381 (uri (string-append "https://github.com/alezost/" name
1382 "/releases/download/v" version
1383 "/" name "-" version ".tar.gz"))
1386 "1ri5065c16kmgrf2pysn2ymxjqi5302lhpb07wkl1jr75ym8fn8p"))))
1387 (build-system gnu-build-system)
1389 `(("pkg-config" ,pkg-config)))
1391 `(("guile" ,guile-2.2)
1393 ("libxext" ,libxext)
1394 ("libxinerama" ,libxinerama)
1396 (home-page "https://github.com/alezost/guile-xosd")
1397 (synopsis "XOSD bindings for Guile")
1399 "Guile-XOSD provides Guile bindings for @code{libxosd},
1400 @uref{http://sourceforge.net/projects/libxosd/, the X On Screen Display
1402 (license license:gpl3+)))
1404 (define-public guile-dbi
1411 "http://download.gna.org/guile-dbi/guile-dbi-"
1415 "116njrprhgrsv1qm904sp3b02rq01fx639r433d657gyhw3x159n"))))
1416 (build-system gnu-build-system)
1419 (list (string-append
1420 "--with-guile-site-dir=" %output "/share/guile/site/2.2"))
1422 (list (string-append
1423 "LDFLAGS=-Wl,-rpath=" %output "/lib:"
1424 (assoc-ref %build-inputs "guile-dbd-sqlite3") "/lib" ":"
1425 (assoc-ref %build-inputs "guile-dbd-postgresql") "/lib"))
1427 (modify-phases %standard-phases
1428 (add-after 'install 'patch-extension-path
1429 (lambda* (#:key outputs #:allow-other-keys)
1430 (let* ((out (assoc-ref outputs "out"))
1431 (dbi.scm (string-append
1432 out "/share/guile/site/2.2/dbi/dbi.scm"))
1433 (ext (string-append out "/lib/libguile-dbi")))
1434 (substitute* dbi.scm (("libguile-dbi") ext))
1437 `(("guile-dbd-sqlite3" ,guile-dbd-sqlite3)
1438 ("guile-dbd-postgresql" ,guile-dbd-postgresql))) ; only shared library, no scheme files
1440 `(("guile" ,guile-2.2)))
1441 (synopsis "Guile database abstraction layer")
1442 (home-page "http://home.gna.org/guile-dbi/guile-dbi.html")
1444 "guile-dbi is a library for Guile that provides a convenient interface to
1445 SQL databases. Database programming with guile-dbi is generic in that the same
1446 programming interface is presented regardless of which database system is used.
1447 It currently supports MySQL, Postgres and SQLite3.")
1448 (license license:gpl2+)))
1450 (define guile-dbi-bootstrap
1453 (name "guile-dbi-bootstrap")
1456 (substitute-keyword-arguments (package-arguments guile-dbi)
1457 ((#:make-flags _) '(list))))))
1459 (define-public guile-dbd-sqlite3
1461 (name "guile-dbd-sqlite3")
1466 "http://download.gna.org/guile-dbi/guile-dbd-sqlite3-"
1470 "0rg71jchxd2y8x496s8zmfmikr5g8zxi8zv2ar3f7a23pph92iw2"))))
1471 (build-system gnu-build-system)
1473 `(("pkg-config" ,pkg-config)
1474 ("guile-dbi-bootstrap" ,guile-dbi-bootstrap))) ; only required for headers
1476 `(("sqlite" ,sqlite)
1477 ("zlib" ,(@ (gnu packages compression) zlib))))
1478 (synopsis "Guile DBI driver for SQLite")
1479 (home-page "https://github.com/jkalbhenn/guile-dbd-sqlite3")
1481 "guile-dbi is a library for Guile that provides a convenient interface to
1482 SQL databases. This package implements the interface for SQLite.")
1483 (license license:gpl2+)))
1485 (define-public guile-dbd-postgresql
1486 (let ((commit "e97589b6b018b206c901e4cc24db463407a4036b")
1489 (name "guile-dbd-postgresql")
1490 (version (string-append
1491 "2.1.6-" (number->string revision) "." (string-take commit 7)))
1496 (url "https://github.com/opencog/guile-dbi")
1498 (file-name (git-file-name name version))
1500 (base32 "0n1gv9a0kdys10a4qmnrwvg5sydwb03880asri4gqdchcj3fimni"))))
1501 (build-system gnu-build-system)
1504 (modify-phases %standard-phases
1505 (add-after 'unpack 'chdir
1507 ;; The upstream Git repository contains all the code, so change
1508 ;; to the relevant directory.
1509 (chdir "guile-dbd-postgresql")
1511 (add-after 'chdir 'patch-src/Makefile.am
1512 (lambda* (#:key inputs #:allow-other-keys)
1513 (substitute* "src/Makefile.am"
1515 (string-append (assoc-ref inputs "postgresql") "/include")))
1517 (add-after 'patch-src/Makefile.am 'patch-src
1519 (substitute* "src/guile-dbd-postgresql.c"
1520 (("postgresql/libpq-fe\\.h") "libpq-fe.h"))
1523 `(("pkg-config" ,pkg-config)
1524 ("automake" ,automake)
1525 ("autoconf" ,autoconf)
1527 ("libtool" ,libtool)
1528 ("guile-dbi-bootstrap" ,guile-dbi-bootstrap)))
1530 `(("postgresql" ,postgresql)
1532 (synopsis "Guile DBI driver for PostgreSQL")
1534 "https://github.com/opencog/guile-dbi/tree/master/guile-dbd-postgresql")
1536 "@code{guile-dbi} is a library for Guile that provides a convenient
1537 interface to SQL databases. This package implements the interface for
1539 (license license:gpl2+))))
1541 (define-public guile-config
1543 (name "guile-config")
1549 (url "https://gitlab.com/a-sassmannshausen/guile-config")
1551 (file-name (git-file-name name version))
1553 "09028ylbddjdp3d67zdjz3pnsjqz6zs2bfck5rr3dfaa0qjap40n"))))
1554 (build-system gnu-build-system)
1556 `(("autoconf" ,autoconf)
1557 ("automake" ,automake)
1558 ("pkg-config" ,pkg-config)
1559 ("texinfo" ,texinfo)))
1560 (inputs `(("guile" ,guile-3.0)))
1562 "Guile application configuration parsing library.")
1564 "Guile Config is a library providing a declarative approach to
1565 application configuration specification. The library provides clean
1566 configuration declaration forms, and processors that take care of:
1567 configuration file creation; configuration file parsing; command-line
1568 parameter parsing using getopt-long; basic GNU command-line parameter
1569 generation (--help, --usage, --version); automatic output generation for the
1570 above command-line parameters.")
1572 "https://gitlab.com/a-sassmannshausen/guile-config")
1573 (license license:gpl3+)))
1575 (define-public guile2.2-config
1577 (inherit guile-config)
1578 (name "guile2.2-config")
1579 (inputs `(("guile" ,guile-2.2)
1580 ,@(alist-delete "guile" (package-inputs guile-config))))))
1582 (define-public guile3.0-config
1583 (deprecated-package "guile3.0-config" guile-config))
1585 (define-public guile-hall
1593 (url "https://gitlab.com/a-sassmannshausen/guile-hall")
1595 (file-name "guile-hall-0.3.1-checkout")
1597 (base32 "1s24nigdra6rvclvy15l2aw00c3aq9vv8qwxylzs60darbl36206"))))
1598 (build-system gnu-build-system)
1603 ,@%gnu-build-system-modules)
1607 (add-after 'install 'hall-wrap-binaries
1608 (lambda* (#:key inputs outputs #:allow-other-keys)
1609 (let* ((compiled-dir
1610 (lambda (out version)
1612 out "/lib/guile/" version "/site-ccache")))
1614 (lambda (out version)
1616 out "/share/guile/site"
1617 (if (string-null? version) "" "/") version)))
1619 (lambda (env modules path)
1620 (list env ":" 'prefix
1622 (map (lambda (input)
1624 (assoc-ref inputs input)
1626 ,''("guile-config"))))))
1627 (out (assoc-ref outputs "out"))
1628 (bin (string-append out "/bin/"))
1629 (site (uncompiled-dir out "")))
1630 (match (scandir site)
1635 (string-append bin file)
1638 (uncompiled-dir out version)
1639 (uncompiled-dir "" version))
1641 "GUILE_LOAD_COMPILED_PATH"
1642 (compiled-dir out version)
1643 (compiled-dir "" version))))
1647 `(("autoconf" ,autoconf)
1648 ("automake" ,automake)
1649 ("pkg-config" ,pkg-config)
1650 ("texinfo" ,texinfo)))
1651 (inputs `(("guile" ,guile-3.0)))
1653 `(("guile-config" ,guile-config)))
1654 (synopsis "Guile project tooling")
1656 "Hall is a command-line application and a set of Guile libraries that
1657 allow you to quickly create and publish Guile projects. It allows you to
1658 transparently support the GNU build system, manage a project hierarchy &
1659 provides tight coupling to Guix.")
1660 (home-page "https://gitlab.com/a-sassmannshausen/guile-hall")
1661 (license license:gpl3+)))
1663 (define-public guile2.2-hall
1665 (inherit guile-hall)
1666 (name "guile2.2-hall")
1667 (inputs `(("guile" ,guile-2.2)
1668 ,@(alist-delete "guile" (package-inputs guile-hall))))
1670 `(("guile-config" ,guile2.2-config)
1671 ,@(alist-delete "guile-config"
1672 (package-propagated-inputs guile-hall))))))
1674 (define-public guile3.0-hall
1675 (deprecated-package "guile3.0-hall" guile-hall))
1677 (define-public guile-ics
1684 (url "https://github.com/artyom-poptsov/guile-ics")
1685 (commit (string-append "v" version))))
1686 (file-name (string-append name "-" version "-checkout"))
1689 "0qjjvadr7gibdq9jvwkmlkb4afsw9n2shfj9phpiadinxk3p4m2g"))
1690 (modules '((guix build utils)))
1693 ;; Allow builds with Guile 3.0.
1694 (substitute* "configure.ac"
1696 "GUILE_PKG([3.0 2.2 2.0])\n"))
1698 (build-system gnu-build-system)
1700 `(("autoconf" ,autoconf-wrapper)
1701 ("automake" ,automake)
1702 ("texinfo" ,texinfo)
1703 ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
1704 ("gettext" ,gettext-minimal)
1705 ("pkg-config" ,pkg-config)))
1706 (inputs `(("guile" ,guile-3.0) ("which" ,which)))
1707 (propagated-inputs `(("guile-lib" ,guile-lib)))
1708 (home-page "https://github.com/artyom-poptsov/guile-ics")
1709 (synopsis "Guile parser library for the iCalendar format")
1711 "Guile-ICS is an iCalendar (RFC5545) format parser library written in
1712 pure Scheme. The library can be used to read and write iCalendar data.
1714 The library is shipped with documentation in Info format and usage examples.")
1715 (license license:gpl3+)))
1717 (define-public guile2.2-ics
1720 (name "guile2.2-ics")
1721 (inputs `(("guile" ,guile-2.2)
1722 ,@(alist-delete "guile" (package-inputs guile-ics))))
1723 (propagated-inputs `(("guile-lib" ,guile2.2-lib)))))
1725 (define-public guile3.0-ics
1726 (deprecated-package "guile3.0-ics" guile-ics))
1728 (define-public guile-wisp
1735 (url "https://hg.sr.ht/~arnebab/wisp")
1736 (changeset (string-append "v" version))))
1737 (file-name (git-file-name name version))
1740 "10g97jz3ahpb5mg933ajsc3pa9jxlg14f42yf01qwx0dwq1b06d5"))))
1741 (build-system gnu-build-system)
1743 `(#:modules ((guix build gnu-build-system)
1744 ((guix build emacs-build-system) #:prefix emacs:)
1746 (guix build emacs-utils)
1749 #:imported-modules (,@%gnu-build-system-modules
1750 (guix build emacs-build-system)
1751 (guix build emacs-utils))
1753 (modify-phases %standard-phases
1756 (invoke "autoreconf" "-vif")
1758 (add-before 'configure 'patch-/usr/bin/env
1760 (substitute* "Makefile.in"
1761 (("/usr/bin/env bash") (which "bash")))
1763 ;; auto compilation breaks, but if we set HOME to /tmp,
1765 (add-before 'check 'auto-compile-hacky-workaround
1766 (lambda _ (setenv "HOME" "/tmp") #t))
1767 (add-after 'install 'install-go-files
1768 (lambda* (#:key outputs inputs #:allow-other-keys)
1769 (let* ((out (assoc-ref outputs "out"))
1770 (effective (read-line
1771 (open-pipe* OPEN_READ
1773 "(display (effective-version))")))
1774 (module-dir (string-append out "/share/guile/site/"
1776 (object-dir (string-append out "/lib/guile/" effective
1778 (prefix (string-length module-dir)))
1779 ;; compile to the destination
1780 (for-each (lambda (file)
1781 (let* ((base (string-drop (string-drop-right file 4)
1783 (go (string-append object-dir base ".go")))
1784 (invoke "guild" "compile" "-L" module-dir
1786 (find-files module-dir "\\.scm$"))
1788 (add-after 'install 'install-emacs-files
1789 (assoc-ref emacs:%standard-phases 'install))
1790 (add-after 'install-emacs-files 'compile-emacs-files
1791 (assoc-ref emacs:%standard-phases 'build))
1792 (add-after 'compile-emacs-files 'make-autoloads
1793 (assoc-ref emacs:%standard-phases 'make-autoloads)))))
1794 (home-page "https://www.draketo.de/english/wisp")
1796 `(("guile" ,guile-3.0)))
1798 `(("autoconf" ,autoconf)
1799 ("automake" ,automake)
1800 ("emacs" ,emacs-minimal)
1802 ("pkg-config" ,pkg-config)))
1803 (synopsis "Whitespace to lisp syntax for Guile")
1804 (description "Wisp is a syntax for Guile which provides a Python-like
1805 whitespace-significant language. It may be easier on the eyes for some
1806 users and in some situations.")
1807 (license license:gpl3+)))
1809 (define-public guile2.2-wisp
1811 (inherit guile-wisp)
1812 (name "guile2.2-wisp")
1813 (inputs `(("guile" ,guile-2.2)))))
1815 (define-public guile3.0-wisp
1816 (deprecated-package "guile3.0-wisp" guile-wisp))
1818 (define-public guile-udev
1825 (url "https://github.com/artyom-poptsov/guile-udev")
1826 (commit (string-append "v" version))))
1827 (file-name (git-file-name name version))
1830 "1l6csncjqnx58c6c3wdl7rshnhk4pzhjq2q8lnkg483564s9w5py"))))
1831 (build-system gnu-build-system)
1833 `(("autoconf" ,autoconf-wrapper)
1834 ("automake" ,automake)
1835 ("gettext" ,gettext-minimal)
1836 ("libtool" ,libtool)
1837 ("texinfo" ,texinfo)
1838 ("pkg-config" ,pkg-config)
1841 `(("guile" ,guile-3.0)
1843 (home-page "https://github.com/artyom-poptsov/guile-udev")
1844 (synopsis "Guile bindings to libudev")
1846 "Guile-Udev provides GNU Guile bindings to libudev.")
1847 (license license:gpl3+)))
1849 (define-public guile-sly
1855 (uri (string-append "https://files.dthompson.us/sly/sly-"
1859 "1svzlbz2vripmyq2kjh0rig16bsrnbkwbsm558pjln9l65mcl4qq"))
1860 (modules '((guix build utils)))
1863 (substitute* "configure"
1864 (("_guile_required_version=\"2.0.11\"")
1865 "_guile_required_version=\"2\"")
1866 (("ac_subst_vars='")
1867 "ac_subst_vars='GUILE_EFFECTIVE_VERSION\n"))
1868 (substitute* (find-files "." "Makefile.in")
1872 "$(prefix)/share/guile/site/@GUILE_EFFECTIVE_VERSION@\n"))
1876 "$(prefix)/lib/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n")))
1878 (build-system gnu-build-system)
1881 (list (string-append "--with-libfreeimage-prefix="
1882 (assoc-ref %build-inputs "freeimage"))
1883 (string-append "--with-libgslcblas-prefix="
1884 (assoc-ref %build-inputs "gsl")))))
1886 `(("pkg-config" ,pkg-config)))
1888 `(("guile-sdl" ,guile-sdl)
1889 ("guile-opengl" ,guile-opengl)))
1891 `(("guile" ,guile-2.2)
1893 ("freeimage" ,freeimage)
1895 (synopsis "2D/3D game engine for GNU Guile")
1896 (description "Sly is a 2D/3D game engine written in Guile Scheme. Sly
1897 features a functional reactive programming interface and live coding
1899 (home-page "https://dthompson.us/projects/sly.html")
1900 (license license:gpl3+)))
1902 (define-public g-golf
1903 (let ((commit "ef830107b9765bd6a2da848d0cbe45e11374c0b5")
1907 (version (git-version "0.1.0" revision commit))
1912 (url "https://git.savannah.gnu.org/git/g-golf.git")
1914 (file-name (git-file-name name version))
1916 (base32 "0r472hvmf447kqvkahp1wy4irb5gy8y793hm8r9rc511smdx66cw"))))
1917 (build-system gnu-build-system)
1919 `(("autoconf" ,autoconf)
1920 ("automake" ,automake)
1921 ("texinfo" ,texinfo)
1922 ("gettext" ,gettext-minimal)
1923 ("libtool" ,libtool)
1924 ("pkg-config" ,pkg-config)
1925 ("xorg-server" ,xorg-server)))
1927 `(("guile" ,guile-2.2)
1928 ("guile-lib" ,guile2.2-lib)
1929 ("clutter" ,clutter)
1933 `(("gobject-introspection" ,gobject-introspection)))
1936 (modify-phases %standard-phases
1937 (add-before 'configure 'tests-work-arounds
1938 (lambda* (#:key inputs #:allow-other-keys)
1939 ;; In build environment, There is no /dev/tty
1941 "test-suite/tests/gobject.scm"
1942 (("/dev/tty") "/dev/null"))))
1943 (add-before 'configure 'substitute-libs
1944 (lambda* (#:key inputs outputs #:allow-other-keys)
1945 (let* ((get (lambda (key lib)
1946 (string-append (assoc-ref inputs key) "/lib/" lib)))
1947 (libgi (get "gobject-introspection" "libgirepository-1.0"))
1948 (libglib (get "glib" "libglib-2.0"))
1949 (libgobject (get "glib" "libgobject-2.0"))
1950 (libgdk (get "gtk" "libgdk-3")))
1951 (substitute* "configure"
1952 (("SITEDIR=\"\\$datadir/g-golf\"")
1953 "SITEDIR=\"$datadir/guile/site/$GUILE_EFFECTIVE_VERSION\"")
1954 (("SITECCACHEDIR=\"\\$libdir/g-golf/")
1955 "SITECCACHEDIR=\"$libdir/"))
1956 (substitute* "g-golf/init.scm"
1957 (("libgirepository-1.0") libgi)
1958 (("libglib-2.0") libglib)
1959 (("libgdk-3") libgdk)
1960 (("libgobject-2.0") libgobject)
1961 (("\\(dynamic-link \"libg-golf\"\\)")
1964 (format #f "~alibg-golf"
1965 (if (getenv "GUILE_GGOLF_UNINSTALLED")
1967 ,(format #f "~a/lib/"
1968 (assoc-ref outputs "out"))))))))
1969 (setenv "GUILE_AUTO_COMPILE" "0")
1970 (setenv "GUILE_GGOLF_UNINSTALLED" "1")
1972 (add-before 'check 'start-xorg-server
1973 (lambda* (#:key inputs #:allow-other-keys)
1974 ;; The test suite requires a running X server.
1975 (system (format #f "~a/bin/Xvfb :1 &"
1976 (assoc-ref inputs "xorg-server")))
1977 (setenv "DISPLAY" ":1")
1979 (home-page "https://www.gnu.org/software/g-golf/")
1980 (synopsis "Guile bindings for GObject Introspection")
1982 "G-Golf (Gnome: (Guile Object Library for)) is a library for developing
1983 modern applications in Guile Scheme. It comprises a direct binding to the
1984 GObject Introspection API and higher-level functionality for importing Gnome
1985 libraries and making GObject classes (and methods) available in Guile's
1986 object-oriented programming system, GOOPS.")
1987 (license license:lgpl3+))))
1989 (define-public g-wrap
1995 (uri (string-append "mirror://savannah/g-wrap/g-wrap-"
1999 "0ak0bha37dfpj9kmyw1r8fj8nva639aw5xr66wr5gd3l1rqf5xhg"))))
2000 (build-system gnu-build-system)
2002 `(("pkg-config" ,pkg-config)))
2004 `(("guile" ,guile-2.2)
2005 ("guile-lib" ,guile-lib)))
2007 `(("libffi" ,libffi)))
2009 `(#:configure-flags '("--disable-Werror")
2011 (modify-phases %standard-phases
2012 (add-before 'configure 'pre-configure
2013 (lambda* (#:key outputs #:allow-other-keys)
2014 (let ((out (assoc-ref outputs "out")))
2015 (substitute* (find-files "." "^Makefile.in$")
2016 (("guilemoduledir =.*guile/site" all)
2017 (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
2019 (synopsis "Generate C bindings for Guile")
2020 (description "G-Wrap is a tool and Guile library for generating function
2021 wrappers for inter-language calls. It currently only supports generating Guile
2022 wrappers for C functions. Given a definition of the types and prototypes for
2023 a given C interface, G-Wrap will automatically generate the C code that
2024 provides access to that interface and its types from the Scheme level.")
2025 (home-page "https://www.nongnu.org/g-wrap/index.html")
2026 (license license:lgpl2.1+)))
2028 (define-public guile-miniadapton
2029 (let ((commit "1b5749422304567c96ac5367f2221dda9eff5880")
2032 (name "guile-miniadapton")
2033 (version (string-append "0-" revision "." (string-take commit 9)))
2037 (url "https://github.com/fisherdj/miniAdapton")
2039 (file-name (string-append name "-" version "-checkout"))
2042 "09q51zkw2fypad5xixskfzw2cjhjgs5cswdp3i7cpp651rb3zndh"))))
2043 (build-system guile-build-system)
2045 `(("guile" ,guile-2.2)))
2046 (home-page "https://github.com/fisherdj/miniAdapton")
2047 (synopsis "Minimal implementation of incremental computation in Guile
2049 (description "This package provides a complete Scheme implementation of
2050 miniAdapton, which implements the core functionality of the Adapton system for
2051 incremental computation (also known as self-adjusting computation). Like
2052 Adapton, miniAdapton allows programmers to safely combine mutation and
2053 memoization. miniAdapton is built on top of an even simpler system,
2054 microAdapton. Both miniAdapton and microAdapton are designed to be easy to
2055 understand, extend, and port to host languages other than Scheme.")
2056 (license license:expat))))
2058 (define-public guile-reader
2060 (name "guile-reader")
2064 (uri (string-append "mirror://savannah/guile-reader/guile-reader-"
2068 "1fyjckmygkhq22lq8nqc86yl5zzbqd7a944dnz5c1f6vx92b9hiq"))))
2069 (build-system gnu-build-system)
2070 (native-inputs `(("pkgconfig" ,pkg-config)
2072 (inputs `(("guile" ,guile-3.0)))
2073 (synopsis "Framework for building readers for GNU Guile")
2075 "Guile-Reader is a simple framework for building readers for GNU Guile.
2077 The idea is to make it easy to build procedures that extend Guile’s read
2078 procedure. Readers supporting various syntax variants can easily be written,
2079 possibly by re-using existing “token readers” of a standard Scheme
2080 readers. For example, it is used to implement Skribilo’s R5RS-derived
2083 Guile-Reader’s approach is similar to Common Lisp’s “read table”, but
2084 hopefully more powerful and flexible (for instance, one may instantiate as
2085 many readers as needed).")
2086 (home-page "https://www.nongnu.org/guile-reader/")
2087 (license license:gpl3+)))
2089 (define-public guile2.2-reader
2091 (inherit guile-reader)
2092 (name "guile2.2-reader")
2093 (inputs `(("guile" ,guile-2.2)))))
2095 (define-public guile-ncurses
2097 (name "guile-ncurses")
2101 (uri (string-append "mirror://gnu/guile-ncurses/guile-ncurses-"
2105 "038xbffalhymg26lvmzgf7ljilxz2f2zmqg5r5nfzbipfbprwjhf"))))
2106 (build-system gnu-build-system)
2107 (inputs `(("ncurses" ,ncurses)
2108 ("guile" ,guile-3.0)))
2109 (native-inputs `(("pkg-config" ,pkg-config)))
2111 `(#:modules ((guix build gnu-build-system)
2112 ((guix build guile-build-system)
2113 #:select (target-guile-effective-version))
2115 #:imported-modules ((guix build guile-build-system)
2116 ,@%gnu-build-system-modules)
2117 #:configure-flags (list "--with-ncursesw" ; Unicode support
2118 "--with-gnu-filesystem-hierarchy")
2120 (modify-phases %standard-phases
2121 (add-before 'build 'fix-libguile-ncurses-file-name
2122 (lambda* (#:key outputs #:allow-other-keys)
2123 (invoke "make" "install"
2125 "-j" (number->string
2126 (parallel-job-count)))
2127 (let* ((out (assoc-ref outputs "out"))
2129 (files (find-files dir ".scm")))
2131 (("\"libguile-ncurses\"")
2132 (format #f "\"~a/lib/guile/~a/libguile-ncurses\""
2133 out (target-guile-effective-version))))
2135 (home-page "https://www.gnu.org/software/guile-ncurses/")
2136 (synopsis "Guile bindings to ncurses")
2138 "guile-ncurses provides Guile language bindings for the ncurses
2140 (license license:lgpl3+)))
2142 (define-public guile2.2-ncurses
2144 (inherit guile-ncurses)
2145 (name "guile2.2-ncurses")
2146 (inputs `(("ncurses" ,ncurses)
2147 ("guile" ,guile-2.2)))))
2149 (define-public guile3.0-ncurses
2150 (deprecated-package "guile3.0-ncurses" guile-ncurses))
2152 (define-public guile-ncurses/gpm
2154 (inherit guile-ncurses)
2155 (name "guile-ncurses-with-gpm")
2156 (inputs `(("ncurses" ,ncurses/gpm)
2157 ("guile" ,guile-2.2)))))
2159 (define-public guile3.0-ncurses/gpm
2161 (inherit guile3.0-ncurses)
2162 (name "guile3.0-ncurses-with-gpm")
2163 (inputs `(("ncurses" ,ncurses/gpm)
2164 ("guile" ,guile-3.0)))))
2166 (define-public guile-lib
2172 (uri (string-append "mirror://savannah/guile-lib/guile-lib-"
2176 "0aizxdif5dpch9cvs8zz5g8ds5s4xhfnwza2il5ji7fv2h7ks7bd"))
2177 (modules '((guix build utils)))
2180 ;; Work around miscompilation on Guile 3.0.0 at -O2:
2181 ;; <https://bugs.gnu.org/39251>.
2182 (substitute* "src/md5.scm"
2183 (("\\(define f-ash ash\\)")
2184 "(define f-ash (@ (guile) ash))\n")
2185 (("\\(define f-add \\+\\)")
2186 "(define f-add (@ (guile) +))\n"))
2188 (build-system gnu-build-system)
2191 '("GUILE_AUTO_COMPILE=0") ; to prevent guild errors
2193 (modify-phases %standard-phases
2194 (add-before 'configure 'patch-module-dir
2196 (substitute* "src/Makefile.in"
2197 (("^moddir = ([[:graph:]]+)")
2198 "moddir = $(datadir)/guile/site/@GUILE_EFFECTIVE_VERSION@\n")
2199 (("^godir = ([[:graph:]]+)")
2201 $(libdir)/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n"))
2204 `(("guile" ,guile-3.0)
2205 ("pkg-config" ,pkg-config)))
2207 `(("guile" ,guile-3.0)))
2208 (home-page "https://www.nongnu.org/guile-lib/")
2209 (synopsis "Collection of useful Guile Scheme modules")
2211 "Guile-Lib is intended as an accumulation place for pure-scheme Guile
2212 modules, allowing for people to cooperate integrating their generic Guile
2213 modules into a coherent library. Think \"a down-scaled, limited-scope CPAN
2216 ;; The whole is under GPLv3+, but some modules are under laxer
2217 ;; distribution terms such as LGPL and public domain. See `COPYING' for
2219 (license license:gpl3+)))
2221 (define-public guile2.0-lib
2224 (name "guile2.0-lib")
2225 (native-inputs `(("pkg-config" ,pkg-config)))
2226 (inputs `(("guile" ,guile-2.0)))))
2228 (define-public guile2.2-lib
2231 (name "guile2.2-lib")
2232 (native-inputs `(("pkg-config" ,pkg-config)))
2233 (inputs `(("guile" ,guile-2.2)))))
2235 (define-public guile3.0-lib
2236 (deprecated-package "guile3.0-lib" guile-lib))
2238 (define-public guile-minikanren
2240 (name "guile-minikanren")
2241 (version "20150424.e844d85")
2245 (url "https://github.com/ijp/minikanren")
2246 (commit "e844d85512f8c055d3f96143ee506007389a25e3")))
2247 (file-name (string-append name "-" version "-checkout"))
2250 "0r50jlpzi940jlmxyy3ddqqwmj5r12gb4bcv0ssini9v8km13xz6"))))
2251 (build-system guile-build-system)
2253 `(("guile" ,guile-3.0)))
2254 (home-page "https://github.com/ijp/minikanren")
2255 (synopsis "MiniKanren declarative logic system, packaged for Guile")
2257 "MiniKanren is a relational programming extension to the Scheme
2258 programming Language, written as a smaller version of Kanren suitable for
2259 pedagogical purposes. It is featured in the book, The Reasoned Schemer,
2260 written by Dan Friedman, William Byrd, and Oleg Kiselyov.
2262 This is Ian Price's r6rs packaged version of miniKanren, which deviates
2263 slightly from miniKanren mainline.
2265 See http://minikanren.org/ for more on miniKanren generally.")
2266 (license license:expat)))
2268 (define-public guile2.0-minikanren
2270 (inherit guile-minikanren)
2271 (name "guile2.0-minikanren")
2272 (native-inputs `(("guile" ,guile-2.0)))))
2274 (define-public guile2.2-minikanren
2276 (inherit guile-minikanren)
2277 (name "guile2.2-minikanren")
2278 (native-inputs `(("guile" ,guile-2.2)))))
2280 (define-public guile3.0-minikanren
2281 (deprecated-package "guile3.0-minikanren" guile-minikanren))
2283 (define-public guile-irregex
2285 (name "guile-irregex")
2290 "http://synthcode.com/scheme/irregex/irregex-"
2294 "1ia3m7dp3lcxa048q0gqbiwwsyvn99baw6xkhb4bhhzn4k7bwyqq"))))
2295 (build-system guile-build-system)
2297 '(#:phases (modify-phases %standard-phases
2298 (add-after 'unpack 'move-files-around
2300 ;; Move the relevant source files to src/ and create the
2301 ;; rx/ directory to match the expected module hierarchy.
2302 (mkdir-p "src/rx/source")
2303 (rename-file "irregex-guile.scm"
2304 "src/rx/irregex.scm")
2305 (rename-file "irregex.scm"
2306 "src/rx/source/irregex.scm")
2307 ;; Not really reachable via guile's packaging system,
2308 ;; but nice to have around.
2309 (rename-file "irregex-utils.scm"
2310 "src/rx/source/irregex-utils.scm")
2312 #:source-directory "src"))
2314 `(("guile" ,guile-3.0)))
2315 (home-page "http://synthcode.com/scheme/irregex")
2316 (synopsis "S-expression based regular expressions")
2318 "Irregex is an s-expression based alternative to your classic
2319 string-based regular expressions. It implements SRFI 115 and is deeply
2320 inspired by the SCSH regular expression system.")
2321 (license license:bsd-3)))
2323 (define-public guile2.0-irregex
2325 (inherit guile-irregex)
2326 (name "guile2.0-irregex")
2327 (native-inputs `(("guile" ,guile-2.0)))))
2329 (define-public guile2.2-irregex
2331 (inherit guile-irregex)
2332 (name "guile2.2-irregex")
2333 (native-inputs `(("guile" ,guile-2.2)))))
2335 (define-public guile3.0-irregex
2336 (deprecated-package "guile3.0-irregex" guile-irregex))
2338 (define-public haunt
2344 (uri (string-append "https://files.dthompson.us/haunt/haunt-"
2348 "056z4znikk83nr5mr0x2ac3iinqbywa2bvb37mhr566a1q50isfc"))
2349 (modules '((guix build utils)))
2352 ;; Allow builds with Guile 3.0.
2353 (substitute* "configure"
2357 (build-system gnu-build-system)
2359 `(#:modules ((ice-9 match) (ice-9 ftw)
2360 ,@%gnu-build-system-modules)
2361 #:tests? #f ; test suite is non-deterministic :(
2362 #:phases (modify-phases %standard-phases
2363 (add-after 'install 'wrap-haunt
2364 (lambda* (#:key inputs outputs #:allow-other-keys)
2365 ;; Wrap the 'haunt' command to refer to the right
2367 (let* ((out (assoc-ref outputs "out"))
2368 (bin (string-append out "/bin"))
2369 (site (string-append
2370 out "/share/guile/site"))
2371 (guile-reader (assoc-ref inputs "guile-reader"))
2372 (deps `(,@(if guile-reader
2375 ,(assoc-ref inputs "guile-commonmark"))))
2376 (match (scandir site)
2378 (let ((modules (string-append site "/" version))
2379 (compiled-modules (string-append
2380 out "/lib/guile/" version
2382 (wrap-program (string-append bin "/haunt")
2383 `("GUILE_LOAD_PATH" ":" prefix
2385 ,@(map (lambda (dep)
2387 "/share/guile/site/"
2390 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
2392 ,@(map (lambda (dep)
2393 (string-append dep "/lib/guile/"
2399 `(("pkg-config" ,pkg-config)
2400 ("texinfo" ,texinfo)))
2402 ;; Depend on the latest Guile to avoid bytecode compatibility issues when
2403 ;; using modules built against the latest version.
2404 `(("guile" ,guile-3.0-latest)))
2406 `(("guile-reader" ,guile-reader)
2407 ("guile-commonmark" ,guile-commonmark)))
2408 (synopsis "Functional static site generator")
2409 (description "Haunt is a static site generator written in Guile
2410 Scheme. Haunt features a functional build system and an extensible
2411 interface for reading articles in any format.")
2412 (home-page "https://dthompson.us/projects/haunt.html")
2413 (license license:gpl3+)))
2415 (define-public guile2.2-haunt
2418 (name "guile2.2-haunt")
2419 (inputs `(("guile" ,guile-2.2)))
2421 `(("guile-reader" ,guile2.2-reader)
2422 ("guile-commonmark" ,guile2.2-commonmark)))))
2424 (define-public guile2.0-haunt
2427 (name "guile2.0-haunt")
2428 (inputs `(("guile" ,guile-2.0)))))
2430 (define-public guile3.0-haunt
2431 (deprecated-package "guile3.0-haunt" haunt))
2433 (define-public guile-redis
2435 (name "guile-redis")
2437 (home-page "https://github.com/aconchillo/guile-redis")
2443 (file-name (git-file-name name version))
2446 "1zk2x37lw6ygf7rwy71svnsian8lj51axpxmm66ah7dazn69swlm"))))
2447 (build-system gnu-build-system)
2449 '(#:make-flags '("GUILE_AUTO_COMPILE=0")))
2451 `(("autoconf" ,autoconf)
2452 ("automake" ,automake)
2453 ("pkg-config" ,pkg-config)
2454 ("guile" ,guile-3.0)))
2455 (synopsis "Redis client library for Guile")
2456 (description "Guile-redis provides a Scheme interface to the Redis
2457 key-value cache and store.")
2458 (license license:lgpl3+)))
2460 (define-public guile2.2-redis
2462 (inherit guile-redis)
2463 (name "guile2.2-redis")
2464 (native-inputs `(("guile" ,guile-2.2)
2465 ,@(alist-delete "guile"
2466 (package-native-inputs guile-redis))))))
2468 (define-public guile2.0-redis
2470 (inherit guile-redis)
2471 (name "guile2.0-redis")
2474 (modify-phases %standard-phases
2475 (add-after 'unpack 'patch-source
2477 ;; put-string is in (rnrs io ports) in guile2.0,
2478 ;; not in (ice-9 textual-ports)
2479 (substitute* "redis/utils.scm"
2480 (("\\(ice-9 textual-ports\\)")
2483 ,@(package-arguments guile-redis)))
2484 (native-inputs `(("guile" ,guile-2.0)
2485 ,@(alist-delete "guile"
2486 (package-native-inputs guile-redis))))))
2488 (define-public guile-commonmark
2490 (name "guile-commonmark")
2494 (uri (string-append "https://github.com/OrangeShark/" name
2495 "/releases/download/v" version
2496 "/" name "-" version ".tar.gz"))
2499 "17lrsdisa3kckh24q114vfmzdc4wkqa6ccwl4hdlrng5wpn1iman"))
2500 (modules '((guix build utils)))
2503 ;; Allow builds with Guile 3.0.
2504 (substitute* "configure"
2508 (build-system gnu-build-system)
2509 ;; The tests throw exceptions with Guile 3.0.5, because they evaluate
2512 ;; This has been fixed upstream, but there has not been a new release
2513 ;; containing this change.
2516 (modify-phases %standard-phases
2517 (add-after 'unpack 'fix-tests-when-building-with-guile-3.0.5
2519 (substitute* (find-files "tests" "\\.scm$")
2523 `(("guile" ,guile-3.0)))
2525 `(("pkg-config" ,pkg-config)))
2526 (synopsis "CommonMark parser for Guile")
2528 "guile-commonmark is a library for parsing CommonMark, a fully specified
2529 variant of Markdown. The library is written in Guile Scheme and is designed
2530 to transform a CommonMark document to SXML. guile-commonmark tries to closely
2531 follow the @uref{http://commonmark.org/, CommonMark spec}, the main difference
2532 is no support for parsing block and inline level HTML.")
2533 (home-page "https://github.com/OrangeShark/guile-commonmark")
2534 (license license:lgpl3+)))
2536 (define-public guile2.2-commonmark
2538 (inherit guile-commonmark)
2539 (name "guile2.2-commonmark")
2540 (inputs `(("guile" ,guile-2.2)))))
2542 (define-public guile2.0-commonmark
2544 (inherit guile-commonmark)
2545 (name "guile2.0-commonmark")
2546 (inputs `(("guile" ,guile-2.0)))))
2548 (define-public guile3.0-commonmark
2549 (deprecated-package "guile3.0-commonmark" guile-commonmark))
2551 (define-public mcron
2557 (uri (string-append "mirror://gnu/mcron/mcron-"
2561 "1midrn15d5kqy4zd2029bj1db6gnfhxg8mcgfy4bkp5p9nl4v4rd"))))
2562 (build-system gnu-build-system)
2564 '(#:phases (modify-phases %standard-phases
2565 (add-before 'check 'adjust-tests
2567 (substitute* "tests/job-specifier.scm"
2568 ;; (getpw) fails with "entry not found" in the build
2569 ;; environment, so pass an argument.
2571 "(getpwnam (getuid))")
2572 ;; The build environment lacks an entry for root in
2575 "(getpwnam \"nobody\")")
2577 ;; FIXME: Skip the 4 faulty tests (see above).
2578 (("\\(test-equal \"next-year\"" all)
2579 (string-append "(test-skip 4)\n" all)))
2581 (native-inputs `(("pkg-config" ,pkg-config)
2582 ("tzdata" ,tzdata-for-tests)
2583 ("guile-native" ;for 'guild compile'
2584 ,@(assoc-ref (package-inputs this-package) "guile"))))
2585 (inputs `(("guile" ,guile-3.0)))
2586 (home-page "https://www.gnu.org/software/mcron/")
2587 (synopsis "Run jobs at scheduled times")
2589 "GNU Mcron is a complete replacement for Vixie cron. It is used to run
2590 tasks on a schedule, such as every hour or every Monday. Mcron is written in
2591 Guile, so its configuration can be written in Scheme; the original cron
2592 format is also supported.")
2593 (license license:gpl3+)))
2595 (define-public guile2.2-mcron
2598 (name "guile2.2-mcron")
2599 (inputs `(("guile" ,guile-2.2)))))
2601 (define-public guile3.0-mcron
2602 (deprecated-package "guile3.0-mcron" mcron))
2604 (define-public guile-picture-language
2605 (let ((commit "291a746a1d3b4784d38b05239bdd7b8e796ce761")
2608 (name "guile-picture-language")
2609 (version (git-version "0.0.1" revision commit))
2613 (url "https://git.elephly.net/software/guile-picture-language.git")
2615 (file-name (git-file-name name version))
2618 "0rnhf13ds92sbdicshy4sy4kl2kc431fy9vzm1divw974p7v57sd"))))
2619 (build-system gnu-build-system)
2621 `(("guile" ,guile-3.0)))
2623 `(("guile-cairo" ,guile-cairo)
2624 ("guile-rsvg" ,guile-rsvg)))
2626 `(("autoconf" ,autoconf)
2627 ("automake" ,automake)
2628 ("librsvg" ,librsvg)
2629 ("pkg-config" ,pkg-config)
2630 ("texinfo" ,texinfo)))
2631 (home-page "https://git.elephly.net/software/guile-picture-language.git")
2632 (synopsis "Picture language for Guile")
2634 "This package provides a simple SVG-based picture language for Guile.
2635 The picture values can directly be displayed in Geiser.")
2636 ;; (pict base64) is under GPLv3+, the rest is under LGPLv3+
2637 (license (list license:lgpl3+
2640 (define-public guile2.2-picture-language
2642 (inherit guile-picture-language)
2643 (name "guile2.2-picture-language")
2644 (inputs `(("guile" ,guile-2.2)))
2646 `(("guile-cairo" ,guile2.2-cairo)
2647 ("guile-rsvg" ,guile2.2-rsvg)))))
2649 (define-public guile3.0-picture-language
2650 (deprecated-package "guile3.0-picture-language"
2651 guile-picture-language))
2653 (define-public guile-studio
2654 (let ((commit "93622e788e727d3275291f999f7e570de6a5bb35")
2657 (name "guile-studio")
2658 (version (git-version "0.1.0" revision commit))
2662 (url "https://git.elephly.net/software/guile-studio.git")
2664 (file-name (git-file-name name version))
2667 "0n6y0bcmkx50m8rccz7a6h4yxmwq54pf2bfzpd5ndz2bsiwiq13l"))))
2668 (build-system gnu-build-system)
2673 ,@%gnu-build-system-modules)
2674 #:tests? #f ; there are none
2676 (list (string-append "PICT_DIR="
2677 (assoc-ref %build-inputs "guile-picture-language"))
2678 (string-append "EMACS_DIR="
2679 (assoc-ref %build-inputs "emacs"))
2680 (string-append "GUILE_DIR="
2681 (assoc-ref %build-inputs "guile"))
2682 (string-join (cons "INPUTS="
2687 (and (string-prefix? "emacs" label) pkg))))
2689 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2691 (modify-phases %standard-phases
2693 (delete 'install))))
2695 `(("guile" ,guile-3.0)
2696 ("guile-picture-language" ,guile-picture-language)
2698 ("emacs-f" ,emacs-f) ; needed by doom-modeline
2699 ("emacs-memoize" ,emacs-memoize) ; needed by all-the-icons
2700 ("emacs-all-the-icons" ,emacs-all-the-icons) ; needed by doom-modeline
2701 ("emacs-all-the-icons-dired" ,emacs-all-the-icons-dired)
2702 ("emacs-dired-sidebar" ,emacs-dired-sidebar)
2703 ("emacs-doom-modeline" ,emacs-doom-modeline)
2704 ("emacs-modus-themes" ,emacs-modus-themes)
2705 ("emacs-geiser" ,emacs-geiser)
2706 ("emacs-company" ,emacs-company)
2707 ("emacs-ivy" ,emacs-ivy)
2708 ("emacs-flycheck" ,emacs-flycheck)
2709 ("emacs-flycheck-guile" ,emacs-flycheck-guile)
2710 ("emacs-paren-face" ,emacs-paren-face)))
2712 `(("texinfo" ,texinfo)))
2713 (home-page "https://gnu.org/software/guile")
2714 (synopsis "IDE for Guile")
2716 "This is Emacs with a few settings that make working with Guile easier
2717 for people new to Emacs. Features include: CUA mode, Geiser, tool bar icons
2718 to evaluate Guile buffers, support for Guile's very own picture language, code
2719 completion, a simple mode line, etc.")
2720 (license license:gpl3+))))
2722 (define-public guile-stis-parser
2724 (name "guile-stis-parser")
2729 (url "https://gitlab.com/tampe/stis-parser")
2730 (commit (string-append "v" version))))
2731 (file-name (git-file-name name version))
2734 "1fvxdfvc80zqhwzq5x3kxyr6j8p4b51yx85fx1gr3d4gy2ddpx5w"))))
2735 (build-system gnu-build-system)
2737 `(#:parallel-build? #f ; not supported
2739 (modify-phases %standard-phases
2740 (add-after 'unpack 'chdir
2741 (lambda _ (chdir "modules") #t))
2742 (add-after 'chdir 'delete-broken-symlink
2744 (delete-file "parser/stis-parser/lang/.#calc.scm")
2747 `(("guile" ,guile-3.0)))
2749 `(("autoconf" ,autoconf)
2750 ("automake" ,automake)
2751 ("pkg-config" ,pkg-config)))
2752 (home-page "https://gitlab.com/tampe/stis-parser")
2753 (synopsis "Parser combinator framework")
2755 "This package provides a functional parser combinator library that
2756 supports backtracking and a small logical framework. The idea is to build up
2757 chunks that are memoized and there is no clear scanner/parser separation,
2758 chunks can be expressions as well as simple tokens.")
2759 (license license:lgpl2.0+)))
2761 (define-public guile-persist
2763 (name "guile-persist")
2768 (url "https://gitlab.com/tampe/guile-persist")
2769 (commit (string-append "v" version))))
2770 (file-name (git-file-name name version))
2773 "19f8hqcax4v40858kx2j8fy1cvzc2djj99r0n17dy1xxmwa097qi"))))
2774 (build-system gnu-build-system)
2777 (modify-phases %standard-phases
2778 (add-after 'unpack 'patch-prefix
2779 (lambda* (#:key inputs outputs #:allow-other-keys)
2780 (substitute* "src/Makefile.am"
2781 (("/usr/local/lib/guile")
2782 (string-append (assoc-ref outputs "out") "/lib/guile"))
2783 (("/usr/local/include/guile")
2784 (string-append (assoc-ref inputs "guile") "/include/guile"))
2785 (("-L/usr/local/lib")
2786 (string-append "-L" (assoc-ref inputs "guile") "/lib")))
2788 (add-after 'unpack 'patch-library-reference
2789 (lambda* (#:key outputs #:allow-other-keys)
2790 (let ((out (assoc-ref outputs "out")))
2791 (substitute* "persist/persistance.scm"
2792 (("\"libguile-persist\"")
2793 (format #f "\"~a/lib/guile/3.0/extensions/libguile-persist\"" out)))
2796 `(("guile" ,guile-3.0)))
2798 `(("autoconf" ,autoconf)
2799 ("automake" ,automake)
2800 ("libtool" ,libtool)
2801 ("pkg-config" ,pkg-config)))
2802 (home-page "https://gitlab.com/tampe/guile-persist")
2803 (synopsis "Persistence programming framework for Guile")
2805 "This is a serialization library for serializing objects like classes
2806 and objects, closures and structs. This currently does not support
2807 serializing continuations or delimited continuations.")
2808 (license license:lgpl2.0+)))
2810 (define-public python-on-guile
2812 (name "python-on-guile")
2814 (home-page "https://gitlab.com/python-on-guile/python-on-guile")
2817 (uri (git-reference (url home-page)
2818 (commit (string-append "v" version))))
2819 (file-name (git-file-name name version))
2822 "05xrvcj6a4gzq1ybyin270qz8wamgc7w2skyi9iy6hkpgdhxy8vf"))))
2823 (build-system gnu-build-system)
2825 `(#:parallel-build? #f ;not supported
2826 #:make-flags '("GUILE_AUTO_COMPILE=0") ;to prevent guild warnings
2828 (modify-phases %standard-phases
2829 (add-after 'unpack 'chdir
2830 (lambda _ (chdir "modules") #t))
2831 (add-after 'chdir 'augment-GUILE_LOAD_PATH
2833 ;; TODO: It would be better to patch the Makefile.
2834 (setenv "GUILE_LOAD_PATH"
2836 (getenv "GUILE_LOAD_PATH")))
2838 (add-after 'install 'wrap
2839 (lambda* (#:key outputs #:allow-other-keys)
2840 ;; Wrap the 'python' executable so it can find its
2841 ;; dependencies and own modules.
2842 (let* ((out (assoc-ref outputs "out"))
2843 (guile-version ,(version-major+minor
2844 (package-version guile-3.0)))
2845 (scm (string-append out "/share/guile/site/"
2847 (ccache (string-append out "/lib/guile/" guile-version
2849 (load-path (string-join
2851 ;; XXX: cdr because we augment it above.
2853 (getenv "GUILE_LOAD_PATH") #\:)))
2855 (compiled-path (string-append
2857 (getenv "GUILE_LOAD_COMPILED_PATH"))))
2858 (wrap-program (string-append out "/bin/python")
2859 `("GUILE_LOAD_PATH" ":" prefix
2861 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
2865 `(("guile" ,guile-3.0)
2866 ("guile-persist" ,guile-persist)
2867 ("guile-readline" ,guile-readline)
2868 ("guile-stis-parser" ,guile-stis-parser)))
2870 `(("autoconf" ,autoconf)
2871 ("automake" ,automake)
2872 ("libtool" ,libtool)
2873 ("pkg-config" ,pkg-config)))
2874 (synopsis "Python implementation in Guile")
2876 "This package allows you to compile a Guile Python file to any target
2877 from @code{tree-il}.")
2878 (license license:lgpl2.0+)))
2880 (define-public guile-file-names
2882 (name "guile-file-names")
2886 (uri (string-append "http://brandon.invergo.net/software/download/"
2887 "guile-file-names/guile-file-names-"
2891 "01chizdxkhw6aqv629vxka9f5x3534ij7r0jqndawsg2vxm1r9sz"))))
2892 (build-system gnu-build-system)
2895 (modify-phases %standard-phases
2896 (add-after 'unpack 'fix-target-directory
2898 (substitute* "src/Makefile.in"
2899 (("guilemoddir = \\$\\(GUILE_SITE\\)")
2900 "guilemoddir = $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
2903 `(("guile" ,guile-2.2)))
2905 `(("pkg-config" ,pkg-config)))
2906 (home-page "https://gitlab.com/brandoninvergo/guile-file-names")
2907 (synopsis "Manipulate file names")
2909 "The @code{(file-names)} module provides tools for manipulating file
2910 names. The module was built on the idea that doing anything more than a
2911 non-trivial modification of a file name string is a pain (making sure all
2912 slashes are present and accounted for, resolving @code{.} and @code{..}, etc).
2913 Inevitably, you have to break the string up into chunks and operate on that
2914 list of components. This module takes care of that for you.")
2915 (license license:lgpl3+)))
2917 (define-public guile-gi
2923 (uri (string-append "http://lonelycactus.com/tarball/guile_gi-"
2927 "1ljcfyar1nb6h4jskxnnzrcxcsblawc50qqfdn8cax3zqfskmvzj"))))
2928 (build-system glib-or-gtk-build-system)
2930 `(#:configure-flags '("--with-gnu-filesystem-hierarchy")
2931 #:modules ((guix build glib-or-gtk-build-system)
2936 (modify-phases %standard-phases
2937 (add-after 'unpack 'patch-references-to-extension
2938 (lambda* (#:key outputs #:allow-other-keys)
2939 (let ((effective (read-line
2940 (open-pipe* OPEN_READ
2942 "(display (effective-version))"))))
2943 (substitute* (find-files "module" ".*\\.scm")
2944 (("\\(load-extension \"libguile-gi\" \"(.*)\"\\)" m arg)
2947 (format #f "~alibguile-gi"
2948 (if (getenv "GUILE_GI_UNINSTALLED")
2950 ,(format #f "~a/lib/guile/~a/extensions/"
2951 (assoc-ref outputs "out")
2954 (setenv "GUILE_GI_UNINSTALLED" "1")
2956 (add-before 'check 'start-xorg-server
2957 (lambda* (#:key inputs #:allow-other-keys)
2958 ;; The init_check test requires a running X server.
2959 (system (format #f "~a/bin/Xvfb :1 &"
2960 (assoc-ref inputs "xorg-server")))
2961 (setenv "DISPLAY" ":1")
2964 `(("gettext" ,gettext-minimal)
2965 ("glib:bin" ,glib "bin") ; for glib-compile-resources
2966 ("libtool" ,libtool)
2967 ("pkg-config" ,pkg-config)
2968 ("xorg-server" ,xorg-server)))
2971 ("gobject-introspection" ,gobject-introspection)
2972 ("gssettings-desktop-schemas" ,gsettings-desktop-schemas)
2974 ("guile-lib" ,guile-lib)
2975 ("webkitgtk" ,webkitgtk)))
2976 (inputs `(("guile" ,guile-3.0)))
2977 (home-page "https://github.com/spk121/guile-gi")
2978 (synopsis "GObject bindings for Guile")
2980 "Guile-GI is a library for Guile that allows using GObject-based
2981 libraries, such as GTK+3. Its README comes with the disclaimer: This is
2983 (license license:gpl3+)))
2985 (define-public guile2.2-gi
2988 (name "guile2.2-gi")
2990 `(("guile" ,guile-2.2)
2991 ,@(alist-delete "guile" (package-inputs guile-gi))))))
2993 (define-public guile3.0-gi
2994 (deprecated-package "guile3.0-gi" guile-gi))
2996 (define-public guile-srfi-89
2998 (name "guile-srfi-89")
3004 (url "https://gitlab.com/mjbecze/guile-srfi-89.git")
3008 "1981c0rrzxqx3md9jx8ir7j3m2mzg9m72b33p5jvw36zirbzpl20"))
3009 (file-name (git-file-name name version))))
3010 (build-system guile-build-system)
3012 `(("guile" ,guile-3.0)))
3013 (home-page "https://gitlab.com/mjbecze/guile-srfi-89")
3014 (synopsis "Hygienic implementation of SRFI-89 for Guile")
3016 "This package provides SRFI-89 optional positional and named
3017 parameters, which define* and lambda* special forms")
3018 (license license:gpl3+)))
3020 (define-public guile-srfi-145
3022 (name "guile-srfi-145")
3028 (url "https://gitlab.com/mjbecze/guile-srfi-145.git")
3032 "1gssa8cmcp8640fil9z8dpil8v5l279wlalqjcx3fls5jwv13q1b"))
3033 (file-name (git-file-name name version))))
3034 (build-system guile-build-system)
3036 `(("guile" ,guile-3.0)))
3037 (home-page "https://gitlab.com/mjbecze/guile-srfi-145")
3038 (synopsis "SRFI-145 port for Guile")
3040 "This package provides SRFI-145. This provides the means to
3041 denote the invalidity of certain code paths in a Scheme program.")
3042 (license license:gpl3+)))
3044 (define-public guile-srfi-158
3046 (name "guile-srfi-158")
3052 (url "https://gitlab.com/mjbecze/guile-srfi-158.git")
3056 "0b8hlv1bldbcwkcxi9y8mm6xp5gbgpg7b15bwqxv70iynl9d9a7c"))
3057 (file-name (git-file-name name version))))
3058 (build-system gnu-build-system)
3060 `(("autoconf" ,autoconf)
3061 ("automake" ,automake)
3062 ("pkg-config" ,pkg-config)))
3064 `(("guile" ,guile-3.0)))
3065 (home-page "https://gitlab.com/samplet/guile-srfi-158")
3066 (synopsis "SRFI 158 (Generators and Accumulators) for Guile")
3067 (description "This package provides an implementation of SRFI 158
3068 for Guile. SRFI 158 defines utility procedures that create,
3069 transform, and consume generators. It also defines procedures that
3070 return accumulators. It is implemented by wrapping the sample
3071 implementation in a thin Guile compatibility layer.")
3072 (license license:gpl3+)))
3074 (define-public guile-srfi-159
3075 (let ((commit "1bd98abda2ae4ef8f36761a167903e55c6bda7bb")
3078 (name "guile-srfi-159")
3079 (version (git-version "0" revision commit))
3080 (home-page "https://bitbucket.org/bjoli/guile-srfi-159")
3083 (uri (hg-reference (changeset commit)
3087 "1zw6cmcy7xdbfiz3nz9arqnn7l2daidaps6ixkcrc9b6k51fdv3p"))
3088 (file-name (git-file-name name version))))
3089 (build-system guile-build-system)
3091 ;; The *-impl.scm files are actually included from module files; they
3092 ;; should not be compiled separately, but they must be installed.
3093 '(#:not-compiled-file-regexp "-impl\\.scm$"))
3095 `(("guile" ,guile-2.2)))
3096 (synopsis "Formatting combinators for Guile")
3098 "The @code{(srfi-159)} module and its sub-modules implement the
3099 formatting combinators specified by
3100 @uref{https://srfi.schemers.org/srfi-159/srfi-159.html, SRFI-159}. These are
3101 more expressive and flexible than the traditional @code{format} procedure.")
3102 (license license:bsd-3))))
3104 (define-public guile-srfi-180
3105 (let ((commit "9188bf9724c6d320ef804579d222e855b007b193")
3108 (name "guile-srfi-180")
3109 (version (git-version "0" revision commit))
3114 (url "https://github.com/scheme-requests-for-implementation/srfi-180")
3118 "08lf70rsak8mwfij55xc37pg9zg7c87fizmhz7ln46skzj68sl3y"))
3119 (modules '((guix build utils)))
3122 (delete-file-recursively "srfi/files")
3123 (delete-file "srfi/run-r7rs-checks.guile.scm")
3124 (delete-file "srfi/run-r7rs-checks.scm")
3125 (delete-file "srfi/check.scm")
3127 (file-name (git-file-name name version))))
3128 (build-system guile-build-system)
3130 '(#:not-compiled-file-regexp "body\\.scm$"))
3132 `(("guile" ,guile-3.0)))
3134 `(("guile-srfi-145" ,guile-srfi-145)))
3135 (home-page "https://srfi.schemers.org/srfi-180/")
3136 (synopsis "JSON parser and printer for Guile")
3138 "This library implements a JavaScript Object Notation (JSON) parser and printer.
3139 It also supports parsing JSON objects that may be bigger than memory with a streaming
3141 (license license:expat))))
3143 (define-public emacsy
3149 (uri (string-append "mirror://savannah/emacsy/emacsy-"
3153 "1cpb85dl1nibd34c2x2h7vfmjpkgh353p5b1w20v6cs6gmvgg4np"))
3154 (modules '((guix build utils)))
3157 (substitute* "configure"
3158 ;; Allow builds with Guile 3.0.
3162 ;; Freeglut 3.2 provides 'glut.pc', not 'freeglut.pc'.
3166 (substitute* '("emacsy/emacsy.c"
3167 "example/hello-emacsy.c")
3168 (("#include <libguile\\.h>")
3169 (string-append "#include <stdlib.h>\n"
3170 "#include <stdio.h>\n"
3171 "#include <string.h>\n"
3172 "#include <unistd.h>\n"
3173 "#include <libguile.h>\n")))))))
3174 (build-system gnu-build-system)
3177 ("guile" ,guile-3.0)
3178 ("gettext" ,gettext-minimal)
3179 ("libtool" ,libtool)
3181 ("pkg-config" ,pkg-config)
3182 ("texinfo" ,texinfo)
3183 ("texlive" ,(texlive-union (list texlive-generic-epsf)))))
3185 `(("dbus-glib" ,dbus-glib)
3186 ("guile" ,guile-3.0)
3187 ("guile-lib" ,guile-lib)
3188 ("guile-readline" ,guile-readline)
3189 ("freeglut" ,freeglut)
3190 ("webkitgtk" ,webkitgtk)))
3192 `(("glib-networking" ,glib-networking)
3193 ("gssettings-desktop-schemas" ,gsettings-desktop-schemas)))
3195 `(#:modules ((guix build gnu-build-system)
3203 (modify-phases %standard-phases
3204 (add-before 'configure 'setenv
3206 (setenv "GUILE_AUTO_COMPILE" "0")
3208 (add-after 'install 'wrap-binaries
3209 (lambda* (#:key inputs outputs #:allow-other-keys)
3210 (let* ((out (assoc-ref outputs "out"))
3211 (effective (read-line
3212 (open-pipe* OPEN_READ
3214 "(display (effective-version))")))
3215 (deps (map (cut assoc-ref inputs <>)
3216 '("guile-lib" "guile-readline")))
3217 (scm-path (map (cut string-append <> "/share/guile/site/"
3218 effective) `(,out ,@deps)))
3219 (go-path (map (cut string-append <> "/lib/guile/" effective
3220 "/site-ccache/") `(,out ,@deps)))
3221 (examples (filter (cut string-match "emacsy" <>)
3222 (scandir (string-append out "/bin/"))))
3223 (progs (map (cut string-append out "/bin/" <>)
3225 (map (cut wrap-program <>
3226 `("GUILE_LOAD_PATH" ":" prefix ,scm-path)
3227 `("GUILE_LOAD_COMPILED_PATH" ":" prefix ,go-path))
3230 (home-page "https://savannah.nongnu.org/projects/emacsy")
3231 (synopsis "Embeddable GNU Emacs-like library using Guile")
3233 "Emacsy is an embeddable Emacs-like library that uses GNU Guile
3234 as extension language. Emacsy can give a C program an Emacsy feel with
3235 keymaps, minibuffer, recordable macros, history, tab completion, major
3236 and minor modes, etc., and can also be used as a pure Guile library. It
3237 comes with a simple counter example using FreeGLUT and browser examples
3238 in C using Gtk+-3 and WebKitGtk.")
3239 (license license:gpl3+)))
3241 (define-public emacsy-minimal
3242 (let ((commit "v0.4.1-37-g5f91ee6"))
3245 (name "emacsy-minimal")
3246 (version (string-drop commit 1))
3251 (url "https://git.savannah.gnu.org/git/emacsy.git")
3253 (file-name (git-file-name name version))
3255 (base32 "03ym14g9qhjqmryr5z065kynqm8yhmvnbs2djl6vp3i9cmqln8cl"))))
3256 (build-system gnu-build-system)
3258 `(("guile" ,guile-2.2)
3259 ("guile-lib" ,guile2.2-lib)
3260 ("guile-readline" ,guile2.2-readline)))
3261 (propagated-inputs '())
3263 `(#:configure-flags '("--without-examples")
3265 (modify-phases %standard-phases
3266 (add-before 'configure 'setenv
3268 (setenv "GUILE_AUTO_COMPILE" "0")
3271 (define-public guile-jpeg
3272 (let ((commit "6a1673578b297c2c1b28e44a76bd5c49e76a5046")
3276 (version (git-version "0.0" revision commit))
3277 (home-page "https://gitlab.com/wingo/guile-jpeg")
3280 (uri (git-reference (url home-page)
3284 "05z9m408w3h6aqb5k3r3qa7khir0k10rxwvsrzhkcq1hr5vbmr4m"))
3285 (file-name (git-file-name name version))
3286 (modules '((guix build utils)))
3289 ;; Install .go files in the right place.
3290 (substitute* "Makefile.am"
3291 (("/ccache") "/site-ccache"))
3293 (build-system gnu-build-system)
3295 `(("autoconf" ,autoconf)
3296 ("automake" ,automake)
3297 ("pkg-config" ,pkg-config)
3298 ("guile" ,guile-2.2)))
3299 (synopsis "JPEG file parsing library for Guile")
3301 "Guile-JPEG is a Scheme library to parse JPEG image files and to
3302 perform geometrical transforms on JPEG images.")
3303 (license license:gpl3+))))
3305 (define-public nomad
3308 (version "0.2.0-alpha-199-g3e7a475")
3312 (url "https://git.savannah.gnu.org/git/nomad.git/")
3314 (file-name (git-file-name name version))
3317 "0p0ha6prp7pyadp61clbhc6b55023vxzfwy14j2qygb2mkq7fhic"))))
3318 (build-system gnu-build-system)
3320 `(("autoconf" ,autoconf)
3321 ("automake" ,automake)
3323 ("pkg-config" ,pkg-config)
3324 ("libtool" ,libtool)
3325 ("guile" ,guile-2.2)
3326 ("glib:bin" ,glib "bin")
3327 ("texinfo" ,texinfo)
3328 ("gettext" ,gettext-minimal)
3332 ("guile" ,guile-2.2)
3333 ("guile-lib" ,guile2.2-lib)
3334 ("guile-readline" ,guile2.2-readline)
3335 ("guile-gcrypt" ,guile2.2-gcrypt)
3339 ("emacsy" ,emacsy-minimal)
3342 ("dbus-glib" ,dbus-glib)
3343 ("glib-networking" ,glib-networking)
3345 ("gtk+:bin" ,gtk+ "bin")
3346 ("webkitgtk" ,webkitgtk)
3347 ("gtksourceview" ,gtksourceview)
3348 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
3351 ("gstreamer" ,gstreamer)
3352 ("gst-plugins-base" ,gst-plugins-base)
3353 ("gst-plugins-good" ,gst-plugins-good)
3354 ("gst-plugins-bad" ,gst-plugins-bad)
3355 ("gst-plugins-ugly" ,gst-plugins-ugly)
3357 ("xorg-server" ,xorg-server)))
3359 `(#:modules ((guix build gnu-build-system)
3365 (modify-phases %standard-phases
3366 (add-before 'check 'start-xorg-server
3367 (lambda* (#:key inputs #:allow-other-keys)
3368 ;; The test suite requires a running X server.
3369 (system (format #f "~a/bin/Xvfb :1 &"
3370 (assoc-ref inputs "xorg-server")))
3371 (setenv "DISPLAY" ":1")
3373 (add-after 'install 'wrap-binaries
3374 (lambda* (#:key inputs outputs #:allow-other-keys)
3375 (let* ((out (assoc-ref outputs "out"))
3376 (effective (read-line (open-pipe*
3379 "(display (effective-version))")))
3380 (gst-plugins (map (lambda (i)
3381 (string-append (assoc-ref inputs i)
3382 "/lib/gstreamer-1.0"))
3387 "gst-plugins-ugly")))
3388 (out-append (lambda (. args)
3389 (apply string-append out args)))
3390 (gi-path (out-append "/lib/girepository-1.0"))
3391 (load-path (out-append "/share/guile/site/" effective))
3392 (comp-path (out-append "/lib/guile/"
3393 effective "/site-ccache"))
3394 (ext-path (out-append "/libexec/nomad")))
3395 (wrap-program (string-append out "/bin/nomad")
3396 `("GUILE_LOAD_PATH" ":" prefix
3398 ,(getenv "GUILE_LOAD_PATH")))
3399 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
3401 ,(getenv "GUILE_LOAD_COMPILED_PATH")))
3402 `("GI_TYPELIB_PATH" ":" prefix
3403 (,gi-path ,(getenv "GI_TYPELIB_PATH")))
3404 `("GIO_EXTRA_MODULES" ":" prefix
3405 (,(getenv "GIO_EXTRA_MODULES")))
3406 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix ,gst-plugins)
3407 `("NOMAD_WEB_EXTENSION_DIR" ":" prefix (,ext-path)))
3409 (home-page "https://savannah.nongnu.org/projects/nomad/")
3410 (synopsis "Extensible Web Browser in Guile Scheme")
3411 (description "Nomad is a Emacs-like web browser that consists of a modular
3412 feature-set, fully programmable in Guile Scheme.")
3413 (license license:gpl3+)))
3415 (define-public guile-cv
3421 (uri (string-append "mirror://gnu/guile-cv/guile-cv-"
3425 "0qdf0s2h1xj5lbhnc1pfw69i3zg08pqy2y6869b92ydfis8r82j9"))))
3426 (build-system gnu-build-system)
3429 (modify-phases %standard-phases
3430 (add-after 'unpack 'prepare-build
3431 (lambda* (#:key inputs outputs #:allow-other-keys)
3432 (substitute* "configure"
3433 (("SITEDIR=\"\\$datadir/guile-cv\"")
3434 "SITEDIR=\"$datadir/guile/site/$GUILE_EFFECTIVE_VERSION\"")
3435 (("SITECCACHEDIR=\"\\$libdir/guile-cv/")
3436 "SITECCACHEDIR=\"$libdir/"))
3437 (substitute* "cv/init.scm"
3438 (("\\(dynamic-link \"libvigra_c\"\\)")
3439 (string-append "(dynamic-link \""
3440 (assoc-ref inputs "vigra-c")
3441 "/lib/libvigra_c\")"))
3442 (("\\(dynamic-link \"libguile-cv\"\\)")
3445 (format #f "~alibguile-cv"
3446 (if (getenv "GUILE_CV_UNINSTALLED")
3448 ,(format #f "~a/lib/"
3449 (assoc-ref outputs "out"))))))))
3450 (setenv "GUILE_CV_UNINSTALLED" "1")
3451 ;; Only needed to satisfy the configure script.
3452 (setenv "LD_LIBRARY_PATH"
3453 (string-append (assoc-ref inputs "vigra-c") "/lib"))
3457 ("vigra-c" ,vigra-c)
3458 ("guile" ,guile-2.2)))
3460 `(("texlive" ,(texlive-union (list texlive-booktabs
3465 texlive-fonts-iwona)))
3466 ("pkg-config" ,pkg-config)))
3468 `(("guile-lib" ,guile-lib)))
3469 (home-page "https://www.gnu.org/software/guile-cv/")
3470 (synopsis "Computer vision library for Guile")
3471 (description "Guile-CV is a Computer Vision functional programming library
3472 for the Guile Scheme language. It is based on Vigra (Vision with Generic
3473 Algorithms), a C++ image processing and analysis library. Guile-CV contains
3474 bindings to Vigra C (a C wrapper to most of the Vigra functionality) and is
3475 enriched with pure Guile Scheme algorithms, all accessible through a nice,
3476 clean and easy to use high level API.")
3477 (license license:gpl3+)))
3479 (define-public guile-ffi-fftw
3480 (let ((commit "294ad9e7491dcb40026d2fec9be2af05263be1c0")
3483 (name "guile-ffi-fftw")
3484 (version (git-version "0" revision commit))
3488 (url "https://github.com/lloda/guile-ffi-fftw")
3490 (file-name (git-file-name "guile-ffi-fftw" version))
3493 "08j40a5p6a8pgvhffmzb5rfdnrav2mksy3gfjkdqy93jfj1z5afg"))))
3494 (build-system guile-build-system)
3496 `(#:source-directory "mod"
3498 (modify-phases %standard-phases
3499 (add-after 'unpack 'prepare-build
3500 (lambda* (#:key inputs #:allow-other-keys)
3501 (substitute* "mod/ffi/fftw.scm"
3502 (("\\(getenv \"GUILE_FFI_FFTW_LIBFFTW3_PATH\"\\)")
3503 (format #f "\"~a/lib\"" (assoc-ref inputs "fftw"))))
3505 (add-after 'build 'check
3507 (invoke "guile" "-L" "mod"
3508 "-s" "test/test-ffi-fftw.scm"))))))
3511 ("guile" ,guile-2.2)))
3512 (home-page "https://github.com/lloda/guile-ffi-fftw/")
3513 (synopsis "Access FFTW through Guile's FFI")
3514 (description "This is a minimal set of Guile FFI bindings for the FFTW
3515 library's ‘guru interface’. It provides two functions: @code{fftw-dft! rank
3516 sign in out} and @code{fftw-dft rank sign in}. These bindings being minimal,
3517 there is no support for computing & reusing plans, or split r/i transforms, or
3518 anything other than straight complex DFTs.")
3519 (license license:lgpl3+))))
3521 (define-public srfi-64-driver
3523 (name "srfi-64-driver")
3527 (uri (string-append "https://files.ngyro.com/srfi-64-driver/"
3528 "srfi-64-driver-" version ".tar.gz"))
3531 "188b6mb7sjjg0a8zldikinglf40ky8mg8rwh5768gjmch6gkk3ph"))))
3532 (build-system gnu-build-system)
3536 (modify-phases %standard-phases
3539 `(("pkg-config" ,pkg-config)))
3541 `(("guile" ,guile-2.2)))
3542 (home-page "https://ngyro.com/software/srfi-64-driver.html")
3543 (synopsis "Automake test driver for SRFI 64 test suites")
3544 (description "This package provides an Automake test driver that can
3545 run SRFI 64 test suites. It gives Automake insight into the individual
3546 tests being run, resulting clearer and more specific output.")
3547 (license license:gpl3+)))
3549 (define-public guile-semver
3551 (name "guile-semver")
3555 (uri (string-append "https://files.ngyro.com/guile-semver/"
3556 "guile-semver-" version ".tar.gz"))
3559 "109p4n39ln44cxvwdccf9kgb96qx54makvd2ir521ssz6wchjyag"))))
3560 (build-system gnu-build-system)
3562 `(("pkg-config" ,pkg-config)))
3564 `(("guile" ,guile-3.0)))
3565 (home-page "https://ngyro.com/software/guile-semver.html")
3566 (synopsis "Semantic Versioning (SemVer) for Guile")
3567 (description "This Guile library provides tools for reading,
3568 comparing, and writing Semantic Versions. It also includes ranges in
3569 the style of the Node Package Manager (NPM).")
3570 (license license:gpl3+)))
3572 (define-public guile3.0-semver
3573 (deprecated-package "guile3.0-semver" guile-semver))
3575 (define-public guile2.2-semver
3577 (inherit guile-semver)
3578 (name "guile2.2-semver")
3580 `(("guile" ,guile-2.2)))))
3582 (define-public guile-hashing
3584 (name "guile-hashing")
3586 (home-page "https://github.com/weinholt/hashing")
3591 (commit (string-append "v" version))))
3592 (file-name (git-file-name name version))
3595 "1362d3lmpv7slmv1zmr9wy8panq9sjr9787gc2hagd646mpsfpkl"))))
3596 (build-system guile-build-system)
3598 `(#:modules ((guix build guile-build-system)
3602 #:implicit-inputs? #f ;needs nothing but Guile
3603 #:phases (modify-phases %standard-phases
3604 (add-before 'build 'move-sls-files
3606 ;; Move the source under hashing/ in order to match
3607 ;; module names, and rename .sls files to .scm.
3608 (define (target file)
3609 (string-append "hashing/" file))
3611 (define (sls->scm sls)
3612 (string-append (string-drop-right sls 4)
3616 (for-each (lambda (file)
3617 (rename-file file (sls->scm file)))
3618 (find-files "." "\\.sls$"))
3619 (for-each (lambda (file)
3620 (rename-file file (target file)))
3621 (scandir "." (cut string-suffix? ".scm" <>)))
3622 (rename-file "private" "hashing/private")
3625 `(("guile" ,guile-3.0)))
3626 (synopsis "Cryprographic hash functions implemented in Scheme")
3628 "The @code{(hashing @dots{})} modules implement cryptographic hash
3629 functions in pure R6RS Scheme: CRC, HMAC, MD5, SHA-1, and SHA-2 (SHA-256,
3631 (license license:expat)))
3633 (define-public guile2.2-hashing
3635 (inherit guile-hashing)
3636 (name "guile2.2-hashing")
3638 `(("guile" ,guile-2.2)))))
3640 (define-public guile3.0-hashing
3641 (deprecated-package "guile3.0-hashing" guile-hashing))
3643 (define-public guile-packrat
3645 (name "guile-packrat")
3647 (home-page "https://github.com/weinholt/packrat")
3652 (commit (string-append "v" version))))
3653 (file-name (git-file-name name version))
3656 "1aga17164fkhbgllqc7ni6fk5zl8mkmgkl5zcsy67x7ngpyalbby"))))
3657 (build-system guile-build-system)
3659 `(#:implicit-inputs? #f ;needs nothing but Guile
3660 #:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
3661 #:not-compiled-file-regexp "/extensible\\.scm$"
3662 #:phases (modify-phases %standard-phases
3663 (add-before 'build 'no-srfi-23
3665 (substitute* "packrat.sls"
3666 (("\\(srfi :23 error\\)")
3667 (object->string '(only (guile) error))))
3670 `(("guile" ,guile-3.0)))
3671 (synopsis "Packrat parser library in R6RS Scheme")
3673 "This is an R6RS Scheme adaptation of the
3674 @uref{https://bford.info/packrat/, packrat parsing}. Packrat parsing is a
3675 memoizing, backtracking, recursive-descent parsing technique that runs in time
3676 and space linear in the size of the input text.")
3677 (license license:expat)))
3679 (define-public guile-ac-d-bus
3681 (name "guile-ac-d-bus")
3682 (version "1.0.0-beta.0")
3683 (home-page "https://gitlab.com/weinholt/ac-d-bus/")
3688 (commit (string-append "v" version))))
3689 (file-name (git-file-name name version))
3692 "0rl809qimhgz6b0rixakb42r2l4g53jr09a2g0s1hxgab0blz0kb"))))
3693 (build-system guile-build-system)
3695 `(#:implicit-inputs? #f ;needs nothing but Guile
3696 #:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
3697 #:phases (modify-phases %standard-phases
3698 (add-before 'build 'adjust-for-guile
3700 ;; Adjust source file names for Guile.
3701 (define (guile-sls->sls file)
3702 (string-append (string-drop-right
3703 file (string-length ".guile.sls"))
3706 ;; Remove files targeting other implementations:
3708 (for-each delete-file
3712 (not (string-contains file ".guile.")))))
3714 ;; Rename *.guile.sls to *.sls so the ".guile" bit does
3715 ;; not appear in .go file names.
3716 (for-each (lambda (file)
3717 (rename-file file (guile-sls->sls file)))
3718 (find-files "compat" "\\.guile\\.sls"))
3720 ;; Move directories under d-bus/ to match module names.
3722 (for-each (lambda (directory)
3723 (rename-file directory
3724 (string-append "d-bus/"
3726 '("compat" "protocol"))
3730 `(("guile" ,guile-3.0)))
3732 `(("guile-packrat" ,guile-packrat)))
3733 (synopsis "D-Bus protocol implementation in R6RS Scheme")
3735 "AC/D-Bus is an implementation of the D-Bus wire protocol. D-Bus is an
3736 interprocess communication protocol popular on GNU/Linux systems to
3737 communicate with a variety of services. Originally designed for desktop
3738 environments, it is now used by programs like VLC media player, BlueZ,
3739 NetworkManager, Pulseaudio, systemd (including logind and resolved), Polkit,
3740 gnome-keyring, and many more.")
3741 (license license:expat)))
3743 (define-public guile-webutils
3744 (let ((commit "8541904f761066dc9c27b1153e9a838be9a55299")
3747 (name "guile-webutils")
3748 (version (git-version "0.1" revision commit))
3752 (url "https://notabug.org/cwebber/guile-webutils.git")
3754 (file-name (git-file-name name version))
3757 "1s9n3hbxd7lfpdi0x8wr0cfvlsf6g62ird9gbspxdrp5p05rbi64"))
3758 (modules '((guix build utils)))
3761 ;; Allow builds with Guile 3.0.
3762 (substitute* "configure.ac"
3766 (build-system gnu-build-system)
3768 `(("autoconf" ,autoconf)
3769 ("automake" ,automake)
3770 ("pkg-config" ,pkg-config)
3771 ("texinfo" ,texinfo)))
3773 `(("guile" ,guile-3.0)))
3775 `(("guile-irregex" ,guile-irregex)
3776 ("guile-gcrypt" ,guile-gcrypt)))
3777 (home-page "https://notabug.org/cwebber/guile-webutils")
3778 (synopsis "Web application authoring utilities for Guile")
3780 "This package provides tooling to write web applications in Guile, such
3781 as signed sessions, multipart message support, etc.")
3782 (license license:gpl3+))))
3784 (define-public guile2.2-webutils
3786 (inherit guile-webutils)
3787 (name "guile2.2-webutils")
3789 `(("guile" ,guile-2.2)))
3791 `(("guile-irregex" ,guile2.2-irregex)
3792 ("guile-gcrypt" ,guile2.2-gcrypt)))))
3794 (define-public guile-lens
3795 (let ((commit "14b15d07255f9d3f55d40a3b750d13c9ee3a154f")
3799 (version (git-version "0.1" revision commit))
3803 (url "https://gitlab.com/a-sassmannshausen/guile-lens.git")
3805 (file-name (git-file-name name version))
3808 "0w8jzqyla56yrgj7acsgd4nspyir6zgp3vgxid4xmwhg9wmf1ida"))))
3809 (build-system gnu-build-system)
3812 (modify-phases %standard-phases
3813 (add-after 'unpack 'run-hall
3815 (setenv "HOME" "/tmp") ; for ~/.hall
3816 (invoke "hall" "dist" "-x"))))))
3818 `(("autoconf" ,autoconf)
3819 ("automake" ,automake)
3820 ("guile" ,guile-3.0)
3821 ("guile-hall" ,guile-hall)
3822 ("pkg-config" ,pkg-config)
3823 ("texinfo" ,texinfo)))
3824 (home-page "https://gitlab.com/a-sassmannshausen/guile-lens.git")
3825 (synopsis "Composable lenses for data structures in Guile")
3827 "Guile-Lens is a library implementing lenses in Guile. The library is
3828 currently a re-implementation of the lentes library for Clojure. Lenses
3829 provide composable procedures, which can be used to focus, apply functions
3830 over, or update a value in arbitrary data structures.")
3831 (license license:gpl3+))))
3833 (define-public guile2.2-lens
3835 (inherit guile-lens)
3836 (name "guile2.2-lens")
3838 `(("guile" ,guile-2.2)
3839 ,@(alist-delete "guile" (package-native-inputs guile-lens))))))
3841 (define-public guile-xapian
3843 (name "guile-xapian")
3845 (home-page "https://git.systemreboot.net/guile-xapian")
3849 (uri (git-reference (url home-page)
3850 (commit (string-append "v" version))))
3851 (file-name (git-file-name name version))
3854 "16k61f1jn3g48jaf3730b9l0izr5j933jzyri73nmcnjd09gm35i"))))
3855 (build-system gnu-build-system)
3857 '(#:make-flags '("GUILE_AUTO_COMPILE=0"))) ; to prevent guild warnings
3859 `(("guile" ,guile-3.0)
3863 `(("autoconf" ,autoconf)
3864 ("autoconf-archive" ,autoconf-archive)
3865 ("automake" ,automake)
3866 ("libtool" ,libtool)
3867 ("pkg-config" ,pkg-config)
3869 (synopsis "Guile bindings for Xapian")
3870 (description "@code{guile-xapian} provides Guile bindings for Xapian, a
3871 search engine library. Xapian is a highly adaptable toolkit which allows
3872 developers to easily add advanced indexing and search facilities to their own
3873 applications. It has built-in support for several families of weighting
3874 models and also supports a rich set of boolean query operators.")
3875 (license license:gpl2+)))
3877 (define-public guile2.2-xapian
3879 (inherit guile-xapian)
3880 (name "guile2.2-xapian")
3882 `(("guile" ,guile-2.2)
3883 ,@(alist-delete "guile" (package-inputs guile-xapian))))))
3885 (define-public guile3.0-xapian
3886 (deprecated-package "guile3.0-xapian" guile-xapian))
3888 (define-public guile-torrent
3890 (name "guile-torrent")
3892 (source (origin (method git-fetch)
3895 "https://github.com/o-nly/torrent")
3897 (file-name (git-file-name name version))
3900 "1yiagi55ncq1x7s9n7salzywjm4l96y3n7y3s47a9anvz87mrmim"))))
3901 (build-system gnu-build-system)
3903 `(("autoconf" ,autoconf)
3904 ("automake" ,automake)
3905 ("guile" ,guile-2.2)
3906 ("texinfo" ,texinfo)
3908 ("pkg-config" ,pkg-config)))
3910 `(("guile-gcrypt" ,guile-gcrypt)))
3911 (home-page "https://github.com/o-nly/torrent")
3912 (synopsis "Torrent library for GNU Guile")
3913 (description "This package provides facilities for working with
3914 @code{.torrent} or metainfo files. Implements a bencode reader and writer
3915 according to Bitorrent BEP003.")
3916 (license license:gpl3+)))
3918 (define-public guile-irc
3919 (let ((commit "375d3bde9c6ae7ccc9d7cc65817966b6fda8f26a")
3923 (version (git-version "0.3.0" revision commit))
3927 (url "https://github.com/rekado/guile-irc")
3929 (file-name (git-file-name name version))
3932 "113lcckcywrz9060w1c3fnvr8d7crdsjgsv4h47hgmr1slgadl4y"))))
3933 (build-system gnu-build-system)
3935 `(#:configure-flags '("--enable-gnutls=yes")))
3937 `(("autoconf" ,autoconf)
3938 ("automake" ,automake)
3939 ("texinfo" ,texinfo)))
3941 `(("gnutls" ,gnutls)
3942 ("guile" ,guile-3.0)))
3943 (home-page "https://github.com/rekado/guile-irc")
3944 (synopsis "IRC library for Guile")
3945 (description "This package provides a Guile library for @dfn{Internet
3946 Relay Chat} (IRC).")
3947 ;; Some file headers incorrectly say LGPLv2+.
3948 (license license:lgpl2.1+))))
3950 (define-public guile-websocket
3951 (let ((commit "c854e0f84a40d972cbd532bbb89c97ca0126a7cf"))
3953 (name "guile-websocket")
3959 (url "git://dthompson.us/guile-websocket.git")
3961 (file-name (git-file-name name version))
3964 "1hymvsfrmq9qxr5cxnsgdz7y757yp1cpsgxmdp3f5wxxxpqgsmzx"))))
3965 (build-system gnu-build-system)
3968 '("GUILE_AUTO_COMPILE=0")
3970 (modify-phases %standard-phases
3971 ;; The package was developed for Guile 2.0 and has this version
3972 ;; hardcoded in the configure.ac and Makefile.am files. Substitute
3973 ;; 3.0 instead so it can support Guile 3.0.
3974 (add-after 'unpack 'update-guile-version
3976 (substitute* "configure.ac"
3977 (("2.0.9") "3.0.0"))
3978 (substitute* "Makefile.am"
3981 ;; Install .go files where they belong.
3982 (("/ccache") "/site-ccache"))
3985 `(("autoconf" ,autoconf)
3986 ("automake" ,automake)))
3988 `(("guile" ,guile-3.0)))
3989 (synopsis "Websocket server/client for Guile")
3990 (description "Guile-websocket provides an implementation of the
3991 WebSocket protocol as defined by RFC 6455.")
3992 (home-page "https://git.dthompson.us/guile-websocket.git")
3993 (license license:lgpl3+))))
3995 (define-public guile3.0-websocket
3996 (deprecated-package "guile3.0-websocket" guile-websocket))
3998 (define-public guile-rdf
4006 (url "https://framagit.org/tyreunom/guile-rdf")
4008 (file-name (git-file-name name version))
4011 "0dwn3app1fscbpmpgvjs5jy1y0gwy3j5gdx8br79af6a88zjlnqf"))))
4012 (build-system gnu-build-system)
4014 `(#:tests? #f)); tests require network
4016 `(("guile" ,guile-3.0)))
4018 `(("automake" ,automake)
4019 ("autoconf" ,autoconf)
4020 ("pkg-config" ,pkg-config)
4021 ("texinfo" ,texinfo)))
4022 (home-page "https://framagit.org/tyreunom/guile-rdf")
4023 (synopsis "Guile implementation of the RDF abstract and concrete syntaxes")
4024 (description "Guile RDF is an implementation of the RDF (Resource Description
4025 Framework) format defined by the W3C for GNU Guile. RDF structures include
4026 triples (facts with a subject, a predicate and an object), graphs which are
4027 sets of triples, and datasets, which are collections of graphs.
4029 RDF specifications include the specification of concrete syntaxes and of
4030 operations on graphs. This library implements some basic functionalities,
4031 such as parsing and producing turtle and nquads syntax, as well as
4032 manipulating graphs and datasets.")
4033 (license license:gpl3+)))
4035 (define-public guile-jsonld
4037 (name "guile-jsonld")
4043 (url "https://framagit.org/tyreunom/guile-jsonld")
4045 (file-name (git-file-name name version))
4048 "1ryyvh71899z2inivqglb8d78zzp1sd0wv9a56kvcmrxf1966z6r"))))
4049 (build-system gnu-build-system)
4051 `(#:tests? #f)); require network
4053 `(("guile-gnutls" ,gnutls)
4054 ("guile-json" ,guile-json-4)
4055 ("guile-rdf" ,guile-rdf)))
4057 `(("guile" ,guile-3.0)))
4059 `(("automake" ,automake)
4060 ("autoconf" ,autoconf)
4061 ("pkg-config" ,pkg-config)
4062 ("texinfo" ,texinfo)))
4063 (home-page "https://framagit.org/tyreunom/guile-jsonld")
4064 (synopsis "Guile implementation of the JsonLD API specification")
4065 (description "Guile JsonLD is an implementation of the JsonLD (Json for
4066 Linked Data) API defined by the W3C for GNU Guile. It allows you to express links
4067 between data, in a way that is very similar to WikiData or RDF for instance.
4068 An object can have relations (in the form of an IRI) that relates it to one or
4069 more objects or strings, represented by a Json object or an IRI.")
4070 (license license:gpl3+)))
4072 (define-public guile-struct-pack
4074 (name "guile-struct-pack")
4080 (url "https://github.com/weinholt/struct-pack")
4081 (commit (string-append "v" version))))
4082 (file-name (git-file-name name version))
4084 (base32 "0hd72m821pahjphzyjn26i55542v8makr55xzjll2cycja4wsbc1"))))
4085 (build-system guile-build-system)
4087 `(#:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
4088 #:modules ((guix build guile-build-system)
4092 #:phases (modify-phases %standard-phases
4093 (add-before 'build 'move-sls-files
4095 ;; Move files under a struct/ directory to reflect the
4096 ;; module hierarchy.
4097 (define dst-folder "struct")
4098 (define (target file)
4099 (string-append dst-folder "/" file))
4101 (scandir "." (negate (cut member <> '("." "..")))))
4103 (for-each (lambda (file)
4104 (rename-file file (target file)))
4108 `(("guile" ,guile-3.0)))
4109 (home-page "https://github.com/weinholt/struct-pack")
4110 (synopsis "R6RS library for working with packed byte structures")
4112 "This is an R6RS library for working with packed byte structures. It is
4113 similar to struct in Python or pack and unpack in Perl.")
4114 (license license:expat)))
4116 (define-public guile-machine-code
4118 (name "guile-machine-code")
4124 (url "https://github.com/weinholt/machine-code")
4125 (commit (string-append "v" version))))
4126 (file-name (git-file-name name version))
4128 (base32 "0wzj3caj2jypzyjqfkfqkvr3kkbjabsnhldv9kvnx9w9qnria5yd"))))
4129 (build-system guile-build-system)
4131 `(#:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
4132 #:modules ((guix build guile-build-system)
4136 #:phases (modify-phases %standard-phases
4137 (add-before 'build 'move-sls-files
4139 ;; Move files under a struct/ directory to reflect the
4140 ;; module hierarchy.
4141 (define dst-folder "machine-code")
4142 (define (target file)
4143 (string-append dst-folder "/" file))
4145 (scandir "." (negate (cut member <> '("." "..")))))
4147 (for-each (lambda (file)
4148 (rename-file file (target file)))
4152 `(("guile" ,guile-3.0)))
4154 `(("guile-struct-pack" ,guile-struct-pack)))
4155 (home-page "https://github.com/weinholt/machine-code")
4156 (synopsis "Tools that relate to machine code and object formats")
4158 "This project is about the development of tools that relate to machine
4159 code and object formats; for all architectures. Here you'll find libraries
4160 for working with binary code: assembly, disassembly, instruction tables,
4161 object formats and related areas.")
4162 (license license:expat)))
4164 (define-public guile-laesare
4166 (name "guile-laesare")
4172 (url "https://github.com/weinholt/laesare")
4173 (commit (string-append "v" version))))
4174 (file-name (git-file-name name version))
4176 (base32 "15q619gzw717r8r1ql23zfdaibpnp9qqs96032vdc3rj74msxc92"))))
4177 (build-system guile-build-system)
4179 `(#:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
4180 #:modules ((guix build guile-build-system)
4184 #:phases (modify-phases %standard-phases
4185 (add-before 'build 'move-sls-files
4187 ;; Move files under a laesare directory to reflect
4188 ;; the module hierarchy.
4189 (define dst-folder "laesare")
4190 (define (target file)
4191 (string-append dst-folder "/" file))
4193 (scandir "." (negate (cut member <> '("." "..")))))
4195 (for-each (lambda (file)
4196 (rename-file file (target file)))
4200 `(("guile" ,guile-3.0)))
4201 (home-page "https://github.com/weinholt/laesare")
4202 (synopsis "R6RS Scheme library that provides a reader")
4204 "This is an R6RS Scheme library that provides a reader with some extra
4205 features not found in the standard read procedure such as a compatible mode
4206 with support for other RnRS standards and a tolerant mode that continues on
4208 (license license:expat)))
4210 (define-public guile-avahi
4211 (let ((commit "6d43caf64f672a9694bf6c98bbf7a734f17a51e8")
4214 (name "guile-avahi")
4215 (version (git-version "0.4.0" revision commit))
4219 (url "git://git.sv.gnu.org/guile-avahi.git")
4221 (file-name (git-file-name name version))
4224 "0fvrf8x22yvc71180hd3xkhspg9yvadi0pbv8shzlsaxqncwy1m9"))
4225 (modules '((guix build utils)))))
4226 (build-system gnu-build-system)
4228 `(#:modules (((guix build guile-build-system)
4229 #:select (target-guile-effective-version))
4230 ,@%gnu-build-system-modules)
4231 #:imported-modules ((guix build guile-build-system)
4232 ,@%gnu-build-system-modules)
4234 '("GUILE_AUTO_COMPILE=0") ;to prevent guild warnings
4236 (modify-phases %standard-phases
4237 (add-before 'check 'fix-guile-avahi-file-name
4238 (lambda* (#:key outputs #:allow-other-keys)
4239 (with-directory-excursion "src"
4240 (invoke "make" "install"
4241 "-j" (number->string
4242 (parallel-job-count))))
4243 (let* ((out (assoc-ref outputs "out"))
4244 (files (find-files "modules" ".scm")))
4246 (("\"guile-avahi-v-0\"")
4247 (format #f "\"~a/lib/guile/~a/extensions/guile-avahi-v-0\""
4248 out (target-guile-effective-version))))
4251 `(("guile" ,guile-3.0)
4254 `(("autoconf" ,autoconf)
4255 ("automake" ,automake)
4256 ("libtool" ,libtool)
4257 ("pkg-config" ,pkg-config)
4258 ("texinfo" ,texinfo)))
4259 (synopsis "Guile bindings to Avahi")
4261 "This package provides bindings for Avahi. It allows programmers to
4262 use functionalities of the Avahi client library from Guile Scheme programs.
4263 Avahi itself is an implementation of multicast DNS (mDNS) and DNS Service
4264 Discovery (DNS-SD).")
4265 (home-page "https://www.nongnu.org/guile-avahi/")
4266 (license license:lgpl3+))))
4268 (define-public guile-mkdir-p
4270 (name "guile-mkdir-p")
4276 (url "https://code.divoplade.fr/mkdir-p.git")
4277 (commit (string-append "v" version))))
4279 (base32 "01k20rjcv6p0spmw8ls776aar6bfw0jxw46d2n12w0cb2p79xjv8"))
4280 (file-name (git-file-name name version))
4283 (with-output-to-file ".tarball-version"
4284 (lambda _ (format #t "~a~%" ,version)))
4286 (build-system gnu-build-system)
4289 `(("guile" ,guile-3.0)
4290 ("texinfo" ,texinfo)
4291 ("autoconf" ,autoconf)
4292 ("autoconf-archive" ,autoconf-archive)
4293 ("automake" ,automake)
4294 ("pkg-config" ,pkg-config)
4295 ("gettext" ,gettext-minimal)))
4296 (inputs `(("guile" ,guile-3.0)))
4297 (synopsis "Implementation of a recursive @code{mkdir} for Guile")
4299 "This package provides within the @code{(mkdir-p)} module the
4300 @code{mkdir-p} function that tries to create the chain of directories
4301 recursively. It also provides new versions of @code{open-output-file},
4302 @code{call-with-output-file} and @code{with-output-to-file} to create the
4303 directory of its argument if it does not exist.")
4304 (home-page "https://mkdir-p.divoplade.fr")
4305 (license license:asl2.0)))
4307 (define-public guile-jwt
4315 (url "https://github.com/aconchillo/guile-jwt")
4317 (file-name (git-file-name name version))
4320 "1p8sapiv5im18rjnzc8xnw6y7dr661rycf9g10z5ww0dl4rfz3z1"))))
4321 (build-system gnu-build-system)
4323 `(("autoconf" ,autoconf)
4324 ("automake" ,automake)
4325 ("pkg-config" ,pkg-config)))
4327 `(("guile-json" ,guile-json-4)))
4329 `(("guile" ,guile-3.0)))
4330 (home-page "https://github.com/aconchillo/guile-jwt")
4331 (synopsis "JSON Web Token library for Guile")
4333 "guile-jwt is a JSON Web Token module for Guile. JSON Web Tokens are an
4334 open, industry standard (RFC 7519) method for representing claims securely
4335 between two parties. guile-jwt allows you to decode, verify and generate
4336 JWT. Supported algorithms: HS256, HS384, HS512.")
4337 (license license:gpl3+)))
4339 (define-public guile-sodium
4341 (name "guile-sodium")
4347 (url "https://inqlab.net/git/guile-sodium.git")
4348 (commit (string-append "v" version))))
4349 (file-name (git-file-name name version))
4350 (sha256 (base32 "189jsj87hycs57a54x0b9lifwvhr63nypb9vfxdrq7rwrpcvi5f8"))))
4351 (build-system gnu-build-system)
4354 `(("autoconf" ,autoconf)
4355 ("automake" ,automake)
4356 ("pkg-config" ,pkg-config)
4357 ("texinfo" ,texinfo)))
4358 (inputs `(("guile" ,guile-3.0)))
4359 (propagated-inputs `(("libsodium" ,libsodium)))
4360 (synopsis "Guile bindings to the libsodium cryptographic library")
4362 "This package provides Guile bindings to the libsodium cryptographic library
4363 which provides core cryptographic primitives needed to build higher-level
4365 (home-page "https://inqlab.net/git/guile-sodium.git")
4366 (license license:gpl3+)))
4368 (define-public guile-eris
4376 (url "https://inqlab.net/git/eris.git")
4377 (commit (string-append "v" version))))
4378 (file-name (git-file-name name version))
4379 (sha256 (base32 "1ijglmwkdy1l87gj429qfjis0v8b1zlxhbyfhx5za8664h68nqka"))))
4380 (build-system gnu-build-system)
4383 `(("autoconf" ,autoconf)
4384 ("automake" ,automake)
4385 ("pkg-config" ,pkg-config)
4386 ("texinfo" ,texinfo)
4388 ("guile-srfi-180" ,guile-srfi-180)))
4389 (inputs `(("guile" ,guile-3.0)))
4391 `(("guile-sodium" ,guile-sodium)))
4392 (synopsis "Guile implementation of the Encoding for Robust Immutable Storage (ERIS)")
4394 "Guile-ERIS is the reference implementation of the Encoding for Robust
4395 Immutable Storage (ERIS). ERIS allows arbirtary content to be encoded into
4396 uniformly sized, encrypted blocks that can be reassembled using a short
4398 (home-page "https://inqlab.net/git/eris.git")
4399 (license license:gpl3+)))
4401 (define-public guile-r6rs-protobuf
4403 (name "guile-r6rs-protobuf")
4409 (url "https://gitlab.com/joolean/r6rs-protobuf")
4410 (commit (string-append "v" version))))
4411 (file-name (git-file-name name version))
4414 "1xmn7jlr1xiqgd35klq910p1bnil1iwdvqxkjr3zzml3spy8p2aa"))))
4415 (build-system guile-build-system)
4417 `(#:compile-flags '("--r6rs")))
4419 `(("guile" ,guile-3.0)))
4420 (home-page "https://gitlab.com/joolean/r6rs-protobuf/")
4421 (synopsis "Scheme implementation of Protocol Buffers")
4423 "This project provides a pure Scheme implementation of Protocol Buffers,
4424 including parsing and code generation.")
4425 (license license:gpl3+)))
4427 (define-public guile-shapefile
4429 (name "guile-shapefile")
4435 (url "https://github.com/HugoNikanor/guile-shapefile")
4436 (commit (string-append "v" version))))
4437 (file-name (git-file-name name version))
4440 "1zvrpc8bshw9w0vhdpmhv00j07mzsdyg2f9hfabr83v08zhfi8ml"))))
4441 (build-system guile-build-system)
4444 (modify-phases %standard-phases
4445 (add-after 'unpack 'delete-pre-generated-docs
4447 (delete-file-recursively "docs")
4449 (add-after 'install 'install-info-documentation
4450 (lambda* (#:key outputs #:allow-other-keys)
4451 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
4452 (doc (string-append share "/doc/" ,name "-" ,version))
4453 (info (string-append share "/info/"))
4454 (makeinfo (string-append (assoc-ref %build-inputs "texinfo")
4456 (invoke makeinfo "guile-shapefile.texi" "-o" info)
4459 `(("guile" ,guile-3.0)))
4461 `(("texinfo" ,texinfo)))
4462 (home-page "https://github.com/HugoNikanor/guile-shapefile")
4463 (synopsis "Parse shapefiles in Guile")
4465 "Guile Shapefile is a Guile library for reading shapefiles.")
4466 (license license:expat)))
4468 (define-public guile-libyaml
4469 (let ((commit "f5d33a6880e96571d3cb079ed7755ffc156cac46")
4472 (name "guile-libyaml")
4473 (version (git-version "0" revision commit))
4478 (url "https://github.com/mwette/guile-libyaml")
4480 (file-name (git-file-name name version))
4483 "12x91983fh1j39zy7kbk19acc1rqdh8515ddx1mh7l26j04k9wgq"))))
4484 (build-system gnu-build-system)
4486 `(#:modules (((guix build guile-build-system)
4488 ,@%gnu-build-system-modules)
4489 #:imported-modules ((guix build guile-build-system)
4490 ,@%gnu-build-system-modules)
4491 #:tests? #false ; there are none
4493 (modify-phases %standard-phases
4495 (add-after 'unpack 'remove-unused-files
4496 (lambda* (#:key inputs #:allow-other-keys)
4497 (for-each delete-file
4498 '("guix.scm" "demo1.yml" "demo1.scm"
4500 ;; This file is mismatched with the generated FFI code.
4501 "yaml/ffi-help-rt.scm"))
4502 (copy-file (string-append (assoc-ref inputs "nyacc")
4503 "/share/guile/site/3.0/system/ffi-help-rt.scm")
4504 "yaml/ffi-help-rt.scm")
4505 (substitute* "yaml/ffi-help-rt.scm"
4506 (("system ffi-help-rt") "yaml ffi-help-rt"))
4508 (add-before 'build 'build-ffi
4509 (lambda* (#:key inputs #:allow-other-keys)
4510 (invoke "guild" "compile-ffi"
4511 "--no-exec" ; allow us to patch the generated file
4513 (substitute* "yaml/libyaml.scm"
4514 (("system ffi-help-rt") "yaml ffi-help-rt")
4515 (("dynamic-link \"libyaml\"")
4516 (format #false "dynamic-link \"~a/lib/libyaml\""
4517 (assoc-ref inputs "libyaml"))))
4520 (assoc-ref guile:%standard-phases 'build))
4521 (delete 'install))))
4523 `(("guile" ,guile-3.0)
4524 ("libyaml" ,libyaml)))
4526 `(("guile-bytestructures" ,guile-bytestructures)))
4528 `(("nyacc" ,nyacc)))
4529 (home-page "https://github.com/mwette/guile-libyaml")
4530 (synopsis "Guile wrapper for libyaml")
4532 "This package provides a simple yaml module for Guile using the
4533 ffi-helper from nyacc.")
4534 (license license:lgpl3+))))
4536 (define-public schmutz
4537 (let ((commit "add24588c59552537b8f1316df99a0cdd62c221e")
4541 (version (git-version "0" revision commit))
4545 (url "https://github.com/arximboldi/schmutz")
4547 (file-name (git-file-name name version))
4550 "1z3n61sj62lnn15mandvyrpjzli07rp9r62ypvgg3a8bvh37yc89"))))
4551 (build-system cmake-build-system)
4552 (arguments `(#:tests? #f))
4554 `(("pkg-config" ,pkg-config)))
4556 `(("guile" ,guile-2.2)))
4557 (home-page "https://github.com/arximboldi/schmutz")
4558 (synopsis "Bind C++ code to Scheme")
4559 (description "Schmutz is a header-only library to declare Scheme bindings
4560 for C++ code using a simple embedded DSL. Think of it as @code{Boost.Python}
4561 or @code{LuaBind} but for Scheme.")
4562 (license license:boost1.0))))
4564 (define-public guile-cbor
4572 (url "https://inqlab.net/git/guile-cbor.git")
4573 (commit (string-append "v" version))))
4574 (file-name (git-file-name name version))
4575 (sha256 (base32 "0bdqg3ifayf7m2j09lqrgdfprbdaa67azf09bcq9b4k71inxfnxl"))))
4576 (build-system gnu-build-system)
4579 `(("autoconf" ,autoconf)
4580 ("automake" ,automake)
4581 ("pkg-config" ,pkg-config)
4582 ("texinfo" ,texinfo)))
4583 (inputs `(("guile" ,guile-3.0)))
4584 (synopsis "Guile implementation of CBOR")
4586 "The Concise Binary Object Representation (CBOR), as specified by RFC 8949, is
4587 a binary data serialization format. CBOR is similar to JSON but serializes to
4588 binary which is smaller and faster to generate and parse. This package provides
4589 a Guile implementation of CBOR.")
4590 (home-page "https://inqlab.net/git/guile-cbor.git")
4591 (license license:gpl3+)))