1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2014, 2015, 2018 Mark H Weaver <mhw@netris.org>
4 ;;; Copyright © 2015, 2017 Christopher Allan Webber <cwebber@dustycloud.org>
5 ;;; Copyright © 2016 Alex Sassmannshausen <alex@pompo.co>
6 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2016 Erik Edrosa <erik.edrosa@gmail.com>
8 ;;; Copyright © 2016, 2019, 2020 Eraim Flashner <efraim@flashner.co.il>
9 ;;; Copyright © 2016, 2017 Alex Kost <alezost@gmail.com>
10 ;;; Copyright © 2016, 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@openmailbox.org>
11 ;;; Copyright © 2016 Amirouche <amirouche@hypermove.net>
12 ;;; Copyright © 2016, 2019 Jan Nieuwenhuizen <janneke@gnu.org>
13 ;;; Copyright © 2017 Andy Wingo <wingo@igalia.com>
14 ;;; Copyright © 2017 David Thompson <davet@gnu.org>
15 ;;; Copyright © 2017, 2018, 2019, 2020 Mathieu Othacehe <m.othacehe@gmail.com>
16 ;;; Copyright © 2017 Theodoros Foradis <theodoros@foradis.org>
17 ;;; Copyright © 2017 Nikita <nikita@n0.is>
18 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
19 ;;; Copyright © 2018 Maxim Cournoyer <maxim.cournoyer@gmail.com>
20 ;;; Copyright © 2018, 2019, 2020 Arun Isaac <arunisaac@systemreboot.net>
21 ;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
22 ;;; Copyright © 2018 Eric Bavier <bavier@member.fsf.org>
23 ;;; Copyright © 2019 swedebugia <swedebugia@riseup.net>
24 ;;; Copyright © 2019, 2020 Amar Singh <nly@disroot.org>
25 ;;; Copyright © 2019 Timothy Sample <samplet@ngyro.com>
26 ;;; Copyright © 2019, 2020 Martin Becze <mjbecze@riseup.net>
27 ;;; Copyright © 2020 Evan Straw <evan.straw99@gmail.com>
28 ;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
29 ;;; Copyright © 2020 Julien Lepiler <julien@lepiller.eu>
30 ;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
31 ;;; Copyright © 2020 Masaya Tojo <masaya@tojo.tokyo>
33 ;;; This file is part of GNU Guix.
35 ;;; GNU Guix is free software; you can redistribute it and/or modify it
36 ;;; under the terms of the GNU General Public License as published by
37 ;;; the Free Software Foundation; either version 3 of the License, or (at
38 ;;; your option) any later version.
40 ;;; GNU Guix is distributed in the hope that it will be useful, but
41 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
42 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43 ;;; GNU General Public License for more details.
45 ;;; You should have received a copy of the GNU General Public License
46 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
48 (define-module (gnu packages guile-xyz)
49 #:use-module ((guix licenses) #:prefix license:)
50 #:use-module (gnu packages)
51 #:use-module (gnu packages algebra)
52 #:use-module (gnu packages aspell)
53 #:use-module (gnu packages autotools)
54 #:use-module (gnu packages base)
55 #:use-module (gnu packages bash)
56 #:use-module (gnu packages compression)
57 #:use-module (gnu packages databases)
58 #:use-module (gnu packages disk)
59 #:use-module (gnu packages emacs)
60 #:use-module (gnu packages emacs-xyz)
61 #:use-module (gnu packages gawk)
62 #:use-module (gnu packages gettext)
63 #:use-module (gnu packages gl)
64 #:use-module (gnu packages glib)
65 #:use-module (gnu packages gnome)
66 #:use-module (gnu packages gnupg)
67 #:use-module (gnu packages gperf)
68 #:use-module (gnu packages gtk)
69 #:use-module (gnu packages guile)
70 #:use-module (gnu packages hurd)
71 #:use-module (gnu packages image)
72 #:use-module (gnu packages imagemagick)
73 #:use-module (gnu packages libffi)
74 #:use-module (gnu packages libunistring)
75 #:use-module (gnu packages linux)
76 #:use-module (gnu packages man)
77 #:use-module (gnu packages maths)
78 #:use-module (gnu packages multiprecision)
79 #:use-module (gnu packages ncurses)
80 #:use-module (gnu packages networking)
81 #:use-module (gnu packages noweb)
82 #:use-module (gnu packages nss)
83 #:use-module (gnu packages password-utils)
84 #:use-module (gnu packages perl)
85 #:use-module (gnu packages pkg-config)
86 #:use-module (gnu packages python)
87 #:use-module (gnu packages readline)
88 #:use-module (gnu packages sdl)
89 #:use-module (gnu packages search)
90 #:use-module (gnu packages slang)
91 #:use-module (gnu packages sqlite)
92 #:use-module (gnu packages swig)
93 #:use-module (gnu packages tex)
94 #:use-module (gnu packages texinfo)
95 #:use-module (gnu packages tls)
96 #:use-module (gnu packages version-control)
97 #:use-module (gnu packages webkit)
98 #:use-module (gnu packages xdisorg)
99 #:use-module (gnu packages xorg)
100 #:use-module (guix packages)
101 #:use-module (guix download)
102 #:use-module (guix git-download)
103 #:use-module (guix hg-download)
104 #:use-module (guix build-system gnu)
105 #:use-module (guix build-system guile)
106 #:use-module (guix utils)
107 #:use-module (ice-9 match)
108 #:use-module ((srfi srfi-1) #:select (alist-delete)))
110 (define-public artanis
116 (uri (string-append "mirror://gnu/artanis/artanis-"
120 "0nnmdfx5xwcc3kck64var7msz7g3qk817d7bv9l159nkmic0v9w4"))
121 (modules '((guix build utils)))
124 ;; Unbundle guile-redis and guile-json
125 (delete-file-recursively "artanis/third-party/json.scm")
126 (delete-file-recursively "artanis/third-party/json")
127 (delete-file-recursively "artanis/third-party/redis.scm")
128 (delete-file-recursively "artanis/third-party/redis")
129 (substitute* '("artanis/artanis.scm"
132 (("(#:use-module \\()artanis third-party (json\\))" _
134 (string-append use-module json)))
135 (substitute* '("artanis/lpc.scm"
136 "artanis/session.scm")
137 (("(#:use-module \\()artanis third-party (redis\\))" _
139 (string-append use-module redis)))
140 (substitute* "artanis/oht.scm"
141 (("([[:punct:][:space:]]+)(->json-string)([[:punct:][:space:]]+)"
142 _ pre json-string post)
146 (substitute* "artanis/artanis.scm"
147 (("[[:punct:][:space:]]+->json-string[[:punct:][:space:]]+")
150 (build-system gnu-build-system)
152 `(("guile" ,guile-2.2)
154 ;; FIXME the bundled csv contains one more exported procedure
155 ;; (sxml->csv-string) than guile-csv. The author is maintainer of both
157 ;; TODO: Add guile-dbi and guile-dbd optional dependencies.
159 `(("guile-json" ,guile-json-1) ; This ia already using guile-2.2.
160 ("guile-readline" ,guile2.2-readline)
161 ("guile-redis" ,guile2.2-redis)))
163 `(("bash" ,bash) ;for the `source' builtin
164 ("pkgconfig" ,pkg-config)
165 ("util-linux" ,util-linux))) ;for the `script' command
168 ;; TODO: The documentation must be built with the `docs' target.
169 (let* ((out (assoc-ref %outputs "out"))
170 (scm (string-append out "/share/guile/site/2.2"))
171 (go (string-append out "/lib/guile/2.2/site-ccache")))
172 ;; Don't use (%site-dir) for site paths.
173 (list (string-append "MOD_PATH=" scm)
174 (string-append "MOD_COMPILED_PATH=" go)))
177 (modify-phases %standard-phases
178 (add-after 'unpack 'patch-site-dir
179 (lambda* (#:key outputs #:allow-other-keys)
180 (substitute* "artanis/commands/help.scm"
183 (assoc-ref outputs "out")
184 "/share/guile/site/2.2\"")))))
185 (add-after 'unpack 'patch-reference-to-libnss
186 (lambda* (#:key inputs #:allow-other-keys)
187 (substitute* "artanis/security/nss.scm"
188 (("ffi-binding \"libnss3\"")
191 (assoc-ref inputs "nss") "/lib/nss/libnss3.so"
194 (add-before 'install 'substitute-root-dir
195 (lambda* (#:key outputs #:allow-other-keys)
196 (let ((out (assoc-ref outputs "out")))
197 (substitute* "Makefile" ;ignore the execution of bash.bashrc
198 ((" /etc/bash.bashrc") " /dev/null"))
199 (substitute* "Makefile" ;set the root of config files to OUT
200 ((" /etc") (string-append " " out "/etc")))
201 (mkdir-p (string-append out "/bin")) ;for the `art' executable
203 (add-after 'install 'wrap-art
204 (lambda* (#:key inputs outputs #:allow-other-keys)
205 (let* ((out (assoc-ref outputs "out"))
206 (bin (string-append out "/bin"))
207 (scm (string-append out "/share/guile/site/2.2"))
208 (go (string-append out "/lib/guile/2.2/site-ccache")))
209 (wrap-program (string-append bin "/art")
210 `("GUILE_LOAD_PATH" ":" prefix
211 (,scm ,(getenv "GUILE_LOAD_PATH")))
212 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
213 (,go ,(getenv "GUILE_LOAD_COMPILED_PATH"))))
215 (synopsis "Web application framework written in Guile")
216 (description "GNU Artanis is a web application framework written in Guile
217 Scheme. A web application framework (WAF) is a software framework that is
218 designed to support the development of dynamic websites, web applications, web
219 services and web resources. The framework aims to alleviate the overhead
220 associated with common activities performed in web development. Artanis
221 provides several tools for web development: database access, templating
222 frameworks, session management, URL-remapping for RESTful, page caching, and
224 (home-page "https://www.gnu.org/software/artanis/")
225 (license (list license:gpl3+ license:lgpl3+)))) ;dual license
227 ;; There has not been any release yet.
228 (define-public guildhall
229 (let ((commit "2fe2cc539f4b811bbcd69e58738db03eb5a2b778")
233 (version (string-append "0-" revision "." (string-take commit 9)))
237 (url "https://github.com/ijp/guildhall")
239 (file-name (string-append name "-" version "-checkout"))
242 "115bym7bg66h3gs399yb2vkzc2ygriaqsn4zbrg8f054mgy8wzn1"))))
243 (build-system gnu-build-system)
246 (modify-phases %standard-phases
247 ;; Tests fail without this fix because they try to load the bash
248 ;; executable as a Scheme file. See bug report at
249 ;; https://github.com/ijp/guildhall/issues/22
250 (add-after 'unpack 'fix-bug-22
252 (substitute* "Makefile.am"
253 (("TESTS_ENVIRONMENT=.*")
254 "AM_TESTS_ENVIRONMENT=srcdir=$(abs_top_srcdir)/tests/
255 TEST_EXTENSIONS = .scm
256 SCM_LOG_COMPILER= $(top_builddir)/env $(GUILE)
257 AM_SCM_LOG_FLAGS = --no-auto-compile -s")
258 ;; FIXME: one of the database tests fails for unknown
259 ;; reasons. It does not fail when run outside of Guix.
260 (("tests/database.scm") ""))
263 `(("guile" ,guile-2.0)))
265 `(("zip" ,zip) ; for tests
266 ("autoconf" ,autoconf)
267 ("automake" ,automake)
268 ("texinfo" ,texinfo)))
269 (synopsis "Package manager for Guile")
271 "Guildhall is a package manager written for Guile Scheme. A guild is
272 an association of independent craftspeople. A guildhall is where they meet.
273 This Guildhall aims to make a virtual space for Guile wizards and journeyfolk
276 On a practical level, Guildhall lets you share Scheme modules and programs
277 over the internet, and install code that has been shared by others. Guildhall
278 can handle dependencies, so when a program requires several libraries, and
279 each of those has further dependencies, all of the prerequisites for the
280 program can be installed in one go.")
281 (home-page "https://github.com/ijp/guildhall")
282 (license license:gpl3+))))
284 (define-public guile-aspell
286 (name "guile-aspell")
291 "http://lonelycactus.com/tarball/guile_aspell-"
295 "0vpk5xj9m9qc702z3khmkwhgpb949qbsyz8kw2qycda6qnxk0077"))))
296 (build-system gnu-build-system)
298 '(#:phases (modify-phases %standard-phases
299 (add-before 'configure 'set-guilesitedir
301 (substitute* "Makefile.in"
302 (("^guilesitedir =.*$")
304 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
306 (add-before 'build 'set-libaspell-file-name
307 (lambda* (#:key inputs #:allow-other-keys)
308 (let ((aspell (assoc-ref inputs "aspell")))
309 (substitute* "aspell.scm"
310 (("\"libaspell\\.so\"")
311 (string-append "\"" aspell
312 "/lib/libaspell\"")))
314 (native-inputs `(("pkg-config" ,pkg-config)))
315 (inputs `(("guile" ,guile-2.2)
317 (home-page "https://github.com/spk121/guile-aspell")
318 (synopsis "Spell-checking from Guile")
320 "guile-aspell is a Guile Scheme library for comparing a string against a
321 dictionary and suggesting spelling corrections.")
322 (license license:gpl3+)))
324 (define-public guile-bash
325 ;; This project is currently retired. It was initially announced here:
326 ;; <https://lists.gnu.org/archive/html/guile-user/2015-02/msg00003.html>.
327 (let ((commit "1eabc563ca5692b3e08d84f1f0e6fd2283284469")
331 (version (string-append "0.1.6-" revision "." (string-take commit 7)))
333 "https://anonscm.debian.org/cgit/users/kaction-guest/retired/dev.guile-bash.git")
341 "097vny990wp2qpjij6a5a5gwc6fxzg5wk56inhy18iki5v6pif1p"))
342 (file-name (string-append name "-" version "-checkout"))))
343 (build-system gnu-build-system)
346 ;; Add -I to match 'bash.pc' of Bash 4.4.
347 (list (string-append "CPPFLAGS=-I"
348 (assoc-ref %build-inputs "bash:include")
349 "/include/bash/include")
351 ;; The '.a' file is useless.
354 ;; Install 'lib/bash' as Bash 4.4 expects.
355 (string-append "--libdir=" (assoc-ref %outputs "out")
357 (native-inputs `(("pkg-config" ,pkg-config)
358 ("autoconf" ,autoconf-wrapper)
359 ("automake" ,automake)
361 ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
362 ("gettext" ,gettext-minimal)
364 ;; Bash with loadable module support, for the test
366 ("bash-full" ,bash)))
367 (inputs `(("guile" ,guile-2.0)
368 ("bash:include" ,bash "include")))
369 (synopsis "Extend Bash using Guile")
371 "Guile-Bash provides a shared library and set of Guile modules,
372 allowing you to extend Bash in Scheme. Scheme interfaces allow you to access
373 the following aspects of Bash:
377 @item setting and getting Bash variables;
378 @item creating dynamic variables;
379 @item creating Bash functions with a Scheme implementation;
380 @item reader macro for output capturing;
381 @item reader macro for evaluating raw Bash commands.
387 enable -f ~/.guix-profile/lib/bash/libguile-bash.so scm
390 and then run @command{scm example.scm}.")
391 (license license:gpl3+))))
393 (define-public guile-8sync
399 (uri (string-append "mirror://gnu/8sync/8sync-" version
403 "031wm13srak3wsnll7j2mbbi29g1pcm4swdb71ds9yn567pn20qw"))))
404 (build-system gnu-build-system)
405 (native-inputs `(("autoconf" ,autoconf)
406 ("automake" ,automake)
408 ("pkg-config" ,pkg-config)
409 ("texinfo" ,texinfo)))
411 `(#:phases (modify-phases %standard-phases
412 (add-before 'configure 'setenv
415 (setenv "GUILE_AUTO_COMPILE" "0")
417 (home-page "https://gnu.org/s/8sync/")
418 (synopsis "Asynchronous actor model library for Guile")
420 "GNU 8sync (pronounced \"eight-sync\") is an asynchronous programming
421 library for GNU Guile based on the actor model.
423 Note that 8sync is only available for Guile 2.2.")
424 (properties '((upstream-name . "8sync")))
425 (license license:lgpl3+)))
427 (define-public guile-daemon
429 (name "guile-daemon")
433 (uri (string-append "https://github.com/alezost/" name
434 "/releases/download/v" version
435 "/" name "-" version ".tar.gz"))
438 "08gaqrgjlly9k5si72vvpbr4xhq5v52l5ma5y6a7spid5dd057cy"))))
439 (build-system gnu-build-system)
441 `(("pkg-config" ,pkg-config)))
443 `(("guile" ,guile-2.2)))
444 (home-page "https://github.com/alezost/guile-daemon")
445 (synopsis "Evaluate code in a running Guile process")
447 "Guile-Daemon is a small Guile program that loads your initial
448 configuration file, and then reads and evaluates Guile expressions that
449 you send to a FIFO file.")
450 (license license:gpl3+)))
452 (define-public guile-dsv
459 (url "https://github.com/artyom-poptsov/guile-dsv")
460 (commit "6c867915dc4198eacc548a4834ef0e1aef852795")))
461 (file-name (string-append name "-" version "-checkout"))
464 "1mxbbcsmbjfnh4yydqz44ihbkdnzdwz38xanaam128arlb7hwr8n"))))
465 (build-system gnu-build-system)
467 `(("autoconf" ,autoconf)
468 ("automake" ,automake)
469 ("pkg-config" ,pkg-config)
470 ("texinfo" ,texinfo)))
471 (inputs `(("guile" ,guile-3.0)))
472 (propagated-inputs `(("guile-lib" ,guile-lib)))
474 `(#:modules (((guix build guile-build-system)
475 #:select (target-guile-effective-version))
476 ,@%gnu-build-system-modules)
477 #:imported-modules ((guix build guile-build-system)
478 ,@%gnu-build-system-modules)
479 #:phases (modify-phases %standard-phases
480 ;; Support Guile 3.0 in configure from upstream commit
481 ;; 4c724577ccf19bb88580f72f2f6b166a0447ce3f
482 (add-before 'bootstrap 'configure-support-guile3.0
484 (substitute* "configure.ac"
486 "GUILE_PKG([3.0 2.0 2.2])"))
488 (add-before 'configure 'set-guilesitedir
490 (substitute* "Makefile.in"
491 (("^guilesitedir =.*$")
493 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
494 (substitute* "modules/Makefile.in"
495 (("^guilesitedir =.*$")
497 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
498 (substitute* "modules/dsv/Makefile.in"
499 (("^guilesitedir =.*$")
501 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
503 (add-after 'install 'wrap-program
504 (lambda* (#:key inputs outputs #:allow-other-keys)
505 (let* ((out (assoc-ref outputs "out"))
506 (bin (string-append out "/bin"))
507 (guile-lib (assoc-ref inputs "guile-lib"))
508 (version (target-guile-effective-version))
509 (scm (string-append "/share/guile/site/"
511 (go (string-append "/lib/guile/"
512 version "/site-ccache")))
513 (wrap-program (string-append bin "/dsv")
514 `("GUILE_LOAD_PATH" prefix
515 (,(string-append out scm)
516 ,(string-append guile-lib scm)))
517 `("GUILE_LOAD_COMPILED_PATH" prefix
518 (,(string-append out go)
519 ,(string-append guile-lib go)))))
521 (home-page "https://github.com/artyom-poptsov/guile-dsv")
522 (synopsis "DSV module for Guile")
524 "Guile-DSV is a GNU Guile module for working with the
525 delimiter-separated values (DSV) data format. Guile-DSV supports the
526 Unix-style DSV format and RFC 4180 format.")
527 (license license:gpl3+)))
529 (define-public guile2.2-dsv
532 (name "guile2.2-dsv")
533 (inputs `(("guile" ,guile-2.2)))
534 (propagated-inputs `(("guile-lib" ,guile2.2-lib)))))
536 (define-public guile-fibers
538 (name "guile-fibers")
542 (uri (string-append "https://wingolog.org/pub/fibers/fibers-"
546 "0vjkg72ghgdgphzbjz9ig8al8271rq8974viknb2r1rg4lz92ld0"))
547 (modules '((guix build utils)))
550 ;; Allow builds with Guile 3.0.
551 (substitute* "configure"
552 (("search=\"2\\.2\"")
553 "search=\"3.0 2.2\""))
555 ;; Explicitly include system headers rather than relying on
556 ;; <libguile.h> to do it for us.
557 (substitute* "epoll.c"
558 (("#include.*libguile\\.h.*$" all)
559 (string-append "#include <unistd.h>\n"
560 "#include <string.h>\n"
563 ;; Import (ice-9 threads) for 'current-processor-count'.
564 (substitute* "tests/channels.scm"
565 (("#:use-module \\(fibers\\)")
566 (string-append "#:use-module (fibers)\n"
567 "#:use-module (ice-9 threads)\n")))
570 ;; fixes a resource leak that causes crashes in the tests
571 (search-patches "guile-fibers-destroy-peer-schedulers.patch"))))
572 (build-system gnu-build-system)
574 '(;; The code uses 'scm_t_uint64' et al., which are deprecated in 3.0.
575 #:configure-flags '("CFLAGS=-Wno-error=deprecated-declarations")
576 #:phases (modify-phases %standard-phases
577 (add-after 'install 'mode-guile-objects
578 (lambda* (#:key outputs #:allow-other-keys)
579 ;; .go files are installed to "lib/guile/X.Y/cache".
580 ;; This phase moves them to "…/site-ccache".
581 (let* ((out (assoc-ref outputs "out"))
582 (lib (string-append out "/lib/guile"))
583 (old (car (find-files lib "^ccache$"
585 (new (string-append (dirname old)
587 (rename-file old new)
590 `(("texinfo" ,texinfo)
591 ("pkg-config" ,pkg-config)))
593 `(("guile" ,guile-3.0)))
594 (synopsis "Lightweight concurrency facility for Guile")
596 "Fibers is a Guile library that implements a a lightweight concurrency
597 facility, inspired by systems like Concurrent ML, Go, and Erlang. A fiber is
598 like a \"goroutine\" from the Go language: a lightweight thread-like
599 abstraction. Systems built with Fibers can scale up to millions of concurrent
600 fibers, tens of thousands of concurrent socket connections, and many parallel
601 cores. The Fibers library also provides Concurrent ML-like channels for
602 communication between fibers.
604 Note that Fibers makes use of some Guile 2.1/2.2-specific features and
605 is not available for Guile 2.0.")
606 (home-page "https://github.com/wingo/fibers")
607 (license license:lgpl3+)))
609 (define-public guile2.0-fibers
611 (inherit guile-fibers)
612 (name "guile2.2-fibers")
613 (inputs `(("guile" ,guile-2.2)))))
615 (define-public guile3.0-fibers
616 (deprecated-package "guile3.0-fibers" guile-fibers))
618 (define-public guile-syntax-highlight
620 (name "guile-syntax-highlight")
624 (uri (string-append "https://files.dthompson.us/"
625 "guile-syntax-highlight/"
626 "guile-syntax-highlight-"
630 "1p771kq15x83483m23bhah1sz6vkalg3drm7x279f4j1cxligkzi"))
631 (modules '((guix build utils)))
634 ;; Allow builds with Guile 3.0.
635 (substitute* "configure"
639 (build-system gnu-build-system)
641 `(("pkg-config" ,pkg-config)))
643 `(("guile" ,guile-3.0)))
644 (synopsis "General-purpose syntax highlighter for GNU Guile")
645 (description "Guile-syntax-highlight is a general-purpose syntax
646 highlighting library for GNU Guile. It can parse code written in various
647 programming languages into a simple s-expression that can be converted to
648 HTML (via SXML) or any other format for rendering.")
649 (home-page "https://dthompson.us/projects/guile-syntax-highlight.html")
650 (license license:lgpl3+)))
652 (define-public guile2.2-syntax-highlight
654 (inherit guile-syntax-highlight)
655 (name "guile2.2-syntax-highlight")
656 (inputs `(("guile" ,guile-2.2)))))
658 (define-public guile3.0-syntax-highlight
659 (deprecated-package "guile3.0-syntax-highlight" guile-syntax-highlight))
661 (define-public guile-sjson
667 (uri (string-append "https://dustycloud.org/misc/sjson-" version
671 "1mzmapln79vv10qxaggz9qwcdbag3jnrj19xx8bgkmxss8h03sv3"))
672 (modules '((guix build utils)))
675 ;; Allow builds with Guile 3.0.
676 (substitute* "configure"
680 (build-system gnu-build-system)
682 `(("autoconf" ,autoconf)
683 ("automake" ,automake)
684 ("pkg-config" ,pkg-config)))
686 `(("guile" ,guile-3.0)))
687 (home-page "https://gitlab.com/dustyweb/guile-sjson")
688 (synopsis "S-expression based json reader/writer for Guile")
689 (description "guile-sjson is a json reader/writer for Guile.
690 It has a nice, simple s-expression based syntax.")
691 (license license:lgpl3+)))
693 (define-public guile2.2-sjson
695 (inherit guile-sjson)
696 (name "guile2.2-sjson")
697 (inputs `(("guile" ,guile-2.2)))))
699 (define-public guile-squee
700 (let ((commit "a85902a92bf6f58a1d35fd974a01ade163deda8d")
704 (version (string-append "0-" revision "." (string-take commit 7)))
708 (url "https://notabug.org/cwebber/guile-squee.git")
710 (file-name (git-file-name name version))
713 "0p1lpsp4kx57j3ai1dkxilm4ziavzzx8wbbc42m3hpziq0a7qz5z"))))
714 (build-system guile-build-system)
717 (modify-phases %standard-phases
718 (add-after 'unpack 'patch
719 (lambda* (#:key inputs #:allow-other-keys)
720 (substitute* "squee.scm"
721 (("dynamic-link \"libpq\"")
724 (assoc-ref inputs "postgresql") "/lib/libpq.so"
728 `(("postgresql" ,postgresql)))
730 `(("guile" ,guile-3.0)))
731 (home-page "https://notabug.org/cwebber/guile-squee")
732 (synopsis "Connect to PostgreSQL using Guile")
734 "@code{squee} is a Guile library for connecting to PostgreSQL databases
735 using Guile's foreign function interface.")
736 (license license:lgpl3+))))
738 (define-public guile2.2-squee
740 (inherit guile-squee)
741 (name "guile2.2-squee")
742 (native-inputs `(("guile" ,guile-2.2)
743 ,@(alist-delete "guile"
744 (package-native-inputs guile-squee))))))
746 (define-public guile3.0-squee
747 (deprecated-package "guile3.0-squee" guile-squee))
749 (define-public guile-colorized
751 (name "guile-colorized")
757 (url "https://gitlab.com/NalaGinrut/guile-colorized.git")
758 (commit (string-append "v" version))))
759 (file-name (git-file-name name version))
761 (base32 "10mv8c63159r3qvwwdvsgnsvdg7nc2ghak85zapwqpv4ywrqp9zc"))))
762 (build-system guile-build-system)
764 `(("guile" ,guile-3.0)))
765 (home-page "https://gitlab.com/NalaGinrut/guile-colorized")
766 (synopsis "Colorized REPL for Guile")
768 "Guile-colorized provides you with a colorized REPL for GNU Guile.")
769 (license license:gpl3+)))
771 (define-public guile2.2-colorized
773 (inherit guile-colorized)
774 (name "guile2.2-colorized")
775 (native-inputs `(("guile" ,guile-2.2)))))
777 (define-public guile3.0-colorized
778 (deprecated-package "guile3.0-colorized" guile-colorized))
780 (define-public guile-pfds
784 (home-page "https://github.com/ijp/pfds")
789 (commit (string-append "v" version))))
792 "19y33wg94pf0n98dkfqd1zbw93fgky4sawxsxl6s3vyqwl0yi5vh"))
793 (file-name (string-append name "-" version "-checkout"))))
794 (build-system guile-build-system)
796 '(#:source-directory "src"
797 #:phases (modify-phases %standard-phases
798 (add-after 'unpack 'move-files-around
800 ;; Move files under a pfds/ directory to reflect the
803 (for-each (lambda (file)
805 (string-append "src/pfds/"
821 ;; In Guile <= 2.2.4, there's no way to tell 'guild
822 ;; compile' to accept the ".sls" extension. So...
823 (for-each (lambda (file)
826 (string-drop-right file 4)
828 (find-files "." "\\.sls$"))
831 `(("guile" ,guile-3.0)))
832 (synopsis "Purely functional data structures for Guile")
834 "This package provides purely functional data structures written in R6RS
835 Scheme and compiled for Guile. It has been tested with Racket, Guile 2,
836 Vicare Scheme and IronScheme. Right now it contains:
844 @item priority search queues (PSQs)
848 @item hash array mapped tries (HAMTs).
850 (license license:bsd-3)))
852 (define-public guile2.2-pfds
855 (name "guile2.2-pfds")
856 (native-inputs `(("guile" ,guile-2.2)))
858 (substitute-keyword-arguments (package-arguments guile-pfds)
860 `(modify-phases ,phases
861 (delete 'work-around-guile-bug)))))))
863 (define-public guile3.0-pfds
864 (deprecated-package "guile3.0-pfds" guile-pfds))
866 (define-public guile-aa-tree
868 (name "guile-aa-tree")
872 (uri (string-append "mirror://savannah/guile-aa-tree/guile-aa-tree-"
876 "0044c105r3q9vpl17pv3phl1b79kjm1llhkakqgiasixyav01blh"))))
877 (build-system guile-build-system)
878 (native-inputs `(("guile" ,guile-2.2)))
879 ;; https://savannah.nongnu.org/projects/guile-aa-tree
880 (home-page "https://qlfiles.net/guile-aa-tree/")
881 (synopsis "AA tree data structure for Guile")
883 "This package provides an implementation of @dfn{AA trees}, a
884 self-balancing binary tree data structure, for Guile. It ensure @math{O(log
885 n)} worst case performance for core operations. The module provides
886 non-mutating insert, delete, and search operations, with support for
887 convenient nested tree operations.")
888 (license license:gpl3+)))
890 (define-public guile-simple-zmq
891 (let ((commit "68bedb6679716214fb9d3472da57544526f7a618")
894 (name "guile-simple-zmq")
895 (version (git-version "0.0.0" revision commit))
900 (url "https://github.com/jerry40/guile-simple-zmq")
904 "1ad3xg69qqviy1f6dnlw0ysmfdbmp1jq65rfqb8nfd8dsrq2syli"))
905 (file-name (git-file-name name version))))
906 (build-system guile-build-system)
908 `(#:source-directory "src"
909 #:phases (modify-phases %standard-phases
910 (add-after 'unpack 'set-libzmq-file-name
911 (lambda* (#:key inputs #:allow-other-keys)
912 (substitute* "src/simple-zmq.scm"
913 (("\\(dynamic-link \"libzmq\"\\)")
914 (format #f "(dynamic-link \"~a/lib/libzmq.so\")"
915 (assoc-ref inputs "zeromq"))))
918 `(("guile" ,guile-3.0)))
920 `(("zeromq" ,zeromq)))
921 (home-page "https://github.com/jerry40/guile-simple-zmq")
922 (synopsis "Guile wrapper over ZeroMQ library")
924 "This package provides a Guile programming interface to the ZeroMQ
926 (license license:gpl3+))))
928 (define-public guile2.2-simple-zmq
930 (inherit guile-simple-zmq)
931 (name "guile2.2-simple-zmq")
932 (native-inputs `(("guile" ,guile-2.2)))))
934 (define-public guile3.0-simple-zmq
935 (deprecated-package "guile3.0-simple-zmq" guile-simple-zmq))
937 (define-public jupyter-guile-kernel
938 (let ((commit "a7db9245a886e104138474df46c3e88b95cff629")
941 (name "jupyter-guile-kernel")
942 (version (git-version "0.0.0" revision commit))
947 (url "https://github.com/jerry40/guile-kernel")
949 (file-name (git-file-name name version))
952 "0aj04853bqm47ivfcmrgpb7w3wkis847kc7qrwsa5zcn9h38qh2f"))))
953 (build-system guile-build-system)
955 '(#:phases (modify-phases %standard-phases
956 (add-after 'unpack 'set-openssl-file-name
957 (lambda* (#:key inputs #:allow-other-keys)
958 ;; Record the absolute file name of the 'openssl'
960 (substitute* "src/hmac.scm"
962 (string-append (assoc-ref inputs "openssl")
966 ;; XXX: The code uses 'include' to include its own source
967 ;; files, and "-L src" isn't enough in this case.
968 (add-before 'build 'chdir
969 (lambda _ (chdir "src") #t))
970 (add-after 'build 'chdir-back
971 (lambda _ (chdir "..") #t))
973 (add-after 'install 'install-kernel
974 (lambda* (#:key inputs outputs #:allow-other-keys)
975 (let* ((out (assoc-ref outputs "out"))
976 (json (assoc-ref inputs "guile-json"))
977 (zmq (assoc-ref inputs "guile-simple-zmq"))
978 (deps (list json zmq))
980 out "/share/jupyter/kernels/guile"))
981 (effective (target-guile-effective-version)))
983 (install-file "src/kernel.json" dir)
985 ;; Fix hard-coded file name in the kernel.
986 (substitute* (string-append dir "/kernel.json")
987 (("/home/.*/guile-jupyter-kernel.scm")
988 (string-append out "/share/guile/site/"
989 (target-guile-effective-version)
990 "/guile-jupyter-kernel.scm"))
992 (string-append "\"" (assoc-ref inputs "guile")
995 ;; Add '-L' and '-C' flags so that the kernel
996 ;; finds its dependencies.
997 (let ((-L (map (lambda (item)
998 (string-append "\"" item
1002 (-C (map (lambda (item)
1003 (string-append "\"" item
1008 (string-append "--no-auto-compile\""
1009 (string-join -L ", \"-L\", "
1011 (string-join -C ", \"-C\", "
1016 `(("openssl" ,openssl)
1017 ("guile" ,guile-2.2)
1018 ("guile-json" ,guile-json-1)
1019 ("guile-simple-zmq" ,guile-simple-zmq)))
1020 (synopsis "Guile kernel for the Jupyter Notebook")
1022 "This package provides a Guile 2.x kernel for the Jupyter Notebook. It
1023 allows users to interact with the Guile REPL through Jupyter.")
1024 (home-page "https://github.com/jerry40/guile-kernel")
1025 (license license:gpl3+))))
1027 (define-public guile-sparql
1029 (name "guile-sparql")
1034 "https://github.com/roelj/guile-sparql/releases/download/"
1035 version "/guile-sparql-" version ".tar.gz"))
1037 (base32 "1drnvhsgl0gc5crmb16yyw1j98nkhwwcgssv9vgm36ng43nnzffd"))))
1038 (build-system gnu-build-system)
1039 (arguments `(#:tests? #f)) ; There are no tests.
1041 `(("pkg-config" ,pkg-config)))
1043 `(("guile" ,guile-2.2)))
1044 (home-page "https://github.com/roelj/guile-sparql")
1045 (synopsis "SPARQL module for Guile")
1046 (description "This package provides the functionality to query a SPARQL
1047 endpoint. Additionally, it provides an interface to write SPARQL queries
1048 using S-expressions.")
1049 (license license:gpl3+)))
1051 (define-public guile-debbugs
1053 (name "guile-debbugs")
1057 (uri (string-append "mirror://gnu/guile-debbugs/guile-debbugs-"
1061 "1cc63nw3xdfjrfk8c58r6d5lidmfq5cpqcy32yd5xp81yccprvn9"))))
1062 (build-system gnu-build-system)
1064 `(("guile-email" ,guile-email)))
1066 `(("guile" ,guile-3.0)
1067 ("pkg-config" ,pkg-config)))
1068 (home-page "https://savannah.gnu.org/projects/guile-debbugs/")
1069 (synopsis "Guile interface to the Debbugs bug tracking service")
1071 "This package provides a Guile library to communicate with a Debbugs bug
1072 tracker's SOAP service, such as @url{https://bugs.gnu.org}.")
1073 (license license:gpl3+)))
1075 (define-public guile-email
1077 (name "guile-email")
1083 "https://guile-email.systemreboot.net/releases/guile-email-"
1087 "1rc8r0fgvflnyq5ckl7ii8sghpsgpkzxa8vskjr1ak2kyar6m35k"))))
1088 (build-system gnu-build-system)
1090 `(("pkg-config" ,pkg-config)
1093 `(("guile" ,guile-3.0)))
1095 '(#:make-flags '("GUILE_AUTO_COMPILE=0"))) ; to prevent guild warnings
1096 (home-page "https://guile-email.systemreboot.net")
1097 (synopsis "Guile email parser")
1098 (description "guile-email is a collection of email utilities implemented
1099 in pure guile. It supports parsing MIME (Multipurpose Internet Mail
1100 Extensions) compliant email messages and reading emails from the mbox
1102 (license license:agpl3+)))
1104 (define-public guile2.2-email
1106 (inherit guile-email)
1107 (name "guile2.2-email")
1108 (inputs `(("guile" ,guile-2.2)
1109 ,@(alist-delete "guile" (package-inputs guile-email))))))
1111 (define-public guile3.0-email
1112 (deprecated-package "guile3.0-email" guile-email))
1114 (define-public guile-newt
1121 (url "https://gitlab.com/mothacehe/guile-newt")
1123 (file-name (git-file-name name version))
1126 "1gksd1lzgjjh1p9vczghg8jw995d22hm34kbsiv8rcryirv2xy09"))))
1127 (build-system gnu-build-system)
1130 '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
1132 `(("guile" ,guile-3.0)
1135 `(("autoconf" ,autoconf)
1136 ("automake" ,automake)
1137 ("pkg-config" ,pkg-config)))
1138 (synopsis "Guile bindings to Newt")
1140 "This package provides bindings for Newt, a programming library for
1141 color text mode, widget based user interfaces. The bindings are written in pure
1142 Scheme by using Guile’s foreign function interface.")
1143 (home-page "https://gitlab.com/mothacehe/guile-newt")
1144 (license license:gpl3+)))
1146 (define-public guile2.2-newt
1148 (inherit guile-newt)
1149 (name "guile2.2-newt")
1150 (inputs `(("guile" ,guile-2.2)
1151 ,@(alist-delete "guile" (package-inputs guile-newt))))))
1153 (define-public guile3.0-newt
1154 (deprecated-package "guile3.0-newt" guile-newt))
1156 (define-public guile-mastodon
1158 (name "guile-mastodon")
1163 (url "https://framagit.org/prouby/guile-mastodon.git")
1164 (commit (string-append "v" version))))
1165 (file-name (git-file-name name version))
1168 "1vblf3d1bbwna3l09p2ap5y8ycvl549bz6whgk78imyfmn28ygry"))))
1169 (build-system gnu-build-system)
1171 `(("autoconf" ,autoconf)
1172 ("automake" ,automake)
1173 ("pkg-config" ,pkg-config)))
1175 `(("guile" ,guile-2.2)
1177 ("guile-json" ,guile-json-1)))
1178 (home-page "https://framagit.org/prouby/guile-mastodon")
1179 (synopsis "Guile Mastodon REST API module")
1180 (description "This package provides Guile modules to access the
1181 @uref{https://docs.joinmastodon.org/api/, REST API of Mastodon}, a federated
1182 microblogging service.")
1183 (license license:gpl3+)))
1185 (define-public guile-parted
1187 (name "guile-parted")
1192 (url "https://gitlab.com/mothacehe/guile-parted")
1194 (file-name (git-file-name name version))
1197 "0b7h8psfm9gmmwb65pp5zwzglvwnfmw5j40g09hhf3f7kwxc0mv2"))
1198 (modules '((guix build utils)))))
1199 (build-system gnu-build-system)
1202 '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
1204 `(("guile" ,guile-3.0)
1205 ("parted" ,parted)))
1207 `(("guile-bytestructures" ,guile-bytestructures)))
1209 `(("autoconf" ,autoconf)
1210 ("automake" ,automake)
1211 ("pkg-config" ,pkg-config)))
1212 (synopsis "Guile bindings to GNU Parted")
1214 "This package provides bindings for GNU Parted library, a C library
1215 allowing disk partition tables creation and manipulation. The bindings are
1216 written in pure Scheme by using Guile's foreign function interface.")
1217 (home-page "https://gitlab.com/mothacehe/guile-parted")
1218 (license license:gpl3+)))
1220 (define-public guile2.2-parted
1222 (inherit guile-parted)
1223 (name "guile2.2-parted")
1224 (inputs `(("guile" ,guile-2.2)
1225 ,@(alist-delete "guile" (package-inputs guile-parted))))
1227 `(("guile-bytestructures" ,guile2.2-bytestructures)))))
1229 (define-public guile3.0-parted
1230 (deprecated-package "guile3.0-parted" guile-parted))
1232 (define-public guile-xosd
1238 (uri (string-append "https://github.com/alezost/" name
1239 "/releases/download/v" version
1240 "/" name "-" version ".tar.gz"))
1243 "1ri5065c16kmgrf2pysn2ymxjqi5302lhpb07wkl1jr75ym8fn8p"))))
1244 (build-system gnu-build-system)
1246 `(("pkg-config" ,pkg-config)))
1248 `(("guile" ,guile-2.2)
1250 ("libxext" ,libxext)
1251 ("libxinerama" ,libxinerama)
1253 (home-page "https://github.com/alezost/guile-xosd")
1254 (synopsis "XOSD bindings for Guile")
1256 "Guile-XOSD provides Guile bindings for @code{libxosd},
1257 @uref{http://sourceforge.net/projects/libxosd/, the X On Screen Display
1259 (license license:gpl3+)))
1261 (define-public guile-dbi
1268 "http://download.gna.org/guile-dbi/guile-dbi-"
1272 "116njrprhgrsv1qm904sp3b02rq01fx639r433d657gyhw3x159n"))))
1273 (build-system gnu-build-system)
1276 (list (string-append
1277 "--with-guile-site-dir=" %output "/share/guile/site/2.2"))
1279 (list (string-append
1280 "LDFLAGS=-Wl,-rpath=" %output "/lib:"
1281 (assoc-ref %build-inputs "guile-dbd-sqlite3") "/lib" ":"
1282 (assoc-ref %build-inputs "guile-dbd-postgresql") "/lib"))
1284 (modify-phases %standard-phases
1285 (add-after 'install 'patch-extension-path
1286 (lambda* (#:key outputs #:allow-other-keys)
1287 (let* ((out (assoc-ref outputs "out"))
1288 (dbi.scm (string-append
1289 out "/share/guile/site/2.2/dbi/dbi.scm"))
1290 (ext (string-append out "/lib/libguile-dbi")))
1291 (substitute* dbi.scm (("libguile-dbi") ext))
1294 `(("guile-dbd-sqlite3" ,guile-dbd-sqlite3)
1295 ("guile-dbd-postgresql" ,guile-dbd-postgresql))) ; only shared library, no scheme files
1297 `(("guile" ,guile-2.2)))
1298 (synopsis "Guile database abstraction layer")
1299 (home-page "http://home.gna.org/guile-dbi/guile-dbi.html")
1301 "guile-dbi is a library for Guile that provides a convenient interface to
1302 SQL databases. Database programming with guile-dbi is generic in that the same
1303 programming interface is presented regardless of which database system is used.
1304 It currently supports MySQL, Postgres and SQLite3.")
1305 (license license:gpl2+)))
1307 (define guile-dbi-bootstrap
1310 (name "guile-dbi-bootstrap")
1313 (substitute-keyword-arguments (package-arguments guile-dbi)
1314 ((#:make-flags _) '(list))))))
1316 (define-public guile-dbd-sqlite3
1318 (name "guile-dbd-sqlite3")
1323 "http://download.gna.org/guile-dbi/guile-dbd-sqlite3-"
1327 "0rg71jchxd2y8x496s8zmfmikr5g8zxi8zv2ar3f7a23pph92iw2"))))
1328 (build-system gnu-build-system)
1330 `(("pkg-config" ,pkg-config)
1331 ("guile-dbi-bootstrap" ,guile-dbi-bootstrap))) ; only required for headers
1333 `(("sqlite" ,sqlite)
1334 ("zlib" ,(@ (gnu packages compression) zlib))))
1335 (synopsis "Guile DBI driver for SQLite")
1336 (home-page "https://github.com/jkalbhenn/guile-dbd-sqlite3")
1338 "guile-dbi is a library for Guile that provides a convenient interface to
1339 SQL databases. This package implements the interface for SQLite.")
1340 (license license:gpl2+)))
1342 (define-public guile-dbd-postgresql
1343 (let ((commit "e97589b6b018b206c901e4cc24db463407a4036b")
1346 (name "guile-dbd-postgresql")
1347 (version (string-append
1348 "2.1.6-" (number->string revision) "." (string-take commit 7)))
1353 (url "https://github.com/opencog/guile-dbi")
1355 (file-name (git-file-name name version))
1357 (base32 "0n1gv9a0kdys10a4qmnrwvg5sydwb03880asri4gqdchcj3fimni"))))
1358 (build-system gnu-build-system)
1361 (modify-phases %standard-phases
1362 (add-after 'unpack 'chdir
1364 ;; The upstream Git repository contains all the code, so change
1365 ;; to the relevant directory.
1366 (chdir "guile-dbd-postgresql")
1368 (add-after 'chdir 'patch-src/Makefile.am
1369 (lambda* (#:key inputs #:allow-other-keys)
1370 (substitute* "src/Makefile.am"
1372 (string-append (assoc-ref inputs "postgresql") "/include")))
1374 (add-after 'patch-src/Makefile.am 'patch-src
1376 (substitute* "src/guile-dbd-postgresql.c"
1377 (("postgresql/libpq-fe\\.h") "libpq-fe.h"))
1380 `(("pkg-config" ,pkg-config)
1381 ("automake" ,automake)
1382 ("autoconf" ,autoconf)
1384 ("libtool" ,libtool)
1385 ("guile-dbi-bootstrap" ,guile-dbi-bootstrap)))
1387 `(("postgresql" ,postgresql)
1389 (synopsis "Guile DBI driver for PostgreSQL")
1391 "https://github.com/opencog/guile-dbi/tree/master/guile-dbd-postgresql")
1393 "@code{guile-dbi} is a library for Guile that provides a convenient
1394 interface to SQL databases. This package implements the interface for
1396 (license license:gpl2+))))
1398 (define-public guile-config
1400 (name "guile-config")
1406 (url "https://gitlab.com/a-sassmannshausen/guile-config")
1408 (file-name (git-file-name name version))
1410 "09028ylbddjdp3d67zdjz3pnsjqz6zs2bfck5rr3dfaa0qjap40n"))))
1411 (build-system gnu-build-system)
1413 `(("autoconf" ,autoconf)
1414 ("automake" ,automake)
1415 ("pkg-config" ,pkg-config)
1416 ("texinfo" ,texinfo)))
1417 (inputs `(("guile" ,guile-3.0)))
1419 "Guile application configuration parsing library.")
1421 "Guile Config is a library providing a declarative approach to
1422 application configuration specification. The library provides clean
1423 configuration declaration forms, and processors that take care of:
1424 configuration file creation; configuration file parsing; command-line
1425 parameter parsing using getopt-long; basic GNU command-line parameter
1426 generation (--help, --usage, --version); automatic output generation for the
1427 above command-line parameters.")
1429 "https://gitlab.com/a-sassmannshausen/guile-config")
1430 (license license:gpl3+)))
1432 (define-public guile2.2-config
1434 (inherit guile-config)
1435 (name "guile2.2-config")
1436 (inputs `(("guile" ,guile-2.2)
1437 ,@(alist-delete "guile" (package-inputs guile-config))))))
1439 (define-public guile3.0-config
1440 (deprecated-package "guile3.0-config" guile-config))
1442 (define-public guile-hall
1450 (url "https://gitlab.com/a-sassmannshausen/guile-hall")
1452 (file-name "guile-hall-0.3.1-checkout")
1454 (base32 "1s24nigdra6rvclvy15l2aw00c3aq9vv8qwxylzs60darbl36206"))))
1455 (build-system gnu-build-system)
1460 ,@%gnu-build-system-modules)
1464 (add-after 'install 'hall-wrap-binaries
1465 (lambda* (#:key inputs outputs #:allow-other-keys)
1466 (let* ((compiled-dir
1467 (lambda (out version)
1469 out "/lib/guile/" version "/site-ccache")))
1471 (lambda (out version)
1473 out "/share/guile/site"
1474 (if (string-null? version) "" "/") version)))
1476 (lambda (env modules path)
1477 (list env ":" 'prefix
1479 (map (lambda (input)
1481 (assoc-ref inputs input)
1483 ,''("guile-config"))))))
1484 (out (assoc-ref outputs "out"))
1485 (bin (string-append out "/bin/"))
1486 (site (uncompiled-dir out "")))
1487 (match (scandir site)
1492 (string-append bin file)
1495 (uncompiled-dir out version)
1496 (uncompiled-dir "" version))
1498 "GUILE_LOAD_COMPILED_PATH"
1499 (compiled-dir out version)
1500 (compiled-dir "" version))))
1504 `(("autoconf" ,autoconf)
1505 ("automake" ,automake)
1506 ("pkg-config" ,pkg-config)
1507 ("texinfo" ,texinfo)))
1508 (inputs `(("guile" ,guile-3.0)))
1510 `(("guile-config" ,guile-config)))
1511 (synopsis "Guile project tooling")
1513 "Hall is a command-line application and a set of Guile libraries that
1514 allow you to quickly create and publish Guile projects. It allows you to
1515 transparently support the GNU build system, manage a project hierarchy &
1516 provides tight coupling to Guix.")
1517 (home-page "https://gitlab.com/a-sassmannshausen/guile-hall")
1518 (license license:gpl3+)))
1520 (define-public guile2.2-hall
1522 (inherit guile-hall)
1523 (name "guile2.2-hall")
1524 (inputs `(("guile" ,guile-2.2)
1525 ,@(alist-delete "guile" (package-inputs guile-hall))))
1527 `(("guile-config" ,guile2.2-config)
1528 ,@(alist-delete "guile-config"
1529 (package-propagated-inputs guile-hall))))))
1531 (define-public guile3.0-hall
1532 (deprecated-package "guile3.0-hall" guile-hall))
1534 (define-public guile-ics
1541 (url "https://github.com/artyom-poptsov/guile-ics")
1542 (commit (string-append "v" version))))
1543 (file-name (string-append name "-" version "-checkout"))
1546 "0qjjvadr7gibdq9jvwkmlkb4afsw9n2shfj9phpiadinxk3p4m2g"))
1547 (modules '((guix build utils)))
1550 ;; Allow builds with Guile 3.0.
1551 (substitute* "configure.ac"
1553 "GUILE_PKG([3.0 2.2 2.0])\n"))
1555 (build-system gnu-build-system)
1557 `(("autoconf" ,autoconf-wrapper)
1558 ("automake" ,automake)
1559 ("texinfo" ,texinfo)
1560 ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
1561 ("gettext" ,gettext-minimal)
1562 ("pkg-config" ,pkg-config)))
1563 (inputs `(("guile" ,guile-3.0) ("which" ,which)))
1564 (propagated-inputs `(("guile-lib" ,guile-lib)))
1565 (home-page "https://github.com/artyom-poptsov/guile-ics")
1566 (synopsis "Guile parser library for the iCalendar format")
1568 "Guile-ICS is an iCalendar (RFC5545) format parser library written in
1569 pure Scheme. The library can be used to read and write iCalendar data.
1571 The library is shipped with documentation in Info format and usage examples.")
1572 (license license:gpl3+)))
1574 (define-public guile2.2-ics
1577 (name "guile2.2-ics")
1578 (inputs `(("guile" ,guile-2.2)
1579 ,@(alist-delete "guile" (package-inputs guile-ics))))
1580 (propagated-inputs `(("guile-lib" ,guile2.2-lib)))))
1582 (define-public guile3.0-ics
1583 (deprecated-package "guile3.0-ics" guile-ics))
1585 (define-public guile-wisp
1591 (uri (string-append "https://bitbucket.org/ArneBab/"
1592 "wisp/downloads/wisp-"
1596 "03pz7pj9jyallynhflp5s7qax8dj1fs8la434wrfgz7g1kgjnvf6"))))
1597 (build-system gnu-build-system)
1599 `(#:modules ((guix build gnu-build-system)
1600 ((guix build emacs-build-system) #:prefix emacs:)
1602 (guix build emacs-utils)
1605 #:imported-modules (,@%gnu-build-system-modules
1606 (guix build emacs-build-system)
1607 (guix build emacs-utils))
1609 (modify-phases %standard-phases
1610 (add-after 'unpack 'support-guile-3.0
1612 (substitute* "configure"
1613 (("_guile_versions_to_search=\"2.2")
1614 "_guile_versions_to_search=\"3.0 2.2"))
1616 (add-before 'configure 'patch-/usr/bin/env
1618 (substitute* "Makefile.in"
1619 (("/usr/bin/env bash") (which "bash")))
1621 ;; auto compilation breaks, but if we set HOME to /tmp,
1623 (add-before 'check 'auto-compile-hacky-workaround
1624 (lambda _ (setenv "HOME" "/tmp") #t))
1625 (add-after 'install 'install-go-files
1626 (lambda* (#:key outputs inputs #:allow-other-keys)
1627 (let* ((out (assoc-ref outputs "out"))
1628 (effective (read-line
1629 (open-pipe* OPEN_READ
1631 "(display (effective-version))")))
1632 (module-dir (string-append out "/share/guile/site/"
1634 (object-dir (string-append out "/lib/guile/" effective
1636 (prefix (string-length module-dir)))
1637 ;; compile to the destination
1638 (for-each (lambda (file)
1639 (let* ((base (string-drop (string-drop-right file 4)
1641 (go (string-append object-dir base ".go")))
1642 (invoke "guild" "compile" "-L" module-dir
1644 (find-files module-dir "\\.scm$"))
1646 (add-after 'install 'install-emacs-files
1647 (assoc-ref emacs:%standard-phases 'install))
1648 (add-after 'install-emacs-files 'compile-emacs-files
1649 (assoc-ref emacs:%standard-phases 'build))
1650 (add-after 'compile-emacs-files 'make-autoloads
1651 (assoc-ref emacs:%standard-phases 'make-autoloads)))))
1652 (home-page "https://www.draketo.de/english/wisp")
1654 `(("guile" ,guile-3.0)))
1656 `(("emacs" ,emacs-minimal)
1658 ("pkg-config" ,pkg-config)))
1659 (synopsis "Whitespace to lisp syntax for Guile")
1660 (description "Wisp is a syntax for Guile which provides a Python-like
1661 whitespace-significant language. It may be easier on the eyes for some
1662 users and in some situations.")
1663 (license license:gpl3+)))
1665 (define-public guile2.2-wisp
1667 (inherit guile-wisp)
1668 (name "guile2.2-wisp")
1669 (inputs `(("guile" ,guile-2.2)))))
1671 (define-public guile3.0-wisp
1672 (deprecated-package "guile3.0-wisp" guile-wisp))
1674 (define-public guile-sly
1680 (uri (string-append "https://files.dthompson.us/sly/sly-"
1684 "1svzlbz2vripmyq2kjh0rig16bsrnbkwbsm558pjln9l65mcl4qq"))
1685 (modules '((guix build utils)))
1688 (substitute* "configure"
1689 (("_guile_required_version=\"2.0.11\"")
1690 "_guile_required_version=\"2\"")
1691 (("ac_subst_vars='")
1692 "ac_subst_vars='GUILE_EFFECTIVE_VERSION\n"))
1693 (substitute* (find-files "." "Makefile.in")
1697 "$(prefix)/share/guile/site/@GUILE_EFFECTIVE_VERSION@\n"))
1701 "$(prefix)/lib/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n")))
1703 (build-system gnu-build-system)
1706 (list (string-append "--with-libfreeimage-prefix="
1707 (assoc-ref %build-inputs "freeimage"))
1708 (string-append "--with-libgslcblas-prefix="
1709 (assoc-ref %build-inputs "gsl")))))
1711 `(("pkg-config" ,pkg-config)))
1713 `(("guile-sdl" ,guile-sdl)
1714 ("guile-opengl" ,guile-opengl)))
1716 `(("guile" ,guile-2.2)
1718 ("freeimage" ,freeimage)
1720 (synopsis "2D/3D game engine for GNU Guile")
1721 (description "Sly is a 2D/3D game engine written in Guile Scheme. Sly
1722 features a functional reactive programming interface and live coding
1724 (home-page "https://dthompson.us/projects/sly.html")
1725 (license license:gpl3+)))
1727 (define-public g-golf
1728 (let ((commit "4a4edf25e4877df9182c77843bdd98ab59e13ef7"))
1731 (version (git-version "1" "683" commit))
1735 (url "https://git.savannah.gnu.org/git/g-golf.git")
1737 (file-name (git-file-name name version))
1740 "09p0gf71wbmlm9kri693a8fvr9hl3hhlmlidyadwjdh7853xg0h8"))))
1741 (build-system gnu-build-system)
1743 `(("autoconf" ,autoconf)
1744 ("automake" ,automake)
1745 ("texinfo" ,texinfo)
1746 ("gettext" ,gettext-minimal)
1747 ("libtool" ,libtool)
1748 ("pkg-config" ,pkg-config)))
1750 `(("guile" ,guile-2.2)
1751 ("guile-lib" ,guile-lib)
1752 ("clutter" ,clutter)
1756 `(("gobject-introspection" ,gobject-introspection)))
1759 (modify-phases %standard-phases
1760 (add-before 'configure 'tests-work-arounds
1761 (lambda* (#:key inputs #:allow-other-keys)
1762 ;; In build environment, There is no /dev/tty
1764 "test-suite/tests/gobject.scm"
1765 (("/dev/tty") "/dev/null"))))
1766 (add-before 'configure 'substitute-libs
1767 (lambda* (#:key inputs outputs #:allow-other-keys)
1768 (let* ((get (lambda (key lib)
1769 (string-append (assoc-ref inputs key) "/lib/" lib)))
1770 (libgi (get "gobject-introspection" "libgirepository-1.0"))
1771 (libglib (get "glib" "libglib-2.0"))
1772 (libgobject (get "glib" "libgobject-2.0"))
1773 (libgdk (get "gtk" "libgdk-3")))
1774 (substitute* "configure"
1775 (("SITEDIR=\"\\$datadir/g-golf\"")
1776 "SITEDIR=\"$datadir/guile/site/$GUILE_EFFECTIVE_VERSION\"")
1777 (("SITECCACHEDIR=\"\\$libdir/g-golf/")
1778 "SITECCACHEDIR=\"$libdir/"))
1779 (substitute* "g-golf/init.scm"
1780 (("libgirepository-1.0") libgi)
1781 (("libglib-2.0") libglib)
1782 (("libgdk-3") libgdk)
1783 (("libgobject-2.0") libgobject)
1784 (("\\(dynamic-link \"libg-golf\"\\)")
1787 (format #f "~alibg-golf"
1788 (if (getenv "GUILE_GGOLF_UNINSTALLED")
1790 ,(format #f "~a/lib/"
1791 (assoc-ref outputs "out"))))))))
1792 (setenv "GUILE_AUTO_COMPILE" "0")
1793 (setenv "GUILE_GGOLF_UNINSTALLED" "1")
1795 (home-page "https://www.gnu.org/software/g-golf/")
1796 (synopsis "Guile bindings for GObject Introspection")
1798 "G-Golf (Gnome: (Guile Object Library for)) is a library for developing
1799 modern applications in Guile Scheme. It comprises a direct binding to the
1800 GObject Introspection API and higher-level functionality for importing Gnome
1801 libraries and making GObject classes (and methods) available in Guile's
1802 object-oriented programming system, GOOPS.")
1803 (license license:lgpl3+))))
1805 (define-public g-wrap
1811 (uri (string-append "mirror://savannah/g-wrap/g-wrap-"
1815 "0ak0bha37dfpj9kmyw1r8fj8nva639aw5xr66wr5gd3l1rqf5xhg"))))
1816 (build-system gnu-build-system)
1818 `(("pkg-config" ,pkg-config)))
1820 `(("guile" ,guile-2.2)
1821 ("guile-lib" ,guile-lib)))
1823 `(("libffi" ,libffi)))
1825 `(#:configure-flags '("--disable-Werror")
1827 (modify-phases %standard-phases
1828 (add-before 'configure 'pre-configure
1829 (lambda* (#:key outputs #:allow-other-keys)
1830 (let ((out (assoc-ref outputs "out")))
1831 (substitute* (find-files "." "^Makefile.in$")
1832 (("guilemoduledir =.*guile/site" all)
1833 (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
1835 (synopsis "Generate C bindings for Guile")
1836 (description "G-Wrap is a tool and Guile library for generating function
1837 wrappers for inter-language calls. It currently only supports generating Guile
1838 wrappers for C functions. Given a definition of the types and prototypes for
1839 a given C interface, G-Wrap will automatically generate the C code that
1840 provides access to that interface and its types from the Scheme level.")
1841 (home-page "https://www.nongnu.org/g-wrap/index.html")
1842 (license license:lgpl2.1+)))
1844 (define-public guile-miniadapton
1845 (let ((commit "1b5749422304567c96ac5367f2221dda9eff5880")
1848 (name "guile-miniadapton")
1849 (version (string-append "0-" revision "." (string-take commit 9)))
1853 (url "https://github.com/fisherdj/miniAdapton")
1855 (file-name (string-append name "-" version "-checkout"))
1858 "09q51zkw2fypad5xixskfzw2cjhjgs5cswdp3i7cpp651rb3zndh"))))
1859 (build-system guile-build-system)
1861 `(("guile" ,guile-2.2)))
1862 (home-page "https://github.com/fisherdj/miniAdapton")
1863 (synopsis "Minimal implementation of incremental computation in Guile
1865 (description "This package provides a complete Scheme implementation of
1866 miniAdapton, which implements the core functionality of the Adapton system for
1867 incremental computation (also known as self-adjusting computation). Like
1868 Adapton, miniAdapton allows programmers to safely combine mutation and
1869 memoization. miniAdapton is built on top of an even simpler system,
1870 microAdapton. Both miniAdapton and microAdapton are designed to be easy to
1871 understand, extend, and port to host languages other than Scheme.")
1872 (license license:expat))))
1874 (define-public guile-reader
1876 (name "guile-reader")
1880 (uri (string-append "mirror://savannah/guile-reader/guile-reader-"
1884 "0592s2s8ampqmqwilc4fvcild6rb9gy79di6vxv5kcdmv23abkgx"))))
1885 (build-system gnu-build-system)
1886 (native-inputs `(("pkgconfig" ,pkg-config)
1887 ("gperf" ,gperf-3.0)))
1888 (inputs `(("guile" ,guile-2.2)))
1889 (synopsis "Framework for building readers for GNU Guile")
1891 "Guile-Reader is a simple framework for building readers for GNU Guile.
1893 The idea is to make it easy to build procedures that extend Guile’s read
1894 procedure. Readers supporting various syntax variants can easily be written,
1895 possibly by re-using existing “token readers” of a standard Scheme
1896 readers. For example, it is used to implement Skribilo’s R5RS-derived
1899 Guile-Reader’s approach is similar to Common Lisp’s “read table”, but
1900 hopefully more powerful and flexible (for instance, one may instantiate as
1901 many readers as needed).")
1902 (home-page "https://www.nongnu.org/guile-reader/")
1903 (license license:gpl3+)))
1905 (define-public guile-ncurses
1907 (name "guile-ncurses")
1911 (uri (string-append "mirror://gnu/guile-ncurses/guile-ncurses-"
1915 "038xbffalhymg26lvmzgf7ljilxz2f2zmqg5r5nfzbipfbprwjhf"))))
1916 (build-system gnu-build-system)
1917 (inputs `(("ncurses" ,ncurses)
1918 ("guile" ,guile-3.0)))
1919 (native-inputs `(("pkg-config" ,pkg-config)))
1921 `(#:modules ((guix build gnu-build-system)
1922 ((guix build guile-build-system)
1923 #:select (target-guile-effective-version))
1925 #:imported-modules ((guix build guile-build-system)
1926 ,@%gnu-build-system-modules)
1927 #:configure-flags (list "--with-ncursesw" ; Unicode support
1928 "--with-gnu-filesystem-hierarchy")
1930 (modify-phases %standard-phases
1931 (add-before 'build 'fix-libguile-ncurses-file-name
1932 (lambda* (#:key outputs #:allow-other-keys)
1933 (invoke "make" "install"
1935 "-j" (number->string
1936 (parallel-job-count)))
1937 (let* ((out (assoc-ref outputs "out"))
1939 (files (find-files dir ".scm")))
1941 (("\"libguile-ncurses\"")
1942 (format #f "\"~a/lib/guile/~a/libguile-ncurses\""
1943 out (target-guile-effective-version))))
1945 (home-page "https://www.gnu.org/software/guile-ncurses/")
1946 (synopsis "Guile bindings to ncurses")
1948 "guile-ncurses provides Guile language bindings for the ncurses
1950 (license license:lgpl3+)))
1952 (define-public guile2.2-ncurses
1954 (inherit guile-ncurses)
1955 (name "guile2.2-ncurses")
1956 (inputs `(("ncurses" ,ncurses)
1957 ("guile" ,guile-2.2)))))
1959 (define-public guile3.0-ncurses
1960 (deprecated-package "guile3.0-ncurses" guile-ncurses))
1962 (define-public guile-ncurses/gpm
1964 (inherit guile-ncurses)
1965 (name "guile-ncurses-with-gpm")
1966 (inputs `(("ncurses" ,ncurses/gpm)
1967 ("guile" ,guile-2.2)))))
1969 (define-public guile3.0-ncurses/gpm
1971 (inherit guile3.0-ncurses)
1972 (name "guile3.0-ncurses-with-gpm")
1973 (inputs `(("ncurses" ,ncurses/gpm)
1974 ("guile" ,guile-3.0)))))
1976 (define-public guile-lib
1982 (uri (string-append "mirror://savannah/guile-lib/guile-lib-"
1986 "0aizxdif5dpch9cvs8zz5g8ds5s4xhfnwza2il5ji7fv2h7ks7bd"))
1987 (modules '((guix build utils)))
1990 ;; Work around miscompilation on Guile 3.0.0 at -O2:
1991 ;; <https://bugs.gnu.org/39251>.
1992 (substitute* "src/md5.scm"
1993 (("\\(define f-ash ash\\)")
1994 "(define f-ash (@ (guile) ash))\n")
1995 (("\\(define f-add \\+\\)")
1996 "(define f-add (@ (guile) +))\n"))
1998 (build-system gnu-build-system)
2001 '("GUILE_AUTO_COMPILE=0") ; to prevent guild errors
2003 (modify-phases %standard-phases
2004 (add-before 'configure 'patch-module-dir
2006 (substitute* "src/Makefile.in"
2007 (("^moddir = ([[:graph:]]+)")
2008 "moddir = $(datadir)/guile/site/@GUILE_EFFECTIVE_VERSION@\n")
2009 (("^godir = ([[:graph:]]+)")
2011 $(libdir)/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n"))
2013 (native-inputs `(("pkg-config" ,pkg-config)))
2014 (inputs `(("guile" ,guile-3.0)))
2015 (home-page "https://www.nongnu.org/guile-lib/")
2016 (synopsis "Collection of useful Guile Scheme modules")
2018 "Guile-Lib is intended as an accumulation place for pure-scheme Guile
2019 modules, allowing for people to cooperate integrating their generic Guile
2020 modules into a coherent library. Think \"a down-scaled, limited-scope CPAN
2023 ;; The whole is under GPLv3+, but some modules are under laxer
2024 ;; distribution terms such as LGPL and public domain. See `COPYING' for
2026 (license license:gpl3+)))
2028 (define-public guile2.0-lib
2031 (name "guile2.0-lib")
2032 (inputs `(("guile" ,guile-2.0)))))
2034 (define-public guile2.2-lib
2037 (name "guile2.2-lib")
2038 (inputs `(("guile" ,guile-2.2)))))
2040 (define-public guile3.0-lib
2041 (deprecated-package "guile3.0-lib" guile-lib))
2043 (define-public guile-minikanren
2045 (name "guile-minikanren")
2046 (version "20150424.e844d85")
2050 (url "https://github.com/ijp/minikanren")
2051 (commit "e844d85512f8c055d3f96143ee506007389a25e3")))
2052 (file-name (string-append name "-" version "-checkout"))
2055 "0r50jlpzi940jlmxyy3ddqqwmj5r12gb4bcv0ssini9v8km13xz6"))))
2056 (build-system guile-build-system)
2058 `(("guile" ,guile-3.0)))
2059 (home-page "https://github.com/ijp/minikanren")
2060 (synopsis "MiniKanren declarative logic system, packaged for Guile")
2062 "MiniKanren is a relational programming extension to the Scheme
2063 programming Language, written as a smaller version of Kanren suitable for
2064 pedagogical purposes. It is featured in the book, The Reasoned Schemer,
2065 written by Dan Friedman, William Byrd, and Oleg Kiselyov.
2067 This is Ian Price's r6rs packaged version of miniKanren, which deviates
2068 slightly from miniKanren mainline.
2070 See http://minikanren.org/ for more on miniKanren generally.")
2071 (license license:expat)))
2073 (define-public guile2.0-minikanren
2075 (inherit guile-minikanren)
2076 (name "guile2.0-minikanren")
2077 (native-inputs `(("guile" ,guile-2.0)))))
2079 (define-public guile2.2-minikanren
2081 (inherit guile-minikanren)
2082 (name "guile2.2-minikanren")
2083 (native-inputs `(("guile" ,guile-2.2)))))
2085 (define-public guile3.0-minikanren
2086 (deprecated-package "guile3.0-minikanren" guile-minikanren))
2088 (define-public guile-irregex
2090 (name "guile-irregex")
2095 "http://synthcode.com/scheme/irregex/irregex-"
2099 "1ia3m7dp3lcxa048q0gqbiwwsyvn99baw6xkhb4bhhzn4k7bwyqq"))))
2100 (build-system guile-build-system)
2102 '(#:phases (modify-phases %standard-phases
2103 (add-after 'unpack 'move-files-around
2105 ;; Move the relevant source files to src/ and create the
2106 ;; rx/ directory to match the expected module hierarchy.
2107 (mkdir-p "src/rx/source")
2108 (rename-file "irregex-guile.scm"
2109 "src/rx/irregex.scm")
2110 (rename-file "irregex.scm"
2111 "src/rx/source/irregex.scm")
2112 ;; Not really reachable via guile's packaging system,
2113 ;; but nice to have around.
2114 (rename-file "irregex-utils.scm"
2115 "src/rx/source/irregex-utils.scm")
2117 #:source-directory "src"))
2119 `(("guile" ,guile-3.0)))
2120 (home-page "http://synthcode.com/scheme/irregex")
2121 (synopsis "S-expression based regular expressions")
2123 "Irregex is an s-expression based alternative to your classic
2124 string-based regular expressions. It implements SRFI 115 and is deeply
2125 inspired by the SCSH regular expression system.")
2126 (license license:bsd-3)))
2128 (define-public guile2.0-irregex
2130 (inherit guile-irregex)
2131 (name "guile2.0-irregex")
2132 (native-inputs `(("guile" ,guile-2.0)))))
2134 (define-public guile2.2-irregex
2136 (inherit guile-irregex)
2137 (name "guile2.2-irregex")
2138 (native-inputs `(("guile" ,guile-2.2)))))
2140 (define-public guile3.0-irregex
2141 (deprecated-package "guile3.0-irregex" guile-irregex))
2143 (define-public haunt
2149 (uri (string-append "https://files.dthompson.us/haunt/haunt-"
2153 "056z4znikk83nr5mr0x2ac3iinqbywa2bvb37mhr566a1q50isfc"))
2154 (modules '((guix build utils)))
2157 ;; Allow builds with Guile 3.0.
2158 (substitute* "configure"
2162 (build-system gnu-build-system)
2164 `(#:modules ((ice-9 match) (ice-9 ftw)
2165 ,@%gnu-build-system-modules)
2166 #:tests? #f ; test suite is non-deterministic :(
2167 #:phases (modify-phases %standard-phases
2168 (add-after 'install 'wrap-haunt
2169 (lambda* (#:key inputs outputs #:allow-other-keys)
2170 ;; Wrap the 'haunt' command to refer to the right
2172 (let* ((out (assoc-ref outputs "out"))
2173 (bin (string-append out "/bin"))
2174 (site (string-append
2175 out "/share/guile/site"))
2176 (guile-reader (assoc-ref inputs "guile-reader"))
2177 (deps `(,@(if guile-reader
2180 ,(assoc-ref inputs "guile-commonmark"))))
2181 (match (scandir site)
2183 (let ((modules (string-append site "/" version))
2184 (compiled-modules (string-append
2185 out "/lib/guile/" version
2187 (wrap-program (string-append bin "/haunt")
2188 `("GUILE_LOAD_PATH" ":" prefix
2190 ,@(map (lambda (dep)
2192 "/share/guile/site/"
2195 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
2197 ,@(map (lambda (dep)
2198 (string-append dep "/lib/guile/"
2204 `(("pkg-config" ,pkg-config)
2205 ("texinfo" ,texinfo)))
2207 `(("guile" ,guile-3.0)))
2209 ;; XXX: Guile-Reader is currently unavailable for Guile 2.2 so strip it.
2210 `(;;("guile-reader" ,guile-reader)
2211 ("guile-commonmark" ,guile-commonmark)))
2212 (synopsis "Functional static site generator")
2213 (description "Haunt is a static site generator written in Guile
2214 Scheme. Haunt features a functional build system and an extensible
2215 interface for reading articles in any format.")
2216 (home-page "http://haunt.dthompson.us")
2217 (license license:gpl3+)))
2219 (define-public guile2.2-haunt
2222 (name "guile2.2-haunt")
2223 (inputs `(("guile" ,guile-2.2)))
2225 `(("guile-reader" ,guile-reader)
2226 ("guile-commonmark" ,guile2.2-commonmark)))))
2228 (define-public guile2.0-haunt
2231 (name "guile2.0-haunt")
2232 (inputs `(("guile" ,guile-2.0)))))
2234 (define-public guile3.0-haunt
2235 (deprecated-package "guile3.0-haunt" haunt))
2237 (define-public guile-redis
2239 (name "guile-redis")
2241 (home-page "https://github.com/aconchillo/guile-redis")
2247 (file-name (git-file-name name version))
2250 "14izs8daxh7pb7vwpxi5g427qa31137jkaxrb1cy5rpjkwchy723"))))
2251 (build-system gnu-build-system)
2253 `(("autoconf" ,autoconf)
2254 ("automake" ,automake)
2255 ("pkg-config" ,pkg-config)
2256 ("guile" ,guile-3.0)))
2257 (synopsis "Redis client library for Guile")
2258 (description "Guile-redis provides a Scheme interface to the Redis
2259 key-value cache and store.")
2260 (license license:lgpl3+)))
2262 (define-public guile2.2-redis
2264 (inherit guile-redis)
2265 (name "guile2.2-redis")
2266 (native-inputs `(("guile" ,guile-2.2)
2267 ,@(alist-delete "guile"
2268 (package-native-inputs guile-redis))))))
2270 (define-public guile2.0-redis
2272 (inherit guile-redis)
2273 (name "guile2.0-redis")
2274 (native-inputs `(("guile" ,guile-2.0)
2275 ,@(alist-delete "guile"
2276 (package-native-inputs guile-redis))))))
2278 (define-public guile-commonmark
2280 (name "guile-commonmark")
2284 (uri (string-append "https://github.com/OrangeShark/" name
2285 "/releases/download/v" version
2286 "/" name "-" version ".tar.gz"))
2289 "17lrsdisa3kckh24q114vfmzdc4wkqa6ccwl4hdlrng5wpn1iman"))
2290 (modules '((guix build utils)))
2293 ;; Allow builds with Guile 3.0.
2294 (substitute* "configure"
2298 (build-system gnu-build-system)
2300 `(("guile" ,guile-3.0)))
2302 `(("pkg-config" ,pkg-config)))
2303 (synopsis "CommonMark parser for Guile")
2305 "guile-commonmark is a library for parsing CommonMark, a fully specified
2306 variant of Markdown. The library is written in Guile Scheme and is designed
2307 to transform a CommonMark document to SXML. guile-commonmark tries to closely
2308 follow the @uref{http://commonmark.org/, CommonMark spec}, the main difference
2309 is no support for parsing block and inline level HTML.")
2310 (home-page "https://github.com/OrangeShark/guile-commonmark")
2311 (license license:lgpl3+)))
2313 (define-public guile2.2-commonmark
2315 (inherit guile-commonmark)
2316 (name "guile2.2-commonmark")
2317 (inputs `(("guile" ,guile-2.2)))))
2319 (define-public guile2.0-commonmark
2321 (inherit guile-commonmark)
2322 (name "guile2.0-commonmark")
2323 (inputs `(("guile" ,guile-2.0)))))
2325 (define-public guile3.0-commonmark
2326 (deprecated-package "guile3.0-commonmark" guile-commonmark))
2328 (define-public mcron
2334 (uri (string-append "mirror://gnu/mcron/mcron-"
2338 "1521w3h33bhdlg6qc66sq4dwv3qsx8r8x6srq4ca6kaahy6dszw8"))))
2339 (build-system gnu-build-system)
2341 '(#:phases (modify-phases %standard-phases
2342 (add-before 'check 'adjust-tests
2344 (substitute* "tests/job-specifier.scm"
2345 ;; (getpw) fails with "entry not found" in the build
2346 ;; environment, so pass an argument.
2348 "(getpwnam (getuid))")
2349 ;; The build environment lacks an entry for root in
2352 "(getpwnam \"nobody\")")
2354 ;; FIXME: Skip the 4 faulty tests (see above).
2355 (("\\(test-equal \"next-year\"" all)
2356 (string-append "(test-skip 4)\n" all)))
2358 (native-inputs `(("pkg-config" ,pkg-config)
2359 ("tzdata" ,tzdata-for-tests)
2360 ("guile-native" ;for 'guild compile'
2361 ,@(assoc-ref (package-inputs this-package) "guile"))))
2362 (inputs `(("guile" ,guile-3.0)))
2363 (home-page "https://www.gnu.org/software/mcron/")
2364 (synopsis "Run jobs at scheduled times")
2366 "GNU Mcron is a complete replacement for Vixie cron. It is used to run
2367 tasks on a schedule, such as every hour or every Monday. Mcron is written in
2368 Guile, so its configuration can be written in Scheme; the original cron
2369 format is also supported.")
2370 (license license:gpl3+)))
2372 (define-public guile2.2-mcron
2375 (name "guile2.2-mcron")
2376 (inputs `(("guile" ,guile-2.2)))))
2378 (define-public guile3.0-mcron
2379 (deprecated-package "guile3.0-mcron" mcron))
2381 (define-public guile-picture-language
2382 (let ((commit "91d10c96708d732145006dd2802acc4de08b632e")
2385 (name "guile-picture-language")
2386 (version (git-version "0.0.1" revision commit))
2390 (url "https://git.elephly.net/software/guile-picture-language.git")
2392 (file-name (git-file-name name version))
2395 "1ydvw9dvssdvlvhh1dr8inyzy2x6m41qgp8hsivca1xysr4gc23a"))))
2396 (build-system gnu-build-system)
2398 `(("guile" ,guile-3.0)))
2400 `(("autoconf" ,autoconf)
2401 ("automake" ,automake)
2402 ("imagemagick" ,imagemagick)
2403 ("pkg-config" ,pkg-config)
2404 ("texinfo" ,texinfo)))
2405 (home-page "https://git.elephly.net/software/guile-picture-language.git")
2406 (synopsis "Picture language for Guile")
2408 "This package provides a simple SVG-based picture language for Guile.
2409 The picture values can directly be displayed in Geiser.")
2410 (license license:lgpl3+))))
2412 (define-public guile2.2-picture-language
2414 (inherit guile-picture-language)
2415 (name "guile2.2-picture-language")
2416 (inputs `(("guile" ,guile-2.2)))))
2418 (define-public guile3.0-picture-language
2419 (deprecated-package "guile3.0-picture-language"
2420 guile-picture-language))
2422 (define-public guile-studio
2423 (let ((commit "d24d59a68e3f1fa9477e3430fc48a2efe97b805d")
2426 (name "guile-studio")
2427 (version (git-version "0.0.2" revision commit))
2431 (url "https://git.elephly.net/software/guile-studio.git")
2433 (file-name (git-file-name name version))
2436 "0kqi0q8a7si65n21b7gn8vbninwcg0fqy5hmvy3l1bi6iync20zr"))))
2437 (build-system gnu-build-system)
2442 ,@%gnu-build-system-modules)
2443 #:tests? #f ; there are none
2445 (list (string-append "ICONS_DIR="
2446 (assoc-ref %build-inputs "adwaita-icon-theme")
2447 "/share/icons/Adwaita/")
2448 (string-append "PICT_DIR="
2449 (assoc-ref %build-inputs "guile-picture-language"))
2450 (string-append "EMACS_DIR="
2451 (assoc-ref %build-inputs "emacs"))
2452 (string-append "GUILE_DIR="
2453 (assoc-ref %build-inputs "guile"))
2454 (string-join (cons "INPUTS="
2459 (and (string-prefix? "emacs" label) pkg))))
2461 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2463 (modify-phases %standard-phases
2465 (delete 'install))))
2467 `(("guile" ,guile-3.0)
2468 ("guile-picture-language" ,guile-picture-language)
2470 ("emacs-geiser" ,emacs-geiser)
2471 ("emacs-company" ,emacs-company)
2472 ("emacs-flycheck" ,emacs-flycheck)
2473 ("emacs-smart-mode-line" ,emacs-smart-mode-line)
2474 ("emacs-paren-face" ,emacs-paren-face)
2475 ("adwaita-icon-theme" ,adwaita-icon-theme)))
2477 `(("texinfo" ,texinfo)))
2478 (home-page "https://gnu.org/software/guile")
2479 (synopsis "IDE for Guile")
2481 "This is Emacs with a few settings that make working with Guile easier
2482 for people new to Emacs. Features include: CUA mode, Geiser, tool bar icons
2483 to evaluate Guile buffers, support for Guile's very own picture language, code
2484 completion, a simple mode line, etc.")
2485 (license license:gpl3+))))
2487 (define-public guile-stis-parser
2489 (name "guile-stis-parser")
2494 (url "https://gitlab.com/tampe/stis-parser")
2495 (commit (string-append "v" version))))
2496 (file-name (git-file-name name version))
2499 "1fvxdfvc80zqhwzq5x3kxyr6j8p4b51yx85fx1gr3d4gy2ddpx5w"))))
2500 (build-system gnu-build-system)
2502 `(#:parallel-build? #f ; not supported
2504 (modify-phases %standard-phases
2505 (add-after 'unpack 'chdir
2506 (lambda _ (chdir "modules") #t))
2507 (add-after 'chdir 'delete-broken-symlink
2509 (delete-file "parser/stis-parser/lang/.#calc.scm")
2512 `(("guile" ,guile-3.0)))
2514 `(("autoconf" ,autoconf)
2515 ("automake" ,automake)
2516 ("pkg-config" ,pkg-config)))
2517 (home-page "https://gitlab.com/tampe/stis-parser")
2518 (synopsis "Parser combinator framework")
2520 "This package provides a functional parser combinator library that
2521 supports backtracking and a small logical framework. The idea is to build up
2522 chunks that are memoized and there is no clear scanner/parser separation,
2523 chunks can be expressions as well as simple tokens.")
2524 (license license:lgpl2.0+)))
2526 (define-public guile-persist
2528 (name "guile-persist")
2533 (url "https://gitlab.com/tampe/guile-persist")
2534 (commit (string-append "v" version))))
2535 (file-name (git-file-name name version))
2538 "19f8hqcax4v40858kx2j8fy1cvzc2djj99r0n17dy1xxmwa097qi"))))
2539 (build-system gnu-build-system)
2542 (modify-phases %standard-phases
2543 (add-after 'unpack 'patch-prefix
2544 (lambda* (#:key inputs outputs #:allow-other-keys)
2545 (substitute* "src/Makefile.am"
2546 (("/usr/local/lib/guile")
2547 (string-append (assoc-ref outputs "out") "/lib/guile"))
2548 (("/usr/local/include/guile")
2549 (string-append (assoc-ref inputs "guile") "/include/guile"))
2550 (("-L/usr/local/lib")
2551 (string-append "-L" (assoc-ref inputs "guile") "/lib")))
2553 (add-after 'unpack 'patch-library-reference
2554 (lambda* (#:key outputs #:allow-other-keys)
2555 (let ((out (assoc-ref outputs "out")))
2556 (substitute* "persist/persistance.scm"
2557 (("\"libguile-persist\"")
2558 (format #f "\"~a/lib/guile/3.0/extensions/libguile-persist\"" out)))
2561 `(("guile" ,guile-3.0)))
2563 `(("autoconf" ,autoconf)
2564 ("automake" ,automake)
2565 ("libtool" ,libtool)
2566 ("pkg-config" ,pkg-config)))
2567 (home-page "https://gitlab.com/tampe/guile-persist")
2568 (synopsis "Persistence programming framework for Guile")
2570 "This is a serialization library for serializing objects like classes
2571 and objects, closures and structs. This currently does not support
2572 serializing continuations or delimited continuations.")
2573 (license license:lgpl2.0+)))
2575 (define-public python-on-guile
2577 (name "python-on-guile")
2579 (home-page "https://gitlab.com/python-on-guile/python-on-guile")
2582 (uri (git-reference (url home-page)
2583 (commit (string-append "v" version))))
2584 (file-name (git-file-name name version))
2587 "05xrvcj6a4gzq1ybyin270qz8wamgc7w2skyi9iy6hkpgdhxy8vf"))))
2588 (build-system gnu-build-system)
2590 `(#:parallel-build? #f ;not supported
2591 #:make-flags '("GUILE_AUTO_COMPILE=0") ;to prevent guild warnings
2593 (modify-phases %standard-phases
2594 (add-after 'unpack 'chdir
2595 (lambda _ (chdir "modules") #t))
2596 (add-after 'chdir 'augment-GUILE_LOAD_PATH
2598 ;; TODO: It would be better to patch the Makefile.
2599 (setenv "GUILE_LOAD_PATH"
2601 (getenv "GUILE_LOAD_PATH")))
2603 (add-after 'install 'wrap
2604 (lambda* (#:key outputs #:allow-other-keys)
2605 ;; Wrap the 'python' executable so it can find its
2606 ;; dependencies and own modules.
2607 (let* ((out (assoc-ref outputs "out"))
2608 (guile-version ,(version-major+minor
2609 (package-version guile-3.0)))
2610 (scm (string-append out "/share/guile/site/"
2612 (ccache (string-append out "/lib/guile/" guile-version
2614 (load-path (string-join
2616 ;; XXX: cdr because we augment it above.
2618 (getenv "GUILE_LOAD_PATH") #\:)))
2620 (compiled-path (string-append
2622 (getenv "GUILE_LOAD_COMPILED_PATH"))))
2623 (wrap-program (string-append out "/bin/python")
2624 `("GUILE_LOAD_PATH" ":" prefix
2626 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
2630 `(("guile" ,guile-3.0)
2631 ("guile-persist" ,guile-persist)
2632 ("guile-readline" ,guile-readline)
2633 ("guile-stis-parser" ,guile-stis-parser)))
2635 `(("autoconf" ,autoconf)
2636 ("automake" ,automake)
2637 ("libtool" ,libtool)
2638 ("pkg-config" ,pkg-config)))
2639 (synopsis "Python implementation in Guile")
2641 "This package allows you to compile a Guile Python file to any target
2642 from @code{tree-il}.")
2643 (license license:lgpl2.0+)))
2645 (define-public guile-file-names
2647 (name "guile-file-names")
2651 (uri (string-append "http://brandon.invergo.net/software/download/"
2652 "guile-file-names/guile-file-names-"
2656 "01chizdxkhw6aqv629vxka9f5x3534ij7r0jqndawsg2vxm1r9sz"))))
2657 (build-system gnu-build-system)
2660 (modify-phases %standard-phases
2661 (add-after 'unpack 'fix-target-directory
2663 (substitute* "src/Makefile.in"
2664 (("guilemoddir = \\$\\(GUILE_SITE\\)")
2665 "guilemoddir = $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
2668 `(("guile" ,guile-2.2)))
2670 `(("pkg-config" ,pkg-config)))
2671 (home-page "https://gitlab.com/brandoninvergo/guile-file-names")
2672 (synopsis "Manipulate file names")
2674 "The @code{(file-names)} module provides tools for manipulating file
2675 names. The module was built on the idea that doing anything more than a
2676 non-trivial modification of a file name string is a pain (making sure all
2677 slashes are present and accounted for, resolving @code{.} and @code{..}, etc).
2678 Inevitably, you have to break the string up into chunks and operate on that
2679 list of components. This module takes care of that for you.")
2680 (license license:lgpl3+)))
2682 (define-public guile-gi
2688 (uri (string-append "http://lonelycactus.com/tarball/guile_gi-"
2692 "05xbwrk50h4f9fh8la8fk2wsxbnm0jcyb9phnpkkjq4sqkhkxlbj"))))
2693 (build-system gnu-build-system)
2695 `(#:configure-flags '("--with-gnu-filesystem-hierarchy")
2696 #:modules ((guix build gnu-build-system)
2701 (modify-phases %standard-phases
2702 (add-after 'unpack 'patch-references-to-extension
2703 (lambda* (#:key outputs #:allow-other-keys)
2704 (let ((effective (read-line
2705 (open-pipe* OPEN_READ
2707 "(display (effective-version))"))))
2708 (substitute* '("module/gi.scm"
2710 "module/gi/documentation.scm"
2711 "module/gi/types.scm"
2712 "module/gi/repository.scm")
2713 (("\\(load-extension \"libguile-gi\" \"(.*)\"\\)" m arg)
2716 (format #f "~alibguile-gi"
2717 (if (getenv "GUILE_GI_UNINSTALLED")
2719 ,(format #f "~a/lib/guile/~a/"
2720 (assoc-ref outputs "out")
2723 (setenv "GUILE_GI_UNINSTALLED" "1")
2725 (add-before 'check 'start-xorg-server
2726 (lambda* (#:key inputs #:allow-other-keys)
2727 ;; The init_check test requires a running X server.
2728 (system (format #f "~a/bin/Xvfb :1 &"
2729 (assoc-ref inputs "xorg-server")))
2730 (setenv "DISPLAY" ":1")
2733 `(("gettext" ,gettext-minimal)
2734 ("glib:bin" ,glib "bin") ; for glib-compile-resources
2735 ("libtool" ,libtool)
2736 ("pkg-config" ,pkg-config)
2737 ("xorg-server" ,xorg-server)))
2740 ("gobject-introspection" ,gobject-introspection)
2741 ("gssettings-desktop-schemas" ,gsettings-desktop-schemas)
2743 ("guile-lib" ,guile-lib)
2744 ("webkitgtk" ,webkitgtk)))
2745 (inputs `(("guile" ,guile-3.0)))
2746 (home-page "https://github.com/spk121/guile-gi")
2747 (synopsis "GObject bindings for Guile")
2749 "Guile-GI is a library for Guile that allows using GObject-based
2750 libraries, such as GTK+3. Its README comes with the disclaimer: This is
2752 (license license:gpl3+)))
2754 (define-public guile2.2-gi
2757 (name "guile2.2-gi")
2759 `(("guile" ,guile-2.2)
2760 ,@(package-native-inputs guile-gi)))))
2762 (define-public guile3.0-gi
2763 (deprecated-package "guile3.0-gi" guile-gi))
2765 (define-public guile-srfi-159
2766 (let ((commit "1bd98abda2ae4ef8f36761a167903e55c6bda7bb")
2769 (name "guile-srfi-159")
2770 (version (git-version "0" revision commit))
2771 (home-page "https://bitbucket.org/bjoli/guile-srfi-159")
2774 (uri (hg-reference (changeset commit)
2778 "1zw6cmcy7xdbfiz3nz9arqnn7l2daidaps6ixkcrc9b6k51fdv3p"))
2779 (file-name (git-file-name name version))))
2780 (build-system guile-build-system)
2782 ;; The *-impl.scm files are actually included from module files; they
2783 ;; should not be compiled separately, but they must be installed.
2784 '(#:not-compiled-file-regexp "-impl\\.scm$"))
2786 `(("guile" ,guile-2.2)))
2787 (synopsis "Formatting combinators for Guile")
2789 "The @code{(srfi-159)} module and its sub-modules implement the
2790 formatting combinators specified by
2791 @uref{https://srfi.schemers.org/srfi-159/srfi-159.html, SRFI-159}. These are
2792 more expressive and flexible than the traditional @code{format} procedure.")
2793 (license license:bsd-3))))
2795 (define-public emacsy
2802 "https://download.savannah.nongnu.org/releases/"
2803 name "/" name "-" version ".tar.gz"))
2806 "1cpb85dl1nibd34c2x2h7vfmjpkgh353p5b1w20v6cs6gmvgg4np"))))
2807 (build-system gnu-build-system)
2809 `(("autoconf" ,autoconf)
2810 ("automake" ,automake)
2812 ("guile" ,guile-2.2)
2813 ("gettext" ,gettext-minimal)
2814 ("libtool" ,libtool)
2816 ("pkg-config" ,pkg-config)
2817 ("texinfo" ,texinfo)
2818 ("texlive" ,(texlive-union (list texlive-generic-epsf)))))
2820 `(("dbus-glib" ,dbus-glib)
2821 ("guile" ,guile-2.2)
2822 ("guile-lib" ,guile-lib)
2823 ("guile-readline" ,guile-readline)
2824 ("freeglut" ,freeglut)
2825 ("webkitgtk" ,webkitgtk)))
2827 `(("glib-networking" ,glib-networking)
2828 ("gssettings-desktop-schemas" ,gsettings-desktop-schemas)))
2830 `(#:modules ((guix build gnu-build-system)
2838 (modify-phases %standard-phases
2839 (add-before 'configure 'setenv
2841 (setenv "GUILE_AUTO_COMPILE" "0")
2843 (add-after 'install 'wrap-binaries
2844 (lambda* (#:key inputs outputs #:allow-other-keys)
2845 (let* ((out (assoc-ref outputs "out"))
2846 (effective (read-line
2847 (open-pipe* OPEN_READ
2849 "(display (effective-version))")))
2850 (deps (map (cut assoc-ref inputs <>)
2851 '("guile-lib" "guile-readline")))
2852 (scm-path (map (cut string-append <> "/share/guile/site/"
2853 effective) `(,out ,@deps)))
2854 (go-path (map (cut string-append <> "/lib/guile/" effective
2855 "/site-ccache/") `(,out ,@deps)))
2856 (examples (filter (cut string-match "emacsy" <>)
2857 (scandir (string-append out "/bin/"))))
2858 (progs (map (cut string-append out "/bin/" <>)
2860 (map (cut wrap-program <>
2861 `("GUILE_LOAD_PATH" ":" prefix ,scm-path)
2862 `("GUILE_LOAD_COMPILED_PATH" ":" prefix ,go-path))
2865 (home-page "https://savannah.nongnu.org/projects/emacsy")
2866 (synopsis "Embeddable GNU Emacs-like library using Guile")
2868 "Emacsy is an embeddable Emacs-like library that uses GNU Guile
2869 as extension language. Emacsy can give a C program an Emacsy feel with
2870 keymaps, minibuffer, recordable macros, history, tab completion, major
2871 and minor modes, etc., and can also be used as a pure Guile library. It
2872 comes with a simple counter example using FreeGLUT and browser examples
2873 in C using Gtk+-3 and WebKitGtk.")
2874 (license license:gpl3+)))
2876 (define-public emacsy-minimal
2877 (let ((commit "v0.4.1-28-gd459ca1"))
2880 (name "emacsy-minimal")
2881 (version (string-drop commit 1))
2885 (url "https://git.savannah.gnu.org/git/emacsy.git")
2887 (file-name (git-file-name name version))
2890 "1ps15w8cxj9kc18gmvys9jv9xa1qqa7m43ismv34l3cmhddrn0sr"))))
2891 (build-system gnu-build-system)
2893 `(("guile" ,guile-2.2)
2894 ("guile-lib" ,guile2.2-lib)
2895 ("guile-readline" ,guile2.2-readline)))
2896 (propagated-inputs '())
2898 `(#:configure-flags '("--without-examples")
2900 (modify-phases %standard-phases
2901 (add-before 'configure 'setenv
2903 (setenv "GUILE_AUTO_COMPILE" "0")
2906 (define-public guile-jpeg
2907 (let ((commit "6a1673578b297c2c1b28e44a76bd5c49e76a5046")
2911 (version (git-version "0.0" revision commit))
2912 (home-page "https://gitlab.com/wingo/guile-jpeg")
2915 (uri (git-reference (url home-page)
2919 "05z9m408w3h6aqb5k3r3qa7khir0k10rxwvsrzhkcq1hr5vbmr4m"))
2920 (file-name (git-file-name name version))
2921 (modules '((guix build utils)))
2924 ;; Install .go files in the right place.
2925 (substitute* "Makefile.am"
2926 (("/ccache") "/site-ccache"))
2928 (build-system gnu-build-system)
2930 `(("autoconf" ,autoconf)
2931 ("automake" ,automake)
2932 ("pkg-config" ,pkg-config)
2933 ("guile" ,guile-2.2)))
2934 (synopsis "JPEG file parsing library for Guile")
2936 "Guile-JPEG is a Scheme library to parse JPEG image files and to
2937 perform geometrical transforms on JPEG images.")
2938 (license license:gpl3+))))
2940 (define-public nomad
2943 (version "0.1.2-alpha")
2947 (url "https://git.savannah.gnu.org/git/nomad.git")
2949 (file-name (git-file-name name version))
2952 "1dnkr1hmvfkwgxd75dcf93pg39yfgawvdpzdhv991yhghv0qxc9h"))))
2953 (build-system gnu-build-system)
2955 `(("autoconf" ,autoconf)
2956 ("automake" ,automake)
2958 ("pkg-config" ,pkg-config)
2959 ("libtool" ,libtool)
2960 ("guile" ,guile-2.2)
2961 ("glib:bin" ,glib "bin")
2962 ("texinfo" ,texinfo)
2965 `(("guile" ,guile-2.2)
2966 ("guile-lib" ,guile-lib)
2967 ("guile-gcrypt" ,guile-gcrypt)
2968 ("guile-readline" ,guile-readline)
2971 ("emacsy" ,emacsy-minimal)
2973 ("dbus-glib" ,dbus-glib)
2975 ("gtksourceview" ,gtksourceview)
2976 ("webkitgtk" ,webkitgtk)
2977 ("xorg-server" ,xorg-server)))
2980 ("glib-networking" ,glib-networking)
2981 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
2983 `(#:modules ((guix build gnu-build-system)
2989 (modify-phases %standard-phases
2990 (add-before 'check 'start-xorg-server
2991 (lambda* (#:key inputs #:allow-other-keys)
2992 ;; The test suite requires a running X server.
2993 (system (format #f "~a/bin/Xvfb :1 &"
2994 (assoc-ref inputs "xorg-server")))
2995 (setenv "DISPLAY" ":1")
2997 (add-after 'install 'wrap-binaries
2998 (lambda* (#:key inputs outputs #:allow-other-keys)
2999 (let* ((out (assoc-ref outputs "out"))
3000 (gio-deps (map (cut assoc-ref inputs <>) '("glib-networking"
3002 (gio-mod-path (map (cut string-append <> "/lib/gio/modules")
3004 (effective (read-line (open-pipe*
3007 "(display (effective-version))")))
3008 (deps (map (cut assoc-ref inputs <>)
3009 '("emacsy" "guile-lib" "guile-readline"
3011 (scm-path (map (cut string-append <>
3012 "/share/guile/site/" effective)
3014 (go-path (map (cut string-append <>
3015 "/lib/guile/" effective "/site-ccache")
3017 (progs (map (cut string-append out "/bin/" <>)
3019 (map (cut wrap-program <>
3020 `("GIO_EXTRA_MODULES" ":" prefix ,gio-mod-path)
3021 `("GUILE_LOAD_PATH" ":" prefix ,scm-path)
3022 `("GUILE_LOAD_COMPILED_PATH" ":"
3026 (home-page "https://savannah.nongnu.org/projects/nomad/")
3027 (synopsis "Extensible Web Browser in Guile Scheme")
3028 (description "Nomad is an Emacs-like Web Browser built using Webkitgtk and
3029 Emacsy. It has a small C layer and most browser features are fully
3030 programmable in Guile. It has hooks, keymaps, and self documentation
3032 (license license:gpl3+)))
3034 (define-public guile-cv
3040 (uri (string-append "mirror://gnu/guile-cv/guile-cv-"
3044 "0qdf0s2h1xj5lbhnc1pfw69i3zg08pqy2y6869b92ydfis8r82j9"))))
3045 (build-system gnu-build-system)
3048 (modify-phases %standard-phases
3049 (add-after 'unpack 'prepare-build
3050 (lambda* (#:key inputs outputs #:allow-other-keys)
3051 (substitute* "configure"
3052 (("SITEDIR=\"\\$datadir/guile-cv\"")
3053 "SITEDIR=\"$datadir/guile/site/$GUILE_EFFECTIVE_VERSION\"")
3054 (("SITECCACHEDIR=\"\\$libdir/guile-cv/")
3055 "SITECCACHEDIR=\"$libdir/"))
3056 (substitute* "cv/init.scm"
3057 (("\\(dynamic-link \"libvigra_c\"\\)")
3058 (string-append "(dynamic-link \""
3059 (assoc-ref inputs "vigra-c")
3060 "/lib/libvigra_c\")"))
3061 (("\\(dynamic-link \"libguile-cv\"\\)")
3064 (format #f "~alibguile-cv"
3065 (if (getenv "GUILE_CV_UNINSTALLED")
3067 ,(format #f "~a/lib/"
3068 (assoc-ref outputs "out"))))))))
3069 (setenv "GUILE_CV_UNINSTALLED" "1")
3070 ;; Only needed to satisfy the configure script.
3071 (setenv "LD_LIBRARY_PATH"
3072 (string-append (assoc-ref inputs "vigra-c") "/lib"))
3076 ("vigra-c" ,vigra-c)
3077 ("guile" ,guile-2.2)))
3079 `(("texlive" ,(texlive-union (list texlive-booktabs
3084 texlive-fonts-iwona)))
3085 ("pkg-config" ,pkg-config)))
3087 `(("guile-lib" ,guile-lib)))
3088 (home-page "https://www.gnu.org/software/guile-cv/")
3089 (synopsis "Computer vision library for Guile")
3090 (description "Guile-CV is a Computer Vision functional programming library
3091 for the Guile Scheme language. It is based on Vigra (Vision with Generic
3092 Algorithms), a C++ image processing and analysis library. Guile-CV contains
3093 bindings to Vigra C (a C wrapper to most of the Vigra functionality) and is
3094 enriched with pure Guile Scheme algorithms, all accessible through a nice,
3095 clean and easy to use high level API.")
3096 (license license:gpl3+)))
3098 (define-public guile-ffi-fftw
3099 (let ((commit "294ad9e7491dcb40026d2fec9be2af05263be1c0")
3102 (name "guile-ffi-fftw")
3103 (version (git-version "0" revision commit))
3107 (url "https://github.com/lloda/guile-ffi-fftw")
3109 (file-name (git-file-name "guile-ffi-fftw" version))
3112 "08j40a5p6a8pgvhffmzb5rfdnrav2mksy3gfjkdqy93jfj1z5afg"))))
3113 (build-system guile-build-system)
3115 `(#:source-directory "mod"
3117 (modify-phases %standard-phases
3118 (add-after 'unpack 'prepare-build
3119 (lambda* (#:key inputs #:allow-other-keys)
3120 (substitute* "mod/ffi/fftw.scm"
3121 (("\\(getenv \"GUILE_FFI_FFTW_LIBFFTW3_PATH\"\\)")
3122 (format #f "\"~a/lib\"" (assoc-ref inputs "fftw"))))
3124 (add-after 'build 'check
3126 (invoke "guile" "-L" "mod"
3127 "-s" "test/test-ffi-fftw.scm"))))))
3130 ("guile" ,guile-2.2)))
3131 (home-page "https://github.com/lloda/guile-ffi-fftw/")
3132 (synopsis "Access FFTW through Guile's FFI")
3133 (description "This is a minimal set of Guile FFI bindings for the FFTW
3134 library's ‘guru interface’. It provides two functions: @code{fftw-dft! rank
3135 sign in out} and @code{fftw-dft rank sign in}. These bindings being minimal,
3136 there is no support for computing & reusing plans, or split r/i transforms, or
3137 anything other than straight complex DFTs.")
3138 (license license:lgpl3+))))
3140 (define-public srfi-64-driver
3142 (name "srfi-64-driver")
3146 (uri (string-append "https://files.ngyro.com/srfi-64-driver/"
3147 "srfi-64-driver-" version ".tar.gz"))
3150 "188b6mb7sjjg0a8zldikinglf40ky8mg8rwh5768gjmch6gkk3ph"))))
3151 (build-system gnu-build-system)
3155 (modify-phases %standard-phases
3158 `(("pkg-config" ,pkg-config)))
3160 `(("guile" ,guile-2.2)))
3161 (home-page "https://ngyro.com/software/srfi-64-driver.html")
3162 (synopsis "Automake test driver for SRFI 64 test suites")
3163 (description "This package provides an Automake test driver that can
3164 run SRFI 64 test suites. It gives Automake insight into the individual
3165 tests being run, resulting clearer and more specific output.")
3166 (license license:gpl3+)))
3168 (define-public guile-semver
3170 (name "guile-semver")
3174 (uri (string-append "https://files.ngyro.com/guile-semver/"
3175 "guile-semver-" version ".tar.gz"))
3178 "109p4n39ln44cxvwdccf9kgb96qx54makvd2ir521ssz6wchjyag"))))
3179 (build-system gnu-build-system)
3181 `(("pkg-config" ,pkg-config)))
3183 `(("guile" ,guile-2.2)))
3184 (home-page "https://ngyro.com/software/guile-semver.html")
3185 (synopsis "Semantic Versioning (SemVer) for Guile")
3186 (description "This Guile library provides tools for reading,
3187 comparing, and writing Semantic Versions. It also includes ranges in
3188 the style of the Node Package Manager (NPM).")
3189 (license license:gpl3+)))
3191 (define-public guile3.0-semver
3193 (inherit guile-semver)
3194 (name "guile3.0-semver")
3196 `(("guile" ,guile-3.0)))))
3198 (define-public guile-hashing
3200 (name "guile-hashing")
3202 (home-page "https://github.com/weinholt/hashing")
3207 (commit (string-append "v" version))))
3208 (file-name (git-file-name name version))
3211 "1362d3lmpv7slmv1zmr9wy8panq9sjr9787gc2hagd646mpsfpkl"))))
3212 (build-system guile-build-system)
3214 `(#:modules ((guix build guile-build-system)
3218 #:implicit-inputs? #f ;needs nothing but Guile
3219 #:phases (modify-phases %standard-phases
3220 (add-before 'build 'move-sls-files
3222 ;; Move the source under hashing/ in order to match
3223 ;; module names, and rename .sls files to .scm.
3224 (define (target file)
3225 (string-append "hashing/" file))
3227 (define (sls->scm sls)
3228 (string-append (string-drop-right sls 4)
3232 (for-each (lambda (file)
3233 (rename-file file (sls->scm file)))
3234 (find-files "." "\\.sls$"))
3235 (for-each (lambda (file)
3236 (rename-file file (target file)))
3237 (scandir "." (cut string-suffix? ".scm" <>)))
3238 (rename-file "private" "hashing/private")
3241 `(("guile" ,guile-3.0)))
3242 (synopsis "Cryprographic hash functions implemented in Scheme")
3244 "The @code{(hashing @dots{})} modules implement cryptographic hash
3245 functions in pure R6RS Scheme: CRC, HMAC, MD5, SHA-1, and SHA-2 (SHA-256,
3247 (license license:expat)))
3249 (define-public guile2.2-hashing
3251 (inherit guile-hashing)
3252 (name "guile2.2-hashing")
3254 `(("guile" ,guile-2.2)))))
3256 (define-public guile3.0-hashing
3257 (deprecated-package "guile3.0-hashing" guile-hashing))
3259 (define-public guile-packrat
3261 (name "guile-packrat")
3263 (home-page "https://github.com/weinholt/packrat")
3268 (commit (string-append "v" version))))
3269 (file-name (git-file-name name version))
3272 "1aga17164fkhbgllqc7ni6fk5zl8mkmgkl5zcsy67x7ngpyalbby"))))
3273 (build-system guile-build-system)
3275 `(#:implicit-inputs? #f ;needs nothing but Guile
3276 #:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
3277 #:not-compiled-file-regexp "/extensible\\.scm$"
3278 #:phases (modify-phases %standard-phases
3279 (add-before 'build 'no-srfi-23
3281 (substitute* "packrat.sls"
3282 (("\\(srfi :23 error\\)")
3283 (object->string '(only (guile) error))))
3286 `(("guile" ,guile-3.0)))
3287 (synopsis "Packrat parser library in R6RS Scheme")
3289 "This is an R6RS Scheme adaptation of the
3290 @uref{https://bford.info/packrat/, packrat parsing}. Packrat parsing is a
3291 memoizing, backtracking, recursive-descent parsing technique that runs in time
3292 and space linear in the size of the input text.")
3293 (license license:expat)))
3295 (define-public guile-ac-d-bus
3297 (name "guile-ac-d-bus")
3298 (version "1.0.0-beta.0")
3299 (home-page "https://gitlab.com/weinholt/ac-d-bus/")
3304 (commit (string-append "v" version))))
3305 (file-name (git-file-name name version))
3308 "0rl809qimhgz6b0rixakb42r2l4g53jr09a2g0s1hxgab0blz0kb"))))
3309 (build-system guile-build-system)
3311 `(#:implicit-inputs? #f ;needs nothing but Guile
3312 #:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
3313 #:phases (modify-phases %standard-phases
3314 (add-before 'build 'adjust-for-guile
3316 ;; Adjust source file names for Guile.
3317 (define (guile-sls->sls file)
3318 (string-append (string-drop-right
3319 file (string-length ".guile.sls"))
3322 ;; Remove files targeting other implementations:
3324 (for-each delete-file
3328 (not (string-contains file ".guile.")))))
3330 ;; Rename *.guile.sls to *.sls so the ".guile" bit does
3331 ;; not appear in .go file names.
3332 (for-each (lambda (file)
3333 (rename-file file (guile-sls->sls file)))
3334 (find-files "compat" "\\.guile\\.sls"))
3336 ;; Move directories under d-bus/ to match module names.
3338 (for-each (lambda (directory)
3339 (rename-file directory
3340 (string-append "d-bus/"
3342 '("compat" "protocol"))
3346 `(("guile" ,guile-3.0)))
3348 `(("guile-packrat" ,guile-packrat)))
3349 (synopsis "D-Bus protocol implementation in R6RS Scheme")
3351 "AC/D-Bus is an implementation of the D-Bus wire protocol. D-Bus is an
3352 interprocess communication protocol popular on GNU/Linux systems to
3353 communicate with a variety of services. Originally designed for desktop
3354 environments, it is now used by programs like VLC media player, BlueZ,
3355 NetworkManager, Pulseaudio, systemd (including logind and resolved), Polkit,
3356 gnome-keyring, and many more.")
3357 (license license:expat)))
3359 (define-public guile-webutils
3360 (let ((commit "8541904f761066dc9c27b1153e9a838be9a55299")
3363 (name "guile-webutils")
3364 (version (git-version "0.1" revision commit))
3368 (url "https://notabug.org/cwebber/guile-webutils.git")
3370 (file-name (git-file-name name version))
3373 "1s9n3hbxd7lfpdi0x8wr0cfvlsf6g62ird9gbspxdrp5p05rbi64"))
3374 (modules '((guix build utils)))
3377 ;; Allow builds with Guile 3.0.
3378 (substitute* "configure.ac"
3382 (build-system gnu-build-system)
3384 `(("autoconf" ,autoconf)
3385 ("automake" ,automake)
3386 ("pkg-config" ,pkg-config)
3387 ("texinfo" ,texinfo)))
3389 `(("guile" ,guile-3.0)))
3391 `(("guile-irregex" ,guile-irregex)
3392 ("guile-gcrypt" ,guile-gcrypt)))
3393 (home-page "https://notabug.org/cwebber/guile-webutils")
3394 (synopsis "Web application authoring utilities for Guile")
3396 "This package provides tooling to write web applications in Guile, such
3397 as signed sessions, multipart message support, etc.")
3398 (license license:gpl3+))))
3400 (define-public guile2.2-webutils
3402 (inherit guile-webutils)
3403 (name "guile2.2-webutils")
3405 `(("guile" ,guile-2.2)))
3407 `(("guile-irregex" ,guile2.2-irregex)
3408 ("guile-gcrypt" ,guile2.2-gcrypt)))))
3410 (define-public guile-lens
3411 (let ((commit "14b15d07255f9d3f55d40a3b750d13c9ee3a154f")
3415 (version (git-version "0.1" revision commit))
3419 (url "https://gitlab.com/a-sassmannshausen/guile-lens.git")
3421 (file-name (git-file-name name version))
3424 "0w8jzqyla56yrgj7acsgd4nspyir6zgp3vgxid4xmwhg9wmf1ida"))))
3425 (build-system gnu-build-system)
3428 (modify-phases %standard-phases
3429 (add-after 'unpack 'run-hall
3431 (setenv "HOME" "/tmp") ; for ~/.hall
3432 (invoke "hall" "dist" "-x"))))))
3434 `(("autoconf" ,autoconf)
3435 ("automake" ,automake)
3436 ("guile" ,guile-3.0)
3437 ("guile-hall" ,guile-hall)
3438 ("pkg-config" ,pkg-config)
3439 ("texinfo" ,texinfo)))
3440 (home-page "https://gitlab.com/a-sassmannshausen/guile-lens.git")
3441 (synopsis "Composable lenses for data structures in Guile")
3443 "Guile-Lens is a library implementing lenses in Guile. The library is
3444 currently a re-implementation of the lentes library for Clojure. Lenses
3445 provide composable procedures, which can be used to focus, apply functions
3446 over, or update a value in arbitrary data structures.")
3447 (license license:gpl3+))))
3449 (define-public guile2.2-lens
3451 (inherit guile-lens)
3452 (name "guile2.2-lens")
3454 `(("guile" ,guile-2.2)
3455 ,@(alist-delete "guile" (package-native-inputs guile-lens))))))
3457 (define-public guile-xapian
3459 (name "guile-xapian")
3461 (home-page "https://git.systemreboot.net/guile-xapian")
3465 (uri (git-reference (url home-page)
3466 (commit (string-append "v" version))))
3467 (file-name (git-file-name name version))
3470 "16k61f1jn3g48jaf3730b9l0izr5j933jzyri73nmcnjd09gm35i"))))
3471 (build-system gnu-build-system)
3473 '(#:make-flags '("GUILE_AUTO_COMPILE=0"))) ; to prevent guild warnings
3475 `(("guile" ,guile-3.0)
3479 `(("autoconf" ,autoconf)
3480 ("autoconf-archive" ,autoconf-archive)
3481 ("automake" ,automake)
3482 ("libtool" ,libtool)
3483 ("pkg-config" ,pkg-config)
3485 (synopsis "Guile bindings for Xapian")
3486 (description "@code{guile-xapian} provides Guile bindings for Xapian, a
3487 search engine library. Xapian is a highly adaptable toolkit which allows
3488 developers to easily add advanced indexing and search facilities to their own
3489 applications. It has built-in support for several families of weighting
3490 models and also supports a rich set of boolean query operators.")
3491 (license license:gpl2+)))
3493 (define-public guile2.2-xapian
3495 (inherit guile-xapian)
3496 (name "guile2.2-xapian")
3498 `(("guile" ,guile-2.2)
3499 ,@(alist-delete "guile" (package-inputs guile-xapian))))))
3501 (define-public guile3.0-xapian
3502 (deprecated-package "guile3.0-xapian" guile-xapian))
3504 (define-public guile-torrent
3506 (name "guile-torrent")
3508 (source (origin (method git-fetch)
3511 "https://github.com/o-nly/torrent.git")
3513 (file-name (git-file-name name version))
3516 "1yiagi55ncq1x7s9n7salzywjm4l96y3n7y3s47a9anvz87mrmim"))))
3517 (build-system gnu-build-system)
3519 `(("autoconf" ,autoconf)
3520 ("automake" ,automake)
3521 ("guile" ,guile-2.2)
3522 ("texinfo" ,texinfo)
3524 ("pkg-config" ,pkg-config)))
3526 `(("guile-gcrypt" ,guile-gcrypt)))
3527 (home-page "https://github.com/o-nly/torrent")
3528 (synopsis "Torrent library for GNU Guile")
3529 (description "This package provides facilities for working with
3530 @code{.torrent} or metainfo files. Implements a bencode reader and writer
3531 according to Bitorrent BEP003.")
3532 (license license:gpl3+)))
3534 (define-public guile-irc
3535 (let ((commit "375d3bde9c6ae7ccc9d7cc65817966b6fda8f26a")
3539 (version (git-version "0.3.0" revision commit))
3543 (url "https://github.com/rekado/guile-irc")
3545 (file-name (git-file-name name version))
3548 "113lcckcywrz9060w1c3fnvr8d7crdsjgsv4h47hgmr1slgadl4y"))))
3549 (build-system gnu-build-system)
3551 `(#:configure-flags '("--enable-gnutls=yes")))
3553 `(("autoconf" ,autoconf)
3554 ("automake" ,automake)
3555 ("texinfo" ,texinfo)))
3557 `(("gnutls" ,gnutls)
3558 ("guile" ,guile-3.0)))
3559 (home-page "https://github.com/rekado/guile-irc")
3560 (synopsis "IRC library for Guile")
3561 (description "This package provides a Guile library for @dfn{Internet
3562 Relay Chat} (IRC).")
3563 ;; Some file headers incorrectly say LGPLv2+.
3564 (license license:lgpl2.1+))))
3566 (define-public guile-websocket
3567 (let ((commit "c854e0f84a40d972cbd532bbb89c97ca0126a7cf"))
3569 (name "guile-websocket")
3575 (url "git://dthompson.us/guile-websocket.git")
3577 (file-name (git-file-name name version))
3580 "1hymvsfrmq9qxr5cxnsgdz7y757yp1cpsgxmdp3f5wxxxpqgsmzx"))))
3581 (build-system gnu-build-system)
3584 '("GUILE_AUTO_COMPILE=0")
3586 (modify-phases %standard-phases
3587 ;; The package was developed for Guile 2.0 and has this version
3588 ;; hardcoded in the configure.ac and Makefile.am files. Substitute
3589 ;; 3.0 instead so it can support Guile 3.0.
3590 (add-after 'unpack 'update-guile-version
3592 (substitute* "configure.ac"
3593 (("2.0.9") "3.0.0"))
3594 (substitute* "Makefile.am"
3597 ;; Install .go files where they belong.
3598 (("/ccache") "/site-ccache"))
3601 `(("autoconf" ,autoconf)
3602 ("automake" ,automake)))
3604 `(("guile" ,guile-3.0)))
3605 (synopsis "Websocket server/client for Guile")
3606 (description "Guile-websocket provides an implementation of the
3607 WebSocket protocol as defined by RFC 6455.")
3608 (home-page "https://git.dthompson.us/guile-websocket.git")
3609 (license license:lgpl3+))))
3611 (define-public guile3.0-websocket
3612 (deprecated-package "guile3.0-websocket" guile-websocket))
3614 (define-public guile-rdf
3622 (url "https://framagit.org/tyreunom/guile-rdf")
3624 (file-name (git-file-name name version))
3627 "0dwn3app1fscbpmpgvjs5jy1y0gwy3j5gdx8br79af6a88zjlnqf"))))
3628 (build-system gnu-build-system)
3630 `(#:tests? #f)); tests require network
3632 `(("guile" ,guile-3.0)))
3634 `(("automake" ,automake)
3635 ("autoconf" ,autoconf)
3636 ("pkg-config" ,pkg-config)
3637 ("texinfo" ,texinfo)))
3638 (home-page "https://framagit.org/tyreunom/guile-rdf")
3639 (synopsis "Guile implementation of the RDF abstract and concrete syntaxes")
3640 (description "Guile RDF is an implementation of the RDF (Resource Description
3641 Framework) format defined by the W3C for GNU Guile. RDF structures include
3642 triples (facts with a subject, a predicate and an object), graphs which are
3643 sets of triples, and datasets, which are collections of graphs.
3645 RDF specifications include the specification of concrete syntaxes and of
3646 operations on graphs. This library implements some basic functionalities,
3647 such as parsing and producing turtle and nquads syntax, as well as
3648 manipulating graphs and datasets.")
3649 (license license:gpl3+)))
3651 (define-public guile-jsonld
3653 (name "guile-jsonld")
3659 (url "https://framagit.org/tyreunom/guile-jsonld")
3661 (file-name (git-file-name name version))
3664 "0zfn3nwlz6xzip1j8xbj768dc299r037cfc81bk6kwl9xhzkjbrg"))))
3665 (build-system gnu-build-system)
3667 `(#:tests? #f)); require network
3669 `(("guile-gnutls" ,gnutls)
3670 ("guile-json" ,guile-json-3)
3671 ("guile-rdf" ,guile-rdf)))
3673 `(("guile" ,guile-3.0)))
3675 `(("automake" ,automake)
3676 ("autoconf" ,autoconf)
3677 ("pkg-config" ,pkg-config)
3678 ("texinfo" ,texinfo)))
3679 (home-page "https://framagit.org/tyreunom/guile-jsonld")
3680 (synopsis "Guile implementation of the JsonLD API specification")
3681 (description "Guile JsonLD is an implementation of the JsonLD (Json for
3682 Linked Data) API defined by the W3C for GNU Guile. It allows you to express links
3683 between data, in a way that is very similar to WikiData or RDF for instance.
3684 An object can have relations (in the form of an IRI) that relates it to one or
3685 more objects or strings, represented by a Json object or an IRI.")
3686 (license license:gpl3+)))