gnu: guile-xosd: Update to 0.2.2.
[jackhill/guix/guix.git] / gnu / packages / guile-xyz.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2014, 2015, 2018 Mark H Weaver <mhw@netris.org>
4 ;;; Copyright © 2015, 2017 Christine Lemmer-Webber <cwebber@dustycloud.org>
5 ;;; Copyright © 2016 Alex Sassmannshausen <alex@pompo.co>
6 ;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2016 Erik Edrosa <erik.edrosa@gmail.com>
8 ;;; Copyright © 2016, 2019, 2020, 2021 Eraim Flashner <efraim@flashner.co.il>
9 ;;; Copyright © 2016, 2017, 2021 Alex Kost <alezost@gmail.com>
10 ;;; Copyright © 2016, 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@openmailbox.org>
11 ;;; Copyright © 2016, 2021 Amirouche <amirouche@hypermove.net>
12 ;;; Copyright © 2016, 2019, 2021 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
13 ;;; Copyright © 2017 Andy Wingo <wingo@igalia.com>
14 ;;; Copyright © 2017 David Thompson <davet@gnu.org>
15 ;;; Copyright © 2017, 2018, 2019, 2020 Mathieu Othacehe <m.othacehe@gmail.com>
16 ;;; Copyright © 2017 Theodoros Foradis <theodoros@foradis.org>
17 ;;; Copyright © 2017 Nikita <nikita@n0.is>
18 ;;; Copyright © 2017, 2018, 2021 Tobias Geerinckx-Rice <me@tobias.gr>
19 ;;; Copyright © 2018, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
20 ;;; Copyright © 2018, 2019, 2020, 2021 Arun Isaac <arunisaac@systemreboot.net>
21 ;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
22 ;;; Copyright © 2018 Eric Bavier <bavier@member.fsf.org>
23 ;;; Copyright © 2019 swedebugia <swedebugia@riseup.net>
24 ;;; Copyright © 2019, 2020 Amar Singh <nly@disroot.org>
25 ;;; Copyright © 2019, 2021 Timothy Sample <samplet@ngyro.com>
26 ;;; Copyright © 2019, 2020 Martin Becze <mjbecze@riseup.net>
27 ;;; Copyright © 2020 Evan Straw <evan.straw99@gmail.com>
28 ;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
29 ;;; Copyright © 2020 Julien Lepiler <julien@lepiller.eu>
30 ;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
31 ;;; Copyright © 2020, 2021 Masaya Tojo <masaya@tojo.tokyo>
32 ;;; Copyright © 2020 Jesse Gibbons <jgibbons2357@gmail.com>
33 ;;; Copyright © 2020 Mike Rosset <mike.rosset@gmail.com>
34 ;;; Copyright © 2020 Liliana Marie Prikler <liliana.prikler@gmail.com>
35 ;;; Copyright © 2020, 2021 pukkamustard <pukkamustard@posteo.net>
36 ;;; Copyright © 2021 Bonface Munyoki Kilyungi <me@bonfacemunyoki.com>
37 ;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
38 ;;; Copyright © 2021 Leo Le Bouter <lle-bout@zaclys.net>
39 ;;; Copyright © 2021 Zelphir Kaltstahl <zelphirkaltstahl@posteo.de>
40 ;;; Copyright © 2021 Oleg Pykhalov <go.wigust@gmail.com>
41 ;;;
42 ;;; This file is part of GNU Guix.
43 ;;;
44 ;;; GNU Guix is free software; you can redistribute it and/or modify it
45 ;;; under the terms of the GNU General Public License as published by
46 ;;; the Free Software Foundation; either version 3 of the License, or (at
47 ;;; your option) any later version.
48 ;;;
49 ;;; GNU Guix is distributed in the hope that it will be useful, but
50 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
51 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
52 ;;; GNU General Public License for more details.
53 ;;;
54 ;;; You should have received a copy of the GNU General Public License
55 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
56
57 (define-module (gnu packages guile-xyz)
58 #:use-module ((guix licenses) #:prefix license:)
59 #:use-module (gnu packages)
60 #:use-module (gnu packages algebra)
61 #:use-module (gnu packages aspell)
62 #:use-module (gnu packages autotools)
63 #:use-module (gnu packages avahi)
64 #:use-module (gnu packages base)
65 #:use-module (gnu packages bash)
66 #:use-module (gnu packages compression)
67 #:use-module (gnu packages crypto)
68 #:use-module (gnu packages databases)
69 #:use-module (gnu packages disk)
70 #:use-module (gnu packages emacs)
71 #:use-module (gnu packages emacs-xyz)
72 #:use-module (gnu packages gawk)
73 #:use-module (gnu packages gettext)
74 #:use-module (gnu packages gl)
75 #:use-module (gnu packages glib)
76 #:use-module (gnu packages gnome)
77 #:use-module (gnu packages gnupg)
78 #:use-module (gnu packages gperf)
79 #:use-module (gnu packages gstreamer)
80 #:use-module (gnu packages gtk)
81 #:use-module (gnu packages guile)
82 #:use-module (gnu packages hurd)
83 #:use-module (gnu packages image)
84 #:use-module (gnu packages imagemagick)
85 #:use-module (gnu packages libffi)
86 #:use-module (gnu packages libunistring)
87 #:use-module (gnu packages linux)
88 #:use-module (gnu packages man)
89 #:use-module (gnu packages maths)
90 #:use-module (gnu packages mes)
91 #:use-module (gnu packages multiprecision)
92 #:use-module (gnu packages ncurses)
93 #:use-module (gnu packages networking)
94 #:use-module (gnu packages noweb)
95 #:use-module (gnu packages nss)
96 #:use-module (gnu packages package-management)
97 #:use-module (gnu packages password-utils)
98 #:use-module (gnu packages perl)
99 #:use-module (gnu packages pkg-config)
100 #:use-module (gnu packages python)
101 #:use-module (gnu packages readline)
102 #:use-module (gnu packages sdl)
103 #:use-module (gnu packages search)
104 #:use-module (gnu packages serialization)
105 #:use-module (gnu packages slang)
106 #:use-module (gnu packages sqlite)
107 #:use-module (gnu packages swig)
108 #:use-module (gnu packages tex)
109 #:use-module (gnu packages texinfo)
110 #:use-module (gnu packages tls)
111 #:use-module (gnu packages version-control)
112 #:use-module (gnu packages webkit)
113 #:use-module (gnu packages xdisorg)
114 #:use-module (gnu packages xorg)
115 #:use-module (guix packages)
116 #:use-module (guix download)
117 #:use-module (guix git-download)
118 #:use-module (guix hg-download)
119 #:use-module (guix build-system cmake)
120 #:use-module (guix build-system glib-or-gtk)
121 #:use-module (guix build-system gnu)
122 #:use-module (guix build-system guile)
123 #:use-module (guix utils)
124 #:use-module ((guix build utils) #:select (alist-replace))
125 #:use-module (ice-9 match)
126 #:use-module ((srfi srfi-1) #:select (alist-delete)))
127
128 (define-public artanis
129 (package
130 (name "artanis")
131 (version "0.5")
132 (source (origin
133 (method url-fetch)
134 (uri (string-append "mirror://gnu/artanis/artanis-"
135 version ".tar.gz"))
136 (sha256
137 (base32
138 "1vk1kp2xhz35xa5n27cxlq9c88wk6qm7fqaac8rb0pb6k9pvsv7v"))
139 (modules '((guix build utils)))
140 (snippet
141 '(begin
142 ;; Unbundle guile-redis and guile-json
143 (delete-file-recursively "artanis/third-party/json.scm")
144 (delete-file-recursively "artanis/third-party/json")
145 (delete-file-recursively "artanis/third-party/redis.scm")
146 (delete-file-recursively "artanis/third-party/redis")
147 (substitute* '("artanis/artanis.scm"
148 "artanis/lpc.scm"
149 "artanis/oht.scm")
150 (("(#:use-module \\()artanis third-party (json\\))" _
151 use-module json)
152 (string-append use-module json)))
153 (substitute* '("artanis/lpc.scm"
154 "artanis/session.scm")
155 (("(#:use-module \\()artanis third-party (redis\\))" _
156 use-module redis)
157 (string-append use-module redis)))
158 (substitute* "artanis/oht.scm"
159 (("([[:punct:][:space:]]+)(->json-string)([[:punct:][:space:]]+)"
160 _ pre json-string post)
161 (string-append pre
162 "scm" json-string
163 post)))
164 (substitute* "artanis/artanis.scm"
165 (("[[:punct:][:space:]]+->json-string[[:punct:][:space:]]+")
166 ""))
167 #t))))
168 (build-system gnu-build-system)
169 (inputs
170 `(("guile" ,guile-3.0)
171 ("nspr" ,nspr)
172 ("nss" ,nss)))
173 ;; FIXME the bundled csv contains one more exported procedure
174 ;; (sxml->csv-string) than guile-csv. The author is maintainer of both
175 ;; projects.
176 ;; TODO: Add guile-dbi and guile-dbd optional dependencies.
177 (propagated-inputs
178 `(("guile-json" ,guile-json-3)
179 ("guile-readline" ,guile-readline)
180 ("guile-redis" ,guile-redis)))
181 (native-inputs
182 `(("bash" ,bash) ;for the `source' builtin
183 ("pkgconfig" ,pkg-config)
184 ("util-linux" ,util-linux))) ;for the `script' command
185 (arguments
186 `(#:modules (((guix build guile-build-system)
187 #:select (target-guile-effective-version))
188 ,@%gnu-build-system-modules)
189 #:imported-modules ((guix build guile-build-system)
190 ,@%gnu-build-system-modules)
191 #:make-flags
192 ;; TODO: The documentation must be built with the `docs' target.
193 (let* ((out (assoc-ref %outputs "out"))
194 ;; We pass guile explicitly here since this executes before the
195 ;; set-paths phase and therefore guile is not yet in PATH.
196 (effective-version (target-guile-effective-version
197 (assoc-ref %build-inputs "guile")))
198 (scm (string-append out "/share/guile/site/" effective-version))
199 (go (string-append out "/lib/guile/" effective-version "/site-ccache")))
200 ;; Don't use (%site-dir) for site paths.
201 (list (string-append "MOD_PATH=" scm)
202 (string-append "MOD_COMPILED_PATH=" go)))
203 #:test-target "test"
204 #:phases
205 (modify-phases %standard-phases
206 (add-after 'unpack 'patch-site-dir
207 (lambda* (#:key outputs #:allow-other-keys)
208 (substitute* "artanis/commands/help.scm"
209 (("\\(%site-dir\\)")
210 (string-append "\""
211 (assoc-ref outputs "out")
212 "/share/guile/site/"
213 (target-guile-effective-version)
214 "\"")))))
215 (add-after 'unpack 'patch-reference-to-libnss
216 (lambda* (#:key inputs #:allow-other-keys)
217 (substitute* "artanis/security/nss.scm"
218 (("ffi-binding \"libnss3\"")
219 (string-append
220 "ffi-binding \""
221 (assoc-ref inputs "nss") "/lib/nss/libnss3.so"
222 "\""))
223 (("ffi-binding \"libssl3\"")
224 (string-append
225 "ffi-binding \"" (assoc-ref inputs "nss") "/lib/nss/libssl3.so\"")))))
226 (add-before 'install 'substitute-root-dir
227 (lambda* (#:key outputs #:allow-other-keys)
228 (let ((out (assoc-ref outputs "out")))
229 (substitute* "Makefile" ;ignore the execution of bash.bashrc
230 ((" /etc/bash.bashrc") " /dev/null"))
231 (substitute* "Makefile" ;set the root of config files to OUT
232 ((" /etc") (string-append " " out "/etc")))
233 (mkdir-p (string-append out "/bin")) )))
234 (add-after 'install 'wrap-art
235 (lambda* (#:key inputs outputs #:allow-other-keys)
236 (let* ((out (assoc-ref outputs "out"))
237 (effective-version (target-guile-effective-version))
238 (bin (string-append out "/bin"))
239 (scm (string-append out "/share/guile/site/" effective-version))
240 (go (string-append out "/lib/guile/" effective-version
241 "/site-ccache")))
242 (wrap-program (string-append bin "/art")
243 `("GUILE_LOAD_PATH" ":" prefix
244 (,scm ,(getenv "GUILE_LOAD_PATH")))
245 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
246 (,go ,(getenv "GUILE_LOAD_COMPILED_PATH"))))))))))
247 (synopsis "Web application framework written in Guile")
248 (description "GNU Artanis is a web application framework written in Guile
249 Scheme. A web application framework (WAF) is a software framework that is
250 designed to support the development of dynamic websites, web applications, web
251 services and web resources. The framework aims to alleviate the overhead
252 associated with common activities performed in web development. Artanis
253 provides several tools for web development: database access, templating
254 frameworks, session management, URL-remapping for RESTful, page caching, and
255 more.")
256 (home-page "https://www.gnu.org/software/artanis/")
257 (license (list license:gpl3+ license:lgpl3+)))) ;dual license
258
259 ;; There are no releases yet of this package.
260 (define-public guile-pipe
261 (let ((commit "0746ec38d19d844dff0c6f62f209b2b6c8d8872e")
262 (revision "0"))
263 (package
264 (name "guile-pipe")
265 (version (git-version "0.0.0" revision commit))
266 (source
267 (origin
268 (method git-fetch)
269 (uri (git-reference
270 (url "https://github.com/joshwalters/guile-pipe")
271 (commit commit)))
272 (file-name (git-file-name name version))
273 (sha256
274 (base32 "038gwrhfywgs8372q478wn4623lhcmkknfj4p8yaa93bykfc0fml"))))
275 (build-system guile-build-system)
276 (native-inputs
277 `(("guile" ,guile-3.0)))
278 (home-page "https://github.com/joshwalters/guile-pipe")
279 (synopsis "Guile pipe macros for functional chaining")
280 (description
281 "This package provides macros for functional chaining in Guile, similar
282 to UNIX pipes (@code{|}), Clojure's threading macros (@code{->} and
283 @code{->>}).")
284 (license license:gpl3+))))
285
286 (define-public guile-f-scm
287 (package
288 (name "guile-f-scm")
289 (version "0.2.0")
290 (source
291 (origin
292 (method git-fetch)
293 (uri (git-reference
294 (url "https://git.sr.ht/~brown121407/f.scm")
295 (commit version)))
296 (file-name (git-file-name name version))
297 (sha256
298 (base32 "14wyrs3m1649l3km4pl2175dmap1372j5h8nkhykrbxg5xqp6ivd"))))
299 (build-system guile-build-system)
300 (native-inputs
301 `(("guile" ,guile-3.0)))
302 (home-page "https://git.sr.ht/~brown121407/f.scm")
303 (synopsis "Library for working with files and directories")
304 (description
305 "f.scm is a library intended to facilitate working with files and
306 directories (the file system in general). It was initially inspired by the
307 f library for Emacs.")
308 (license license:gpl3+)))
309
310 ;; There has not been any release yet.
311 (define-public guildhall
312 (let ((commit "2fe2cc539f4b811bbcd69e58738db03eb5a2b778")
313 (revision "1"))
314 (package
315 (name "guildhall")
316 (version (string-append "0-" revision "." (string-take commit 9)))
317 (source (origin
318 (method git-fetch)
319 (uri (git-reference
320 (url "https://github.com/ijp/guildhall")
321 (commit commit)))
322 (file-name (string-append name "-" version "-checkout"))
323 (sha256
324 (base32
325 "115bym7bg66h3gs399yb2vkzc2ygriaqsn4zbrg8f054mgy8wzn1"))))
326 (build-system gnu-build-system)
327 (arguments
328 `(#:phases
329 (modify-phases %standard-phases
330 ;; Tests fail without this fix because they try to load the bash
331 ;; executable as a Scheme file. See bug report at
332 ;; https://github.com/ijp/guildhall/issues/22
333 (add-after 'unpack 'fix-bug-22
334 (lambda _
335 (substitute* "Makefile.am"
336 (("TESTS_ENVIRONMENT=.*")
337 "AM_TESTS_ENVIRONMENT=srcdir=$(abs_top_srcdir)/tests/
338 TEST_EXTENSIONS = .scm
339 SCM_LOG_COMPILER= $(top_builddir)/env $(GUILE)
340 AM_SCM_LOG_FLAGS = --no-auto-compile -s")
341 ;; FIXME: one of the database tests fails for unknown
342 ;; reasons. It does not fail when run outside of Guix.
343 (("tests/database.scm") ""))
344 #t)))))
345 (inputs
346 `(("guile" ,guile-2.0)))
347 (native-inputs
348 `(("zip" ,zip) ; for tests
349 ("autoconf" ,autoconf)
350 ("automake" ,automake)
351 ("texinfo" ,texinfo)))
352 (synopsis "Package manager for Guile")
353 (description
354 "Guildhall is a package manager written for Guile Scheme. A guild is
355 an association of independent craftspeople. A guildhall is where they meet.
356 This Guildhall aims to make a virtual space for Guile wizards and journeyfolk
357 to share code.
358
359 On a practical level, Guildhall lets you share Scheme modules and programs
360 over the internet, and install code that has been shared by others. Guildhall
361 can handle dependencies, so when a program requires several libraries, and
362 each of those has further dependencies, all of the prerequisites for the
363 program can be installed in one go.")
364 (home-page "https://github.com/ijp/guildhall")
365 (license license:gpl3+))))
366
367 (define-public guile-aspell
368 (package
369 (name "guile-aspell")
370 (version "0.4")
371 (source (origin
372 (method url-fetch)
373 (uri (string-append
374 "http://lonelycactus.com/tarball/guile_aspell-"
375 version ".tar.gz"))
376 (sha256
377 (base32
378 "0vpk5xj9m9qc702z3khmkwhgpb949qbsyz8kw2qycda6qnxk0077"))))
379 (build-system gnu-build-system)
380 (arguments
381 '(#:phases (modify-phases %standard-phases
382 (add-before 'configure 'set-guilesitedir
383 (lambda _
384 (substitute* "Makefile.in"
385 (("^guilesitedir =.*$")
386 "guilesitedir = \
387 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
388 #t))
389 (add-before 'build 'set-libaspell-file-name
390 (lambda* (#:key inputs #:allow-other-keys)
391 (let ((aspell (assoc-ref inputs "aspell")))
392 (substitute* "aspell.scm"
393 (("\"libaspell\\.so\"")
394 (string-append "\"" aspell
395 "/lib/libaspell\"")))
396 #t))))))
397 (native-inputs `(("pkg-config" ,pkg-config)))
398 (inputs `(("guile" ,guile-2.2)
399 ("aspell" ,aspell)))
400 (home-page "https://github.com/spk121/guile-aspell")
401 (synopsis "Spell-checking from Guile")
402 (description
403 "guile-aspell is a Guile Scheme library for comparing a string against a
404 dictionary and suggesting spelling corrections.")
405 (license license:gpl3+)))
406
407 (define-public guile2.0-bash
408 ;; This project is currently retired. It was initially announced here:
409 ;; <https://lists.gnu.org/archive/html/guile-user/2015-02/msg00003.html>.
410 (let ((commit "1eabc563ca5692b3e08d84f1f0e6fd2283284469")
411 (revision "0"))
412 (package
413 (name "guile2.0-bash")
414 (version (string-append "0.1.6-" revision "." (string-take commit 7)))
415 (home-page
416 "https://anonscm.debian.org/cgit/users/kaction-guest/retired/dev.guile-bash.git")
417 (source (origin
418 (method git-fetch)
419 (uri (git-reference
420 (commit commit)
421 (url home-page)))
422 (sha256
423 (base32
424 "097vny990wp2qpjij6a5a5gwc6fxzg5wk56inhy18iki5v6pif1p"))
425 (file-name (string-append name "-" version "-checkout"))))
426 (build-system gnu-build-system)
427 (arguments
428 '(#:configure-flags
429 ;; Add -I to match 'bash.pc' of Bash 4.4.
430 (list (string-append "CPPFLAGS=-I"
431 (assoc-ref %build-inputs "bash:include")
432 "/include/bash/include")
433
434 ;; The '.a' file is useless.
435 "--disable-static"
436
437 ;; Install 'lib/bash' as Bash 4.4 expects.
438 (string-append "--libdir=" (assoc-ref %outputs "out")
439 "/lib/bash"))))
440 (native-inputs `(("pkg-config" ,pkg-config)
441 ("autoconf" ,autoconf)
442 ("automake" ,automake)
443 ("libtool" ,libtool)
444 ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
445 ("gettext" ,gettext-minimal)
446
447 ;; Bash with loadable module support, for the test
448 ;; suite.
449 ("bash-full" ,bash)))
450 (inputs `(("guile" ,guile-2.0)
451 ("bash:include" ,bash "include")))
452 (synopsis "Extend Bash using Guile")
453 (description
454 "Guile-Bash provides a shared library and set of Guile modules,
455 allowing you to extend Bash in Scheme. Scheme interfaces allow you to access
456 the following aspects of Bash:
457
458 @itemize
459 @item aliases;
460 @item setting and getting Bash variables;
461 @item creating dynamic variables;
462 @item creating Bash functions with a Scheme implementation;
463 @item reader macro for output capturing;
464 @item reader macro for evaluating raw Bash commands.
465 @end itemize
466
467 To enable it, run:
468
469 @example
470 enable -f ~/.guix-profile/lib/bash/libguile-bash.so scm
471 @end example
472
473 and then run @command{scm example.scm}.")
474 (license license:gpl3+))))
475
476 (define-public guile-bash
477 (package
478 (inherit guile2.0-bash)
479 (name "guile-bash")
480 (inputs
481 `(("guile" ,guile-3.0-latest)
482 ,@(assoc-remove! (package-inputs guile2.0-bash) "guile")))
483 (arguments
484 `(#:tests? #f
485 #:phases (modify-phases %standard-phases
486 (add-after 'install 'install-guile
487 (lambda* (#:key inputs outputs #:allow-other-keys)
488 (copy-recursively
489 (string-append (assoc-ref outputs "out")
490 (assoc-ref inputs "guile") "/share")
491 (string-append (assoc-ref outputs "out") "/share"))
492 #t)))
493 ,@(package-arguments guile2.0-bash)))))
494
495 (define-public guile-8sync
496 (package
497 (name "guile-8sync")
498 (version "0.4.2")
499 (source (origin
500 (method url-fetch)
501 (uri (string-append "mirror://gnu/8sync/8sync-" version
502 ".tar.gz"))
503 (sha256
504 (base32
505 "031wm13srak3wsnll7j2mbbi29g1pcm4swdb71ds9yn567pn20qw"))))
506 (build-system gnu-build-system)
507 (native-inputs `(("autoconf" ,autoconf)
508 ("automake" ,automake)
509 ("guile" ,guile-2.2)
510 ("pkg-config" ,pkg-config)
511 ("texinfo" ,texinfo)))
512 (arguments
513 `(#:phases (modify-phases %standard-phases
514 (add-before 'configure 'setenv
515 (lambda _
516 ;; quiet warnings
517 (setenv "GUILE_AUTO_COMPILE" "0")
518 #t)))))
519 (home-page "https://gnu.org/s/8sync/")
520 (synopsis "Asynchronous actor model library for Guile")
521 (description
522 "GNU 8sync (pronounced \"eight-sync\") is an asynchronous programming
523 library for GNU Guile based on the actor model.
524
525 Note that 8sync is only available for Guile 2.2.")
526 (properties '((upstream-name . "8sync")))
527 (license license:lgpl3+)))
528
529 (define-public guile-daemon
530 (package
531 (name "guile-daemon")
532 (version "0.1.3")
533 (source (origin
534 (method url-fetch)
535 (uri (string-append "https://github.com/alezost/" name
536 "/releases/download/v" version
537 "/" name "-" version ".tar.gz"))
538 (sha256
539 (base32
540 "08gaqrgjlly9k5si72vvpbr4xhq5v52l5ma5y6a7spid5dd057cy"))))
541 (build-system gnu-build-system)
542 (native-inputs
543 `(("pkg-config" ,pkg-config)))
544 (inputs
545 `(("guile" ,guile-3.0)))
546 (home-page "https://github.com/alezost/guile-daemon")
547 (synopsis "Evaluate code in a running Guile process")
548 (description
549 "Guile-Daemon is a small Guile program that loads your initial
550 configuration file, and then reads and evaluates Guile expressions that
551 you send to a FIFO file.")
552 (license license:gpl3+)))
553
554 (define-public guile-dsv
555 (package
556 (name "guile-dsv")
557 (version "0.4.0")
558 (source (origin
559 (method git-fetch)
560 (uri (git-reference
561 (url "https://github.com/artyom-poptsov/guile-dsv")
562 (commit (string-append "v" version))))
563 (file-name (string-append name "-" version "-checkout"))
564 (sha256
565 (base32
566 "1mvyc8i38j56frjh3p6vwziv8lrzlyqndz30663h5nwcp0044sdn"))))
567 (build-system gnu-build-system)
568 (native-inputs
569 `(("autoconf" ,autoconf)
570 ("automake" ,automake)
571 ("pkg-config" ,pkg-config)
572 ("texinfo" ,texinfo)))
573 (inputs `(("guile" ,guile-3.0)))
574 (propagated-inputs `(("guile-lib" ,guile-lib)))
575 (arguments
576 `(#:modules (((guix build guile-build-system)
577 #:select (target-guile-effective-version))
578 ,@%gnu-build-system-modules)
579 #:imported-modules ((guix build guile-build-system)
580 ,@%gnu-build-system-modules)
581 #:phases (modify-phases %standard-phases
582 (add-before 'configure 'set-guilesitedir
583 (lambda _
584 (substitute* "Makefile.in"
585 (("^guilesitedir =.*$")
586 "guilesitedir = \
587 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
588 (substitute* "modules/Makefile.in"
589 (("^guilesitedir =.*$")
590 "guilesitedir = \
591 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
592 (substitute* "modules/dsv/Makefile.in"
593 (("^guilesitedir =.*$")
594 "guilesitedir = \
595 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
596 #t))
597 (add-after 'install 'wrap-program
598 (lambda* (#:key inputs outputs #:allow-other-keys)
599 (let* ((out (assoc-ref outputs "out"))
600 (bin (string-append out "/bin"))
601 (guile-lib (assoc-ref inputs "guile-lib"))
602 (version (target-guile-effective-version))
603 (scm (string-append "/share/guile/site/"
604 version))
605 (go (string-append "/lib/guile/"
606 version "/site-ccache")))
607 (wrap-program (string-append bin "/dsv")
608 `("GUILE_LOAD_PATH" prefix
609 (,(string-append out scm)
610 ,(string-append guile-lib scm)))
611 `("GUILE_LOAD_COMPILED_PATH" prefix
612 (,(string-append out go)
613 ,(string-append guile-lib go)))))
614 #t)))))
615 (home-page "https://github.com/artyom-poptsov/guile-dsv")
616 (synopsis "DSV module for Guile")
617 (description
618 "Guile-DSV is a GNU Guile module for working with the
619 delimiter-separated values (DSV) data format. Guile-DSV supports the
620 Unix-style DSV format and RFC 4180 format.")
621 (license license:gpl3+)))
622
623 (define-public guile2.2-dsv
624 (package
625 (inherit guile-dsv)
626 (name "guile2.2-dsv")
627 (inputs `(("guile" ,guile-2.2)))
628 (propagated-inputs `(("guile-lib" ,guile2.2-lib)))))
629
630 (define-public guile-fibers
631 (package
632 (name "guile-fibers")
633 (version "1.0.0")
634 (source (origin
635 (method url-fetch)
636 (uri (string-append "https://wingolog.org/pub/fibers/fibers-"
637 version ".tar.gz"))
638 (sha256
639 (base32
640 "0vjkg72ghgdgphzbjz9ig8al8271rq8974viknb2r1rg4lz92ld0"))
641 (modules '((guix build utils)))
642 (snippet
643 '(begin
644 ;; Allow builds with Guile 3.0.
645 (substitute* "configure"
646 (("search=\"2\\.2\"")
647 "search=\"3.0 2.2\""))
648
649 ;; Explicitly include system headers rather than relying on
650 ;; <libguile.h> to do it for us.
651 (substitute* "epoll.c"
652 (("#include.*libguile\\.h.*$" all)
653 (string-append "#include <unistd.h>\n"
654 "#include <string.h>\n"
655 all "\n")))
656
657 ;; Import (ice-9 threads) for 'current-processor-count'.
658 (substitute* "tests/channels.scm"
659 (("#:use-module \\(fibers\\)")
660 (string-append "#:use-module (fibers)\n"
661 "#:use-module (ice-9 threads)\n")))
662 #t))
663 (patches
664 ;; fixes a resource leak that causes crashes in the tests
665 (search-patches "guile-fibers-destroy-peer-schedulers.patch"))))
666 (build-system gnu-build-system)
667 (arguments
668 '(;; The code uses 'scm_t_uint64' et al., which are deprecated in 3.0.
669 #:configure-flags '("CFLAGS=-Wno-error=deprecated-declarations")
670 #:phases (modify-phases %standard-phases
671 (add-after 'install 'mode-guile-objects
672 (lambda* (#:key outputs #:allow-other-keys)
673 ;; .go files are installed to "lib/guile/X.Y/cache".
674 ;; This phase moves them to "…/site-ccache".
675 (let* ((out (assoc-ref outputs "out"))
676 (lib (string-append out "/lib/guile"))
677 (old (car (find-files lib "^ccache$"
678 #:directories? #t)))
679 (new (string-append (dirname old)
680 "/site-ccache")))
681 (rename-file old new)
682 #t))))))
683 (native-inputs
684 `(("texinfo" ,texinfo)
685 ("pkg-config" ,pkg-config)))
686 (inputs
687 `(("guile" ,guile-3.0)))
688 (synopsis "Lightweight concurrency facility for Guile")
689 (description
690 "Fibers is a Guile library that implements a a lightweight concurrency
691 facility, inspired by systems like Concurrent ML, Go, and Erlang. A fiber is
692 like a \"goroutine\" from the Go language: a lightweight thread-like
693 abstraction. Systems built with Fibers can scale up to millions of concurrent
694 fibers, tens of thousands of concurrent socket connections, and many parallel
695 cores. The Fibers library also provides Concurrent ML-like channels for
696 communication between fibers.
697
698 Note that Fibers makes use of some Guile 2.1/2.2-specific features and
699 is not available for Guile 2.0.")
700 (home-page "https://github.com/wingo/fibers")
701 (license license:lgpl3+)))
702
703 (define-public guile2.0-fibers
704 (package
705 (inherit guile-fibers)
706 (name "guile2.2-fibers")
707 (inputs `(("guile" ,guile-2.2)))))
708
709 (define-public guile-filesystem
710 (package
711 (name "guile-filesystem")
712 (version "0.1.0")
713 (source (origin
714 (method git-fetch)
715 (uri (git-reference
716 (url "https://gitlab.com/leoprikler/guile-filesystem.git")
717 (commit version)))
718 (file-name (git-file-name name version))
719 (sha256
720 (base32
721 "1shmkc0y9r2sj3kw7hrsnamnp7y8xifkhf3m3rnfxczqg63k67vy"))))
722 (build-system gnu-build-system)
723 (native-inputs
724 `(("autoconf" ,autoconf)
725 ("automake" ,automake)
726 ("pkg-config" ,pkg-config)
727 ("texinfo" ,texinfo)))
728 (inputs
729 `(("guile" ,guile-3.0)))
730 (home-page "https://gitlab.com/leoprikler/guile-filesystem")
731 (synopsis "Complementary library to Guile's built-in file system procedures")
732 (description "@code{guile-filesystem} provides a set of utility functions,
733 that augment Guile's support for handling files and their names.")
734 (license license:lgpl3+)))
735
736 (define-public guile2.0-filesystem
737 (package
738 (inherit guile-filesystem)
739 (name "guile2.0-filesystem")
740 (inputs `(("guile" ,guile-2.0)))))
741
742 (define-public guile2.2-filesystem
743 (package
744 (inherit guile-filesystem)
745 (name "guile2.2-filesystem")
746 (inputs `(("guile" ,guile-2.2)))))
747
748 (define-public guile-syntax-highlight
749 (package
750 (name "guile-syntax-highlight")
751 (version "0.1")
752 (source (origin
753 (method url-fetch)
754 (uri (string-append "https://files.dthompson.us/"
755 "guile-syntax-highlight/"
756 "guile-syntax-highlight-"
757 version ".tar.gz"))
758 (sha256
759 (base32
760 "1p771kq15x83483m23bhah1sz6vkalg3drm7x279f4j1cxligkzi"))
761 (modules '((guix build utils)))
762 (snippet
763 '(begin
764 ;; Allow builds with Guile 3.0.
765 (substitute* "configure"
766 (("2\\.2 2\\.0")
767 "3.0 2.2 2.0"))
768 #t))))
769 (build-system gnu-build-system)
770 (native-inputs
771 `(("pkg-config" ,pkg-config)))
772 (inputs
773 `(("guile" ,guile-3.0)))
774 (synopsis "General-purpose syntax highlighter for GNU Guile")
775 (description "Guile-syntax-highlight is a general-purpose syntax
776 highlighting library for GNU Guile. It can parse code written in various
777 programming languages into a simple s-expression that can be converted to
778 HTML (via SXML) or any other format for rendering.")
779 (home-page "https://dthompson.us/projects/guile-syntax-highlight.html")
780 (license license:lgpl3+)))
781
782 ;; gitile requires a more recent version than the latest release.
783 (define-public guile-syntax-highlight-for-gitile
784 (let ((commit "897fa5156ff41588e0d281eb00e4e94de63ccd8a")
785 (revision "0"))
786 (package
787 (inherit guile-syntax-highlight)
788 (version (git-version "0.1" revision commit))
789 (source (origin
790 (method git-fetch)
791 (uri (git-reference
792 (url "https://git.dthompson.us/guile-syntax-highlight.git")
793 (commit commit)))
794 (file-name (git-file-name "guile-syntax-highlight" version))
795 (sha256
796 (base32
797 "18zlg4mkgd3swgv2ggfz91ivnnzc0zhvc9ybgrxg1y762va9hyvj"))))
798 (native-inputs
799 `(("autoconf" ,autoconf)
800 ("automake" ,automake)
801 ("texinfo" ,texinfo)
802 ,@(package-native-inputs guile-syntax-highlight)))
803 (properties '((hidden? . #t))))))
804
805 (define-public guile2.2-syntax-highlight
806 (package
807 (inherit guile-syntax-highlight)
808 (name "guile2.2-syntax-highlight")
809 (inputs `(("guile" ,guile-2.2)))))
810
811 (define-public guile-sjson
812 (package
813 (name "guile-sjson")
814 (version "0.2.1")
815 (source (origin
816 (method url-fetch)
817 (uri (string-append "https://dustycloud.org/misc/sjson-" version
818 ".tar.gz"))
819 (sha256
820 (base32
821 "1mzmapln79vv10qxaggz9qwcdbag3jnrj19xx8bgkmxss8h03sv3"))
822 (modules '((guix build utils)))
823 (snippet
824 '(begin
825 ;; Allow builds with Guile 3.0.
826 (substitute* "configure"
827 (("2\\.2 2\\.0")
828 "3.0 2.2 2.0"))
829 #t))))
830 (build-system gnu-build-system)
831 (native-inputs
832 `(("autoconf" ,autoconf)
833 ("automake" ,automake)
834 ("pkg-config" ,pkg-config)))
835 (inputs
836 `(("guile" ,guile-3.0)))
837 (home-page "https://gitlab.com/dustyweb/guile-sjson")
838 (synopsis "S-expression based json reader/writer for Guile")
839 (description "guile-sjson is a json reader/writer for Guile.
840 It has a nice, simple s-expression based syntax.")
841 (license license:lgpl3+)))
842
843 (define-public guile2.2-sjson
844 (package
845 (inherit guile-sjson)
846 (name "guile2.2-sjson")
847 (inputs `(("guile" ,guile-2.2)))))
848
849 (define-public guile-squee
850 (let ((commit "c1497a216e881cfde39d6aa7c73d0bf6b497c89b")
851 (revision "2"))
852 (package
853 (name "guile-squee")
854 (version (string-append "0-" revision "." (string-take commit 7)))
855 (source (origin
856 (method git-fetch)
857 (uri (git-reference
858 (url "https://notabug.org/cwebber/guile-squee.git")
859 (commit commit)))
860 (file-name (git-file-name name version))
861 (sha256
862 (base32
863 "1alskrplnyl1n5wb39drn72cwplp47a8cpdd1n9cdnw3jhk5p12p"))))
864 (build-system guile-build-system)
865 (arguments
866 '(#:phases
867 (modify-phases %standard-phases
868 (add-after 'unpack 'patch
869 (lambda* (#:key inputs #:allow-other-keys)
870 (substitute* "squee.scm"
871 (("dynamic-link \"libpq\"")
872 (string-append
873 "dynamic-link \""
874 (assoc-ref inputs "postgresql") "/lib/libpq.so"
875 "\"")))
876 #t)))))
877 (inputs
878 `(("postgresql" ,postgresql)))
879 (native-inputs
880 `(("guile" ,guile-3.0)))
881 (home-page "https://notabug.org/cwebber/guile-squee")
882 (synopsis "Connect to PostgreSQL using Guile")
883 (description
884 "@code{squee} is a Guile library for connecting to PostgreSQL databases
885 using Guile's foreign function interface.")
886 (license license:lgpl3+))))
887
888 (define-public guile2.2-squee
889 (package
890 (inherit guile-squee)
891 (name "guile2.2-squee")
892 (native-inputs `(("guile" ,guile-2.2)
893 ,@(alist-delete "guile"
894 (package-native-inputs guile-squee))))))
895
896 (define-public guile-colorized
897 (package
898 (name "guile-colorized")
899 (version "0.1")
900 (source
901 (origin
902 (method git-fetch)
903 (uri (git-reference
904 (url "https://gitlab.com/NalaGinrut/guile-colorized.git")
905 (commit (string-append "v" version))))
906 (file-name (git-file-name name version))
907 (sha256
908 (base32 "10mv8c63159r3qvwwdvsgnsvdg7nc2ghak85zapwqpv4ywrqp9zc"))))
909 (build-system guile-build-system)
910 (native-inputs
911 `(("guile" ,guile-3.0)))
912 (home-page "https://gitlab.com/NalaGinrut/guile-colorized")
913 (synopsis "Colorized REPL for Guile")
914 (description
915 "Guile-colorized provides you with a colorized REPL for GNU Guile.")
916 (license license:gpl3+)))
917
918 (define-public guile2.2-colorized
919 (package
920 (inherit guile-colorized)
921 (name "guile2.2-colorized")
922 (native-inputs `(("guile" ,guile-2.2)))))
923
924 (define-public guile-pfds
925 (package
926 (name "guile-pfds")
927 (version "0.3")
928 (home-page "https://github.com/ijp/pfds")
929 (source (origin
930 (method git-fetch)
931 (uri (git-reference
932 (url home-page)
933 (commit (string-append "v" version))))
934 (sha256
935 (base32
936 "19y33wg94pf0n98dkfqd1zbw93fgky4sawxsxl6s3vyqwl0yi5vh"))
937 (file-name (string-append name "-" version "-checkout"))))
938 (build-system guile-build-system)
939 (arguments
940 '(#:source-directory "src"
941 #:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
942 #:phases (modify-phases %standard-phases
943 (add-after 'unpack 'patch-sources
944 ;; Initially reported here:
945 ;; https://github.com/ijp/pfds/pull/6, and merged into
946 ;; other projects such as IronScheme (see:
947 ;; https://github.com/IronScheme/pfds/pull/1).
948 (lambda _
949 (substitute* "hamts.sls"
950 (("subtrie-vector vector")
951 "subtrie-vector trie"))))
952 (add-after 'patch-sources 'move-files-around
953 (lambda _
954 ;; Move files under a pfds/ directory to reflect the
955 ;; module hierarchy.
956 (mkdir-p "src/pfds")
957 (for-each (lambda (file)
958 (rename-file
959 file (string-append "src/pfds/" file)))
960 '("bbtrees.sls"
961 "deques"
962 "deques.sls"
963 "dlists.sls"
964 "fingertrees.sls"
965 "hamts.sls"
966 "heaps.sls"
967 "private"
968 "psqs.sls"
969 "queues"
970 "queues.sls"
971 "sequences.sls"
972 "sets.sls")))))))
973 (native-inputs
974 `(("guile" ,guile-3.0)))
975 (synopsis "Purely functional data structures for Guile")
976 (description
977 "This package provides purely functional data structures written in R6RS
978 Scheme and compiled for Guile. It has been tested with Racket, Guile 2,
979 Vicare Scheme and IronScheme. Right now it contains:
980
981 @itemize
982 @item queues
983 @item deques
984 @item bbtrees
985 @item sets
986 @item dlists
987 @item priority search queues (PSQs)
988 @item finger trees
989 @item sequences
990 @item heaps
991 @item hash array mapped tries (HAMTs).
992 @end itemize\n")
993 (license license:bsd-3)))
994
995 (define-public guile2.0-pg
996 (package
997 (name "guile2.0-pg")
998 (version "0.49")
999 (source (origin
1000 (method url-fetch)
1001 (uri (string-append "mirror://savannah/guile-pg/guile-pg-"
1002 version ".tar.xz"))
1003 (sha256
1004 (base32
1005 "1fizcqga96p9n2jjhi9nprhry20hg9wvcl5b8gya4vhzwz6qhysp"))))
1006 (build-system gnu-build-system)
1007 (arguments
1008 '(#:phases
1009 (modify-phases %standard-phases
1010 (add-before 'install 'patch-src/Makefile
1011 (lambda* (#:key outputs #:allow-other-keys)
1012 (substitute* "src/Makefile"
1013 (("\\/share\\/guile\\/site") "/share/guile/site/2.0"))
1014 #t)))))
1015 (native-inputs
1016 `(("procps" ,procps) ; fake-cluster-control uses ps
1017 ("guile" ,guile-2.0)
1018 ("postgresql" ,postgresql)))
1019 (inputs
1020 `(("guile" ,guile-2.0)
1021 ("postgresql" ,postgresql)))
1022 (home-page "https://www.nongnu.org/guile-pg/")
1023 (synopsis "Guile modules for accessing PostgreSQL")
1024 (description
1025 "Guile-PG is a collection of modules for Guile allowing access to the
1026 PostgreSQL RDBMS from Scheme programs.
1027
1028 This has been tested against PostgreSQL 10 through 13, but currently only
1029 works with Guile 1.4.x to 2.0.x.")
1030 (license license:gpl3+)))
1031
1032 (define-public guile-prometheus
1033 (let ((commit "35dc26c0ea44c3d70f1819f240d84e2cbb4b7b4c")
1034 (revision "5"))
1035 (package
1036 (name "guile-prometheus")
1037 (version (git-version "0" revision commit))
1038 (source (origin
1039 (method git-fetch)
1040 (uri (git-reference
1041 (url "https://git.cbaines.net/git/guile/prometheus")
1042 (commit commit)))
1043 (sha256
1044 (base32
1045 "07822jj4appw37lf444kc4xlgl7nm64mgldag56072l55kwashgb"))
1046 (file-name (string-append name "-" version "-checkout"))))
1047 (build-system gnu-build-system)
1048 (native-inputs
1049 `(("pkg-config" ,pkg-config)
1050 ("autoconf" ,autoconf)
1051 ("automake" ,automake)
1052 ("guile" ,guile-3.0)))
1053 (inputs
1054 `(("guile" ,guile-3.0)))
1055 (home-page "https://git.cbaines.net/guile/prometheus")
1056 (synopsis "Prometheus client library for Guile")
1057 (description
1058 "This Guile library provides instrumentation code intended to be used
1059 with the Prometheus time series service. Counter, gauge and histogram metric
1060 types are supported.")
1061 (license license:gpl3+))))
1062
1063 (define-public guile2.2-pfds
1064 (package
1065 (inherit guile-pfds)
1066 (name "guile2.2-pfds")
1067 (native-inputs `(("guile" ,guile-2.2)))
1068 (arguments
1069 (substitute-keyword-arguments (package-arguments guile-pfds)
1070 ((#:phases phases)
1071 `(modify-phases ,phases
1072 (delete 'work-around-guile-bug)
1073 (add-after 'move-files-around 'sls->scm
1074 (lambda _
1075 ;; In Guile <= 2.2.4, there's no way to tell 'guild
1076 ;; compile' to accept the ".sls" extension. So...
1077 (for-each (lambda (file)
1078 (rename-file file
1079 (string-append
1080 (string-drop-right file 4)
1081 ".scm")))
1082 (find-files "." "\\.sls$"))
1083 #t))))))))
1084
1085 (define-public guile-aa-tree
1086 (package
1087 (name "guile-aa-tree")
1088 (version "3.1.1")
1089 (source (origin
1090 (method url-fetch)
1091 (uri (string-append "mirror://savannah/guile-aa-tree/guile-aa-tree-"
1092 version ".tar.gz"))
1093 (sha256
1094 (base32
1095 "0044c105r3q9vpl17pv3phl1b79kjm1llhkakqgiasixyav01blh"))))
1096 (build-system guile-build-system)
1097 (native-inputs `(("guile" ,guile-2.2)))
1098 ;; https://savannah.nongnu.org/projects/guile-aa-tree
1099 (home-page "https://qlfiles.net/guile-aa-tree/")
1100 (synopsis "AA tree data structure for Guile")
1101 (description
1102 "This package provides an implementation of @dfn{AA trees}, a
1103 self-balancing binary tree data structure, for Guile. It ensure @math{O(log
1104 n)} worst case performance for core operations. The module provides
1105 non-mutating insert, delete, and search operations, with support for
1106 convenient nested tree operations.")
1107 (license license:gpl3+)))
1108
1109 (define-public guile-simple-zmq
1110 (let ((commit "b2ea97e5a0e7417ce718b27b6fd55a3146364b82")
1111 (revision "9"))
1112 (package
1113 (name "guile-simple-zmq")
1114 (version (git-version "0.0.0" revision commit))
1115 (source
1116 (origin
1117 (method git-fetch)
1118 (uri (git-reference
1119 (url "https://github.com/jerry40/guile-simple-zmq")
1120 (commit commit)))
1121 (sha256
1122 (base32
1123 "08qvcxx0njz9545xa0lq3wpf55v9cl9nbb640ry1lig11wpymqxb"))
1124 (file-name (git-file-name name version))))
1125 (build-system gnu-build-system)
1126 (arguments
1127 '(#:make-flags
1128 '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
1129
1130 (native-inputs
1131 `(("guile" ,guile-3.0)))
1132 (inputs
1133 `(("autoconf" ,autoconf)
1134 ("automake" ,automake)
1135 ("pkg-config" ,pkg-config)
1136 ("zeromq" ,zeromq)))
1137 (home-page "https://github.com/jerry40/guile-simple-zmq")
1138 (synopsis "Guile wrapper over ZeroMQ library")
1139 (description
1140 "This package provides a Guile programming interface to the ZeroMQ
1141 messaging library.")
1142 (license license:gpl3+))))
1143
1144 (define-public guile2.2-simple-zmq
1145 (package
1146 (inherit guile-simple-zmq)
1147 (name "guile2.2-simple-zmq")
1148 (native-inputs `(("guile" ,guile-2.2)))))
1149
1150 (define-public jupyter-guile-kernel
1151 (let ((commit "f25fb90b95529b17a006a807bd04e6aee12ea304")
1152 (revision "2"))
1153 (package
1154 (name "jupyter-guile-kernel")
1155 (version (git-version "0.0.0" revision commit))
1156 (source
1157 (origin
1158 (method git-fetch)
1159 (uri (git-reference
1160 (url "https://github.com/jerry40/guile-kernel")
1161 (commit commit)))
1162 (file-name (git-file-name name version))
1163 (sha256
1164 (base32
1165 "0zr1fasdb2yv9kn21yll993y9higqss4jnfs030ndhjb93raa9sr"))))
1166 (build-system guile-build-system)
1167 (arguments
1168 '(#:phases (modify-phases %standard-phases
1169 (add-after 'unpack 'set-openssl-file-name
1170 (lambda* (#:key inputs #:allow-other-keys)
1171 ;; Record the absolute file name of the 'openssl'
1172 ;; command.
1173 (substitute* "src/hmac.scm"
1174 (("openssl")
1175 (string-append (assoc-ref inputs "openssl")
1176 "/bin/openssl")))
1177 #t))
1178
1179 ;; XXX: The code uses 'include' to include its own source
1180 ;; files, and "-L src" isn't enough in this case.
1181 (add-before 'build 'chdir
1182 (lambda _ (chdir "src") #t))
1183 (add-after 'build 'chdir-back
1184 (lambda _ (chdir "..") #t))
1185
1186 (add-after 'install 'install-kernel
1187 (lambda* (#:key inputs outputs #:allow-other-keys)
1188 (let* ((out (assoc-ref outputs "out"))
1189 (json (assoc-ref inputs "guile-json"))
1190 (zmq (assoc-ref inputs "guile-simple-zmq"))
1191 (deps (list json zmq))
1192 (dir (string-append
1193 out "/share/jupyter/kernels/guile"))
1194 (effective (target-guile-effective-version)))
1195 ;; Install kernel.
1196 (install-file "src/kernel.json" dir)
1197
1198 ;; Fix hard-coded file name in the kernel.
1199 (substitute* (string-append dir "/kernel.json")
1200 (("/usr/local/.*/guile-jupyter-kernel.scm")
1201 (string-append out "/share/guile/site/"
1202 (target-guile-effective-version)
1203 "/guile-jupyter-kernel.scm"))
1204 (("\"guile\"")
1205 (string-append "\"" (assoc-ref inputs "guile")
1206 "/bin/guile\""))
1207 (("-s")
1208 ;; Add '-L' and '-C' flags so that the kernel
1209 ;; finds its dependencies.
1210 (let ((-L (map (lambda (item)
1211 (string-append "\"" item
1212 "/share/guile/site/"
1213 effective "\""))
1214 deps))
1215 (-C (map (lambda (item)
1216 (string-append "\"" item
1217 "/lib/guile/"
1218 effective
1219 "/site-ccache\""))
1220 deps)))
1221 (string-append "--no-auto-compile\""
1222 (string-join -L ", \"-L\", "
1223 'prefix)
1224 (string-join -C ", \"-C\", "
1225 'prefix)
1226 ", \"-s"))))
1227 #t))))))
1228 (inputs
1229 `(("openssl" ,openssl)
1230 ("guile" ,guile-3.0)
1231 ("guile-json" ,guile-json-3)
1232 ("guile-simple-zmq" ,guile-simple-zmq)))
1233 (synopsis "Guile kernel for the Jupyter Notebook")
1234 (description
1235 "This package provides a Guile 2.x kernel for the Jupyter Notebook. It
1236 allows users to interact with the Guile REPL through Jupyter.")
1237 (home-page "https://github.com/jerry40/guile-kernel")
1238 (license license:gpl3+))))
1239
1240 (define-public guile-sparql
1241 (package
1242 (name "guile-sparql")
1243 (version "0.0.8")
1244 (source (origin
1245 (method url-fetch)
1246 (uri (string-append
1247 "https://github.com/roelj/guile-sparql/releases/download/"
1248 version "/guile-sparql-" version ".tar.gz"))
1249 (sha256
1250 (base32 "1jf4972f9fpm0rd865xpnc9mzl3xv6vhfnp0iygadydy905z9nln"))))
1251 (build-system gnu-build-system)
1252 (native-inputs
1253 `(("pkg-config" ,pkg-config)))
1254 (inputs
1255 `(("guile" ,guile-3.0)))
1256 (home-page "https://github.com/roelj/guile-sparql")
1257 (synopsis "SPARQL module for Guile")
1258 (description "This package provides the functionality to query a SPARQL
1259 endpoint. Additionally, it provides an interface to write SPARQL queries
1260 using S-expressions.")
1261 (license license:gpl3+)))
1262
1263 (define-public guile-debbugs
1264 (package
1265 (name "guile-debbugs")
1266 (version "0.0.3")
1267 (source (origin
1268 (method url-fetch)
1269 (uri (string-append "mirror://gnu/guile-debbugs/guile-debbugs-"
1270 version ".tar.gz"))
1271 (sha256
1272 (base32
1273 "1cc63nw3xdfjrfk8c58r6d5lidmfq5cpqcy32yd5xp81yccprvn9"))))
1274 (build-system gnu-build-system)
1275 (propagated-inputs
1276 `(("guile-email" ,guile-email)))
1277 (native-inputs
1278 `(("guile" ,guile-3.0)
1279 ("pkg-config" ,pkg-config)))
1280 (home-page "https://savannah.gnu.org/projects/guile-debbugs/")
1281 (synopsis "Guile interface to the Debbugs bug tracking service")
1282 (description
1283 "This package provides a Guile library to communicate with a Debbugs bug
1284 tracker's SOAP service, such as @url{https://bugs.gnu.org}.")
1285 (license license:gpl3+)))
1286
1287 (define-public guile-email
1288 (package
1289 (name "guile-email")
1290 (version "0.2.2")
1291 (source
1292 (origin
1293 (method url-fetch)
1294 (uri (string-append
1295 "https://guile-email.systemreboot.net/releases/guile-email-"
1296 version ".tar.lz"))
1297 (sha256
1298 (base32
1299 "1rc8r0fgvflnyq5ckl7ii8sghpsgpkzxa8vskjr1ak2kyar6m35k"))))
1300 (build-system gnu-build-system)
1301 (native-inputs
1302 `(("pkg-config" ,pkg-config)
1303 ("lzip" ,lzip)))
1304 (inputs
1305 `(("guile" ,guile-3.0)))
1306 (arguments
1307 '(#:make-flags '("GUILE_AUTO_COMPILE=0"))) ; to prevent guild warnings
1308 (home-page "https://guile-email.systemreboot.net")
1309 (synopsis "Guile email parser")
1310 (description "guile-email is a collection of email utilities implemented
1311 in pure guile. It supports parsing MIME (Multipurpose Internet Mail
1312 Extensions) compliant email messages and reading emails from the mbox
1313 format.")
1314 (license license:agpl3+)))
1315
1316 (define-public guile-email-latest
1317 (let ((commit "ca0520a33c9042a68691d85c6849f88412ca8357")
1318 (revision "1"))
1319 (package
1320 (inherit guile-email)
1321 (name "guile-email-latest")
1322 (version (git-version "0.2.2" revision commit))
1323 (source
1324 (origin
1325 (method git-fetch)
1326 (uri (git-reference
1327 (url "https://git.systemreboot.net/guile-email")
1328 (commit commit)))
1329 (file-name (git-file-name name version))
1330 (sha256
1331 (base32
1332 "1l5mikalawq83786rnb9zky908ncsd5dna9vyz6bx6kc2frrl7xv"))))
1333 (native-inputs
1334 `(("pkg-config" ,pkg-config)
1335 ("autoconf" ,autoconf)
1336 ("automake" ,automake)
1337 ("texinfo" ,texinfo))))))
1338
1339 (define-public guile2.2-email
1340 (package
1341 (inherit guile-email)
1342 (name "guile2.2-email")
1343 (inputs `(("guile" ,guile-2.2)
1344 ,@(alist-delete "guile" (package-inputs guile-email))))))
1345
1346 (define-public guile-newt
1347 (package
1348 (name "guile-newt")
1349 (version "0.0.2")
1350 (source (origin
1351 (method git-fetch)
1352 (uri (git-reference
1353 (url "https://gitlab.com/mothacehe/guile-newt")
1354 (commit version)))
1355 (file-name (git-file-name name version))
1356 (sha256
1357 (base32
1358 "1gksd1lzgjjh1p9vczghg8jw995d22hm34kbsiv8rcryirv2xy09"))))
1359 (build-system gnu-build-system)
1360 (arguments
1361 '(#:make-flags
1362 '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
1363 (inputs
1364 `(("guile" ,guile-3.0)
1365 ("newt" ,newt)))
1366 (native-inputs
1367 `(("autoconf" ,autoconf)
1368 ("automake" ,automake)
1369 ("pkg-config" ,pkg-config)))
1370 (synopsis "Guile bindings to Newt")
1371 (description
1372 "This package provides bindings for Newt, a programming library for
1373 color text mode, widget based user interfaces. The bindings are written in pure
1374 Scheme by using Guile’s foreign function interface.")
1375 (home-page "https://gitlab.com/mothacehe/guile-newt")
1376 (license license:gpl3+)))
1377
1378 (define-public guile2.2-newt
1379 (package
1380 (inherit guile-newt)
1381 (name "guile2.2-newt")
1382 (inputs `(("guile" ,guile-2.2)
1383 ,@(alist-delete "guile" (package-inputs guile-newt))))))
1384
1385 (define-public guile-mastodon
1386 (let ((commit "74b75bcf547df92acee1e0466ecd7ec07f775392")
1387 (revision "1"))
1388 (package
1389 (name "guile-mastodon")
1390 (version (git-version "0.0.1" revision commit))
1391 (source (origin
1392 (method git-fetch)
1393 (uri (git-reference
1394 (url "https://framagit.org/prouby/guile-mastodon.git")
1395 (commit commit)))
1396 (file-name (string-append name "-" version "-checkout"))
1397 (sha256
1398 (base32
1399 "1wx5h6wa9c0na8mrnr2nv1nzjvq68zyrly8yyp11dsskhaw4y33h"))))
1400 (build-system gnu-build-system)
1401 (native-inputs
1402 `(("autoconf" ,autoconf)
1403 ("automake" ,automake)
1404 ("emacs" ,emacs-minimal)
1405 ("pkg-config" ,pkg-config)
1406 ("texinfo" ,texinfo)))
1407 (inputs
1408 `(("guile" ,guile-3.0)
1409 ("gnutls" ,gnutls)
1410 ("guile-json" ,guile-json-4)))
1411 (home-page "https://framagit.org/prouby/guile-mastodon")
1412 (synopsis "Guile Mastodon REST API module")
1413 (description "This package provides Guile modules to access the
1414 @uref{https://docs.joinmastodon.org/api/, REST API of Mastodon}, a federated
1415 microblogging service.")
1416 (license license:gpl3+))))
1417
1418 (define-public guile-parted
1419 (package
1420 (name "guile-parted")
1421 (version "0.0.5")
1422 (source (origin
1423 (method git-fetch)
1424 (uri (git-reference
1425 (url "https://gitlab.com/mothacehe/guile-parted")
1426 (commit version)))
1427 (file-name (git-file-name name version))
1428 (sha256
1429 (base32
1430 "1ar6n38br3h1jm54yy6d54rpqdgsy7pmnj3nqdzqrfk8z0kx0rm9"))
1431 (modules '((guix build utils)))))
1432 (build-system gnu-build-system)
1433 (arguments
1434 '(#:make-flags
1435 '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
1436 (inputs
1437 `(("guile" ,guile-3.0)
1438 ("parted" ,parted)))
1439 (propagated-inputs
1440 `(("guile-bytestructures" ,guile-bytestructures)))
1441 (native-inputs
1442 `(("autoconf" ,autoconf)
1443 ("automake" ,automake)
1444 ("pkg-config" ,pkg-config)))
1445 (synopsis "Guile bindings to GNU Parted")
1446 (description
1447 "This package provides bindings for GNU Parted library, a C library
1448 allowing disk partition tables creation and manipulation. The bindings are
1449 written in pure Scheme by using Guile's foreign function interface.")
1450 (home-page "https://gitlab.com/mothacehe/guile-parted")
1451 (license license:gpl3+)))
1452
1453 (define-public guile2.2-parted
1454 (package
1455 (inherit guile-parted)
1456 (name "guile2.2-parted")
1457 (inputs `(("guile" ,guile-2.2)
1458 ,@(alist-delete "guile" (package-inputs guile-parted))))
1459 (propagated-inputs
1460 `(("guile-bytestructures" ,guile2.2-bytestructures)))))
1461
1462 (define-public guile-xosd
1463 (package
1464 (name "guile-xosd")
1465 (version "0.2.2")
1466 (source (origin
1467 (method url-fetch)
1468 (uri (string-append "https://github.com/alezost/" name
1469 "/releases/download/v" version
1470 "/" name "-" version ".tar.gz"))
1471 (sha256
1472 (base32
1473 "10r29bpyrsvjalnzkam2falj9k34lvxmch05zs606zp1nk93whp3"))))
1474 (build-system gnu-build-system)
1475 (arguments
1476 `(#:phases
1477 (modify-phases %standard-phases
1478 (add-before 'build 'set-cpath
1479 (lambda* (#:key inputs #:allow-other-keys)
1480 (setenv "CPATH"
1481 (string-append
1482 (assoc-ref inputs "guile") "/include/guile/3.0:"
1483 (or (getenv "CPATH") "")))
1484 #t)))))
1485 (native-inputs
1486 `(("pkg-config" ,pkg-config)))
1487 (inputs
1488 `(("guile" ,guile-3.0)
1489 ("libx11" ,libx11)
1490 ("libxext" ,libxext)
1491 ("libxinerama" ,libxinerama)
1492 ("xosd" ,xosd)))
1493 (home-page "https://github.com/alezost/guile-xosd")
1494 (synopsis "XOSD bindings for Guile")
1495 (description
1496 "Guile-XOSD provides Guile bindings for @code{libxosd},
1497 @uref{http://sourceforge.net/projects/libxosd/, the X On Screen Display
1498 library}.")
1499 (license license:gpl3+)))
1500
1501 (define-public guile-dbi
1502 (package
1503 (name "guile-dbi")
1504 (version "2.1.8")
1505 (source (origin
1506 (method git-fetch)
1507 (uri (git-reference
1508 (url "https://github.com/opencog/guile-dbi")
1509 (commit (string-append "guile-dbi-" version))))
1510 (file-name (git-file-name name version))
1511 (sha256
1512 (base32
1513 "123m4j82bi60s1v95pjh4djb7bh6zdwmljbpyg7zq8ni2gyal7lw"))))
1514 (build-system gnu-build-system)
1515 (arguments
1516 `(#:modules (((guix build guile-build-system)
1517 #:select (target-guile-effective-version))
1518 ,@%gnu-build-system-modules)
1519 #:imported-modules ((guix build guile-build-system)
1520 ,@%gnu-build-system-modules)
1521 #:configure-flags
1522 (list (string-append
1523 "--with-guile-site-dir=" %output "/share/guile/site/"
1524 (target-guile-effective-version (assoc-ref %build-inputs "guile"))))
1525 #:phases
1526 (modify-phases %standard-phases
1527 (add-after 'unpack 'chdir
1528 (lambda _
1529 ;; The upstream Git repository contains all the code, so change
1530 ;; to the directory specific to guile-dbi.
1531 (chdir "guile-dbi")))
1532 (add-after 'install 'patch-extension-path
1533 (lambda* (#:key inputs outputs #:allow-other-keys)
1534 (let* ((out (assoc-ref outputs "out"))
1535 (dbi.scm (string-append out "/share/guile/site/"
1536 (target-guile-effective-version
1537 (assoc-ref inputs "guile"))
1538 "/dbi/dbi.scm"))
1539 (ext (string-append out "/lib/libguile-dbi")))
1540 (substitute* dbi.scm (("libguile-dbi") ext))))))))
1541 (native-inputs
1542 `(("autoconf" ,autoconf)
1543 ("automake" ,automake)
1544 ("libtool" ,libtool)
1545 ("perl" ,perl)
1546 ("texinfo" ,texinfo)))
1547 (propagated-inputs
1548 `(("guile" ,guile-2.2)))
1549 (synopsis "Guile database abstraction layer")
1550 (home-page "https://github.com/opencog/guile-dbi")
1551 (description
1552 "guile-dbi is a library for Guile that provides a convenient interface to
1553 SQL databases. Database programming with guile-dbi is generic in that the same
1554 programming interface is presented regardless of which database system is used.
1555 It currently supports MySQL, Postgres and SQLite3.")
1556 (license license:gpl2+)
1557 (native-search-paths
1558 (list (search-path-specification
1559 (variable "GUILE_DBD_PATH")
1560 (files '("lib")))))))
1561
1562 (define-public guile-dbd-sqlite3
1563 (package
1564 (inherit guile-dbi)
1565 (name "guile-dbd-sqlite3")
1566 (arguments
1567 (substitute-keyword-arguments (package-arguments guile-dbi)
1568 ((#:phases phases)
1569 `(modify-phases ,phases
1570 (replace 'chdir
1571 (lambda _
1572 ;; The upstream Git repository contains all the code, so change
1573 ;; to the directory specific to guile-dbd-sqlite3.
1574 (chdir "guile-dbd-sqlite3")))
1575 (delete 'patch-extension-path)))))
1576 (inputs
1577 `(("sqlite" ,sqlite)
1578 ("zlib" ,zlib)))
1579 (native-inputs
1580 `(("guile-dbi" ,guile-dbi) ; only required for headers
1581 ("pkg-config" ,pkg-config)
1582 ,@(package-native-inputs guile-dbi)))
1583 (synopsis "Guile DBI driver for SQLite")
1584 (description
1585 "guile-dbi is a library for Guile that provides a convenient interface to
1586 SQL databases. This package implements the interface for SQLite.")))
1587
1588 (define-public guile-dbd-postgresql
1589 (package
1590 (inherit guile-dbi)
1591 (name "guile-dbd-postgresql")
1592 (arguments
1593 (substitute-keyword-arguments (package-arguments guile-dbi)
1594 ((#:phases phases)
1595 `(modify-phases ,phases
1596 (replace 'chdir
1597 (lambda _
1598 ;; The upstream Git repository contains all the code, so change
1599 ;; to the directory specific to guile-dbd-mysql.
1600 (chdir "guile-dbd-postgresql")))
1601 (add-after 'chdir 'patch-src
1602 (lambda _
1603 (substitute* "src/guile-dbd-postgresql.c"
1604 (("postgresql/libpq-fe\\.h") "libpq-fe.h"))))
1605 (delete 'patch-extension-path)))))
1606 (inputs
1607 `(("postgresql" ,postgresql)
1608 ("zlib" ,zlib)))
1609 (native-inputs
1610 `(("guile-dbi" ,guile-dbi) ; only required for headers
1611 ,@(package-native-inputs guile-dbi)))
1612 (synopsis "Guile DBI driver for PostgreSQL")
1613 (description
1614 "@code{guile-dbi} is a library for Guile that provides a convenient
1615 interface to SQL databases. This package implements the interface for
1616 PostgreSQL.")))
1617
1618 (define-public guile-dbd-mysql
1619 (package
1620 (inherit guile-dbi)
1621 (name "guile-dbd-mysql")
1622 (arguments
1623 (substitute-keyword-arguments (package-arguments guile-dbi)
1624 ((#:phases phases)
1625 `(modify-phases ,phases
1626 (replace 'chdir
1627 (lambda _
1628 ;; The upstream Git repository contains all the code, so change
1629 ;; to the directory specific to guile-dbd-mysql.
1630 (chdir "guile-dbd-mysql")))
1631 (add-after 'chdir 'patch-src
1632 (lambda _
1633 (substitute* "configure.ac"
1634 (("mariadbclient") "mariadb"))
1635 (substitute* "src/guile-dbd-mysql.c"
1636 (("<mariadb/") "<mysql/"))))
1637 (delete 'patch-extension-path)))))
1638 (inputs
1639 `(("mariadb" ,mariadb "dev")
1640 ("mariadb" ,mariadb "lib")
1641 ("zlib" ,zlib)))
1642 (native-inputs
1643 `(("guile-dbi" ,guile-dbi) ; only required for headers
1644 ,@(package-native-inputs guile-dbi)))
1645 (synopsis "Guile DBI driver for MySQL")
1646 (description "@code{guile-dbi} is a library for Guile that provides a
1647 convenient interface to SQL databases. This package implements the interface
1648 for MySQL.")
1649 (license license:gpl2+)))
1650
1651 (define-public guile-config
1652 (package
1653 (name "guile-config")
1654 (version "0.4.2")
1655 (source
1656 (origin
1657 (method git-fetch)
1658 (uri (git-reference
1659 (url "https://gitlab.com/a-sassmannshausen/guile-config")
1660 (commit version)))
1661 (file-name (git-file-name name version))
1662 (sha256 (base32
1663 "09028ylbddjdp3d67zdjz3pnsjqz6zs2bfck5rr3dfaa0qjap40n"))))
1664 (build-system gnu-build-system)
1665 (native-inputs
1666 `(("autoconf" ,autoconf)
1667 ("automake" ,automake)
1668 ("pkg-config" ,pkg-config)
1669 ("texinfo" ,texinfo)))
1670 (inputs `(("guile" ,guile-3.0)))
1671 (synopsis
1672 "Guile application configuration parsing library.")
1673 (description
1674 "Guile Config is a library providing a declarative approach to
1675 application configuration specification. The library provides clean
1676 configuration declaration forms, and processors that take care of:
1677 configuration file creation; configuration file parsing; command-line
1678 parameter parsing using getopt-long; basic GNU command-line parameter
1679 generation (--help, --usage, --version); automatic output generation for the
1680 above command-line parameters.")
1681 (home-page
1682 "https://gitlab.com/a-sassmannshausen/guile-config")
1683 (license license:gpl3+)))
1684
1685 (define-public guile2.2-config
1686 (package
1687 (inherit guile-config)
1688 (name "guile2.2-config")
1689 (inputs `(("guile" ,guile-2.2)
1690 ,@(alist-delete "guile" (package-inputs guile-config))))))
1691
1692 (define-public guile-hall
1693 (package
1694 (name "guile-hall")
1695 (version "0.3.1")
1696 (source
1697 (origin
1698 (method git-fetch)
1699 (uri (git-reference
1700 (url "https://gitlab.com/a-sassmannshausen/guile-hall")
1701 (commit version)))
1702 (file-name "guile-hall-0.3.1-checkout")
1703 (sha256
1704 (base32 "1s24nigdra6rvclvy15l2aw00c3aq9vv8qwxylzs60darbl36206"))))
1705 (build-system gnu-build-system)
1706 (arguments
1707 `(#:modules
1708 ((ice-9 match)
1709 (ice-9 ftw)
1710 ,@%gnu-build-system-modules)
1711 #:phases
1712 (modify-phases
1713 %standard-phases
1714 (add-after 'install 'hall-wrap-binaries
1715 (lambda* (#:key inputs outputs #:allow-other-keys)
1716 (let* ((compiled-dir
1717 (lambda (out version)
1718 (string-append
1719 out "/lib/guile/" version "/site-ccache")))
1720 (uncompiled-dir
1721 (lambda (out version)
1722 (string-append
1723 out "/share/guile/site"
1724 (if (string-null? version) "" "/") version)))
1725 (dep-path
1726 (lambda (env modules path)
1727 (list env ":" 'prefix
1728 (cons modules
1729 (map (lambda (input)
1730 (string-append
1731 (assoc-ref inputs input)
1732 path))
1733 ,''("guile-config"))))))
1734 (out (assoc-ref outputs "out"))
1735 (bin (string-append out "/bin/"))
1736 (site (uncompiled-dir out "")))
1737 (match (scandir site)
1738 (("." ".." version)
1739 (for-each
1740 (lambda (file)
1741 (wrap-program
1742 (string-append bin file)
1743 (dep-path
1744 "GUILE_LOAD_PATH"
1745 (uncompiled-dir out version)
1746 (uncompiled-dir "" version))
1747 (dep-path
1748 "GUILE_LOAD_COMPILED_PATH"
1749 (compiled-dir out version)
1750 (compiled-dir "" version))))
1751 ,''("hall"))
1752 #t))))))))
1753 (native-inputs
1754 `(("autoconf" ,autoconf)
1755 ("automake" ,automake)
1756 ("pkg-config" ,pkg-config)
1757 ("texinfo" ,texinfo)))
1758 (inputs `(("guile" ,guile-3.0)))
1759 (propagated-inputs
1760 `(("guile-config" ,guile-config)))
1761 (synopsis "Guile project tooling")
1762 (description
1763 "Hall is a command-line application and a set of Guile libraries that
1764 allow you to quickly create and publish Guile projects. It allows you to
1765 transparently support the GNU build system, manage a project hierarchy &
1766 provides tight coupling to Guix.")
1767 (home-page "https://gitlab.com/a-sassmannshausen/guile-hall")
1768 (license license:gpl3+)))
1769
1770 (define-public guile2.2-hall
1771 (package
1772 (inherit guile-hall)
1773 (name "guile2.2-hall")
1774 (inputs `(("guile" ,guile-2.2)
1775 ,@(alist-delete "guile" (package-inputs guile-hall))))
1776 (propagated-inputs
1777 `(("guile-config" ,guile2.2-config)
1778 ,@(alist-delete "guile-config"
1779 (package-propagated-inputs guile-hall))))))
1780
1781 (define-public guile-ics
1782 (package
1783 (name "guile-ics")
1784 (version "0.2.0")
1785 (source (origin
1786 (method git-fetch)
1787 (uri (git-reference
1788 (url "https://github.com/artyom-poptsov/guile-ics")
1789 (commit (string-append "v" version))))
1790 (file-name (string-append name "-" version "-checkout"))
1791 (sha256
1792 (base32
1793 "0qjjvadr7gibdq9jvwkmlkb4afsw9n2shfj9phpiadinxk3p4m2g"))
1794 (modules '((guix build utils)))
1795 (snippet
1796 '(begin
1797 ;; Allow builds with Guile 3.0.
1798 (substitute* "configure.ac"
1799 (("^GUILE_PKG.*")
1800 "GUILE_PKG([3.0 2.2 2.0])\n"))
1801 #t))))
1802 (build-system gnu-build-system)
1803 (native-inputs
1804 `(("autoconf" ,autoconf)
1805 ("automake" ,automake)
1806 ("texinfo" ,texinfo)
1807 ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
1808 ("gettext" ,gettext-minimal)
1809 ("pkg-config" ,pkg-config)))
1810 (inputs `(("guile" ,guile-3.0) ("which" ,which)))
1811 (propagated-inputs `(("guile-lib" ,guile-lib)))
1812 (home-page "https://github.com/artyom-poptsov/guile-ics")
1813 (synopsis "Guile parser library for the iCalendar format")
1814 (description
1815 "Guile-ICS is an iCalendar (RFC5545) format parser library written in
1816 pure Scheme. The library can be used to read and write iCalendar data.
1817
1818 The library is shipped with documentation in Info format and usage examples.")
1819 (license license:gpl3+)))
1820
1821 (define-public guile2.2-ics
1822 (package
1823 (inherit guile-ics)
1824 (name "guile2.2-ics")
1825 (inputs `(("guile" ,guile-2.2)
1826 ,@(alist-delete "guile" (package-inputs guile-ics))))
1827 (propagated-inputs `(("guile-lib" ,guile2.2-lib)))))
1828
1829 (define-public guile-imanifest
1830 (let ((commit "ccd5a2111b008d778106f5595a3a585954d95d0")
1831 (revision "0"))
1832 (package
1833 (name "guile-imanifest")
1834 (version (git-version "0.0.0" revision commit))
1835 (source (origin
1836 (method git-fetch)
1837 (uri (git-reference
1838 (url "https://git.sr.ht/~brown121407/guile-imanifest")
1839 (commit commit)))
1840 (file-name (git-file-name name version))
1841 (sha256
1842 (base32
1843 "0i5qllcrhdjhspyj7j9h4dc9y37d3cfbpackmybm3030qgfxqirf"))))
1844 (build-system guile-build-system)
1845 (native-inputs
1846 `(("guile" ,guile-3.0)))
1847 (propagated-inputs
1848 `(("guile-readline" ,guile-readline)
1849 ("guile-colorized" ,guile-colorized)
1850 ("guix" ,guix)))
1851 (home-page "https://sr.ht/~brown121407/guile-imanifest")
1852 (synopsis "Interactive Guix manifests")
1853 (description "This package provides functions to generate Guix manifests
1854 interactively. It works by scanning an alist of package categories, to ask the
1855 user which package sets would they like to install from it.")
1856 (license license:gpl3+))))
1857
1858 (define-public guile-wisp
1859 (package
1860 (name "guile-wisp")
1861 (version "1.0.5")
1862 (source (origin
1863 (method hg-fetch)
1864 (uri (hg-reference
1865 (url "https://hg.sr.ht/~arnebab/wisp")
1866 (changeset (string-append "v" version))))
1867 (file-name (git-file-name name version))
1868 (sha256
1869 (base32
1870 "00iknn03gf421gg3061g35fbraqrkcqypkrfn10rhlgg6j0lgk67"))))
1871 (build-system gnu-build-system)
1872 (arguments
1873 `(#:modules ((guix build gnu-build-system)
1874 ((guix build emacs-build-system) #:prefix emacs:)
1875 (guix build utils)
1876 (guix build emacs-utils)
1877 (ice-9 rdelim)
1878 (ice-9 popen))
1879 #:imported-modules (,@%gnu-build-system-modules
1880 (guix build emacs-build-system)
1881 (guix build emacs-utils))
1882 #:phases
1883 (modify-phases %standard-phases
1884 (replace 'bootstrap
1885 (lambda _
1886 (invoke "autoreconf" "-vif")
1887 #t))
1888 (add-before 'configure 'patch-/usr/bin/env
1889 (lambda _
1890 (substitute* "Makefile.in"
1891 (("/usr/bin/env bash") (which "bash")))
1892 #t))
1893 ;; auto compilation breaks, but if we set HOME to /tmp,
1894 ;; that works ok
1895 (add-before 'check 'auto-compile-hacky-workaround
1896 (lambda _ (setenv "HOME" "/tmp") #t))
1897 (add-after 'install 'install-go-files
1898 (lambda* (#:key outputs inputs #:allow-other-keys)
1899 (let* ((out (assoc-ref outputs "out"))
1900 (effective (read-line
1901 (open-pipe* OPEN_READ
1902 "guile" "-c"
1903 "(display (effective-version))")))
1904 (module-dir (string-append out "/share/guile/site/"
1905 effective))
1906 (object-dir (string-append out "/lib/guile/" effective
1907 "/site-ccache"))
1908 (prefix (string-length module-dir)))
1909 ;; compile to the destination
1910 (for-each (lambda (file)
1911 (let* ((base (string-drop (string-drop-right file 4)
1912 prefix))
1913 (go (string-append object-dir base ".go")))
1914 (invoke "guild" "compile" "-L" module-dir
1915 file "-o" go)))
1916 (find-files module-dir "\\.scm$"))
1917 #t)))
1918 (add-after 'install 'install-emacs-files
1919 (assoc-ref emacs:%standard-phases 'install))
1920 (add-after 'install-emacs-files 'compile-emacs-files
1921 (assoc-ref emacs:%standard-phases 'build))
1922 (add-after 'compile-emacs-files 'make-autoloads
1923 (assoc-ref emacs:%standard-phases 'make-autoloads)))))
1924 (home-page "https://www.draketo.de/english/wisp")
1925 (inputs
1926 `(("guile" ,guile-3.0)))
1927 (native-inputs
1928 `(("autoconf" ,autoconf)
1929 ("automake" ,automake)
1930 ("emacs" ,emacs-minimal)
1931 ("python" ,python)
1932 ("pkg-config" ,pkg-config)))
1933 (synopsis "Whitespace to lisp syntax for Guile")
1934 (description "Wisp is a syntax for Guile which provides a Python-like
1935 whitespace-significant language. It may be easier on the eyes for some
1936 users and in some situations.")
1937 (license (list license:gpl3+ ; the project as a whole
1938 license:expat)))) ; the language spec (see also SRFI 119)
1939
1940 (define-public guile2.2-wisp
1941 (package
1942 (inherit guile-wisp)
1943 (name "guile2.2-wisp")
1944 (inputs `(("guile" ,guile-2.2)))))
1945
1946 (define-public guile-udev
1947 (package
1948 (name "guile-udev")
1949 (version "0.1.0")
1950 (source (origin
1951 (method git-fetch)
1952 (uri (git-reference
1953 (url "https://github.com/artyom-poptsov/guile-udev")
1954 (commit (string-append "v" version))))
1955 (file-name (git-file-name name version))
1956 (sha256
1957 (base32
1958 "1l6csncjqnx58c6c3wdl7rshnhk4pzhjq2q8lnkg483564s9w5py"))))
1959 (build-system gnu-build-system)
1960 (native-inputs
1961 `(("autoconf" ,autoconf)
1962 ("automake" ,automake)
1963 ("gettext" ,gettext-minimal)
1964 ("libtool" ,libtool)
1965 ("texinfo" ,texinfo)
1966 ("pkg-config" ,pkg-config)
1967 ("which" ,which)))
1968 (inputs
1969 `(("guile" ,guile-3.0)
1970 ("eudev" ,eudev)))
1971 (home-page "https://github.com/artyom-poptsov/guile-udev")
1972 (synopsis "Guile bindings to libudev")
1973 (description
1974 "Guile-Udev provides GNU Guile bindings to libudev.")
1975 (license license:gpl3+)))
1976
1977 (define-public guile-sly
1978 (package
1979 (name "guile-sly")
1980 (version "0.1")
1981 (source (origin
1982 (method url-fetch)
1983 (uri (string-append "https://files.dthompson.us/sly/sly-"
1984 version ".tar.gz"))
1985 (sha256
1986 (base32
1987 "1svzlbz2vripmyq2kjh0rig16bsrnbkwbsm558pjln9l65mcl4qq"))
1988 (modules '((guix build utils)))
1989 (snippet
1990 '(begin
1991 (substitute* "configure"
1992 (("_guile_required_version=\"2.0.11\"")
1993 "_guile_required_version=\"2\"")
1994 (("ac_subst_vars='")
1995 "ac_subst_vars='GUILE_EFFECTIVE_VERSION\n"))
1996 (substitute* (find-files "." "Makefile.in")
1997 (("moddir = .*$")
1998 (string-append
1999 "moddir = "
2000 "$(prefix)/share/guile/site/@GUILE_EFFECTIVE_VERSION@\n"))
2001 (("godir = .*$")
2002 (string-append
2003 "godir = "
2004 "$(prefix)/lib/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n")))
2005 #t))))
2006 (build-system gnu-build-system)
2007 (arguments
2008 '(#:configure-flags
2009 (list (string-append "--with-libfreeimage-prefix="
2010 (assoc-ref %build-inputs "freeimage"))
2011 (string-append "--with-libgslcblas-prefix="
2012 (assoc-ref %build-inputs "gsl")))))
2013 (native-inputs
2014 `(("pkg-config" ,pkg-config)))
2015 (propagated-inputs
2016 `(("guile-sdl" ,guile-sdl)
2017 ("guile-opengl" ,guile-opengl)))
2018 (inputs
2019 `(("guile" ,guile-2.2)
2020 ("gsl" ,gsl)
2021 ("freeimage" ,freeimage)
2022 ("mesa" ,mesa)))
2023 (synopsis "2D/3D game engine for GNU Guile")
2024 (description "Sly is a 2D/3D game engine written in Guile Scheme. Sly
2025 features a functional reactive programming interface and live coding
2026 capabilities.")
2027 (home-page "https://dthompson.us/projects/sly.html")
2028 (license license:gpl3+)))
2029
2030 (define-public g-golf
2031 (let ((commit "ef830107b9765bd6a2da848d0cbe45e11374c0b5")
2032 (revision "839"))
2033 (package
2034 (name "g-golf")
2035 (version (git-version "0.1.0" revision commit))
2036 (source
2037 (origin
2038 (method git-fetch)
2039 (uri (git-reference
2040 (url "https://git.savannah.gnu.org/git/g-golf.git")
2041 (commit commit)))
2042 (file-name (git-file-name name version))
2043 (sha256
2044 (base32 "0r472hvmf447kqvkahp1wy4irb5gy8y793hm8r9rc511smdx66cw"))))
2045 (build-system gnu-build-system)
2046 (native-inputs
2047 `(("autoconf" ,autoconf)
2048 ("automake" ,automake)
2049 ("texinfo" ,texinfo)
2050 ("gettext" ,gettext-minimal)
2051 ("libtool" ,libtool)
2052 ("pkg-config" ,pkg-config)
2053 ("xorg-server" ,xorg-server)))
2054 (inputs
2055 `(("guile" ,guile-2.2)
2056 ("guile-lib" ,guile2.2-lib)
2057 ("clutter" ,clutter)
2058 ("gtk" ,gtk+)
2059 ("glib" ,glib)))
2060 (propagated-inputs
2061 `(("gobject-introspection" ,gobject-introspection)))
2062 (arguments
2063 `(#:phases
2064 (modify-phases %standard-phases
2065 (add-before 'configure 'tests-work-arounds
2066 (lambda* (#:key inputs #:allow-other-keys)
2067 ;; In build environment, There is no /dev/tty
2068 (substitute*
2069 "test-suite/tests/gobject.scm"
2070 (("/dev/tty") "/dev/null"))))
2071 (add-before 'configure 'substitute-libs
2072 (lambda* (#:key inputs outputs #:allow-other-keys)
2073 (let* ((get (lambda (key lib)
2074 (string-append (assoc-ref inputs key) "/lib/" lib)))
2075 (libgi (get "gobject-introspection" "libgirepository-1.0"))
2076 (libglib (get "glib" "libglib-2.0"))
2077 (libgobject (get "glib" "libgobject-2.0"))
2078 (libgdk (get "gtk" "libgdk-3")))
2079 (substitute* "configure"
2080 (("SITEDIR=\"\\$datadir/g-golf\"")
2081 "SITEDIR=\"$datadir/guile/site/$GUILE_EFFECTIVE_VERSION\"")
2082 (("SITECCACHEDIR=\"\\$libdir/g-golf/")
2083 "SITECCACHEDIR=\"$libdir/"))
2084 (substitute* "g-golf/init.scm"
2085 (("libgirepository-1.0") libgi)
2086 (("libglib-2.0") libglib)
2087 (("libgdk-3") libgdk)
2088 (("libgobject-2.0") libgobject)
2089 (("\\(dynamic-link \"libg-golf\"\\)")
2090 (format #f "~s"
2091 `(dynamic-link
2092 (format #f "~alibg-golf"
2093 (if (getenv "GUILE_GGOLF_UNINSTALLED")
2094 ""
2095 ,(format #f "~a/lib/"
2096 (assoc-ref outputs "out"))))))))
2097 (setenv "GUILE_AUTO_COMPILE" "0")
2098 (setenv "GUILE_GGOLF_UNINSTALLED" "1")
2099 #t)))
2100 (add-before 'check 'start-xorg-server
2101 (lambda* (#:key inputs #:allow-other-keys)
2102 ;; The test suite requires a running X server.
2103 (system (format #f "~a/bin/Xvfb :1 &"
2104 (assoc-ref inputs "xorg-server")))
2105 (setenv "DISPLAY" ":1")
2106 #t)))))
2107 (home-page "https://www.gnu.org/software/g-golf/")
2108 (synopsis "Guile bindings for GObject Introspection")
2109 (description
2110 "G-Golf (Gnome: (Guile Object Library for)) is a library for developing
2111 modern applications in Guile Scheme. It comprises a direct binding to the
2112 GObject Introspection API and higher-level functionality for importing Gnome
2113 libraries and making GObject classes (and methods) available in Guile's
2114 object-oriented programming system, GOOPS.")
2115 (license license:lgpl3+))))
2116
2117 (define-public g-wrap
2118 (package
2119 (name "g-wrap")
2120 (version "1.9.15")
2121 (source (origin
2122 (method url-fetch)
2123 (uri (string-append "mirror://savannah/g-wrap/g-wrap-"
2124 version ".tar.gz"))
2125 (sha256
2126 (base32
2127 "0ak0bha37dfpj9kmyw1r8fj8nva639aw5xr66wr5gd3l1rqf5xhg"))))
2128 (build-system gnu-build-system)
2129 (native-inputs
2130 `(("pkg-config" ,pkg-config)))
2131 (propagated-inputs
2132 `(("guile" ,guile-2.2)
2133 ("guile-lib" ,guile-lib)))
2134 (inputs
2135 `(("libffi" ,libffi)))
2136 (arguments
2137 `(#:configure-flags '("--disable-Werror")
2138 #:phases
2139 (modify-phases %standard-phases
2140 (add-before 'configure 'pre-configure
2141 (lambda* (#:key outputs #:allow-other-keys)
2142 (let ((out (assoc-ref outputs "out")))
2143 (substitute* (find-files "." "^Makefile.in$")
2144 (("guilemoduledir =.*guile/site" all)
2145 (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
2146 #t))))))
2147 (synopsis "Generate C bindings for Guile")
2148 (description "G-Wrap is a tool and Guile library for generating function
2149 wrappers for inter-language calls. It currently only supports generating Guile
2150 wrappers for C functions. Given a definition of the types and prototypes for
2151 a given C interface, G-Wrap will automatically generate the C code that
2152 provides access to that interface and its types from the Scheme level.")
2153 (home-page "https://www.nongnu.org/g-wrap/index.html")
2154 (license license:lgpl2.1+)))
2155
2156 (define-public guile-miniadapton
2157 (let ((commit "1b5749422304567c96ac5367f2221dda9eff5880")
2158 (revision "1"))
2159 (package
2160 (name "guile-miniadapton")
2161 (version (string-append "0-" revision "." (string-take commit 9)))
2162 (source (origin
2163 (method git-fetch)
2164 (uri (git-reference
2165 (url "https://github.com/fisherdj/miniAdapton")
2166 (commit commit)))
2167 (file-name (string-append name "-" version "-checkout"))
2168 (sha256
2169 (base32
2170 "09q51zkw2fypad5xixskfzw2cjhjgs5cswdp3i7cpp651rb3zndh"))))
2171 (build-system guile-build-system)
2172 (native-inputs
2173 `(("guile" ,guile-2.2)))
2174 (home-page "https://github.com/fisherdj/miniAdapton")
2175 (synopsis "Minimal implementation of incremental computation in Guile
2176 Scheme")
2177 (description "This package provides a complete Scheme implementation of
2178 miniAdapton, which implements the core functionality of the Adapton system for
2179 incremental computation (also known as self-adjusting computation). Like
2180 Adapton, miniAdapton allows programmers to safely combine mutation and
2181 memoization. miniAdapton is built on top of an even simpler system,
2182 microAdapton. Both miniAdapton and microAdapton are designed to be easy to
2183 understand, extend, and port to host languages other than Scheme.")
2184 (license license:expat))))
2185
2186 (define-public guile-raw-strings
2187 (let ((commit "aa1cf783f2542811b473f797e12490920b779baa")
2188 (revision "0"))
2189 (package
2190 (name "guile-raw-strings")
2191 (version (git-version "0.0.0" revision commit))
2192 (source (origin
2193 (method git-fetch)
2194 (uri (git-reference
2195 (url "https://github.com/lloda/guile-raw-strings")
2196 (commit commit)))
2197 (file-name (git-file-name name version))
2198 (sha256
2199 (base32
2200 "1r2gx86zw5hb6byllra3nap3fw9p7q7rvdmg6qn9myrdxyjpns3l"))))
2201 (build-system guile-build-system)
2202 (arguments
2203 `(#:phases
2204 (modify-phases %standard-phases
2205 (add-after 'build 'check
2206 (lambda* (#:key tests? #:allow-other-keys)
2207 (when tests?
2208 (invoke "guile" "-L" "." "-s" "test.scm")))))))
2209 (native-inputs
2210 `(("guile" ,guile-3.0)))
2211 (home-page "https://github.com/lloda/guile-raw-strings")
2212 (synopsis "Guile reader extension for `raw strings'")
2213 (description "This package provides A Guile reader extension for `raw
2214 strings', it lets you write verbatim strings without having to escape double
2215 quotes. ")
2216 (license license:public-domain))))
2217
2218 (define-public guile-reader
2219 (package
2220 (name "guile-reader")
2221 (version "0.6.3")
2222 (source (origin
2223 (method url-fetch)
2224 (uri (string-append "mirror://savannah/guile-reader/guile-reader-"
2225 version ".tar.gz"))
2226 (sha256
2227 (base32
2228 "1fyjckmygkhq22lq8nqc86yl5zzbqd7a944dnz5c1f6vx92b9hiq"))))
2229 (build-system gnu-build-system)
2230 (native-inputs `(("pkgconfig" ,pkg-config)
2231 ("gperf" ,gperf)))
2232 (inputs `(("guile" ,guile-3.0)))
2233 (synopsis "Framework for building readers for GNU Guile")
2234 (description
2235 "Guile-Reader is a simple framework for building readers for GNU Guile.
2236
2237 The idea is to make it easy to build procedures that extend Guile’s read
2238 procedure. Readers supporting various syntax variants can easily be written,
2239 possibly by re-using existing “token readers” of a standard Scheme
2240 readers. For example, it is used to implement Skribilo’s R5RS-derived
2241 document syntax.
2242
2243 Guile-Reader’s approach is similar to Common Lisp’s “read table”, but
2244 hopefully more powerful and flexible (for instance, one may instantiate as
2245 many readers as needed).")
2246 (home-page "https://www.nongnu.org/guile-reader/")
2247 (license license:gpl3+)))
2248
2249 (define-public guile2.2-reader
2250 (package
2251 (inherit guile-reader)
2252 (name "guile2.2-reader")
2253 (inputs `(("guile" ,guile-2.2)))))
2254
2255 (define-public guile-ncurses
2256 (package
2257 (name "guile-ncurses")
2258 (version "3.0")
2259 (source (origin
2260 (method url-fetch)
2261 (uri (string-append "mirror://gnu/guile-ncurses/guile-ncurses-"
2262 version ".tar.gz"))
2263 (sha256
2264 (base32
2265 "038xbffalhymg26lvmzgf7ljilxz2f2zmqg5r5nfzbipfbprwjhf"))))
2266 (build-system gnu-build-system)
2267 (inputs `(("ncurses" ,ncurses)
2268 ("guile" ,guile-3.0)))
2269 (native-inputs `(("pkg-config" ,pkg-config)))
2270 (arguments
2271 `(#:modules ((guix build gnu-build-system)
2272 ((guix build guile-build-system)
2273 #:select (target-guile-effective-version))
2274 (guix build utils))
2275 #:imported-modules ((guix build guile-build-system)
2276 ,@%gnu-build-system-modules)
2277 #:configure-flags (list "--with-ncursesw" ; Unicode support
2278 "--with-gnu-filesystem-hierarchy")
2279 #:phases
2280 (modify-phases %standard-phases
2281 (add-before 'build 'fix-libguile-ncurses-file-name
2282 (lambda* (#:key outputs #:allow-other-keys)
2283 (invoke "make" "install"
2284 "-C" "src/ncurses"
2285 "-j" (number->string
2286 (parallel-job-count)))
2287 (let* ((out (assoc-ref outputs "out"))
2288 (dir "src/ncurses")
2289 (files (find-files dir ".scm")))
2290 (substitute* files
2291 (("\"libguile-ncurses\"")
2292 (format #f "\"~a/lib/guile/~a/libguile-ncurses\""
2293 out (target-guile-effective-version))))
2294 #t))))))
2295 (home-page "https://www.gnu.org/software/guile-ncurses/")
2296 (synopsis "Guile bindings to ncurses")
2297 (description
2298 "guile-ncurses provides Guile language bindings for the ncurses
2299 library.")
2300 (license license:lgpl3+)))
2301
2302 (define-public guile2.2-ncurses
2303 (package
2304 (inherit guile-ncurses)
2305 (name "guile2.2-ncurses")
2306 (inputs `(("ncurses" ,ncurses)
2307 ("guile" ,guile-2.2)))))
2308
2309 (define-public guile-ncurses/gpm
2310 (package
2311 (inherit guile-ncurses)
2312 (name "guile-ncurses-with-gpm")
2313 (inputs `(("ncurses" ,ncurses/gpm)
2314 ("guile" ,guile-3.0)))))
2315
2316 (define-public guile-lib
2317 (package
2318 (name "guile-lib")
2319 (version "0.2.7")
2320 (source (origin
2321 (method url-fetch)
2322 (uri (string-append "mirror://savannah/guile-lib/guile-lib-"
2323 version ".tar.gz"))
2324 (sha256
2325 (base32
2326 "1ph4z4a64m75in36pdb4dw63dzdq3hdgh16gq33q460jby23pvz4"))))
2327 (build-system gnu-build-system)
2328 (arguments
2329 '(#:make-flags '("GUILE_AUTO_COMPILE=0") ;placate guild warnings
2330 #:phases
2331 (modify-phases %standard-phases
2332 (add-before 'configure 'patch-module-dir
2333 (lambda _
2334 (substitute* "src/Makefile.in"
2335 (("^moddir = ([[:graph:]]+)")
2336 "moddir = $(datadir)/guile/site/@GUILE_EFFECTIVE_VERSION@\n")
2337 (("^godir = ([[:graph:]]+)")
2338 "godir = \
2339 $(libdir)/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n")))))))
2340 (native-inputs
2341 `(("autoconf" ,autoconf)
2342 ("automake" ,automake)
2343 ("gettext" ,gettext-minimal)
2344 ("guile" ,guile-3.0)
2345 ("pkg-config" ,pkg-config)))
2346 (inputs
2347 `(("guile" ,guile-3.0))) ;for cross-compilation
2348 (home-page "https://www.nongnu.org/guile-lib/")
2349 (synopsis "Collection of useful Guile Scheme modules")
2350 (description
2351 "Guile-Lib is intended as an accumulation place for pure-scheme Guile
2352 modules, allowing for people to cooperate integrating their generic Guile
2353 modules into a coherent library. Think \"a down-scaled, limited-scope CPAN
2354 for Guile\". It provides the following modules:
2355 +@itemize
2356 +@item (apicheck) Describe and verify library programming interfaces.
2357 +@item (config load) Loading configuration files.
2358 +@item (container async-queue) A thread-safe message queue.
2359 +@item (container nodal-tree) A tree consisting of nodes with attributes.
2360 +@item (container delay-tree) A nodal tree with lazily evaluated fields.
2361 +@item (debugging assert) Helpful assert macro.
2362 +@item (debugging time) A simple macro to time the execution of an expression.
2363 +@item (graph topological-sort) Routines to perform topological sorts.
2364 +@item (htmlprag) Neil Van Dyke's permissive (\"pragmatic\") HTML parser.
2365 +@item (io string) SLIB's IO routines dealing with strings.
2366 +@item (logging logger) A flexible logging system.
2367 +@item (logging port-log) A logger that outputs to a port.
2368 +@item (logging rotating-log) A logger that rotates its output files.
2369 +@item (match-bind) Nifty and concise regular expression routines.
2370 +@item (math minima) A golden-section minimum finder.
2371 +@item (math primes) Functions related to prime numbers and factorization.
2372 +@item (os process) Spawning processes and capturing their output.
2373 +@item (scheme documentation) Macros to define different kinds of variables
2374 +with documentation.
2375 +@item (scheme kwargs) Defining functions with flexible keyword arguments.
2376 +@item (search basic) Classic search functions.
2377 +@item (string completion) Building blocks for tab completion.
2378 +@item (string soundex) The SOUNDEX string categorization algorithm.
2379 +@item (string transform) Beyond SRFI-13.
2380 +@item (string wrap) A versatile string formatter.
2381 +@item (term ansi-color) Generate ANSI color escape sequences.
2382 +@item (unit-test) A JUnit-style unit testing framework.
2383 +@end itemize")
2384 ;; The whole is under GPLv3+, but some modules are under laxer
2385 ;; distribution terms such as LGPL and public domain. See `COPYING' for
2386 ;; details.
2387 (license license:gpl3+)))
2388
2389 (define-public guile2.0-lib
2390 (package
2391 (inherit guile-lib)
2392 (name "guile2.0-lib")
2393 (native-inputs
2394 (alist-replace "guile" (list guile-2.0)
2395 (package-native-inputs guile-lib)))
2396 (inputs
2397 (alist-replace "guile" (list guile-2.0)
2398 (package-inputs guile-lib)))))
2399
2400 (define-public guile2.2-lib
2401 (package
2402 (inherit guile-lib)
2403 (name "guile2.2-lib")
2404 (native-inputs
2405 (alist-replace "guile" (list guile-2.2)
2406 (package-native-inputs guile-lib)))
2407 (inputs
2408 (alist-replace "guile" (list guile-2.2)
2409 (package-inputs guile-lib)))))
2410
2411 (define-public guile-minikanren
2412 (package
2413 (name "guile-minikanren")
2414 (version "20150424.e844d85")
2415 (source (origin
2416 (method git-fetch)
2417 (uri (git-reference
2418 (url "https://github.com/ijp/minikanren")
2419 (commit "e844d85512f8c055d3f96143ee506007389a25e3")))
2420 (file-name (string-append name "-" version "-checkout"))
2421 (sha256
2422 (base32
2423 "0r50jlpzi940jlmxyy3ddqqwmj5r12gb4bcv0ssini9v8km13xz6"))))
2424 (build-system guile-build-system)
2425 (native-inputs
2426 `(("guile" ,guile-3.0)))
2427 (home-page "https://github.com/ijp/minikanren")
2428 (synopsis "MiniKanren declarative logic system, packaged for Guile")
2429 (description
2430 "MiniKanren is a relational programming extension to the Scheme
2431 programming Language, written as a smaller version of Kanren suitable for
2432 pedagogical purposes. It is featured in the book, The Reasoned Schemer,
2433 written by Dan Friedman, William Byrd, and Oleg Kiselyov.
2434
2435 This is Ian Price's r6rs packaged version of miniKanren, which deviates
2436 slightly from miniKanren mainline.
2437
2438 See http://minikanren.org/ for more on miniKanren generally.")
2439 (license license:expat)))
2440
2441 (define-public guile2.0-minikanren
2442 (package
2443 (inherit guile-minikanren)
2444 (name "guile2.0-minikanren")
2445 (native-inputs `(("guile" ,guile-2.0)))))
2446
2447 (define-public guile2.2-minikanren
2448 (package
2449 (inherit guile-minikanren)
2450 (name "guile2.2-minikanren")
2451 (native-inputs `(("guile" ,guile-2.2)))))
2452
2453 (define-public guile-irregex
2454 (package
2455 (name "guile-irregex")
2456 (version "0.9.6")
2457 (source (origin
2458 (method url-fetch)
2459 (uri (string-append
2460 "http://synthcode.com/scheme/irregex/irregex-"
2461 version ".tar.gz"))
2462 (sha256
2463 (base32
2464 "1ia3m7dp3lcxa048q0gqbiwwsyvn99baw6xkhb4bhhzn4k7bwyqq"))))
2465 (build-system guile-build-system)
2466 (arguments
2467 '(#:phases (modify-phases %standard-phases
2468 (add-after 'unpack 'move-files-around
2469 (lambda _
2470 ;; Move the relevant source files to src/ and create the
2471 ;; rx/ directory to match the expected module hierarchy.
2472 (mkdir-p "src/rx/source")
2473 (rename-file "irregex-guile.scm"
2474 "src/rx/irregex.scm")
2475 (rename-file "irregex.scm"
2476 "src/rx/source/irregex.scm")
2477 ;; Not really reachable via guile's packaging system,
2478 ;; but nice to have around.
2479 (rename-file "irregex-utils.scm"
2480 "src/rx/source/irregex-utils.scm")
2481 #t)))
2482 #:source-directory "src"))
2483 (native-inputs
2484 `(("guile" ,guile-3.0)))
2485 (home-page "http://synthcode.com/scheme/irregex")
2486 (synopsis "S-expression based regular expressions")
2487 (description
2488 "Irregex is an s-expression based alternative to your classic
2489 string-based regular expressions. It implements SRFI 115 and is deeply
2490 inspired by the SCSH regular expression system.")
2491 (license license:bsd-3)))
2492
2493 (define-public guile2.0-irregex
2494 (package
2495 (inherit guile-irregex)
2496 (name "guile2.0-irregex")
2497 (native-inputs `(("guile" ,guile-2.0)))))
2498
2499 (define-public guile2.2-irregex
2500 (package
2501 (inherit guile-irregex)
2502 (name "guile2.2-irregex")
2503 (native-inputs `(("guile" ,guile-2.2)))))
2504
2505 (define-public haunt
2506 (package
2507 (name "haunt")
2508 (version "0.2.5")
2509 (source (origin
2510 (method url-fetch)
2511 (uri (string-append "https://files.dthompson.us/haunt/haunt-"
2512 version ".tar.gz"))
2513 (sha256
2514 (base32
2515 "1gy45l6m91b3wpdbpd9bpisp00zl8610zs0a2nwmbjlpd2cbf90k"))))
2516 (build-system gnu-build-system)
2517 (arguments
2518 `(#:modules ((ice-9 match) (ice-9 ftw)
2519 ,@%gnu-build-system-modules)
2520 #:tests? #f ; test suite is non-deterministic :(
2521 #:phases (modify-phases %standard-phases
2522 (add-after 'install 'wrap-haunt
2523 (lambda* (#:key inputs outputs #:allow-other-keys)
2524 ;; Wrap the 'haunt' command to refer to the right
2525 ;; modules.
2526 (let* ((out (assoc-ref outputs "out"))
2527 (bin (string-append out "/bin"))
2528 (site (string-append
2529 out "/share/guile/site"))
2530 (guile-reader (assoc-ref inputs "guile-reader"))
2531 (deps `(,@(if guile-reader
2532 (list guile-reader)
2533 '())
2534 ,(assoc-ref inputs "guile-commonmark"))))
2535 (match (scandir site)
2536 (("." ".." version)
2537 (let ((modules (string-append site "/" version))
2538 (compiled-modules (string-append
2539 out "/lib/guile/" version
2540 "/site-ccache")))
2541 (wrap-program (string-append bin "/haunt")
2542 `("GUILE_LOAD_PATH" ":" prefix
2543 (,modules
2544 ,@(map (lambda (dep)
2545 (string-append dep
2546 "/share/guile/site/"
2547 version))
2548 deps)))
2549 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
2550 (,compiled-modules
2551 ,@(map (lambda (dep)
2552 (string-append dep "/lib/guile/"
2553 version
2554 "/site-ccache"))
2555 deps))))
2556 #t)))))))))
2557 (native-inputs
2558 `(("pkg-config" ,pkg-config)
2559 ("texinfo" ,texinfo)))
2560 (inputs
2561 ;; Depend on the latest Guile to avoid bytecode compatibility issues when
2562 ;; using modules built against the latest version.
2563 `(("guile" ,guile-3.0-latest)))
2564 (propagated-inputs
2565 `(("guile-reader" ,guile-reader)
2566 ("guile-commonmark" ,guile-commonmark)))
2567 (synopsis "Functional static site generator")
2568 (description "Haunt is a static site generator written in Guile
2569 Scheme. Haunt features a functional build system and an extensible
2570 interface for reading articles in any format.")
2571 (home-page "https://dthompson.us/projects/haunt.html")
2572 (license license:gpl3+)))
2573
2574 (define-public guile2.2-haunt
2575 (package
2576 (inherit haunt)
2577 (name "guile2.2-haunt")
2578 (inputs `(("guile" ,guile-2.2)))
2579 (propagated-inputs
2580 `(("guile-reader" ,guile2.2-reader)
2581 ("guile-commonmark" ,guile2.2-commonmark)))))
2582
2583 (define-public guile2.0-haunt
2584 (package
2585 (inherit haunt)
2586 (name "guile2.0-haunt")
2587 (inputs `(("guile" ,guile-2.0)))))
2588
2589 (define-public guile-redis
2590 (package
2591 (name "guile-redis")
2592 (version "2.1.1")
2593 (home-page "https://github.com/aconchillo/guile-redis")
2594 (source (origin
2595 (method git-fetch)
2596 (uri (git-reference
2597 (url home-page)
2598 (commit version)))
2599 (file-name (git-file-name name version))
2600 (sha256
2601 (base32
2602 "0pvk4yadgx64wk81cpisdc7zqhk6ww58xi5fs5fs6s28wb6l5bfj"))))
2603 (build-system gnu-build-system)
2604 (arguments
2605 '(#:make-flags '("GUILE_AUTO_COMPILE=0")))
2606 (native-inputs
2607 `(("autoconf" ,autoconf)
2608 ("automake" ,automake)
2609 ("pkg-config" ,pkg-config)
2610 ("guile" ,guile-3.0)))
2611 (synopsis "Redis client library for Guile")
2612 (description "Guile-redis provides a Scheme interface to the Redis
2613 key-value cache and store.")
2614 (license license:lgpl3+)))
2615
2616 (define-public guile2.2-redis
2617 (package
2618 (inherit guile-redis)
2619 (name "guile2.2-redis")
2620 (native-inputs `(("guile" ,guile-2.2)
2621 ,@(alist-delete "guile"
2622 (package-native-inputs guile-redis))))))
2623
2624 (define-public guile2.0-redis
2625 (package
2626 (inherit guile-redis)
2627 (name "guile2.0-redis")
2628 (arguments
2629 `(#:phases
2630 (modify-phases %standard-phases
2631 (add-after 'unpack 'patch-source
2632 (lambda _
2633 ;; put-string is in (rnrs io ports) in guile2.0,
2634 ;; not in (ice-9 textual-ports)
2635 (substitute* "redis/utils.scm"
2636 (("\\(ice-9 textual-ports\\)")
2637 "(rnrs io ports)"))
2638 #t)))
2639 ,@(package-arguments guile-redis)))
2640 (native-inputs `(("guile" ,guile-2.0)
2641 ,@(alist-delete "guile"
2642 (package-native-inputs guile-redis))))))
2643
2644 (define-public guile-commonmark
2645 (package
2646 (name "guile-commonmark")
2647 (version "0.1.2")
2648 (source (origin
2649 (method url-fetch)
2650 (uri (string-append "https://github.com/OrangeShark/" name
2651 "/releases/download/v" version
2652 "/" name "-" version ".tar.gz"))
2653 (sha256
2654 (base32
2655 "17lrsdisa3kckh24q114vfmzdc4wkqa6ccwl4hdlrng5wpn1iman"))
2656 (modules '((guix build utils)))
2657 (snippet
2658 '(begin
2659 ;; Allow builds with Guile 3.0.
2660 (substitute* "configure"
2661 (("2\\.2 2\\.0")
2662 "3.0 2.2 2.0"))
2663 #t))))
2664 (build-system gnu-build-system)
2665 ;; The tests throw exceptions with Guile 3.0.5, because they evaluate
2666 ;; (exit ...).
2667 ;;
2668 ;; This has been fixed upstream, but there has not been a new release
2669 ;; containing this change.
2670 (arguments
2671 '(#:phases
2672 (modify-phases %standard-phases
2673 (add-after 'unpack 'fix-tests-when-building-with-guile-3.0.5
2674 (lambda _
2675 (substitute* (find-files "tests" "\\.scm$")
2676 (("\\(exit.*") ""))
2677 #t)))))
2678 (inputs
2679 `(("guile" ,guile-3.0)))
2680 (native-inputs
2681 `(("pkg-config" ,pkg-config)))
2682 (synopsis "CommonMark parser for Guile")
2683 (description
2684 "guile-commonmark is a library for parsing CommonMark, a fully specified
2685 variant of Markdown. The library is written in Guile Scheme and is designed
2686 to transform a CommonMark document to SXML. guile-commonmark tries to closely
2687 follow the @uref{http://commonmark.org/, CommonMark spec}, the main difference
2688 is no support for parsing block and inline level HTML.")
2689 (home-page "https://github.com/OrangeShark/guile-commonmark")
2690 (license license:lgpl3+)))
2691
2692 (define-public guile2.2-commonmark
2693 (package
2694 (inherit guile-commonmark)
2695 (name "guile2.2-commonmark")
2696 (inputs `(("guile" ,guile-2.2)))))
2697
2698 (define-public guile2.0-commonmark
2699 (package
2700 (inherit guile-commonmark)
2701 (name "guile2.0-commonmark")
2702 (inputs `(("guile" ,guile-2.0)))))
2703
2704 (define-public mcron
2705 (package
2706 (name "mcron")
2707 (version "1.2.1")
2708 (source (origin
2709 (method url-fetch)
2710 (uri (string-append "mirror://gnu/mcron/mcron-"
2711 version ".tar.gz"))
2712 (sha256
2713 (base32
2714 "0bkn235g2ia4f7ispr9d55c7bc18282r3qd8ldhh5q2kiin75zi0"))))
2715 (build-system gnu-build-system)
2716 (arguments
2717 '(#:phases (modify-phases %standard-phases
2718 (add-before 'check 'adjust-tests
2719 (lambda _
2720 (substitute* "tests/job-specifier.scm"
2721 ;; (getpw) fails with "entry not found" in the build
2722 ;; environment, so pass an argument.
2723 (("\\(getpw\\)")
2724 "(getpwnam (getuid))")
2725 ;; The build environment lacks an entry for root in
2726 ;; /etc/passwd.
2727 (("\\(getpw 0\\)")
2728 "(getpwnam \"nobody\")")
2729
2730 ;; FIXME: Skip the 4 faulty tests (see above).
2731 (("\\(test-equal \"next-year\"" all)
2732 (string-append "(test-skip 4)\n" all)))
2733 #t)))))
2734 (native-inputs `(("pkg-config" ,pkg-config)
2735 ("tzdata" ,tzdata-for-tests)
2736 ("guile-native" ;for 'guild compile'
2737 ,@(assoc-ref (package-inputs this-package) "guile"))))
2738 (inputs `(("guile" ,guile-3.0)))
2739 (home-page "https://www.gnu.org/software/mcron/")
2740 (synopsis "Run jobs at scheduled times")
2741 (description
2742 "GNU Mcron is a complete replacement for Vixie cron. It is used to run
2743 tasks on a schedule, such as every hour or every Monday. Mcron is written in
2744 Guile, so its configuration can be written in Scheme; the original cron
2745 format is also supported.")
2746 (license license:gpl3+)))
2747
2748 (define-public guile2.2-mcron
2749 (package
2750 (inherit mcron)
2751 (name "guile2.2-mcron")
2752 (inputs `(("guile" ,guile-2.2)))))
2753
2754 (define-public guile-picture-language
2755 (let ((commit "a1322bf11945465241ca5b742a70893f24156d12")
2756 (revision "5"))
2757 (package
2758 (name "guile-picture-language")
2759 (version (git-version "0.0.1" revision commit))
2760 (source (origin
2761 (method git-fetch)
2762 (uri (git-reference
2763 (url "https://git.elephly.net/software/guile-picture-language.git")
2764 (commit commit)))
2765 (file-name (git-file-name name version))
2766 (sha256
2767 (base32
2768 "03i528z92ainccgm28shg4haxiav5x4cyhyi5dggq1rm027vbm99"))))
2769 (build-system gnu-build-system)
2770 (inputs
2771 `(("guile" ,guile-3.0)))
2772 (propagated-inputs
2773 `(("guile-cairo" ,guile-cairo)
2774 ("guile-rsvg" ,guile-rsvg)))
2775 (native-inputs
2776 `(("autoconf" ,autoconf)
2777 ("automake" ,automake)
2778 ("librsvg" ,librsvg)
2779 ("pkg-config" ,pkg-config)
2780 ("texinfo" ,texinfo)))
2781 (home-page "https://git.elephly.net/software/guile-picture-language.git")
2782 (synopsis "Picture language for Guile")
2783 (description
2784 "This package provides a simple SVG-based picture language for Guile.
2785 The picture values can directly be displayed in Geiser.")
2786 ;; (pict base64) is under GPLv3+, the rest is under LGPLv3+
2787 (license (list license:lgpl3+
2788 license:gpl3+)))))
2789
2790 (define-public guile2.2-picture-language
2791 (package
2792 (inherit guile-picture-language)
2793 (name "guile2.2-picture-language")
2794 (inputs `(("guile" ,guile-2.2)))
2795 (propagated-inputs
2796 `(("guile-cairo" ,guile2.2-cairo)
2797 ("guile-rsvg" ,guile2.2-rsvg)))))
2798
2799 (define-public guile-studio
2800 (let ((commit "dd0ad42e51feafebda7cc29afe7c8bc7a182a842")
2801 (revision "1"))
2802 (package
2803 (name "guile-studio")
2804 (version (git-version "0.1.1" revision commit))
2805 (source (origin
2806 (method git-fetch)
2807 (uri (git-reference
2808 (url "https://git.elephly.net/software/guile-studio.git")
2809 (commit commit)))
2810 (file-name (git-file-name name version))
2811 (sha256
2812 (base32
2813 "1cpqilly8dqmai1qsgjxy99zs34sfz95zwxhzx979wryqb69vi0q"))))
2814 (build-system gnu-build-system)
2815 (arguments
2816 `(#:modules
2817 ((ice-9 match)
2818 (srfi srfi-1)
2819 ,@%gnu-build-system-modules)
2820 #:tests? #f ; there are none
2821 #:make-flags
2822 (list (string-append "PICT_DIR="
2823 (assoc-ref %build-inputs "guile-picture-language"))
2824 (string-append "EMACS_DIR="
2825 (assoc-ref %build-inputs "emacs"))
2826 (string-append "GUILE_DIR="
2827 (assoc-ref %build-inputs "guile"))
2828 (string-join (cons "INPUTS="
2829 (filter-map
2830 (lambda (input)
2831 (match input
2832 ((label . pkg)
2833 (and (string-prefix? "emacs" label) pkg))))
2834 %build-inputs)))
2835 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2836 #:phases
2837 (modify-phases %standard-phases
2838 (delete 'configure)
2839 (delete 'install))))
2840 (inputs
2841 `(("guile" ,guile-3.0)
2842 ("guile-picture-language" ,guile-picture-language)
2843 ("emacs" ,emacs)
2844 ("emacs-f" ,emacs-f) ; needed by doom-modeline
2845 ("emacs-memoize" ,emacs-memoize) ; needed by all-the-icons
2846 ("emacs-all-the-icons" ,emacs-all-the-icons) ; needed by doom-modeline
2847 ("emacs-all-the-icons-dired" ,emacs-all-the-icons-dired)
2848 ("emacs-dired-sidebar" ,emacs-dired-sidebar)
2849 ("emacs-doom-modeline" ,emacs-doom-modeline)
2850 ("emacs-modus-themes" ,emacs-modus-themes)
2851 ("emacs-geiser" ,emacs-geiser)
2852 ("emacs-geiser-guile" ,emacs-geiser-guile)
2853 ("emacs-company" ,emacs-company)
2854 ("emacs-ivy" ,emacs-ivy)
2855 ("emacs-flycheck" ,emacs-flycheck)
2856 ("emacs-flycheck-guile" ,emacs-flycheck-guile)
2857 ("emacs-paren-face" ,emacs-paren-face)))
2858 (native-inputs
2859 `(("texinfo" ,texinfo)))
2860 (home-page "https://gnu.org/software/guile")
2861 (synopsis "IDE for Guile")
2862 (description
2863 "This is Emacs with a few settings that make working with Guile easier
2864 for people new to Emacs. Features include: CUA mode, Geiser, tool bar icons
2865 to evaluate Guile buffers, support for Guile's very own picture language, code
2866 completion, a simple mode line, etc.")
2867 (license license:gpl3+))))
2868
2869 (define-public guile-stis-parser
2870 (package
2871 (name "guile-stis-parser")
2872 (version "1.2.4.1")
2873 (source (origin
2874 (method git-fetch)
2875 (uri (git-reference
2876 (url "https://gitlab.com/tampe/stis-parser")
2877 (commit (string-append "v" version))))
2878 (file-name (git-file-name name version))
2879 (sha256
2880 (base32
2881 "1fvxdfvc80zqhwzq5x3kxyr6j8p4b51yx85fx1gr3d4gy2ddpx5w"))))
2882 (build-system gnu-build-system)
2883 (arguments
2884 `(#:parallel-build? #f ; not supported
2885 #:phases
2886 (modify-phases %standard-phases
2887 (add-after 'unpack 'chdir
2888 (lambda _ (chdir "modules") #t))
2889 (add-after 'chdir 'delete-broken-symlink
2890 (lambda _
2891 (delete-file "parser/stis-parser/lang/.#calc.scm")
2892 #t)))))
2893 (inputs
2894 `(("guile" ,guile-3.0)))
2895 (native-inputs
2896 `(("autoconf" ,autoconf)
2897 ("automake" ,automake)
2898 ("pkg-config" ,pkg-config)))
2899 (home-page "https://gitlab.com/tampe/stis-parser")
2900 (synopsis "Parser combinator framework")
2901 (description
2902 "This package provides a functional parser combinator library that
2903 supports backtracking and a small logical framework. The idea is to build up
2904 chunks that are memoized and there is no clear scanner/parser separation,
2905 chunks can be expressions as well as simple tokens.")
2906 (license license:lgpl2.0+)))
2907
2908 (define-public guile-persist
2909 (package
2910 (name "guile-persist")
2911 (version "1.2.3")
2912 (source (origin
2913 (method git-fetch)
2914 (uri (git-reference
2915 (url "https://gitlab.com/tampe/guile-persist")
2916 (commit (string-append "v" version))))
2917 (file-name (git-file-name name version))
2918 (sha256
2919 (base32
2920 "19f8hqcax4v40858kx2j8fy1cvzc2djj99r0n17dy1xxmwa097qi"))))
2921 (build-system gnu-build-system)
2922 (arguments
2923 `(#:phases
2924 (modify-phases %standard-phases
2925 (add-after 'unpack 'patch-prefix
2926 (lambda* (#:key inputs outputs #:allow-other-keys)
2927 (substitute* "src/Makefile.am"
2928 (("/usr/local/lib/guile")
2929 (string-append (assoc-ref outputs "out") "/lib/guile"))
2930 (("/usr/local/include/guile")
2931 (string-append (assoc-ref inputs "guile") "/include/guile"))
2932 (("-L/usr/local/lib")
2933 (string-append "-L" (assoc-ref inputs "guile") "/lib")))
2934 #t))
2935 (add-after 'unpack 'patch-library-reference
2936 (lambda* (#:key outputs #:allow-other-keys)
2937 (let ((out (assoc-ref outputs "out")))
2938 (substitute* "persist/persistance.scm"
2939 (("\"libguile-persist\"")
2940 (format #f "\"~a/lib/guile/3.0/extensions/libguile-persist\"" out)))
2941 #t))))))
2942 (inputs
2943 `(("guile" ,guile-3.0)))
2944 (native-inputs
2945 `(("autoconf" ,autoconf)
2946 ("automake" ,automake)
2947 ("libtool" ,libtool)
2948 ("pkg-config" ,pkg-config)))
2949 (home-page "https://gitlab.com/tampe/guile-persist")
2950 (synopsis "Persistence programming framework for Guile")
2951 (description
2952 "This is a serialization library for serializing objects like classes
2953 and objects, closures and structs. This currently does not support
2954 serializing continuations or delimited continuations.")
2955 (license license:lgpl2.0+)))
2956
2957 (define-public python-on-guile
2958 (package
2959 (name "python-on-guile")
2960 (version "1.2.3.5")
2961 (home-page "https://gitlab.com/python-on-guile/python-on-guile")
2962 (source (origin
2963 (method git-fetch)
2964 (uri (git-reference (url home-page)
2965 (commit (string-append "v" version))))
2966 (file-name (git-file-name name version))
2967 (sha256
2968 (base32
2969 "05xrvcj6a4gzq1ybyin270qz8wamgc7w2skyi9iy6hkpgdhxy8vf"))))
2970 (build-system gnu-build-system)
2971 (arguments
2972 `(#:parallel-build? #f ;not supported
2973 #:make-flags '("GUILE_AUTO_COMPILE=0") ;to prevent guild warnings
2974 #:phases
2975 (modify-phases %standard-phases
2976 (add-after 'unpack 'chdir
2977 (lambda _ (chdir "modules") #t))
2978 (add-after 'chdir 'augment-GUILE_LOAD_PATH
2979 (lambda _
2980 ;; TODO: It would be better to patch the Makefile.
2981 (setenv "GUILE_LOAD_PATH"
2982 (string-append ".:"
2983 (getenv "GUILE_LOAD_PATH")))
2984 #t))
2985 (add-after 'install 'wrap
2986 (lambda* (#:key outputs #:allow-other-keys)
2987 ;; Wrap the 'python' executable so it can find its
2988 ;; dependencies and own modules.
2989 (let* ((out (assoc-ref outputs "out"))
2990 (guile-version ,(version-major+minor
2991 (package-version guile-3.0)))
2992 (scm (string-append out "/share/guile/site/"
2993 guile-version))
2994 (ccache (string-append out "/lib/guile/" guile-version
2995 "/site-ccache"))
2996 (load-path (string-join
2997 (cons scm
2998 ;; XXX: cdr because we augment it above.
2999 (cdr (string-split
3000 (getenv "GUILE_LOAD_PATH") #\:)))
3001 ":"))
3002 (compiled-path (string-append
3003 ccache ":"
3004 (getenv "GUILE_LOAD_COMPILED_PATH"))))
3005 (wrap-program (string-append out "/bin/python")
3006 `("GUILE_LOAD_PATH" ":" prefix
3007 (,load-path))
3008 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
3009 (,compiled-path)))
3010 #t))))))
3011 (inputs
3012 `(("guile" ,guile-3.0)
3013 ("guile-persist" ,guile-persist)
3014 ("guile-readline" ,guile-readline)
3015 ("guile-stis-parser" ,guile-stis-parser)))
3016 (native-inputs
3017 `(("autoconf" ,autoconf)
3018 ("automake" ,automake)
3019 ("libtool" ,libtool)
3020 ("pkg-config" ,pkg-config)))
3021 (synopsis "Python implementation in Guile")
3022 (description
3023 "This package allows you to compile a Guile Python file to any target
3024 from @code{tree-il}.")
3025 (license license:lgpl2.0+)))
3026
3027 (define-public guile-file-names
3028 (package
3029 (name "guile-file-names")
3030 (version "0.3")
3031 (source (origin
3032 (method url-fetch)
3033 (uri (string-append "http://brandon.invergo.net/software/download/"
3034 "guile-file-names/guile-file-names-"
3035 version ".tar.gz"))
3036 (sha256
3037 (base32
3038 "01chizdxkhw6aqv629vxka9f5x3534ij7r0jqndawsg2vxm1r9sz"))))
3039 (build-system gnu-build-system)
3040 (arguments
3041 `(#:phases
3042 (modify-phases %standard-phases
3043 (add-after 'unpack 'fix-target-directory
3044 (lambda _
3045 (substitute* "src/Makefile.in"
3046 (("guilemoddir = \\$\\(GUILE_SITE\\)")
3047 "guilemoddir = $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
3048 #t)))))
3049 (inputs
3050 `(("guile" ,guile-2.2)))
3051 (native-inputs
3052 `(("pkg-config" ,pkg-config)))
3053 (home-page "https://gitlab.com/brandoninvergo/guile-file-names")
3054 (synopsis "Manipulate file names")
3055 (description
3056 "The @code{(file-names)} module provides tools for manipulating file
3057 names. The module was built on the idea that doing anything more than a
3058 non-trivial modification of a file name string is a pain (making sure all
3059 slashes are present and accounted for, resolving @code{.} and @code{..}, etc).
3060 Inevitably, you have to break the string up into chunks and operate on that
3061 list of components. This module takes care of that for you.")
3062 (license license:lgpl3+)))
3063
3064 (define-public guile-gi
3065 (package
3066 (name "guile-gi")
3067 (version "0.3.1")
3068 (source (origin
3069 (method url-fetch)
3070 (uri (string-append "http://lonelycactus.com/tarball/guile_gi-"
3071 version ".tar.gz"))
3072 (sha256
3073 (base32
3074 "1ljcfyar1nb6h4jskxnnzrcxcsblawc50qqfdn8cax3zqfskmvzj"))))
3075 (build-system glib-or-gtk-build-system)
3076 (arguments
3077 `(#:configure-flags '("--with-gnu-filesystem-hierarchy")
3078 #:modules ((guix build glib-or-gtk-build-system)
3079 (guix build utils)
3080 (ice-9 popen)
3081 (ice-9 rdelim))
3082 #:phases
3083 (modify-phases %standard-phases
3084 (add-after 'unpack 'remove-dotted-circle-from-combining-character
3085 ;; The test/string.scm files contain ◌̀, which is a dotted circle
3086 ;; (U+25cc) followed by an upper combining character (U+0300). The
3087 ;; old guile 3.0.2 reader incorrectly ignores the dotted circle,
3088 ;; and parses it as the combining character alone, but the new
3089 ;; guile reader does not.
3090 ;; See https://github.com/spk121/guile-gi/issues/112
3091 (lambda* _
3092 (substitute* "test/string.scm"
3093 (("#\\\\◌̀") "#\\x0300"))))
3094 (add-after 'unpack 'patch-references-to-extension
3095 (lambda* (#:key outputs #:allow-other-keys)
3096 (let ((effective (read-line
3097 (open-pipe* OPEN_READ
3098 "guile" "-c"
3099 "(display (effective-version))"))))
3100 (substitute* (find-files "module" ".*\\.scm")
3101 (("\\(load-extension \"libguile-gi\" \"(.*)\"\\)" m arg)
3102 (format #f "~s"
3103 `(load-extension
3104 (format #f "~alibguile-gi"
3105 (if (getenv "GUILE_GI_UNINSTALLED")
3106 ""
3107 ,(format #f "~a/lib/guile/~a/extensions/"
3108 (assoc-ref outputs "out")
3109 effective)))
3110 ,arg)))))
3111 (setenv "GUILE_GI_UNINSTALLED" "1")
3112 #t))
3113 (add-before 'check 'start-xorg-server
3114 (lambda* (#:key inputs #:allow-other-keys)
3115 ;; The init_check test requires a running X server.
3116 (system (format #f "~a/bin/Xvfb :1 &"
3117 (assoc-ref inputs "xorg-server")))
3118 (setenv "DISPLAY" ":1")
3119 #t)))))
3120 (native-inputs
3121 `(("gettext" ,gettext-minimal)
3122 ("glib:bin" ,glib "bin") ; for glib-compile-resources
3123 ("libtool" ,libtool)
3124 ("pkg-config" ,pkg-config)
3125 ("xorg-server" ,xorg-server)))
3126 (propagated-inputs
3127 `(("glib" ,glib)
3128 ("gobject-introspection" ,gobject-introspection)
3129 ("gssettings-desktop-schemas" ,gsettings-desktop-schemas)
3130 ("gtk+" ,gtk+)
3131 ("guile-lib" ,guile-lib)
3132 ("webkitgtk" ,webkitgtk)))
3133 (inputs `(("guile" ,guile-3.0)))
3134 (home-page "https://github.com/spk121/guile-gi")
3135 (synopsis "GObject bindings for Guile")
3136 (description
3137 "Guile-GI is a library for Guile that allows using GObject-based
3138 libraries, such as GTK+3. Its README comes with the disclaimer: This is
3139 pre-alpha code.")
3140 (license license:gpl3+)))
3141
3142 (define-public guile2.2-gi
3143 (package
3144 (inherit guile-gi)
3145 (name "guile2.2-gi")
3146 (inputs
3147 `(("guile" ,guile-2.2)
3148 ,@(alist-delete "guile" (package-inputs guile-gi))))))
3149
3150 (define-public guile-srfi-89
3151 (package
3152 (name "guile-srfi-89")
3153 (version "0.0.1")
3154 (source
3155 (origin
3156 (method git-fetch)
3157 (uri (git-reference
3158 (url "https://gitlab.com/mjbecze/guile-srfi-89.git")
3159 (commit version)))
3160 (sha256
3161 (base32
3162 "1981c0rrzxqx3md9jx8ir7j3m2mzg9m72b33p5jvw36zirbzpl20"))
3163 (file-name (git-file-name name version))))
3164 (build-system guile-build-system)
3165 (native-inputs
3166 `(("guile" ,guile-3.0)))
3167 (home-page "https://gitlab.com/mjbecze/guile-srfi-89")
3168 (synopsis "Hygienic implementation of SRFI-89 for Guile")
3169 (description
3170 "This package provides SRFI-89 optional positional and named
3171 parameters, which define* and lambda* special forms")
3172 (license license:gpl3+)))
3173
3174 (define-public guile-srfi-145
3175 (package
3176 (name "guile-srfi-145")
3177 (version "0.0.1")
3178 (source
3179 (origin
3180 (method git-fetch)
3181 (uri (git-reference
3182 (url "https://gitlab.com/mjbecze/guile-srfi-145.git")
3183 (commit version)))
3184 (sha256
3185 (base32
3186 "1gssa8cmcp8640fil9z8dpil8v5l279wlalqjcx3fls5jwv13q1b"))
3187 (file-name (git-file-name name version))))
3188 (build-system guile-build-system)
3189 (native-inputs
3190 `(("guile" ,guile-3.0)))
3191 (home-page "https://gitlab.com/mjbecze/guile-srfi-145")
3192 (synopsis "SRFI-145 port for Guile")
3193 (description
3194 "This package provides SRFI-145. This provides the means to
3195 denote the invalidity of certain code paths in a Scheme program.")
3196 (license license:gpl3+)))
3197
3198 (define-public guile-srfi-158
3199 (package
3200 (name "guile-srfi-158")
3201 (version "0.0.1")
3202 (source
3203 (origin
3204 (method git-fetch)
3205 (uri (git-reference
3206 (url "https://gitlab.com/mjbecze/guile-srfi-158.git")
3207 (commit version)))
3208 (sha256
3209 (base32
3210 "0b8hlv1bldbcwkcxi9y8mm6xp5gbgpg7b15bwqxv70iynl9d9a7c"))
3211 (file-name (git-file-name name version))))
3212 (build-system gnu-build-system)
3213 (native-inputs
3214 `(("autoconf" ,autoconf)
3215 ("automake" ,automake)
3216 ("pkg-config" ,pkg-config)))
3217 (inputs
3218 `(("guile" ,guile-3.0)))
3219 (home-page "https://gitlab.com/samplet/guile-srfi-158")
3220 (synopsis "SRFI 158 (Generators and Accumulators) for Guile")
3221 (description "This package provides an implementation of SRFI 158
3222 for Guile. SRFI 158 defines utility procedures that create,
3223 transform, and consume generators. It also defines procedures that
3224 return accumulators. It is implemented by wrapping the sample
3225 implementation in a thin Guile compatibility layer.")
3226 (license license:gpl3+)))
3227
3228 (define-public guile-srfi-159
3229 (let ((commit "1bd98abda2ae4ef8f36761a167903e55c6bda7bb")
3230 (revision "0"))
3231 (package
3232 (name "guile-srfi-159")
3233 (version (git-version "0" revision commit))
3234 (home-page "https://bitbucket.org/bjoli/guile-srfi-159")
3235 (source (origin
3236 (method hg-fetch)
3237 (uri (hg-reference (changeset commit)
3238 (url home-page)))
3239 (sha256
3240 (base32
3241 "1zw6cmcy7xdbfiz3nz9arqnn7l2daidaps6ixkcrc9b6k51fdv3p"))
3242 (file-name (git-file-name name version))))
3243 (build-system guile-build-system)
3244 (arguments
3245 ;; The *-impl.scm files are actually included from module files; they
3246 ;; should not be compiled separately, but they must be installed.
3247 '(#:not-compiled-file-regexp "-impl\\.scm$"))
3248 (inputs
3249 `(("guile" ,guile-2.2)))
3250 (synopsis "Formatting combinators for Guile")
3251 (description
3252 "The @code{(srfi-159)} module and its sub-modules implement the
3253 formatting combinators specified by
3254 @uref{https://srfi.schemers.org/srfi-159/srfi-159.html, SRFI-159}. These are
3255 more expressive and flexible than the traditional @code{format} procedure.")
3256 (license license:bsd-3))))
3257
3258 (define-public guile-srfi-180
3259 (let ((commit "9188bf9724c6d320ef804579d222e855b007b193")
3260 (revision "0"))
3261 (package
3262 (name "guile-srfi-180")
3263 (version (git-version "0" revision commit))
3264 (source
3265 (origin
3266 (method git-fetch)
3267 (uri (git-reference
3268 (url "https://github.com/scheme-requests-for-implementation/srfi-180")
3269 (commit commit)))
3270 (sha256
3271 (base32
3272 "08lf70rsak8mwfij55xc37pg9zg7c87fizmhz7ln46skzj68sl3y"))
3273 (modules '((guix build utils)))
3274 (snippet
3275 '(begin
3276 (delete-file-recursively "srfi/files")
3277 (delete-file "srfi/run-r7rs-checks.guile.scm")
3278 (delete-file "srfi/run-r7rs-checks.scm")
3279 (delete-file "srfi/check.scm")
3280 #t))
3281 (file-name (git-file-name name version))))
3282 (build-system guile-build-system)
3283 (arguments
3284 '(#:not-compiled-file-regexp "body\\.scm$"))
3285 (native-inputs
3286 `(("guile" ,guile-3.0)))
3287 (propagated-inputs
3288 `(("guile-srfi-145" ,guile-srfi-145)))
3289 (home-page "https://srfi.schemers.org/srfi-180/")
3290 (synopsis "JSON parser and printer for Guile")
3291 (description
3292 "This library implements a JavaScript Object Notation (JSON) parser and printer.
3293 It also supports parsing JSON objects that may be bigger than memory with a streaming
3294 API.")
3295 (license license:expat))))
3296
3297 (define-public emacsy
3298 (package
3299 (name "emacsy")
3300 (version "0.4.1")
3301 (source (origin
3302 (method url-fetch)
3303 (uri (string-append "mirror://savannah/emacsy/emacsy-"
3304 version ".tar.gz"))
3305 (sha256
3306 (base32
3307 "1cpb85dl1nibd34c2x2h7vfmjpkgh353p5b1w20v6cs6gmvgg4np"))
3308 (modules '((guix build utils)))
3309 (snippet
3310 '(begin
3311 (substitute* "configure"
3312 ;; Allow builds with Guile 3.0.
3313 (("2\\.2 2\\.0")
3314 "3.0 2.2 2.0")
3315
3316 ;; Freeglut 3.2 provides 'glut.pc', not 'freeglut.pc'.
3317 (("freeglut >= ")
3318 "glut >= "))
3319
3320 (substitute* '("emacsy/emacsy.c"
3321 "example/hello-emacsy.c")
3322 (("#include <libguile\\.h>")
3323 (string-append "#include <stdlib.h>\n"
3324 "#include <stdio.h>\n"
3325 "#include <string.h>\n"
3326 "#include <unistd.h>\n"
3327 "#include <libguile.h>\n")))))))
3328 (build-system gnu-build-system)
3329 (native-inputs
3330 `(("bzip2" ,bzip2)
3331 ("guile" ,guile-3.0)
3332 ("gettext" ,gettext-minimal)
3333 ("libtool" ,libtool)
3334 ("perl" ,perl)
3335 ("pkg-config" ,pkg-config)
3336 ("texinfo" ,texinfo)
3337 ("texlive" ,(texlive-union (list texlive-generic-epsf)))))
3338 (inputs
3339 `(("dbus-glib" ,dbus-glib)
3340 ("guile" ,guile-3.0)
3341 ("guile-lib" ,guile-lib)
3342 ("guile-readline" ,guile-readline)
3343 ("freeglut" ,freeglut)
3344 ("webkitgtk" ,webkitgtk)))
3345 (propagated-inputs
3346 `(("glib-networking" ,glib-networking)
3347 ("gssettings-desktop-schemas" ,gsettings-desktop-schemas)))
3348 (arguments
3349 `(#:modules ((guix build gnu-build-system)
3350 (guix build utils)
3351 (ice-9 popen)
3352 (ice-9 rdelim)
3353 (ice-9 regex)
3354 (ice-9 ftw)
3355 (srfi srfi-26))
3356 #:phases
3357 (modify-phases %standard-phases
3358 (add-before 'configure 'setenv
3359 (lambda _
3360 (setenv "GUILE_AUTO_COMPILE" "0")
3361 #t))
3362 (add-after 'install 'wrap-binaries
3363 (lambda* (#:key inputs outputs #:allow-other-keys)
3364 (let* ((out (assoc-ref outputs "out"))
3365 (effective (read-line
3366 (open-pipe* OPEN_READ
3367 "guile" "-c"
3368 "(display (effective-version))")))
3369 (deps (map (cut assoc-ref inputs <>)
3370 '("guile-lib" "guile-readline")))
3371 (scm-path (map (cut string-append <> "/share/guile/site/"
3372 effective) `(,out ,@deps)))
3373 (go-path (map (cut string-append <> "/lib/guile/" effective
3374 "/site-ccache/") `(,out ,@deps)))
3375 (examples (filter (cut string-match "emacsy" <>)
3376 (scandir (string-append out "/bin/"))))
3377 (progs (map (cut string-append out "/bin/" <>)
3378 examples)))
3379 (map (cut wrap-program <>
3380 `("GUILE_LOAD_PATH" ":" prefix ,scm-path)
3381 `("GUILE_LOAD_COMPILED_PATH" ":" prefix ,go-path))
3382 progs)
3383 #t))))))
3384 (home-page "https://savannah.nongnu.org/projects/emacsy")
3385 (synopsis "Embeddable GNU Emacs-like library using Guile")
3386 (description
3387 "Emacsy is an embeddable Emacs-like library that uses GNU Guile
3388 as extension language. Emacsy can give a C program an Emacsy feel with
3389 keymaps, minibuffer, recordable macros, history, tab completion, major
3390 and minor modes, etc., and can also be used as a pure Guile library. It
3391 comes with a simple counter example using FreeGLUT and browser examples
3392 in C using Gtk+-3 and WebKitGtk.")
3393 (license license:gpl3+)))
3394
3395 (define-public emacsy-minimal
3396 (let ((commit "v0.4.1-37-g5f91ee6"))
3397 (package
3398 (inherit emacsy)
3399 (name "emacsy-minimal")
3400 (version (string-drop commit 1))
3401 (source
3402 (origin
3403 (method git-fetch)
3404 (uri (git-reference
3405 (url "https://git.savannah.gnu.org/git/emacsy.git")
3406 (commit commit)))
3407 (file-name (git-file-name name version))
3408 (sha256
3409 (base32 "03ym14g9qhjqmryr5z065kynqm8yhmvnbs2djl6vp3i9cmqln8cl"))))
3410 (build-system gnu-build-system)
3411 (native-inputs
3412 `(("autoconf" ,autoconf)
3413 ("automake" ,automake)
3414 ("gettext" ,gettext-minimal)
3415 ("libtool" ,libtool)
3416 ("makeinfo" ,texinfo)
3417 ("pkg-config" ,pkg-config)))
3418 (inputs
3419 `(("guile" ,guile-2.2)
3420 ("guile-lib" ,guile2.2-lib)
3421 ("guile-readline" ,guile2.2-readline)))
3422 (propagated-inputs '())
3423 (arguments
3424 `(#:configure-flags '("--without-examples")
3425 #:phases
3426 (modify-phases %standard-phases
3427 (add-before 'configure 'setenv
3428 (lambda _
3429 (setenv "GUILE_AUTO_COMPILE" "0")
3430 #t))))))))
3431
3432 (define-public guile-jpeg
3433 (let ((commit "6a1673578b297c2c1b28e44a76bd5c49e76a5046")
3434 (revision "0"))
3435 (package
3436 (name "guile-jpeg")
3437 (version (git-version "0.0" revision commit))
3438 (home-page "https://gitlab.com/wingo/guile-jpeg")
3439 (source (origin
3440 (method git-fetch)
3441 (uri (git-reference (url home-page)
3442 (commit commit)))
3443 (sha256
3444 (base32
3445 "05z9m408w3h6aqb5k3r3qa7khir0k10rxwvsrzhkcq1hr5vbmr4m"))
3446 (file-name (git-file-name name version))
3447 (modules '((guix build utils)))
3448 (snippet
3449 '(begin
3450 ;; Install .go files in the right place.
3451 (substitute* "Makefile.am"
3452 (("/ccache") "/site-ccache"))
3453 #t))))
3454 (build-system gnu-build-system)
3455 (native-inputs
3456 `(("autoconf" ,autoconf)
3457 ("automake" ,automake)
3458 ("pkg-config" ,pkg-config)
3459 ("guile" ,guile-2.2)))
3460 (synopsis "JPEG file parsing library for Guile")
3461 (description
3462 "Guile-JPEG is a Scheme library to parse JPEG image files and to
3463 perform geometrical transforms on JPEG images.")
3464 (license license:gpl3+))))
3465
3466 (define-public nomad
3467 (package
3468 (name "nomad")
3469 (version "0.2.0-alpha-199-g3e7a475")
3470 (source (origin
3471 (method git-fetch)
3472 (uri (git-reference
3473 (url "https://git.savannah.gnu.org/git/nomad.git/")
3474 (commit version)))
3475 (file-name (git-file-name name version))
3476 (sha256
3477 (base32
3478 "0p0ha6prp7pyadp61clbhc6b55023vxzfwy14j2qygb2mkq7fhic"))))
3479 (build-system gnu-build-system)
3480 (native-inputs
3481 `(("autoconf" ,autoconf)
3482 ("automake" ,automake)
3483 ("bash" ,bash)
3484 ("pkg-config" ,pkg-config)
3485 ("libtool" ,libtool)
3486 ("guile" ,guile-2.2)
3487 ("glib:bin" ,glib "bin")
3488 ("texinfo" ,texinfo)
3489 ("gettext" ,gettext-minimal)
3490 ("perl" ,perl)))
3491 (inputs
3492 `(;; Guile
3493 ("guile" ,guile-2.2)
3494 ("guile-lib" ,guile2.2-lib)
3495 ("guile-readline" ,guile2.2-readline)
3496 ("guile-gcrypt" ,guile2.2-gcrypt)
3497 ("gnutls" ,gnutls)
3498 ("g-golf" ,g-golf)
3499 ("shroud" ,shroud)
3500 ("emacsy" ,emacsy-minimal)
3501 ;; Gtk
3502 ("glib" ,glib)
3503 ("dbus-glib" ,dbus-glib)
3504 ("glib-networking" ,glib-networking)
3505 ("gtk+" ,gtk+)
3506 ("gtk+:bin" ,gtk+ "bin")
3507 ("webkitgtk" ,webkitgtk)
3508 ("gtksourceview" ,gtksourceview)
3509 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
3510 ("vte" ,vte)
3511 ;; Gstreamer
3512 ("gstreamer" ,gstreamer)
3513 ("gst-plugins-base" ,gst-plugins-base)
3514 ("gst-plugins-good" ,gst-plugins-good)
3515 ("gst-plugins-bad" ,gst-plugins-bad)
3516 ("gst-plugins-ugly" ,gst-plugins-ugly)
3517 ;; Util
3518 ("xorg-server" ,xorg-server)))
3519 (arguments
3520 `(#:modules ((guix build gnu-build-system)
3521 (guix build utils)
3522 (ice-9 popen)
3523 (ice-9 rdelim)
3524 (srfi srfi-26))
3525 #:phases
3526 (modify-phases %standard-phases
3527 (add-before 'check 'start-xorg-server
3528 (lambda* (#:key inputs #:allow-other-keys)
3529 ;; The test suite requires a running X server.
3530 (system (format #f "~a/bin/Xvfb :1 &"
3531 (assoc-ref inputs "xorg-server")))
3532 (setenv "DISPLAY" ":1")
3533 #t))
3534 (add-after 'install 'wrap-binaries
3535 (lambda* (#:key inputs outputs #:allow-other-keys)
3536 (let* ((out (assoc-ref outputs "out"))
3537 (effective (read-line (open-pipe*
3538 OPEN_READ
3539 "guile" "-c"
3540 "(display (effective-version))")))
3541 (gst-plugins (map (lambda (i)
3542 (string-append (assoc-ref inputs i)
3543 "/lib/gstreamer-1.0"))
3544 `("gstreamer"
3545 "gst-plugins-base"
3546 "gst-plugins-good"
3547 "gst-plugins-bad"
3548 "gst-plugins-ugly")))
3549 (out-append (lambda (. args)
3550 (apply string-append out args)))
3551 (gi-path (out-append "/lib/girepository-1.0"))
3552 (load-path (out-append "/share/guile/site/" effective))
3553 (comp-path (out-append "/lib/guile/"
3554 effective "/site-ccache"))
3555 (ext-path (out-append "/libexec/nomad")))
3556 (wrap-program (string-append out "/bin/nomad")
3557 `("GUILE_LOAD_PATH" ":" prefix
3558 (,load-path
3559 ,(getenv "GUILE_LOAD_PATH")))
3560 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
3561 (,comp-path
3562 ,(getenv "GUILE_LOAD_COMPILED_PATH")))
3563 `("GI_TYPELIB_PATH" ":" prefix
3564 (,gi-path ,(getenv "GI_TYPELIB_PATH")))
3565 `("GIO_EXTRA_MODULES" ":" prefix
3566 (,(getenv "GIO_EXTRA_MODULES")))
3567 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix ,gst-plugins)
3568 `("NOMAD_WEB_EXTENSION_DIR" ":" prefix (,ext-path)))
3569 #t))))))
3570 (home-page "https://savannah.nongnu.org/projects/nomad/")
3571 (synopsis "Extensible Web Browser in Guile Scheme")
3572 (description "Nomad is a Emacs-like web browser that consists of a modular
3573 feature-set, fully programmable in Guile Scheme.")
3574 (license license:gpl3+)))
3575
3576 (define-public guile-cv
3577 (package
3578 (name "guile-cv")
3579 (version "0.2.1")
3580 (source (origin
3581 (method url-fetch)
3582 (uri (string-append "mirror://gnu/guile-cv/guile-cv-"
3583 version ".tar.gz"))
3584 (sha256
3585 (base32
3586 "0qdf0s2h1xj5lbhnc1pfw69i3zg08pqy2y6869b92ydfis8r82j9"))))
3587 (build-system gnu-build-system)
3588 (arguments
3589 `(#:phases
3590 (modify-phases %standard-phases
3591 (add-after 'unpack 'prepare-build
3592 (lambda* (#:key inputs outputs #:allow-other-keys)
3593 (substitute* "configure"
3594 (("SITEDIR=\"\\$datadir/guile-cv\"")
3595 "SITEDIR=\"$datadir/guile/site/$GUILE_EFFECTIVE_VERSION\"")
3596 (("SITECCACHEDIR=\"\\$libdir/guile-cv/")
3597 "SITECCACHEDIR=\"$libdir/"))
3598 (substitute* "cv/init.scm"
3599 (("\\(dynamic-link \"libvigra_c\"\\)")
3600 (string-append "(dynamic-link \""
3601 (assoc-ref inputs "vigra-c")
3602 "/lib/libvigra_c\")"))
3603 (("\\(dynamic-link \"libguile-cv\"\\)")
3604 (format #f "~s"
3605 `(dynamic-link
3606 (format #f "~alibguile-cv"
3607 (if (getenv "GUILE_CV_UNINSTALLED")
3608 ""
3609 ,(format #f "~a/lib/"
3610 (assoc-ref outputs "out"))))))))
3611 (setenv "GUILE_CV_UNINSTALLED" "1")
3612 ;; Only needed to satisfy the configure script.
3613 (setenv "LD_LIBRARY_PATH"
3614 (string-append (assoc-ref inputs "vigra-c") "/lib"))
3615 #t)))))
3616 (inputs
3617 `(("vigra" ,vigra)
3618 ("vigra-c" ,vigra-c)
3619 ("guile" ,guile-2.2)))
3620 (native-inputs
3621 `(("texlive" ,(texlive-union (list texlive-booktabs
3622 texlive-lm
3623 texlive-siunitx
3624 texlive-standalone
3625 texlive-xcolor
3626 texlive-fonts-iwona)))
3627 ("pkg-config" ,pkg-config)))
3628 (propagated-inputs
3629 `(("guile-lib" ,guile2.2-lib)))
3630 (home-page "https://www.gnu.org/software/guile-cv/")
3631 (synopsis "Computer vision library for Guile")
3632 (description "Guile-CV is a Computer Vision functional programming library
3633 for the Guile Scheme language. It is based on Vigra (Vision with Generic
3634 Algorithms), a C++ image processing and analysis library. Guile-CV contains
3635 bindings to Vigra C (a C wrapper to most of the Vigra functionality) and is
3636 enriched with pure Guile Scheme algorithms, all accessible through a nice,
3637 clean and easy to use high level API.")
3638 (license license:gpl3+)))
3639
3640 (define-public guile-ffi-fftw
3641 (let ((commit "294ad9e7491dcb40026d2fec9be2af05263be1c0")
3642 (revision "2"))
3643 (package
3644 (name "guile-ffi-fftw")
3645 (version (git-version "0" revision commit))
3646 (source (origin
3647 (method git-fetch)
3648 (uri (git-reference
3649 (url "https://github.com/lloda/guile-ffi-fftw")
3650 (commit commit)))
3651 (file-name (git-file-name "guile-ffi-fftw" version))
3652 (sha256
3653 (base32
3654 "08j40a5p6a8pgvhffmzb5rfdnrav2mksy3gfjkdqy93jfj1z5afg"))))
3655 (build-system guile-build-system)
3656 (arguments
3657 `(#:source-directory "mod"
3658 #:phases
3659 (modify-phases %standard-phases
3660 (add-after 'unpack 'prepare-build
3661 (lambda* (#:key inputs #:allow-other-keys)
3662 (substitute* "mod/ffi/fftw.scm"
3663 (("\\(getenv \"GUILE_FFI_FFTW_LIBFFTW3_PATH\"\\)")
3664 (format #f "\"~a/lib\"" (assoc-ref inputs "fftw"))))
3665 #t))
3666 (add-after 'build 'check
3667 (lambda _
3668 (invoke "guile" "-L" "mod"
3669 "-s" "test/test-ffi-fftw.scm"))))))
3670 (inputs
3671 `(("fftw" ,fftw)
3672 ("guile" ,guile-2.2)))
3673 (home-page "https://github.com/lloda/guile-ffi-fftw/")
3674 (synopsis "Access FFTW through Guile's FFI")
3675 (description "This is a minimal set of Guile FFI bindings for the FFTW
3676 library's ‘guru interface’. It provides two functions: @code{fftw-dft! rank
3677 sign in out} and @code{fftw-dft rank sign in}. These bindings being minimal,
3678 there is no support for computing & reusing plans, or split r/i transforms, or
3679 anything other than straight complex DFTs.")
3680 (license license:lgpl3+))))
3681
3682 (define-public srfi-64-driver
3683 (package
3684 (name "srfi-64-driver")
3685 (version "0.1")
3686 (source (origin
3687 (method url-fetch)
3688 (uri (string-append "https://files.ngyro.com/srfi-64-driver/"
3689 "srfi-64-driver-" version ".tar.gz"))
3690 (sha256
3691 (base32
3692 "188b6mb7sjjg0a8zldikinglf40ky8mg8rwh5768gjmch6gkk3ph"))))
3693 (build-system gnu-build-system)
3694 (arguments
3695 `(#:tests? #f
3696 #:phases
3697 (modify-phases %standard-phases
3698 (delete 'build))))
3699 (native-inputs
3700 `(("pkg-config" ,pkg-config)))
3701 (inputs
3702 `(("guile" ,guile-2.2)))
3703 (home-page "https://ngyro.com/software/srfi-64-driver.html")
3704 (synopsis "Automake test driver for SRFI 64 test suites")
3705 (description "This package provides an Automake test driver that can
3706 run SRFI 64 test suites. It gives Automake insight into the individual
3707 tests being run, resulting clearer and more specific output.")
3708 (license license:gpl3+)))
3709
3710 (define-public guile-semver
3711 (package
3712 (name "guile-semver")
3713 (version "0.1.1")
3714 (source (origin
3715 (method url-fetch)
3716 (uri (string-append "https://files.ngyro.com/guile-semver/"
3717 "guile-semver-" version ".tar.gz"))
3718 (sha256
3719 (base32
3720 "109p4n39ln44cxvwdccf9kgb96qx54makvd2ir521ssz6wchjyag"))))
3721 (build-system gnu-build-system)
3722 (native-inputs
3723 `(("pkg-config" ,pkg-config)))
3724 (inputs
3725 `(("guile" ,guile-3.0)))
3726 (home-page "https://ngyro.com/software/guile-semver.html")
3727 (synopsis "Semantic Versioning (SemVer) for Guile")
3728 (description "This Guile library provides tools for reading,
3729 comparing, and writing Semantic Versions. It also includes ranges in
3730 the style of the Node Package Manager (NPM).")
3731 (license license:gpl3+)))
3732
3733 (define-public guile2.2-semver
3734 (package
3735 (inherit guile-semver)
3736 (name "guile2.2-semver")
3737 (inputs
3738 `(("guile" ,guile-2.2)))))
3739
3740 (define-public guile-hashing
3741 (package
3742 (name "guile-hashing")
3743 (version "1.2.0")
3744 (home-page "https://github.com/weinholt/hashing")
3745 (source (origin
3746 (method git-fetch)
3747 (uri (git-reference
3748 (url home-page)
3749 (commit (string-append "v" version))))
3750 (file-name (git-file-name name version))
3751 (sha256
3752 (base32
3753 "1362d3lmpv7slmv1zmr9wy8panq9sjr9787gc2hagd646mpsfpkl"))))
3754 (build-system guile-build-system)
3755 (arguments
3756 `(#:modules ((guix build guile-build-system)
3757 (guix build utils)
3758 (srfi srfi-26)
3759 (ice-9 ftw))
3760 #:implicit-inputs? #f ;needs nothing but Guile
3761 #:phases (modify-phases %standard-phases
3762 (add-before 'build 'move-sls-files
3763 (lambda _
3764 ;; Move the source under hashing/ in order to match
3765 ;; module names, and rename .sls files to .scm.
3766 (define (target file)
3767 (string-append "hashing/" file))
3768
3769 (define (sls->scm sls)
3770 (string-append (string-drop-right sls 4)
3771 ".scm"))
3772
3773 (mkdir "hashing")
3774 (for-each (lambda (file)
3775 (rename-file file (sls->scm file)))
3776 (find-files "." "\\.sls$"))
3777 (for-each (lambda (file)
3778 (rename-file file (target file)))
3779 (scandir "." (cut string-suffix? ".scm" <>)))
3780 (rename-file "private" "hashing/private")
3781 #t)))))
3782 (native-inputs
3783 `(("guile" ,guile-3.0)))
3784 (synopsis "Cryprographic hash functions implemented in Scheme")
3785 (description
3786 "The @code{(hashing @dots{})} modules implement cryptographic hash
3787 functions in pure R6RS Scheme: CRC, HMAC, MD5, SHA-1, and SHA-2 (SHA-256,
3788 SHA-512).")
3789 (license license:expat)))
3790
3791 (define-public guile2.2-hashing
3792 (package
3793 (inherit guile-hashing)
3794 (name "guile2.2-hashing")
3795 (native-inputs
3796 `(("guile" ,guile-2.2)))))
3797
3798 (define-public guile-packrat
3799 (package
3800 (name "guile-packrat")
3801 (version "0.1.1")
3802 (home-page "https://github.com/weinholt/packrat")
3803 (source (origin
3804 (method git-fetch)
3805 (uri (git-reference
3806 (url home-page)
3807 (commit (string-append "v" version))))
3808 (file-name (git-file-name name version))
3809 (sha256
3810 (base32
3811 "1aga17164fkhbgllqc7ni6fk5zl8mkmgkl5zcsy67x7ngpyalbby"))))
3812 (build-system guile-build-system)
3813 (arguments
3814 `(#:implicit-inputs? #f ;needs nothing but Guile
3815 #:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
3816 #:not-compiled-file-regexp "/extensible\\.scm$"
3817 #:phases (modify-phases %standard-phases
3818 (add-before 'build 'no-srfi-23
3819 (lambda _
3820 (substitute* "packrat.sls"
3821 (("\\(srfi :23 error\\)")
3822 (object->string '(only (guile) error))))
3823 #t)))))
3824 (native-inputs
3825 `(("guile" ,guile-3.0)))
3826 (synopsis "Packrat parser library in R6RS Scheme")
3827 (description
3828 "This is an R6RS Scheme adaptation of the
3829 @uref{https://bford.info/packrat/, packrat parsing}. Packrat parsing is a
3830 memoizing, backtracking, recursive-descent parsing technique that runs in time
3831 and space linear in the size of the input text.")
3832 (license license:expat)))
3833
3834 (define-public guile-ac-d-bus
3835 (package
3836 (name "guile-ac-d-bus")
3837 (version "1.0.0-beta.0")
3838 (home-page "https://gitlab.com/weinholt/ac-d-bus/")
3839 (source (origin
3840 (method git-fetch)
3841 (uri (git-reference
3842 (url home-page)
3843 (commit (string-append "v" version))))
3844 (file-name (git-file-name name version))
3845 (sha256
3846 (base32
3847 "0rl809qimhgz6b0rixakb42r2l4g53jr09a2g0s1hxgab0blz0kb"))))
3848 (build-system guile-build-system)
3849 (arguments
3850 `(#:implicit-inputs? #f ;needs nothing but Guile
3851 #:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
3852 #:phases (modify-phases %standard-phases
3853 (add-before 'build 'adjust-for-guile
3854 (lambda _
3855 ;; Adjust source file names for Guile.
3856 (define (guile-sls->sls file)
3857 (string-append (string-drop-right
3858 file (string-length ".guile.sls"))
3859 ".sls"))
3860
3861 ;; Remove files targeting other implementations:
3862 ;; *.mosh.sls, etc.
3863 (for-each delete-file
3864 (find-files
3865 "compat"
3866 (lambda (file stat)
3867 (not (string-contains file ".guile.")))))
3868
3869 ;; Rename *.guile.sls to *.sls so the ".guile" bit does
3870 ;; not appear in .go file names.
3871 (for-each (lambda (file)
3872 (rename-file file (guile-sls->sls file)))
3873 (find-files "compat" "\\.guile\\.sls"))
3874
3875 ;; Move directories under d-bus/ to match module names.
3876 (mkdir "d-bus")
3877 (for-each (lambda (directory)
3878 (rename-file directory
3879 (string-append "d-bus/"
3880 directory)))
3881 '("compat" "protocol"))
3882
3883 #t)))))
3884 (native-inputs
3885 `(("guile" ,guile-3.0)))
3886 (propagated-inputs
3887 `(("guile-packrat" ,guile-packrat)))
3888 (synopsis "D-Bus protocol implementation in R6RS Scheme")
3889 (description
3890 "AC/D-Bus is an implementation of the D-Bus wire protocol. D-Bus is an
3891 interprocess communication protocol popular on GNU/Linux systems to
3892 communicate with a variety of services. Originally designed for desktop
3893 environments, it is now used by programs like VLC media player, BlueZ,
3894 NetworkManager, Pulseaudio, systemd (including logind and resolved), Polkit,
3895 gnome-keyring, and many more.")
3896 (license license:expat)))
3897
3898 (define-public guile-webutils
3899 (let ((commit "8541904f761066dc9c27b1153e9a838be9a55299")
3900 (revision "0"))
3901 (package
3902 (name "guile-webutils")
3903 (version (git-version "0.1" revision commit))
3904 (source (origin
3905 (method git-fetch)
3906 (uri (git-reference
3907 (url "https://notabug.org/cwebber/guile-webutils.git")
3908 (commit commit)))
3909 (file-name (git-file-name name version))
3910 (sha256
3911 (base32
3912 "1s9n3hbxd7lfpdi0x8wr0cfvlsf6g62ird9gbspxdrp5p05rbi64"))
3913 (modules '((guix build utils)))
3914 (snippet
3915 '(begin
3916 ;; Allow builds with Guile 3.0.
3917 (substitute* "configure.ac"
3918 (("2\\.2 2\\.0")
3919 "3.0 2.2 2.0"))
3920 #t))))
3921 (build-system gnu-build-system)
3922 (native-inputs
3923 `(("autoconf" ,autoconf)
3924 ("automake" ,automake)
3925 ("pkg-config" ,pkg-config)
3926 ("texinfo" ,texinfo)))
3927 (inputs
3928 `(("guile" ,guile-3.0)))
3929 (propagated-inputs
3930 `(("guile-irregex" ,guile-irregex)
3931 ("guile-gcrypt" ,guile-gcrypt)))
3932 (home-page "https://notabug.org/cwebber/guile-webutils")
3933 (synopsis "Web application authoring utilities for Guile")
3934 (description
3935 "This package provides tooling to write web applications in Guile, such
3936 as signed sessions, multipart message support, etc.")
3937 (license license:gpl3+))))
3938
3939 (define-public guile2.2-webutils
3940 (package
3941 (inherit guile-webutils)
3942 (name "guile2.2-webutils")
3943 (inputs
3944 `(("guile" ,guile-2.2)))
3945 (propagated-inputs
3946 `(("guile-irregex" ,guile2.2-irregex)
3947 ("guile-gcrypt" ,guile2.2-gcrypt)))))
3948
3949 (define-public guile-lens
3950 (let ((commit "14b15d07255f9d3f55d40a3b750d13c9ee3a154f")
3951 (revision "0"))
3952 (package
3953 (name "guile-lens")
3954 (version (git-version "0.1" revision commit))
3955 (source (origin
3956 (method git-fetch)
3957 (uri (git-reference
3958 (url "https://gitlab.com/a-sassmannshausen/guile-lens.git")
3959 (commit commit)))
3960 (file-name (git-file-name name version))
3961 (sha256
3962 (base32
3963 "0w8jzqyla56yrgj7acsgd4nspyir6zgp3vgxid4xmwhg9wmf1ida"))))
3964 (build-system gnu-build-system)
3965 (arguments
3966 '(#:phases
3967 (modify-phases %standard-phases
3968 (add-after 'unpack 'run-hall
3969 (lambda _
3970 (setenv "HOME" "/tmp") ; for ~/.hall
3971 (invoke "hall" "dist" "-x"))))))
3972 (native-inputs
3973 `(("autoconf" ,autoconf)
3974 ("automake" ,automake)
3975 ("guile" ,guile-3.0)
3976 ("guile-hall" ,guile-hall)
3977 ("pkg-config" ,pkg-config)
3978 ("texinfo" ,texinfo)))
3979 (home-page "https://gitlab.com/a-sassmannshausen/guile-lens.git")
3980 (synopsis "Composable lenses for data structures in Guile")
3981 (description
3982 "Guile-Lens is a library implementing lenses in Guile. The library is
3983 currently a re-implementation of the lentes library for Clojure. Lenses
3984 provide composable procedures, which can be used to focus, apply functions
3985 over, or update a value in arbitrary data structures.")
3986 (license license:gpl3+))))
3987
3988 (define-public guile2.2-lens
3989 (package
3990 (inherit guile-lens)
3991 (name "guile2.2-lens")
3992 (native-inputs
3993 `(("guile" ,guile-2.2)
3994 ,@(alist-delete "guile" (package-native-inputs guile-lens))))))
3995
3996 (define-public guile-xapian
3997 (package
3998 (name "guile-xapian")
3999 (version "0.1.0")
4000 (home-page "https://git.systemreboot.net/guile-xapian")
4001 (source
4002 (origin
4003 (method git-fetch)
4004 (uri (git-reference (url home-page)
4005 (commit (string-append "v" version))))
4006 (file-name (git-file-name name version))
4007 (sha256
4008 (base32
4009 "16k61f1jn3g48jaf3730b9l0izr5j933jzyri73nmcnjd09gm35i"))))
4010 (build-system gnu-build-system)
4011 (arguments
4012 '(#:make-flags '("GUILE_AUTO_COMPILE=0"))) ; to prevent guild warnings
4013 (inputs
4014 `(("guile" ,guile-3.0)
4015 ("xapian" ,xapian)
4016 ("zlib" ,zlib)))
4017 (native-inputs
4018 `(("autoconf" ,autoconf)
4019 ("autoconf-archive" ,autoconf-archive)
4020 ("automake" ,automake)
4021 ("libtool" ,libtool)
4022 ("pkg-config" ,pkg-config)
4023 ("swig" ,swig)))
4024 (synopsis "Guile bindings for Xapian")
4025 (description "@code{guile-xapian} provides Guile bindings for Xapian, a
4026 search engine library. Xapian is a highly adaptable toolkit which allows
4027 developers to easily add advanced indexing and search facilities to their own
4028 applications. It has built-in support for several families of weighting
4029 models and also supports a rich set of boolean query operators.")
4030 (license license:gpl2+)))
4031
4032 (define-public guile2.2-xapian
4033 (package
4034 (inherit guile-xapian)
4035 (name "guile2.2-xapian")
4036 (inputs
4037 `(("guile" ,guile-2.2)
4038 ,@(alist-delete "guile" (package-inputs guile-xapian))))))
4039
4040 (define-public guile-torrent
4041 (package
4042 (name "guile-torrent")
4043 (version "0.1.3")
4044 (source (origin (method git-fetch)
4045 (uri (git-reference
4046 (url
4047 "https://github.com/o-nly/torrent")
4048 (commit version)))
4049 (file-name (git-file-name name version))
4050 (sha256
4051 (base32
4052 "1yiagi55ncq1x7s9n7salzywjm4l96y3n7y3s47a9anvz87mrmim"))))
4053 (build-system gnu-build-system)
4054 (native-inputs
4055 `(("autoconf" ,autoconf)
4056 ("automake" ,automake)
4057 ("guile" ,guile-2.2)
4058 ("texinfo" ,texinfo)
4059 ("perl" ,perl)
4060 ("pkg-config" ,pkg-config)))
4061 (propagated-inputs
4062 `(("guile-gcrypt" ,guile-gcrypt)))
4063 (home-page "https://github.com/o-nly/torrent")
4064 (synopsis "Torrent library for GNU Guile")
4065 (description "This package provides facilities for working with
4066 @code{.torrent} or metainfo files. Implements a bencode reader and writer
4067 according to Bitorrent BEP003.")
4068 (license license:gpl3+)))
4069
4070 (define-public guile-irc
4071 (let ((commit "375d3bde9c6ae7ccc9d7cc65817966b6fda8f26a")
4072 (revision "0"))
4073 (package
4074 (name "guile-irc")
4075 (version (git-version "0.3.0" revision commit))
4076 (source (origin
4077 (method git-fetch)
4078 (uri (git-reference
4079 (url "https://github.com/rekado/guile-irc")
4080 (commit commit)))
4081 (file-name (git-file-name name version))
4082 (sha256
4083 (base32
4084 "113lcckcywrz9060w1c3fnvr8d7crdsjgsv4h47hgmr1slgadl4y"))))
4085 (build-system gnu-build-system)
4086 (arguments
4087 `(#:configure-flags '("--enable-gnutls=yes")))
4088 (native-inputs
4089 `(("autoconf" ,autoconf)
4090 ("automake" ,automake)
4091 ("texinfo" ,texinfo)))
4092 (inputs
4093 `(("gnutls" ,gnutls)
4094 ("guile" ,guile-3.0)))
4095 (home-page "https://github.com/rekado/guile-irc")
4096 (synopsis "IRC library for Guile")
4097 (description "This package provides a Guile library for @dfn{Internet
4098 Relay Chat} (IRC).")
4099 ;; Some file headers incorrectly say LGPLv2+.
4100 (license license:lgpl2.1+))))
4101
4102 (define-public guile-websocket
4103 (let ((commit "d17878f6c12c10a49196bb08f737f36b11e61c31")
4104 (revision "1"))
4105 (package
4106 (name "guile-websocket")
4107 (version (git-version "0.1" revision commit))
4108 (source
4109 (origin
4110 (method git-fetch)
4111 (uri (git-reference
4112 (url "https://git.dthompson.us/guile-websocket.git")
4113 (commit commit)))
4114 (file-name (git-file-name name version))
4115 (sha256
4116 (base32
4117 "0kcmhjyb6amm4b9k4ng0r5s38m041mvh5jgmjbz6ichz39k255v7"))))
4118 (build-system gnu-build-system)
4119 (arguments
4120 '(#:make-flags
4121 '("GUILE_AUTO_COMPILE=0")))
4122 (native-inputs
4123 `(("autoconf" ,autoconf)
4124 ("automake" ,automake)
4125 ("pkg-config" ,pkg-config)))
4126 (inputs
4127 `(("guile" ,guile-3.0)))
4128 (synopsis "Websocket server/client for Guile")
4129 (description "Guile-websocket provides an implementation of the
4130 WebSocket protocol as defined by RFC 6455.")
4131 (home-page "https://git.dthompson.us/guile-websocket.git")
4132 (license license:lgpl3+))))
4133
4134 (define-public guile-rdf
4135 (package
4136 (name "guile-rdf")
4137 (version "1.0")
4138 (source
4139 (origin
4140 (method git-fetch)
4141 (uri (git-reference
4142 (url "https://framagit.org/tyreunom/guile-rdf")
4143 (commit version)))
4144 (file-name (git-file-name name version))
4145 (sha256
4146 (base32
4147 "0dwn3app1fscbpmpgvjs5jy1y0gwy3j5gdx8br79af6a88zjlnqf"))))
4148 (build-system gnu-build-system)
4149 (arguments
4150 `(#:tests? #f)); tests require network
4151 (inputs
4152 `(("guile" ,guile-3.0)))
4153 (native-inputs
4154 `(("automake" ,automake)
4155 ("autoconf" ,autoconf)
4156 ("pkg-config" ,pkg-config)
4157 ("texinfo" ,texinfo)))
4158 (home-page "https://framagit.org/tyreunom/guile-rdf")
4159 (synopsis "Guile implementation of the RDF abstract and concrete syntaxes")
4160 (description "Guile RDF is an implementation of the RDF (Resource Description
4161 Framework) format defined by the W3C for GNU Guile. RDF structures include
4162 triples (facts with a subject, a predicate and an object), graphs which are
4163 sets of triples, and datasets, which are collections of graphs.
4164
4165 RDF specifications include the specification of concrete syntaxes and of
4166 operations on graphs. This library implements some basic functionalities,
4167 such as parsing and producing turtle and nquads syntax, as well as
4168 manipulating graphs and datasets.")
4169 (license license:gpl3+)))
4170
4171 (define-public guile-jsonld
4172 (package
4173 (name "guile-jsonld")
4174 (version "1.0.2")
4175 (source
4176 (origin
4177 (method git-fetch)
4178 (uri (git-reference
4179 (url "https://framagit.org/tyreunom/guile-jsonld")
4180 (commit version)))
4181 (file-name (git-file-name name version))
4182 (sha256
4183 (base32
4184 "1ryyvh71899z2inivqglb8d78zzp1sd0wv9a56kvcmrxf1966z6r"))))
4185 (build-system gnu-build-system)
4186 (arguments
4187 `(#:tests? #f)); require network
4188 (propagated-inputs
4189 `(("guile-gnutls" ,gnutls)
4190 ("guile-json" ,guile-json-4)
4191 ("guile-rdf" ,guile-rdf)))
4192 (inputs
4193 `(("guile" ,guile-3.0)))
4194 (native-inputs
4195 `(("automake" ,automake)
4196 ("autoconf" ,autoconf)
4197 ("pkg-config" ,pkg-config)
4198 ("texinfo" ,texinfo)))
4199 (home-page "https://framagit.org/tyreunom/guile-jsonld")
4200 (synopsis "Guile implementation of the JsonLD API specification")
4201 (description "Guile JsonLD is an implementation of the JsonLD (Json for
4202 Linked Data) API defined by the W3C for GNU Guile. It allows you to express links
4203 between data, in a way that is very similar to WikiData or RDF for instance.
4204 An object can have relations (in the form of an IRI) that relates it to one or
4205 more objects or strings, represented by a Json object or an IRI.")
4206 (license license:gpl3+)))
4207
4208 (define-public guile-struct-pack
4209 (package
4210 (name "guile-struct-pack")
4211 (version "1.1.1")
4212 (source
4213 (origin
4214 (method git-fetch)
4215 (uri (git-reference
4216 (url "https://github.com/weinholt/struct-pack")
4217 (commit (string-append "v" version))))
4218 (file-name (git-file-name name version))
4219 (sha256
4220 (base32 "0hd72m821pahjphzyjn26i55542v8makr55xzjll2cycja4wsbc1"))))
4221 (build-system guile-build-system)
4222 (arguments
4223 `(#:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
4224 #:modules ((guix build guile-build-system)
4225 (guix build utils)
4226 (srfi srfi-26)
4227 (ice-9 ftw))
4228 #:phases (modify-phases %standard-phases
4229 (add-before 'build 'move-sls-files
4230 (lambda _
4231 ;; Move files under a struct/ directory to reflect the
4232 ;; module hierarchy.
4233 (define dst-folder "struct")
4234 (define (target file)
4235 (string-append dst-folder "/" file))
4236 (define files
4237 (scandir "." (negate (cut member <> '("." "..")))))
4238 (mkdir dst-folder)
4239 (for-each (lambda (file)
4240 (rename-file file (target file)))
4241 files)
4242 #t)))))
4243 (native-inputs
4244 `(("guile" ,guile-3.0)))
4245 (home-page "https://github.com/weinholt/struct-pack")
4246 (synopsis "R6RS library for working with packed byte structures")
4247 (description
4248 "This is an R6RS library for working with packed byte structures. It is
4249 similar to struct in Python or pack and unpack in Perl.")
4250 (license license:expat)))
4251
4252 (define-public guile-machine-code
4253 (package
4254 (name "guile-machine-code")
4255 (version "2.1.0")
4256 (source
4257 (origin
4258 (method git-fetch)
4259 (uri (git-reference
4260 (url "https://github.com/weinholt/machine-code")
4261 (commit (string-append "v" version))))
4262 (file-name (git-file-name name version))
4263 (sha256
4264 (base32 "0wzj3caj2jypzyjqfkfqkvr3kkbjabsnhldv9kvnx9w9qnria5yd"))))
4265 (build-system guile-build-system)
4266 (arguments
4267 `(#:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
4268 #:modules ((guix build guile-build-system)
4269 (guix build utils)
4270 (srfi srfi-26)
4271 (ice-9 ftw))
4272 #:phases (modify-phases %standard-phases
4273 (add-before 'build 'move-sls-files
4274 (lambda _
4275 ;; Move files under a struct/ directory to reflect the
4276 ;; module hierarchy.
4277 (define dst-folder "machine-code")
4278 (define (target file)
4279 (string-append dst-folder "/" file))
4280 (define files
4281 (scandir "." (negate (cut member <> '("." "..")))))
4282 (mkdir dst-folder)
4283 (for-each (lambda (file)
4284 (rename-file file (target file)))
4285 files)
4286 #t)))))
4287 (native-inputs
4288 `(("guile" ,guile-3.0)))
4289 (propagated-inputs
4290 `(("guile-struct-pack" ,guile-struct-pack)))
4291 (home-page "https://github.com/weinholt/machine-code")
4292 (synopsis "Tools that relate to machine code and object formats")
4293 (description
4294 "This project is about the development of tools that relate to machine
4295 code and object formats; for all architectures. Here you'll find libraries
4296 for working with binary code: assembly, disassembly, instruction tables,
4297 object formats and related areas.")
4298 (license license:expat)))
4299
4300 (define-public guile-laesare
4301 (package
4302 (name "guile-laesare")
4303 (version "1.0.0")
4304 (source
4305 (origin
4306 (method git-fetch)
4307 (uri (git-reference
4308 (url "https://github.com/weinholt/laesare")
4309 (commit (string-append "v" version))))
4310 (file-name (git-file-name name version))
4311 (sha256
4312 (base32 "15q619gzw717r8r1ql23zfdaibpnp9qqs96032vdc3rj74msxc92"))))
4313 (build-system guile-build-system)
4314 (arguments
4315 `(#:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
4316 #:modules ((guix build guile-build-system)
4317 (guix build utils)
4318 (srfi srfi-26)
4319 (ice-9 ftw))
4320 #:phases (modify-phases %standard-phases
4321 (add-before 'build 'move-sls-files
4322 (lambda _
4323 ;; Move files under a laesare directory to reflect
4324 ;; the module hierarchy.
4325 (define dst-folder "laesare")
4326 (define (target file)
4327 (string-append dst-folder "/" file))
4328 (define files
4329 (scandir "." (negate (cut member <> '("." "..")))))
4330 (mkdir dst-folder)
4331 (for-each (lambda (file)
4332 (rename-file file (target file)))
4333 files)
4334 #t)))))
4335 (native-inputs
4336 `(("guile" ,guile-3.0)))
4337 (home-page "https://github.com/weinholt/laesare")
4338 (synopsis "R6RS Scheme library that provides a reader")
4339 (description
4340 "This is an R6RS Scheme library that provides a reader with some extra
4341 features not found in the standard read procedure such as a compatible mode
4342 with support for other RnRS standards and a tolerant mode that continues on
4343 errors.")
4344 (license license:expat)))
4345
4346 (define-public guile-avahi
4347 (let ((commit "6d43caf64f672a9694bf6c98bbf7a734f17a51e8")
4348 (revision "1"))
4349 (package
4350 (name "guile-avahi")
4351 (version (git-version "0.4.0" revision commit))
4352 (source (origin
4353 (method git-fetch)
4354 (uri (git-reference
4355 (url "git://git.sv.gnu.org/guile-avahi.git")
4356 (commit commit)))
4357 (file-name (git-file-name name version))
4358 (sha256
4359 (base32
4360 "0fvrf8x22yvc71180hd3xkhspg9yvadi0pbv8shzlsaxqncwy1m9"))
4361 (modules '((guix build utils)))))
4362 (build-system gnu-build-system)
4363 (arguments
4364 `(#:modules (((guix build guile-build-system)
4365 #:select (target-guile-effective-version))
4366 ,@%gnu-build-system-modules)
4367 #:imported-modules ((guix build guile-build-system)
4368 ,@%gnu-build-system-modules)
4369 #:make-flags
4370 '("GUILE_AUTO_COMPILE=0") ;to prevent guild warnings
4371 ;; Parallel builds fail on powerpc64le-linux.
4372 ;; See https://lists.nongnu.org/archive/html/guile-avahi-bugs/2021-01/msg00000.html
4373 #:parallel-build? #f
4374 #:phases
4375 (modify-phases %standard-phases
4376 (add-before 'check 'fix-guile-avahi-file-name
4377 (lambda* (#:key outputs #:allow-other-keys)
4378 (with-directory-excursion "src"
4379 (invoke "make" "install"
4380 "-j" (number->string
4381 (parallel-job-count))))
4382 (let* ((out (assoc-ref outputs "out"))
4383 (files (find-files "modules" ".scm")))
4384 (substitute* files
4385 (("\"guile-avahi-v-0\"")
4386 (format #f "\"~a/lib/guile/~a/extensions/guile-avahi-v-0\""
4387 out (target-guile-effective-version))))
4388 #t))))))
4389 (inputs
4390 `(("guile" ,guile-3.0)
4391 ("avahi" ,avahi)))
4392 (native-inputs
4393 `(("autoconf" ,autoconf)
4394 ("automake" ,automake)
4395 ("libtool" ,libtool)
4396 ("pkg-config" ,pkg-config)
4397 ("texinfo" ,texinfo)))
4398 (synopsis "Guile bindings to Avahi")
4399 (description
4400 "This package provides bindings for Avahi. It allows programmers to
4401 use functionalities of the Avahi client library from Guile Scheme programs.
4402 Avahi itself is an implementation of multicast DNS (mDNS) and DNS Service
4403 Discovery (DNS-SD).")
4404 (home-page "https://www.nongnu.org/guile-avahi/")
4405 (license license:lgpl3+))))
4406
4407 (define-public guile-jwt
4408 (package
4409 (name "guile-jwt")
4410 (version "0.2.0")
4411 (source
4412 (origin
4413 (method git-fetch)
4414 (uri (git-reference
4415 (url "https://github.com/aconchillo/guile-jwt")
4416 (commit version)))
4417 (file-name (git-file-name name version))
4418 (sha256
4419 (base32
4420 "1p8sapiv5im18rjnzc8xnw6y7dr661rycf9g10z5ww0dl4rfz3z1"))))
4421 (build-system gnu-build-system)
4422 (native-inputs
4423 `(("autoconf" ,autoconf)
4424 ("automake" ,automake)
4425 ("pkg-config" ,pkg-config)))
4426 (propagated-inputs
4427 `(("guile-json" ,guile-json-4)))
4428 (inputs
4429 `(("guile" ,guile-3.0)))
4430 (home-page "https://github.com/aconchillo/guile-jwt")
4431 (synopsis "JSON Web Token library for Guile")
4432 (description
4433 "guile-jwt is a JSON Web Token module for Guile. JSON Web Tokens are an
4434 open, industry standard (RFC 7519) method for representing claims securely
4435 between two parties. guile-jwt allows you to decode, verify and generate
4436 JWT. Supported algorithms: HS256, HS384, HS512.")
4437 (license license:gpl3+)))
4438
4439 (define-public guile-sodium
4440 (package
4441 (name "guile-sodium")
4442 (version "0.1.0")
4443 (source
4444 (origin
4445 (method git-fetch)
4446 (uri (git-reference
4447 (url "https://inqlab.net/git/guile-sodium.git")
4448 (commit (string-append "v" version))))
4449 (file-name (git-file-name name version))
4450 (sha256 (base32 "189jsj87hycs57a54x0b9lifwvhr63nypb9vfxdrq7rwrpcvi5f8"))))
4451 (build-system gnu-build-system)
4452 (arguments `())
4453 (native-inputs
4454 `(("autoconf" ,autoconf)
4455 ("automake" ,automake)
4456 ("pkg-config" ,pkg-config)
4457 ("texinfo" ,texinfo)))
4458 (inputs `(("guile" ,guile-3.0)))
4459 (propagated-inputs `(("libsodium" ,libsodium)))
4460 (synopsis "Guile bindings to the libsodium cryptographic library")
4461 (description
4462 "This package provides Guile bindings to the libsodium cryptographic library
4463 which provides core cryptographic primitives needed to build higher-level
4464 tools.")
4465 (home-page "https://inqlab.net/git/guile-sodium.git")
4466 (license license:gpl3+)))
4467
4468 (define-public guile-eris
4469 (package
4470 (name "guile-eris")
4471 (version "0.2.0")
4472 (source
4473 (origin
4474 (method git-fetch)
4475 (uri (git-reference
4476 (url "https://inqlab.net/git/eris.git")
4477 (commit (string-append "v" version))))
4478 (file-name (git-file-name name version))
4479 (sha256 (base32 "1ijglmwkdy1l87gj429qfjis0v8b1zlxhbyfhx5za8664h68nqka"))))
4480 (build-system gnu-build-system)
4481 (arguments '())
4482 (native-inputs
4483 `(("autoconf" ,autoconf)
4484 ("automake" ,automake)
4485 ("pkg-config" ,pkg-config)
4486 ("texinfo" ,texinfo)
4487 ;; test dependency
4488 ("guile-srfi-180" ,guile-srfi-180)))
4489 (inputs `(("guile" ,guile-3.0)))
4490 (propagated-inputs
4491 `(("guile-sodium" ,guile-sodium)))
4492 (synopsis "Guile implementation of the Encoding for Robust Immutable Storage (ERIS)")
4493 (description
4494 "Guile-ERIS is the reference implementation of the Encoding for Robust
4495 Immutable Storage (ERIS). ERIS allows arbitrary content to be encoded into
4496 uniformly sized, encrypted blocks that can be reassembled using a short
4497 read-capability.")
4498 (home-page "https://inqlab.net/git/eris.git")
4499 (license license:gpl3+)))
4500
4501 (define-public guile-r6rs-protobuf
4502 (package
4503 (name "guile-r6rs-protobuf")
4504 (version "0.9")
4505 (source
4506 (origin
4507 (method git-fetch)
4508 (uri (git-reference
4509 (url "https://gitlab.com/joolean/r6rs-protobuf")
4510 (commit (string-append "v" version))))
4511 (file-name (git-file-name name version))
4512 (sha256
4513 (base32
4514 "1xmn7jlr1xiqgd35klq910p1bnil1iwdvqxkjr3zzml3spy8p2aa"))))
4515 (build-system guile-build-system)
4516 (arguments
4517 `(#:compile-flags '("--r6rs")))
4518 (inputs
4519 `(("guile" ,guile-3.0)))
4520 (home-page "https://gitlab.com/joolean/r6rs-protobuf/")
4521 (synopsis "Scheme implementation of Protocol Buffers")
4522 (description
4523 "This project provides a pure Scheme implementation of Protocol Buffers,
4524 including parsing and code generation.")
4525 (license license:gpl3+)))
4526
4527 (define-public guile-shapefile
4528 (package
4529 (name "guile-shapefile")
4530 (version "0.1.2")
4531 (source
4532 (origin
4533 (method git-fetch)
4534 (uri (git-reference
4535 (url "https://github.com/HugoNikanor/guile-shapefile")
4536 (commit (string-append "v" version))))
4537 (file-name (git-file-name name version))
4538 (sha256
4539 (base32
4540 "1zvrpc8bshw9w0vhdpmhv00j07mzsdyg2f9hfabr83v08zhfi8ml"))))
4541 (build-system guile-build-system)
4542 (arguments
4543 `(#:phases
4544 (modify-phases %standard-phases
4545 (add-after 'unpack 'delete-pre-generated-docs
4546 (lambda _
4547 (delete-file-recursively "docs")
4548 #t))
4549 (add-after 'install 'install-info-documentation
4550 (lambda* (#:key outputs #:allow-other-keys)
4551 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
4552 (doc (string-append share "/doc/" ,name "-" ,version))
4553 (info (string-append share "/info/"))
4554 (makeinfo (string-append (assoc-ref %build-inputs "texinfo")
4555 "/bin/makeinfo")))
4556 (invoke makeinfo "guile-shapefile.texi" "-o" info)
4557 #t))))))
4558 (inputs
4559 `(("guile" ,guile-3.0)))
4560 (native-inputs
4561 `(("texinfo" ,texinfo)))
4562 (home-page "https://github.com/HugoNikanor/guile-shapefile")
4563 (synopsis "Parse shapefiles in Guile")
4564 (description
4565 "Guile Shapefile is a Guile library for reading shapefiles.")
4566 (license license:expat)))
4567
4568 (define-public guile-drmaa
4569 (package
4570 (name "guile-drmaa")
4571 (version "0.1.0")
4572 (source
4573 (origin
4574 (method git-fetch)
4575 (uri (git-reference
4576 (url "https://git.elephly.net/software/guile-drmaa.git")
4577 (commit version)))
4578 (file-name (git-file-name name version))
4579 (sha256
4580 (base32
4581 "1m2x62n3x5hi5vnsvv2zgqhgpzrfq7r5095fzzjd1aaybi9i9igg"))))
4582 (build-system gnu-build-system)
4583 (native-inputs
4584 `(("autoconf" ,autoconf)
4585 ("automake" ,automake)
4586 ("pkg-config" ,pkg-config)
4587 ("texinfo" ,texinfo)
4588 ("sed" ,sed)))
4589 (inputs
4590 `(("guile" ,guile-3.0)))
4591 (propagated-inputs
4592 `(("guile-bytestructures" ,guile-bytestructures)
4593 ("nyacc" ,nyacc)))
4594 (home-page "https://git.elephly.net/software/guile-drmaa.git")
4595 (synopsis "Guile bindings to DRMAA")
4596 (description "This project provides Guile bindings to the DRMAA library
4597 version 1. DRMAA is a resource management library implemented by HPC cluster
4598 schedulers.")
4599 (license license:gpl3+)))
4600
4601 (define-public guile-libyaml
4602 (let ((commit "2bdacb72a65ab63264b2edc9dac9692df7ec9b3e")
4603 (revision "2"))
4604 (package
4605 (name "guile-libyaml")
4606 (version (git-version "0" revision commit))
4607 (source
4608 (origin
4609 (method git-fetch)
4610 (uri (git-reference
4611 (url "https://github.com/mwette/guile-libyaml")
4612 (commit commit)))
4613 (file-name (git-file-name name version))
4614 (sha256
4615 (base32
4616 "1bssby1ri1vjll2rvi8b33xr2ghwjyxsd4yc15najj3h8n2ss87i"))))
4617 (build-system gnu-build-system)
4618 (arguments
4619 `(#:modules (((guix build guile-build-system)
4620 #:prefix guile:)
4621 ,@%gnu-build-system-modules)
4622 #:imported-modules ((guix build guile-build-system)
4623 ,@%gnu-build-system-modules)
4624 #:tests? #false ; there are none
4625 #:phases
4626 (modify-phases %standard-phases
4627 (delete 'configure)
4628 (add-after 'unpack 'remove-unused-files
4629 (lambda* (#:key inputs #:allow-other-keys)
4630 (for-each delete-file '("guix.scm" "demo1.yml" "demo1.scm"))))
4631 (add-before 'build 'build-ffi
4632 (lambda* (#:key inputs #:allow-other-keys)
4633 (invoke "guild" "compile-ffi"
4634 "--no-exec" ; allow us to patch the generated file
4635 "yaml/libyaml.ffi")
4636 (substitute* "yaml/libyaml.scm"
4637 (("dynamic-link \"libyaml\"")
4638 (format #false "dynamic-link \"~a/lib/libyaml\""
4639 (assoc-ref inputs "libyaml"))))))
4640 (replace 'build
4641 (assoc-ref guile:%standard-phases 'build))
4642 (delete 'install))))
4643 (inputs
4644 `(("guile" ,guile-3.0)
4645 ("libyaml" ,libyaml)))
4646 (propagated-inputs
4647 `(("guile-bytestructures" ,guile-bytestructures)
4648 ("nyacc" ,nyacc)))
4649 (home-page "https://github.com/mwette/guile-libyaml")
4650 (synopsis "Guile wrapper for libyaml")
4651 (description
4652 "This package provides a simple yaml module for Guile using the
4653 ffi-helper from nyacc.")
4654 (license license:lgpl3+))))
4655
4656 (define-public schmutz
4657 (let ((commit "add24588c59552537b8f1316df99a0cdd62c221e")
4658 (revision "1"))
4659 (package
4660 (name "schmutz")
4661 (version (git-version "0" revision commit))
4662 (source (origin
4663 (method git-fetch)
4664 (uri (git-reference
4665 (url "https://github.com/arximboldi/schmutz")
4666 (commit commit)))
4667 (file-name (git-file-name name version))
4668 (sha256
4669 (base32
4670 "1z3n61sj62lnn15mandvyrpjzli07rp9r62ypvgg3a8bvh37yc89"))))
4671 (build-system cmake-build-system)
4672 (arguments `(#:tests? #f))
4673 (native-inputs
4674 `(("pkg-config" ,pkg-config)))
4675 (inputs
4676 `(("guile" ,guile-2.2)))
4677 (home-page "https://github.com/arximboldi/schmutz")
4678 (synopsis "Bind C++ code to Scheme")
4679 (description "Schmutz is a header-only library to declare Scheme bindings
4680 for C++ code using a simple embedded DSL. Think of it as @code{Boost.Python}
4681 or @code{LuaBind} but for Scheme.")
4682 (license license:boost1.0))))
4683
4684 (define-public guile-cbor
4685 (package
4686 (name "guile-cbor")
4687 (version "0.1.0")
4688 (source
4689 (origin
4690 (method git-fetch)
4691 (uri (git-reference
4692 (url "https://inqlab.net/git/guile-cbor.git")
4693 (commit (string-append "v" version))))
4694 (file-name (git-file-name name version))
4695 (sha256 (base32 "0bdqg3ifayf7m2j09lqrgdfprbdaa67azf09bcq9b4k71inxfnxl"))))
4696 (build-system gnu-build-system)
4697 (arguments `())
4698 (native-inputs
4699 `(("autoconf" ,autoconf)
4700 ("automake" ,automake)
4701 ("pkg-config" ,pkg-config)
4702 ("texinfo" ,texinfo)))
4703 (inputs `(("guile" ,guile-3.0)))
4704 (synopsis "Guile implementation of CBOR")
4705 (description
4706 "The Concise Binary Object Representation (CBOR), as specified by RFC 8949, is
4707 a binary data serialization format. CBOR is similar to JSON but serializes to
4708 binary which is smaller and faster to generate and parse. This package provides
4709 a Guile implementation of CBOR.")
4710 (home-page "https://inqlab.net/git/guile-cbor.git")
4711 (license license:gpl3+)))
4712
4713 (define-public guile-quickcheck
4714 (package
4715 (name "guile-quickcheck")
4716 (version "0.1.0")
4717 (source (origin
4718 (method url-fetch)
4719 (uri (string-append "https://files.ngyro.com/"
4720 "guile-quickcheck/guile-quickcheck-"
4721 version ".tar.gz"))
4722 (sha256
4723 (base32
4724 "03mwi1l3354x52nar0zwhcm0x29yai9xjln4p4gbchwvx5dsr6fb"))))
4725 (build-system gnu-build-system)
4726 (native-inputs
4727 `(("pkg-config" ,pkg-config)))
4728 (inputs
4729 `(("guile" ,guile-3.0)))
4730 (home-page "https://ngyro.com/software/guile-quickcheck.html")
4731 (synopsis "Randomized property-based testing for Guile")
4732 (description "Guile-Quickcheck is a library for random testing of program
4733 properties inspired by ghc-quickcheck. You can use it to express properties,
4734 which functions should satisfy, as Scheme code and then check whether they hold
4735 in a large number of randomly generated test cases.")
4736 (license license:gpl3+)))
4737
4738 (define-public guile-fslib
4739 (package
4740 (name "guile-fslib")
4741 (version "0.2.0")
4742 (source
4743 (origin
4744 (method git-fetch)
4745 (uri (git-reference
4746 (url "https://notabug.org/ZelphirKaltstahl/guile-fslib/")
4747 (commit version)))
4748 (file-name (git-file-name name version))
4749 (sha256
4750 (base32
4751 "118d84p443w7hrslv8hjyhgws631ia08mggiyklkmk0b9plfdsvz"))))
4752 (build-system guile-build-system)
4753 (inputs
4754 `(("guile" ,guile-3.0)))
4755 (home-page "https://notabug.org/ZelphirKaltstahl/guile-fslib")
4756 (synopsis "Helper functions for working with locations in file systems")
4757 (description
4758 "This package contains helper functions for working with file system
4759 locations.")
4760 (license license:agpl3+)))
4761
4762 (define-public guile-netlink
4763 (package
4764 (name "guile-netlink")
4765 (version "1.1")
4766 (source
4767 (origin
4768 (method git-fetch)
4769 (uri (git-reference
4770 (url "https://git.lepiller.eu/git/guile-netlink")
4771 (commit version)))
4772 (file-name (git-file-name name version))
4773 (sha256
4774 (base32
4775 "1x1rx6agjdah56r50cfs41vyvycydyjdq0plq3jxgvl1q2dar1gw"))))
4776 (build-system gnu-build-system)
4777 (arguments
4778 `(#:tests? #f)); no tests
4779 (inputs
4780 `(("guile" ,guile-3.0)))
4781 (native-inputs
4782 `(("automake" ,automake)
4783 ("autoconf" ,autoconf)
4784 ("pkg-config" ,pkg-config)
4785 ("texinfo" ,texinfo)))
4786 (home-page "https://git.lepiller.eu/guile-netlink")
4787 (synopsis "Netlink protocol implementation for Guile")
4788 (description "Guile Netlink is a GNU Guile library providing an implementation
4789 of the netlink protocol.
4790
4791 It provides a generic library for writing implementations of a netlink
4792 protocol, a low-level rtnetlink implementation that uses that library and a
4793 high-level API for network management that uses rtnetlink.")
4794 (license license:gpl3+)))