Merge branch 'master' into core-updates-frozen
[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 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-2.2)))
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 (search-input-file inputs "/bin/openssl")))))
1176
1177 ;; XXX: The code uses 'include' to include its own source
1178 ;; files, and "-L src" isn't enough in this case.
1179 (add-before 'build 'chdir
1180 (lambda _ (chdir "src") #t))
1181 (add-after 'build 'chdir-back
1182 (lambda _ (chdir "..") #t))
1183
1184 (add-after 'install 'install-kernel
1185 (lambda* (#:key inputs outputs #:allow-other-keys)
1186 (let* ((out (assoc-ref outputs "out"))
1187 (json (assoc-ref inputs "guile-json"))
1188 (zmq (assoc-ref inputs "guile-simple-zmq"))
1189 (deps (list json zmq))
1190 (dir (string-append
1191 out "/share/jupyter/kernels/guile"))
1192 (effective (target-guile-effective-version)))
1193 ;; Install kernel.
1194 (install-file "src/kernel.json" dir)
1195
1196 ;; Fix hard-coded file name in the kernel.
1197 (substitute* (string-append dir "/kernel.json")
1198 (("/usr/local/.*/guile-jupyter-kernel.scm")
1199 (string-append out "/share/guile/site/"
1200 (target-guile-effective-version)
1201 "/guile-jupyter-kernel.scm"))
1202 (("\"guile\"")
1203 (string-append "\"" (assoc-ref inputs "guile")
1204 "/bin/guile\""))
1205 (("-s")
1206 ;; Add '-L' and '-C' flags so that the kernel
1207 ;; finds its dependencies.
1208 (let ((-L (map (lambda (item)
1209 (string-append "\"" item
1210 "/share/guile/site/"
1211 effective "\""))
1212 deps))
1213 (-C (map (lambda (item)
1214 (string-append "\"" item
1215 "/lib/guile/"
1216 effective
1217 "/site-ccache\""))
1218 deps)))
1219 (string-append "--no-auto-compile\""
1220 (string-join -L ", \"-L\", "
1221 'prefix)
1222 (string-join -C ", \"-C\", "
1223 'prefix)
1224 ", \"-s"))))
1225 #t))))))
1226 (inputs
1227 `(("openssl" ,openssl)
1228 ("guile" ,guile-3.0)
1229 ("guile-json" ,guile-json-3)
1230 ("guile-simple-zmq" ,guile-simple-zmq)))
1231 (synopsis "Guile kernel for the Jupyter Notebook")
1232 (description
1233 "This package provides a Guile 2.x kernel for the Jupyter Notebook. It
1234 allows users to interact with the Guile REPL through Jupyter.")
1235 (home-page "https://github.com/jerry40/guile-kernel")
1236 (license license:gpl3+))))
1237
1238 (define-public guile-sparql
1239 (package
1240 (name "guile-sparql")
1241 (version "0.0.8")
1242 (source (origin
1243 (method url-fetch)
1244 (uri (string-append
1245 "https://github.com/roelj/guile-sparql/releases/download/"
1246 version "/guile-sparql-" version ".tar.gz"))
1247 (sha256
1248 (base32 "1jf4972f9fpm0rd865xpnc9mzl3xv6vhfnp0iygadydy905z9nln"))))
1249 (build-system gnu-build-system)
1250 (native-inputs
1251 `(("pkg-config" ,pkg-config)))
1252 (inputs
1253 `(("guile" ,guile-3.0)))
1254 (home-page "https://github.com/roelj/guile-sparql")
1255 (synopsis "SPARQL module for Guile")
1256 (description "This package provides the functionality to query a SPARQL
1257 endpoint. Additionally, it provides an interface to write SPARQL queries
1258 using S-expressions.")
1259 (license license:gpl3+)))
1260
1261 (define-public guile-debbugs
1262 (package
1263 (name "guile-debbugs")
1264 (version "0.0.3")
1265 (source (origin
1266 (method url-fetch)
1267 (uri (string-append "mirror://gnu/guile-debbugs/guile-debbugs-"
1268 version ".tar.gz"))
1269 (sha256
1270 (base32
1271 "1cc63nw3xdfjrfk8c58r6d5lidmfq5cpqcy32yd5xp81yccprvn9"))))
1272 (build-system gnu-build-system)
1273 (propagated-inputs
1274 `(("guile-email" ,guile-email)))
1275 (native-inputs
1276 `(("guile" ,guile-3.0)
1277 ("pkg-config" ,pkg-config)))
1278 (home-page "https://savannah.gnu.org/projects/guile-debbugs/")
1279 (synopsis "Guile interface to the Debbugs bug tracking service")
1280 (description
1281 "This package provides a Guile library to communicate with a Debbugs bug
1282 tracker's SOAP service, such as @url{https://bugs.gnu.org}.")
1283 (license license:gpl3+)))
1284
1285 (define-public guile-email
1286 (package
1287 (name "guile-email")
1288 (version "0.2.2")
1289 (source
1290 (origin
1291 (method url-fetch)
1292 (uri (string-append
1293 "https://guile-email.systemreboot.net/releases/guile-email-"
1294 version ".tar.lz"))
1295 (sha256
1296 (base32
1297 "1rc8r0fgvflnyq5ckl7ii8sghpsgpkzxa8vskjr1ak2kyar6m35k"))
1298 (patches
1299 (search-patches "guile-email-fix-tests.patch"))))
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.1")
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 "1ri5065c16kmgrf2pysn2ymxjqi5302lhpb07wkl1jr75ym8fn8p"))))
1474 (build-system gnu-build-system)
1475 (native-inputs
1476 `(("pkg-config" ,pkg-config)))
1477 (inputs
1478 `(("guile" ,guile-2.2)
1479 ("libx11" ,libx11)
1480 ("libxext" ,libxext)
1481 ("libxinerama" ,libxinerama)
1482 ("xosd" ,xosd)))
1483 (home-page "https://github.com/alezost/guile-xosd")
1484 (synopsis "XOSD bindings for Guile")
1485 (description
1486 "Guile-XOSD provides Guile bindings for @code{libxosd},
1487 @uref{http://sourceforge.net/projects/libxosd/, the X On Screen Display
1488 library}.")
1489 (license license:gpl3+)))
1490
1491 (define-public guile-dbi
1492 (package
1493 (name "guile-dbi")
1494 (version "2.1.8")
1495 (source (origin
1496 (method git-fetch)
1497 (uri (git-reference
1498 (url "https://github.com/opencog/guile-dbi")
1499 (commit (string-append "guile-dbi-" version))))
1500 (file-name (git-file-name name version))
1501 (sha256
1502 (base32
1503 "123m4j82bi60s1v95pjh4djb7bh6zdwmljbpyg7zq8ni2gyal7lw"))))
1504 (build-system gnu-build-system)
1505 (arguments
1506 `(#:modules (((guix build guile-build-system)
1507 #:select (target-guile-effective-version))
1508 ,@%gnu-build-system-modules)
1509 #:imported-modules ((guix build guile-build-system)
1510 ,@%gnu-build-system-modules)
1511 #:configure-flags
1512 (list (string-append
1513 "--with-guile-site-dir=" %output "/share/guile/site/"
1514 (target-guile-effective-version (assoc-ref %build-inputs "guile"))))
1515 #:phases
1516 (modify-phases %standard-phases
1517 (add-after 'unpack 'chdir
1518 (lambda _
1519 ;; The upstream Git repository contains all the code, so change
1520 ;; to the directory specific to guile-dbi.
1521 (chdir "guile-dbi")))
1522 (add-after 'install 'patch-extension-path
1523 (lambda* (#:key inputs outputs #:allow-other-keys)
1524 (let* ((out (assoc-ref outputs "out"))
1525 (dbi.scm (string-append out "/share/guile/site/"
1526 (target-guile-effective-version
1527 (assoc-ref inputs "guile"))
1528 "/dbi/dbi.scm"))
1529 (ext (string-append out "/lib/libguile-dbi")))
1530 (substitute* dbi.scm (("libguile-dbi") ext))))))))
1531 (native-inputs
1532 `(("autoconf" ,autoconf)
1533 ("automake" ,automake)
1534 ("libtool" ,libtool)
1535 ("perl" ,perl)
1536 ("texinfo" ,texinfo)))
1537 (propagated-inputs
1538 `(("guile" ,guile-2.2)))
1539 (synopsis "Guile database abstraction layer")
1540 (home-page "https://github.com/opencog/guile-dbi")
1541 (description
1542 "guile-dbi is a library for Guile that provides a convenient interface to
1543 SQL databases. Database programming with guile-dbi is generic in that the same
1544 programming interface is presented regardless of which database system is used.
1545 It currently supports MySQL, Postgres and SQLite3.")
1546 (license license:gpl2+)
1547 (native-search-paths
1548 (list (search-path-specification
1549 (variable "GUILE_DBD_PATH")
1550 (files '("lib")))))))
1551
1552 (define-public guile-dbd-sqlite3
1553 (package
1554 (inherit guile-dbi)
1555 (name "guile-dbd-sqlite3")
1556 (arguments
1557 (substitute-keyword-arguments (package-arguments guile-dbi)
1558 ((#:phases phases)
1559 `(modify-phases ,phases
1560 (replace 'chdir
1561 (lambda _
1562 ;; The upstream Git repository contains all the code, so change
1563 ;; to the directory specific to guile-dbd-sqlite3.
1564 (chdir "guile-dbd-sqlite3")))
1565 (delete 'patch-extension-path)))))
1566 (inputs
1567 `(("sqlite" ,sqlite)
1568 ("zlib" ,zlib)))
1569 (native-inputs
1570 `(("guile-dbi" ,guile-dbi) ; only required for headers
1571 ("pkg-config" ,pkg-config)
1572 ,@(package-native-inputs guile-dbi)))
1573 (synopsis "Guile DBI driver for SQLite")
1574 (description
1575 "guile-dbi is a library for Guile that provides a convenient interface to
1576 SQL databases. This package implements the interface for SQLite.")))
1577
1578 (define-public guile-dbd-postgresql
1579 (package
1580 (inherit guile-dbi)
1581 (name "guile-dbd-postgresql")
1582 (arguments
1583 (substitute-keyword-arguments (package-arguments guile-dbi)
1584 ((#:phases phases)
1585 `(modify-phases ,phases
1586 (replace 'chdir
1587 (lambda _
1588 ;; The upstream Git repository contains all the code, so change
1589 ;; to the directory specific to guile-dbd-mysql.
1590 (chdir "guile-dbd-postgresql")))
1591 (add-after 'chdir 'patch-src
1592 (lambda _
1593 (substitute* "src/guile-dbd-postgresql.c"
1594 (("postgresql/libpq-fe\\.h") "libpq-fe.h"))))
1595 (delete 'patch-extension-path)))))
1596 (inputs
1597 `(("postgresql" ,postgresql)
1598 ("zlib" ,zlib)))
1599 (native-inputs
1600 `(("guile-dbi" ,guile-dbi) ; only required for headers
1601 ,@(package-native-inputs guile-dbi)))
1602 (synopsis "Guile DBI driver for PostgreSQL")
1603 (description
1604 "@code{guile-dbi} is a library for Guile that provides a convenient
1605 interface to SQL databases. This package implements the interface for
1606 PostgreSQL.")))
1607
1608 (define-public guile-dbd-mysql
1609 (package
1610 (inherit guile-dbi)
1611 (name "guile-dbd-mysql")
1612 (arguments
1613 (substitute-keyword-arguments (package-arguments guile-dbi)
1614 ((#:phases phases)
1615 `(modify-phases ,phases
1616 (replace 'chdir
1617 (lambda _
1618 ;; The upstream Git repository contains all the code, so change
1619 ;; to the directory specific to guile-dbd-mysql.
1620 (chdir "guile-dbd-mysql")))
1621 (add-after 'chdir 'patch-src
1622 (lambda _
1623 (substitute* "configure.ac"
1624 (("mariadbclient") "mariadb"))
1625 (substitute* "src/guile-dbd-mysql.c"
1626 (("<mariadb/") "<mysql/"))))
1627 (delete 'patch-extension-path)))))
1628 (inputs
1629 `(("mariadb" ,mariadb "dev")
1630 ("mariadb" ,mariadb "lib")
1631 ("zlib" ,zlib)))
1632 (native-inputs
1633 `(("guile-dbi" ,guile-dbi) ; only required for headers
1634 ,@(package-native-inputs guile-dbi)))
1635 (synopsis "Guile DBI driver for MySQL")
1636 (description "@code{guile-dbi} is a library for Guile that provides a
1637 convenient interface to SQL databases. This package implements the interface
1638 for MySQL.")
1639 (license license:gpl2+)))
1640
1641 (define-public guile-config
1642 (package
1643 (name "guile-config")
1644 (version "0.4.2")
1645 (source
1646 (origin
1647 (method git-fetch)
1648 (uri (git-reference
1649 (url "https://gitlab.com/a-sassmannshausen/guile-config")
1650 (commit version)))
1651 (file-name (git-file-name name version))
1652 (sha256 (base32
1653 "09028ylbddjdp3d67zdjz3pnsjqz6zs2bfck5rr3dfaa0qjap40n"))))
1654 (build-system gnu-build-system)
1655 (native-inputs
1656 `(("autoconf" ,autoconf)
1657 ("automake" ,automake)
1658 ("pkg-config" ,pkg-config)
1659 ("texinfo" ,texinfo)))
1660 (inputs `(("guile" ,guile-3.0)))
1661 (synopsis
1662 "Guile application configuration parsing library.")
1663 (description
1664 "Guile Config is a library providing a declarative approach to
1665 application configuration specification. The library provides clean
1666 configuration declaration forms, and processors that take care of:
1667 configuration file creation; configuration file parsing; command-line
1668 parameter parsing using getopt-long; basic GNU command-line parameter
1669 generation (--help, --usage, --version); automatic output generation for the
1670 above command-line parameters.")
1671 (home-page
1672 "https://gitlab.com/a-sassmannshausen/guile-config")
1673 (license license:gpl3+)))
1674
1675 (define-public guile2.2-config
1676 (package
1677 (inherit guile-config)
1678 (name "guile2.2-config")
1679 (inputs `(("guile" ,guile-2.2)
1680 ,@(alist-delete "guile" (package-inputs guile-config))))))
1681
1682 (define-public guile-hall
1683 (package
1684 (name "guile-hall")
1685 (version "0.3.1")
1686 (source
1687 (origin
1688 (method git-fetch)
1689 (uri (git-reference
1690 (url "https://gitlab.com/a-sassmannshausen/guile-hall")
1691 (commit version)))
1692 (file-name "guile-hall-0.3.1-checkout")
1693 (sha256
1694 (base32 "1s24nigdra6rvclvy15l2aw00c3aq9vv8qwxylzs60darbl36206"))))
1695 (build-system gnu-build-system)
1696 (arguments
1697 `(#:modules
1698 ((ice-9 match)
1699 (ice-9 ftw)
1700 ,@%gnu-build-system-modules)
1701 #:phases
1702 (modify-phases
1703 %standard-phases
1704 (add-after 'install 'hall-wrap-binaries
1705 (lambda* (#:key inputs outputs #:allow-other-keys)
1706 (let* ((compiled-dir
1707 (lambda (out version)
1708 (string-append
1709 out "/lib/guile/" version "/site-ccache")))
1710 (uncompiled-dir
1711 (lambda (out version)
1712 (string-append
1713 out "/share/guile/site"
1714 (if (string-null? version) "" "/") version)))
1715 (dep-path
1716 (lambda (env modules path)
1717 (list env ":" 'prefix
1718 (cons modules
1719 (map (lambda (input)
1720 (string-append
1721 (assoc-ref inputs input)
1722 path))
1723 ,''("guile-config"))))))
1724 (out (assoc-ref outputs "out"))
1725 (bin (string-append out "/bin/"))
1726 (site (uncompiled-dir out "")))
1727 (match (scandir site)
1728 (("." ".." version)
1729 (for-each
1730 (lambda (file)
1731 (wrap-program
1732 (string-append bin file)
1733 (dep-path
1734 "GUILE_LOAD_PATH"
1735 (uncompiled-dir out version)
1736 (uncompiled-dir "" version))
1737 (dep-path
1738 "GUILE_LOAD_COMPILED_PATH"
1739 (compiled-dir out version)
1740 (compiled-dir "" version))))
1741 ,''("hall"))
1742 #t))))))))
1743 (native-inputs
1744 `(("autoconf" ,autoconf)
1745 ("automake" ,automake)
1746 ("pkg-config" ,pkg-config)
1747 ("texinfo" ,texinfo)))
1748 (inputs `(("guile" ,guile-3.0)))
1749 (propagated-inputs
1750 `(("guile-config" ,guile-config)))
1751 (synopsis "Guile project tooling")
1752 (description
1753 "Hall is a command-line application and a set of Guile libraries that
1754 allow you to quickly create and publish Guile projects. It allows you to
1755 transparently support the GNU build system, manage a project hierarchy &
1756 provides tight coupling to Guix.")
1757 (home-page "https://gitlab.com/a-sassmannshausen/guile-hall")
1758 (license license:gpl3+)))
1759
1760 (define-public guile2.2-hall
1761 (package
1762 (inherit guile-hall)
1763 (name "guile2.2-hall")
1764 (inputs `(("guile" ,guile-2.2)
1765 ,@(alist-delete "guile" (package-inputs guile-hall))))
1766 (propagated-inputs
1767 `(("guile-config" ,guile2.2-config)
1768 ,@(alist-delete "guile-config"
1769 (package-propagated-inputs guile-hall))))))
1770
1771 (define-public guile-ics
1772 (package
1773 (name "guile-ics")
1774 (version "0.2.0")
1775 (source (origin
1776 (method git-fetch)
1777 (uri (git-reference
1778 (url "https://github.com/artyom-poptsov/guile-ics")
1779 (commit (string-append "v" version))))
1780 (file-name (string-append name "-" version "-checkout"))
1781 (sha256
1782 (base32
1783 "0qjjvadr7gibdq9jvwkmlkb4afsw9n2shfj9phpiadinxk3p4m2g"))
1784 (modules '((guix build utils)))
1785 (snippet
1786 '(begin
1787 ;; Allow builds with Guile 3.0.
1788 (substitute* "configure.ac"
1789 (("^GUILE_PKG.*")
1790 "GUILE_PKG([3.0 2.2 2.0])\n"))
1791 #t))))
1792 (build-system gnu-build-system)
1793 ;; XXX: Tests expect 'test-runner-current' to not return #f after
1794 ;; 'test-end', which is no longer the case in Guile 3.0.7.
1795 (arguments '(#:tests? #f))
1796 (native-inputs
1797 `(("autoconf" ,autoconf)
1798 ("automake" ,automake)
1799 ("texinfo" ,texinfo)
1800 ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
1801 ("gettext" ,gettext-minimal)
1802 ("pkg-config" ,pkg-config)))
1803 (inputs `(("guile" ,guile-3.0) ("which" ,which)))
1804 (propagated-inputs `(("guile-lib" ,guile-lib)))
1805 (home-page "https://github.com/artyom-poptsov/guile-ics")
1806 (synopsis "Guile parser library for the iCalendar format")
1807 (description
1808 "Guile-ICS is an iCalendar (RFC5545) format parser library written in
1809 pure Scheme. The library can be used to read and write iCalendar data.
1810
1811 The library is shipped with documentation in Info format and usage examples.")
1812 (license license:gpl3+)))
1813
1814 (define-public guile2.2-ics
1815 (package
1816 (inherit guile-ics)
1817 (name "guile2.2-ics")
1818 (inputs `(("guile" ,guile-2.2)
1819 ,@(alist-delete "guile" (package-inputs guile-ics))))
1820 (propagated-inputs `(("guile-lib" ,guile2.2-lib)))))
1821
1822 (define-public guile-imanifest
1823 (let ((commit "ccd5a2111b008d778106f5595a3a585954d95d0")
1824 (revision "0"))
1825 (package
1826 (name "guile-imanifest")
1827 (version (git-version "0.0.0" revision commit))
1828 (source (origin
1829 (method git-fetch)
1830 (uri (git-reference
1831 (url "https://git.sr.ht/~brown121407/guile-imanifest")
1832 (commit commit)))
1833 (file-name (git-file-name name version))
1834 (sha256
1835 (base32
1836 "0i5qllcrhdjhspyj7j9h4dc9y37d3cfbpackmybm3030qgfxqirf"))))
1837 (build-system guile-build-system)
1838 (native-inputs
1839 `(("guile" ,guile-3.0)))
1840 (propagated-inputs
1841 `(("guile-readline" ,guile-readline)
1842 ("guile-colorized" ,guile-colorized)
1843 ("guix" ,guix)))
1844 (home-page "https://sr.ht/~brown121407/guile-imanifest")
1845 (synopsis "Interactive Guix manifests")
1846 (description "This package provides functions to generate Guix manifests
1847 interactively. It works by scanning an alist of package categories, to ask the
1848 user which package sets would they like to install from it.")
1849 (license license:gpl3+))))
1850
1851 (define-public guile-wisp
1852 (package
1853 (name "guile-wisp")
1854 (version "1.0.5")
1855 (source (origin
1856 (method hg-fetch)
1857 (uri (hg-reference
1858 (url "https://hg.sr.ht/~arnebab/wisp")
1859 (changeset (string-append "v" version))))
1860 (file-name (git-file-name name version))
1861 (sha256
1862 (base32
1863 "00iknn03gf421gg3061g35fbraqrkcqypkrfn10rhlgg6j0lgk67"))))
1864 (build-system gnu-build-system)
1865 (arguments
1866 `(#:modules ((guix build gnu-build-system)
1867 ((guix build emacs-build-system) #:prefix emacs:)
1868 (guix build utils)
1869 (guix build emacs-utils)
1870 (ice-9 rdelim)
1871 (ice-9 popen))
1872 #:imported-modules (,@%gnu-build-system-modules
1873 (guix build emacs-build-system)
1874 (guix build emacs-utils))
1875 #:phases
1876 (modify-phases %standard-phases
1877 (replace 'bootstrap
1878 (lambda _
1879 (invoke "autoreconf" "-vif")
1880 #t))
1881 (add-before 'configure 'patch-/usr/bin/env
1882 (lambda _
1883 (substitute* "Makefile.in"
1884 (("/usr/bin/env bash") (which "bash")))
1885 #t))
1886 ;; auto compilation breaks, but if we set HOME to /tmp,
1887 ;; that works ok
1888 (add-before 'check 'auto-compile-hacky-workaround
1889 (lambda _ (setenv "HOME" "/tmp") #t))
1890 (add-after 'install 'install-go-files
1891 (lambda* (#:key outputs inputs #:allow-other-keys)
1892 (let* ((out (assoc-ref outputs "out"))
1893 (effective (read-line
1894 (open-pipe* OPEN_READ
1895 "guile" "-c"
1896 "(display (effective-version))")))
1897 (module-dir (string-append out "/share/guile/site/"
1898 effective))
1899 (object-dir (string-append out "/lib/guile/" effective
1900 "/site-ccache"))
1901 (prefix (string-length module-dir)))
1902 ;; compile to the destination
1903 (for-each (lambda (file)
1904 (let* ((base (string-drop (string-drop-right file 4)
1905 prefix))
1906 (go (string-append object-dir base ".go")))
1907 (invoke "guild" "compile" "-L" module-dir
1908 file "-o" go)))
1909 (find-files module-dir "\\.scm$"))
1910 #t)))
1911 (add-after 'install 'install-emacs-files
1912 (assoc-ref emacs:%standard-phases 'install))
1913 (add-after 'install-emacs-files 'compile-emacs-files
1914 (assoc-ref emacs:%standard-phases 'build))
1915 (add-after 'compile-emacs-files 'make-autoloads
1916 (assoc-ref emacs:%standard-phases 'make-autoloads)))))
1917 (home-page "https://www.draketo.de/english/wisp")
1918 (inputs
1919 `(("guile" ,guile-3.0)))
1920 (native-inputs
1921 `(("autoconf" ,autoconf)
1922 ("automake" ,automake)
1923 ("emacs" ,emacs-minimal)
1924 ("python" ,python)
1925 ("pkg-config" ,pkg-config)))
1926 (synopsis "Whitespace to lisp syntax for Guile")
1927 (description "Wisp is a syntax for Guile which provides a Python-like
1928 whitespace-significant language. It may be easier on the eyes for some
1929 users and in some situations.")
1930 (license (list license:gpl3+ ; the project as a whole
1931 license:expat)))) ; the language spec (see also SRFI 119)
1932
1933 (define-public guile2.2-wisp
1934 (package
1935 (inherit guile-wisp)
1936 (name "guile2.2-wisp")
1937 (inputs `(("guile" ,guile-2.2)))))
1938
1939 (define-public guile-udev
1940 (package
1941 (name "guile-udev")
1942 (version "0.1.0")
1943 (source (origin
1944 (method git-fetch)
1945 (uri (git-reference
1946 (url "https://github.com/artyom-poptsov/guile-udev")
1947 (commit (string-append "v" version))))
1948 (file-name (git-file-name name version))
1949 (sha256
1950 (base32
1951 "1l6csncjqnx58c6c3wdl7rshnhk4pzhjq2q8lnkg483564s9w5py"))))
1952 (build-system gnu-build-system)
1953 (native-inputs
1954 `(("autoconf" ,autoconf)
1955 ("automake" ,automake)
1956 ("gettext" ,gettext-minimal)
1957 ("libtool" ,libtool)
1958 ("texinfo" ,texinfo)
1959 ("pkg-config" ,pkg-config)
1960 ("which" ,which)))
1961 (inputs
1962 `(("guile" ,guile-3.0)
1963 ("eudev" ,eudev)))
1964 (home-page "https://github.com/artyom-poptsov/guile-udev")
1965 (synopsis "Guile bindings to libudev")
1966 (description
1967 "Guile-Udev provides GNU Guile bindings to libudev.")
1968 (license license:gpl3+)))
1969
1970 (define-public guile-sly
1971 (package
1972 (name "guile-sly")
1973 (version "0.1")
1974 (source (origin
1975 (method url-fetch)
1976 (uri (string-append "https://files.dthompson.us/sly/sly-"
1977 version ".tar.gz"))
1978 (sha256
1979 (base32
1980 "1svzlbz2vripmyq2kjh0rig16bsrnbkwbsm558pjln9l65mcl4qq"))
1981 (modules '((guix build utils)))
1982 (snippet
1983 '(begin
1984 (substitute* "configure"
1985 (("_guile_required_version=\"2.0.11\"")
1986 "_guile_required_version=\"2\"")
1987 (("ac_subst_vars='")
1988 "ac_subst_vars='GUILE_EFFECTIVE_VERSION\n"))
1989 (substitute* (find-files "." "Makefile.in")
1990 (("moddir = .*$")
1991 (string-append
1992 "moddir = "
1993 "$(prefix)/share/guile/site/@GUILE_EFFECTIVE_VERSION@\n"))
1994 (("godir = .*$")
1995 (string-append
1996 "godir = "
1997 "$(prefix)/lib/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n")))
1998 #t))))
1999 (build-system gnu-build-system)
2000 (arguments
2001 '(#:configure-flags
2002 (list (string-append "--with-libfreeimage-prefix="
2003 (assoc-ref %build-inputs "freeimage"))
2004 (string-append "--with-libgslcblas-prefix="
2005 (assoc-ref %build-inputs "gsl")))))
2006 (native-inputs
2007 `(("pkg-config" ,pkg-config)))
2008 (propagated-inputs
2009 `(("guile-sdl" ,guile-sdl)
2010 ("guile-opengl" ,guile-opengl)))
2011 (inputs
2012 `(("guile" ,guile-2.2)
2013 ("gsl" ,gsl)
2014 ("freeimage" ,freeimage)
2015 ("mesa" ,mesa)))
2016 (synopsis "2D/3D game engine for GNU Guile")
2017 (description "Sly is a 2D/3D game engine written in Guile Scheme. Sly
2018 features a functional reactive programming interface and live coding
2019 capabilities.")
2020 (home-page "https://dthompson.us/projects/sly.html")
2021 (license license:gpl3+)))
2022
2023 (define-public g-golf
2024 (let ((commit "ef830107b9765bd6a2da848d0cbe45e11374c0b5")
2025 (revision "839"))
2026 (package
2027 (name "g-golf")
2028 (version (git-version "0.1.0" revision commit))
2029 (source
2030 (origin
2031 (method git-fetch)
2032 (uri (git-reference
2033 (url "https://git.savannah.gnu.org/git/g-golf.git")
2034 (commit commit)))
2035 (file-name (git-file-name name version))
2036 (sha256
2037 (base32 "0r472hvmf447kqvkahp1wy4irb5gy8y793hm8r9rc511smdx66cw"))))
2038 (build-system gnu-build-system)
2039 (native-inputs
2040 `(("autoconf" ,autoconf)
2041 ("automake" ,automake)
2042 ("texinfo" ,texinfo)
2043 ("gettext" ,gettext-minimal)
2044 ("libtool" ,libtool)
2045 ("pkg-config" ,pkg-config)
2046 ("xorg-server" ,xorg-server)))
2047 (inputs
2048 `(("guile" ,guile-2.2)
2049 ("guile-lib" ,guile2.2-lib)
2050 ("clutter" ,clutter)
2051 ("gtk" ,gtk+)
2052 ("glib" ,glib)))
2053 (propagated-inputs
2054 `(("gobject-introspection" ,gobject-introspection)))
2055 (arguments
2056 `(#:phases
2057 (modify-phases %standard-phases
2058 (add-before 'configure 'tests-work-arounds
2059 (lambda* (#:key inputs #:allow-other-keys)
2060 ;; In build environment, There is no /dev/tty
2061 (substitute*
2062 "test-suite/tests/gobject.scm"
2063 (("/dev/tty") "/dev/null"))))
2064 (add-before 'configure 'substitute-libs
2065 (lambda* (#:key inputs outputs #:allow-other-keys)
2066 (let* ((get (lambda (key lib)
2067 (string-append (assoc-ref inputs key) "/lib/" lib)))
2068 (libgi (get "gobject-introspection" "libgirepository-1.0"))
2069 (libglib (get "glib" "libglib-2.0"))
2070 (libgobject (get "glib" "libgobject-2.0"))
2071 (libgdk (get "gtk" "libgdk-3")))
2072 (substitute* "configure"
2073 (("SITEDIR=\"\\$datadir/g-golf\"")
2074 "SITEDIR=\"$datadir/guile/site/$GUILE_EFFECTIVE_VERSION\"")
2075 (("SITECCACHEDIR=\"\\$libdir/g-golf/")
2076 "SITECCACHEDIR=\"$libdir/"))
2077 (substitute* "g-golf/init.scm"
2078 (("libgirepository-1.0") libgi)
2079 (("libglib-2.0") libglib)
2080 (("libgdk-3") libgdk)
2081 (("libgobject-2.0") libgobject)
2082 (("\\(dynamic-link \"libg-golf\"\\)")
2083 (format #f "~s"
2084 `(dynamic-link
2085 (format #f "~alibg-golf"
2086 (if (getenv "GUILE_GGOLF_UNINSTALLED")
2087 ""
2088 ,(format #f "~a/lib/"
2089 (assoc-ref outputs "out"))))))))
2090 (setenv "GUILE_AUTO_COMPILE" "0")
2091 (setenv "GUILE_GGOLF_UNINSTALLED" "1")
2092 #t)))
2093 (add-before 'check 'start-xorg-server
2094 (lambda* (#:key inputs #:allow-other-keys)
2095 ;; The test suite requires a running X server.
2096 (system (format #f "~a/bin/Xvfb :1 &"
2097 (assoc-ref inputs "xorg-server")))
2098 (setenv "DISPLAY" ":1")
2099 #t)))))
2100 (home-page "https://www.gnu.org/software/g-golf/")
2101 (synopsis "Guile bindings for GObject Introspection")
2102 (description
2103 "G-Golf (Gnome: (Guile Object Library for)) is a library for developing
2104 modern applications in Guile Scheme. It comprises a direct binding to the
2105 GObject Introspection API and higher-level functionality for importing Gnome
2106 libraries and making GObject classes (and methods) available in Guile's
2107 object-oriented programming system, GOOPS.")
2108 (license license:lgpl3+))))
2109
2110 (define-public g-wrap
2111 (package
2112 (name "g-wrap")
2113 (version "1.9.15")
2114 (source (origin
2115 (method url-fetch)
2116 (uri (string-append "mirror://savannah/g-wrap/g-wrap-"
2117 version ".tar.gz"))
2118 (sha256
2119 (base32
2120 "0ak0bha37dfpj9kmyw1r8fj8nva639aw5xr66wr5gd3l1rqf5xhg"))))
2121 (build-system gnu-build-system)
2122 (native-inputs
2123 `(("pkg-config" ,pkg-config)))
2124 (propagated-inputs
2125 `(("guile" ,guile-2.2)
2126 ("guile-lib" ,guile-lib)))
2127 (inputs
2128 `(("libffi" ,libffi)))
2129 (arguments
2130 `(#:configure-flags '("--disable-Werror")
2131 #:phases
2132 (modify-phases %standard-phases
2133 (add-before 'configure 'pre-configure
2134 (lambda* (#:key outputs #:allow-other-keys)
2135 (let ((out (assoc-ref outputs "out")))
2136 (substitute* (find-files "." "^Makefile.in$")
2137 (("guilemoduledir =.*guile/site" all)
2138 (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
2139 #t))))))
2140 (synopsis "Generate C bindings for Guile")
2141 (description "G-Wrap is a tool and Guile library for generating function
2142 wrappers for inter-language calls. It currently only supports generating Guile
2143 wrappers for C functions. Given a definition of the types and prototypes for
2144 a given C interface, G-Wrap will automatically generate the C code that
2145 provides access to that interface and its types from the Scheme level.")
2146 (home-page "https://www.nongnu.org/g-wrap/index.html")
2147 (license license:lgpl2.1+)))
2148
2149 (define-public guile-miniadapton
2150 (let ((commit "1b5749422304567c96ac5367f2221dda9eff5880")
2151 (revision "1"))
2152 (package
2153 (name "guile-miniadapton")
2154 (version (string-append "0-" revision "." (string-take commit 9)))
2155 (source (origin
2156 (method git-fetch)
2157 (uri (git-reference
2158 (url "https://github.com/fisherdj/miniAdapton")
2159 (commit commit)))
2160 (file-name (string-append name "-" version "-checkout"))
2161 (sha256
2162 (base32
2163 "09q51zkw2fypad5xixskfzw2cjhjgs5cswdp3i7cpp651rb3zndh"))))
2164 (build-system guile-build-system)
2165 (native-inputs
2166 `(("guile" ,guile-2.2)))
2167 (home-page "https://github.com/fisherdj/miniAdapton")
2168 (synopsis "Minimal implementation of incremental computation in Guile
2169 Scheme")
2170 (description "This package provides a complete Scheme implementation of
2171 miniAdapton, which implements the core functionality of the Adapton system for
2172 incremental computation (also known as self-adjusting computation). Like
2173 Adapton, miniAdapton allows programmers to safely combine mutation and
2174 memoization. miniAdapton is built on top of an even simpler system,
2175 microAdapton. Both miniAdapton and microAdapton are designed to be easy to
2176 understand, extend, and port to host languages other than Scheme.")
2177 (license license:expat))))
2178
2179 (define-public guile-raw-strings
2180 (let ((commit "aa1cf783f2542811b473f797e12490920b779baa")
2181 (revision "0"))
2182 (package
2183 (name "guile-raw-strings")
2184 (version (git-version "0.0.0" revision commit))
2185 (source (origin
2186 (method git-fetch)
2187 (uri (git-reference
2188 (url "https://github.com/lloda/guile-raw-strings")
2189 (commit commit)))
2190 (file-name (git-file-name name version))
2191 (sha256
2192 (base32
2193 "1r2gx86zw5hb6byllra3nap3fw9p7q7rvdmg6qn9myrdxyjpns3l"))))
2194 (build-system guile-build-system)
2195 (arguments
2196 `(#:phases
2197 (modify-phases %standard-phases
2198 (add-after 'build 'check
2199 (lambda* (#:key tests? #:allow-other-keys)
2200 (when tests?
2201 (invoke "guile" "-L" "." "-s" "test.scm")))))))
2202 (native-inputs
2203 `(("guile" ,guile-3.0)))
2204 (home-page "https://github.com/lloda/guile-raw-strings")
2205 (synopsis "Guile reader extension for `raw strings'")
2206 (description "This package provides A Guile reader extension for `raw
2207 strings', it lets you write verbatim strings without having to escape double
2208 quotes. ")
2209 (license license:public-domain))))
2210
2211 (define-public guile-reader
2212 (package
2213 (name "guile-reader")
2214 (version "0.6.3")
2215 (source (origin
2216 (method url-fetch)
2217 (uri (string-append "mirror://savannah/guile-reader/guile-reader-"
2218 version ".tar.gz"))
2219 (sha256
2220 (base32
2221 "1fyjckmygkhq22lq8nqc86yl5zzbqd7a944dnz5c1f6vx92b9hiq"))))
2222 (build-system gnu-build-system)
2223 (native-inputs `(("pkgconfig" ,pkg-config)
2224 ("gperf" ,gperf)))
2225 (inputs `(("guile" ,guile-3.0)))
2226 (synopsis "Framework for building readers for GNU Guile")
2227 (description
2228 "Guile-Reader is a simple framework for building readers for GNU Guile.
2229
2230 The idea is to make it easy to build procedures that extend Guile’s read
2231 procedure. Readers supporting various syntax variants can easily be written,
2232 possibly by re-using existing “token readers” of a standard Scheme
2233 readers. For example, it is used to implement Skribilo’s R5RS-derived
2234 document syntax.
2235
2236 Guile-Reader’s approach is similar to Common Lisp’s “read table”, but
2237 hopefully more powerful and flexible (for instance, one may instantiate as
2238 many readers as needed).")
2239 (home-page "https://www.nongnu.org/guile-reader/")
2240 (license license:gpl3+)))
2241
2242 (define-public guile2.2-reader
2243 (package
2244 (inherit guile-reader)
2245 (name "guile2.2-reader")
2246 (inputs `(("guile" ,guile-2.2)))))
2247
2248 (define-public guile-ncurses
2249 (package
2250 (name "guile-ncurses")
2251 (version "3.0")
2252 (source (origin
2253 (method url-fetch)
2254 (uri (string-append "mirror://gnu/guile-ncurses/guile-ncurses-"
2255 version ".tar.gz"))
2256 (sha256
2257 (base32
2258 "038xbffalhymg26lvmzgf7ljilxz2f2zmqg5r5nfzbipfbprwjhf"))))
2259 (build-system gnu-build-system)
2260 (inputs `(("ncurses" ,ncurses)
2261 ("guile" ,guile-3.0)))
2262 (native-inputs `(("pkg-config" ,pkg-config)))
2263 (arguments
2264 `(#:modules ((guix build gnu-build-system)
2265 ((guix build guile-build-system)
2266 #:select (target-guile-effective-version))
2267 (guix build utils))
2268 #:imported-modules ((guix build guile-build-system)
2269 ,@%gnu-build-system-modules)
2270 #:configure-flags (list "--with-ncursesw" ; Unicode support
2271 "--with-gnu-filesystem-hierarchy")
2272 #:phases
2273 (modify-phases %standard-phases
2274 (add-before 'build 'fix-libguile-ncurses-file-name
2275 (lambda* (#:key outputs #:allow-other-keys)
2276 (invoke "make" "install"
2277 "-C" "src/ncurses"
2278 "-j" (number->string
2279 (parallel-job-count)))
2280 (let* ((out (assoc-ref outputs "out"))
2281 (dir "src/ncurses")
2282 (files (find-files dir ".scm")))
2283 (substitute* files
2284 (("\"libguile-ncurses\"")
2285 (format #f "\"~a/lib/guile/~a/libguile-ncurses\""
2286 out (target-guile-effective-version))))
2287 #t))))))
2288 (home-page "https://www.gnu.org/software/guile-ncurses/")
2289 (synopsis "Guile bindings to ncurses")
2290 (description
2291 "guile-ncurses provides Guile language bindings for the ncurses
2292 library.")
2293 (license license:lgpl3+)))
2294
2295 (define-public guile2.2-ncurses
2296 (package
2297 (inherit guile-ncurses)
2298 (name "guile2.2-ncurses")
2299 (inputs `(("ncurses" ,ncurses)
2300 ("guile" ,guile-2.2)))))
2301
2302 (define-public guile-ncurses/gpm
2303 (package
2304 (inherit guile-ncurses)
2305 (name "guile-ncurses-with-gpm")
2306 (inputs `(("ncurses" ,ncurses/gpm)
2307 ("guile" ,guile-3.0)))))
2308
2309 (define-public guile-lib
2310 (package
2311 (name "guile-lib")
2312 (version "0.2.7")
2313 (source (origin
2314 (method url-fetch)
2315 (uri (string-append "mirror://savannah/guile-lib/guile-lib-"
2316 version ".tar.gz"))
2317 (sha256
2318 (base32
2319 "1ph4z4a64m75in36pdb4dw63dzdq3hdgh16gq33q460jby23pvz4"))))
2320 (build-system gnu-build-system)
2321 (arguments
2322 '(#:make-flags '("GUILE_AUTO_COMPILE=0") ;placate guild warnings
2323 #:phases
2324 (modify-phases %standard-phases
2325 (add-before 'configure 'patch-module-dir
2326 (lambda _
2327 (substitute* "src/Makefile.in"
2328 (("^moddir = ([[:graph:]]+)")
2329 "moddir = $(datadir)/guile/site/@GUILE_EFFECTIVE_VERSION@\n")
2330 (("^godir = ([[:graph:]]+)")
2331 "godir = \
2332 $(libdir)/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n")))))))
2333 (native-inputs
2334 `(("autoconf" ,autoconf)
2335 ("automake" ,automake)
2336 ("gettext" ,gettext-minimal)
2337 ("guile" ,guile-3.0)
2338 ("pkg-config" ,pkg-config)))
2339 (inputs
2340 `(("guile" ,guile-3.0))) ;for cross-compilation
2341 (home-page "https://www.nongnu.org/guile-lib/")
2342 (synopsis "Collection of useful Guile Scheme modules")
2343 (description
2344 "Guile-Lib is intended as an accumulation place for pure-scheme Guile
2345 modules, allowing for people to cooperate integrating their generic Guile
2346 modules into a coherent library. Think \"a down-scaled, limited-scope CPAN
2347 for Guile\". It provides the following modules:
2348 +@itemize
2349 +@item (apicheck) Describe and verify library programming interfaces.
2350 +@item (config load) Loading configuration files.
2351 +@item (container async-queue) A thread-safe message queue.
2352 +@item (container nodal-tree) A tree consisting of nodes with attributes.
2353 +@item (container delay-tree) A nodal tree with lazily evaluated fields.
2354 +@item (debugging assert) Helpful assert macro.
2355 +@item (debugging time) A simple macro to time the execution of an expression.
2356 +@item (graph topological-sort) Routines to perform topological sorts.
2357 +@item (htmlprag) Neil Van Dyke's permissive (\"pragmatic\") HTML parser.
2358 +@item (io string) SLIB's IO routines dealing with strings.
2359 +@item (logging logger) A flexible logging system.
2360 +@item (logging port-log) A logger that outputs to a port.
2361 +@item (logging rotating-log) A logger that rotates its output files.
2362 +@item (match-bind) Nifty and concise regular expression routines.
2363 +@item (math minima) A golden-section minimum finder.
2364 +@item (math primes) Functions related to prime numbers and factorization.
2365 +@item (os process) Spawning processes and capturing their output.
2366 +@item (scheme documentation) Macros to define different kinds of variables
2367 +with documentation.
2368 +@item (scheme kwargs) Defining functions with flexible keyword arguments.
2369 +@item (search basic) Classic search functions.
2370 +@item (string completion) Building blocks for tab completion.
2371 +@item (string soundex) The SOUNDEX string categorization algorithm.
2372 +@item (string transform) Beyond SRFI-13.
2373 +@item (string wrap) A versatile string formatter.
2374 +@item (term ansi-color) Generate ANSI color escape sequences.
2375 +@item (unit-test) A JUnit-style unit testing framework.
2376 +@end itemize")
2377 ;; The whole is under GPLv3+, but some modules are under laxer
2378 ;; distribution terms such as LGPL and public domain. See `COPYING' for
2379 ;; details.
2380 (license license:gpl3+)))
2381
2382 (define-public guile2.0-lib
2383 (package
2384 (inherit guile-lib)
2385 (name "guile2.0-lib")
2386 (native-inputs
2387 (alist-replace "guile" (list guile-2.0)
2388 (package-native-inputs guile-lib)))
2389 (inputs
2390 (alist-replace "guile" (list guile-2.0)
2391 (package-inputs guile-lib)))))
2392
2393 (define-public guile2.2-lib
2394 (package
2395 (inherit guile-lib)
2396 (name "guile2.2-lib")
2397 (native-inputs
2398 (alist-replace "guile" (list guile-2.2)
2399 (package-native-inputs guile-lib)))
2400 (inputs
2401 (alist-replace "guile" (list guile-2.2)
2402 (package-inputs guile-lib)))))
2403
2404 (define-public guile-minikanren
2405 (package
2406 (name "guile-minikanren")
2407 (version "20150424.e844d85")
2408 (source (origin
2409 (method git-fetch)
2410 (uri (git-reference
2411 (url "https://github.com/ijp/minikanren")
2412 (commit "e844d85512f8c055d3f96143ee506007389a25e3")))
2413 (file-name (string-append name "-" version "-checkout"))
2414 (sha256
2415 (base32
2416 "0r50jlpzi940jlmxyy3ddqqwmj5r12gb4bcv0ssini9v8km13xz6"))))
2417 (build-system guile-build-system)
2418 (native-inputs
2419 `(("guile" ,guile-3.0)))
2420 (home-page "https://github.com/ijp/minikanren")
2421 (synopsis "MiniKanren declarative logic system, packaged for Guile")
2422 (description
2423 "MiniKanren is a relational programming extension to the Scheme
2424 programming Language, written as a smaller version of Kanren suitable for
2425 pedagogical purposes. It is featured in the book, The Reasoned Schemer,
2426 written by Dan Friedman, William Byrd, and Oleg Kiselyov.
2427
2428 This is Ian Price's r6rs packaged version of miniKanren, which deviates
2429 slightly from miniKanren mainline.
2430
2431 See http://minikanren.org/ for more on miniKanren generally.")
2432 (license license:expat)))
2433
2434 (define-public guile2.0-minikanren
2435 (package
2436 (inherit guile-minikanren)
2437 (name "guile2.0-minikanren")
2438 (native-inputs `(("guile" ,guile-2.0)))))
2439
2440 (define-public guile2.2-minikanren
2441 (package
2442 (inherit guile-minikanren)
2443 (name "guile2.2-minikanren")
2444 (native-inputs `(("guile" ,guile-2.2)))))
2445
2446 (define-public guile-irregex
2447 (package
2448 (name "guile-irregex")
2449 (version "0.9.6")
2450 (source (origin
2451 (method url-fetch)
2452 (uri (string-append
2453 "http://synthcode.com/scheme/irregex/irregex-"
2454 version ".tar.gz"))
2455 (sha256
2456 (base32
2457 "1ia3m7dp3lcxa048q0gqbiwwsyvn99baw6xkhb4bhhzn4k7bwyqq"))))
2458 (build-system guile-build-system)
2459 (arguments
2460 '(#:phases (modify-phases %standard-phases
2461 (add-after 'unpack 'move-files-around
2462 (lambda _
2463 ;; Move the relevant source files to src/ and create the
2464 ;; rx/ directory to match the expected module hierarchy.
2465 (mkdir-p "src/rx/source")
2466 (rename-file "irregex-guile.scm"
2467 "src/rx/irregex.scm")
2468 (rename-file "irregex.scm"
2469 "src/rx/source/irregex.scm")
2470 ;; Not really reachable via guile's packaging system,
2471 ;; but nice to have around.
2472 (rename-file "irregex-utils.scm"
2473 "src/rx/source/irregex-utils.scm")
2474 #t)))
2475 #:source-directory "src"))
2476 (native-inputs
2477 `(("guile" ,guile-3.0)))
2478 (home-page "http://synthcode.com/scheme/irregex")
2479 (synopsis "S-expression based regular expressions")
2480 (description
2481 "Irregex is an s-expression based alternative to your classic
2482 string-based regular expressions. It implements SRFI 115 and is deeply
2483 inspired by the SCSH regular expression system.")
2484 (license license:bsd-3)))
2485
2486 (define-public guile2.0-irregex
2487 (package
2488 (inherit guile-irregex)
2489 (name "guile2.0-irregex")
2490 (native-inputs `(("guile" ,guile-2.0)))))
2491
2492 (define-public guile2.2-irregex
2493 (package
2494 (inherit guile-irregex)
2495 (name "guile2.2-irregex")
2496 (native-inputs `(("guile" ,guile-2.2)))))
2497
2498 (define-public haunt
2499 (package
2500 (name "haunt")
2501 (version "0.2.5")
2502 (source (origin
2503 (method url-fetch)
2504 (uri (string-append "https://files.dthompson.us/haunt/haunt-"
2505 version ".tar.gz"))
2506 (sha256
2507 (base32
2508 "1gy45l6m91b3wpdbpd9bpisp00zl8610zs0a2nwmbjlpd2cbf90k"))))
2509 (build-system gnu-build-system)
2510 (arguments
2511 `(#:modules ((ice-9 match) (ice-9 ftw)
2512 ,@%gnu-build-system-modules)
2513 #:tests? #f ; test suite is non-deterministic :(
2514 #:phases (modify-phases %standard-phases
2515 (add-after 'install 'wrap-haunt
2516 (lambda* (#:key inputs outputs #:allow-other-keys)
2517 ;; Wrap the 'haunt' command to refer to the right
2518 ;; modules.
2519 (let* ((out (assoc-ref outputs "out"))
2520 (bin (string-append out "/bin"))
2521 (site (string-append
2522 out "/share/guile/site"))
2523 (guile-reader (assoc-ref inputs "guile-reader"))
2524 (deps `(,@(if guile-reader
2525 (list guile-reader)
2526 '())
2527 ,(assoc-ref inputs "guile-commonmark"))))
2528 (match (scandir site)
2529 (("." ".." version)
2530 (let ((modules (string-append site "/" version))
2531 (compiled-modules (string-append
2532 out "/lib/guile/" version
2533 "/site-ccache")))
2534 (wrap-program (string-append bin "/haunt")
2535 `("GUILE_LOAD_PATH" ":" prefix
2536 (,modules
2537 ,@(map (lambda (dep)
2538 (string-append dep
2539 "/share/guile/site/"
2540 version))
2541 deps)))
2542 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
2543 (,compiled-modules
2544 ,@(map (lambda (dep)
2545 (string-append dep "/lib/guile/"
2546 version
2547 "/site-ccache"))
2548 deps))))
2549 #t)))))))))
2550 (native-inputs
2551 `(("pkg-config" ,pkg-config)
2552 ("texinfo" ,texinfo)))
2553 (inputs
2554 ;; Depend on the latest Guile to avoid bytecode compatibility issues when
2555 ;; using modules built against the latest version.
2556 `(("guile" ,guile-3.0-latest)))
2557 (propagated-inputs
2558 `(("guile-reader" ,guile-reader)
2559 ("guile-commonmark" ,guile-commonmark)))
2560 (synopsis "Functional static site generator")
2561 (description "Haunt is a static site generator written in Guile
2562 Scheme. Haunt features a functional build system and an extensible
2563 interface for reading articles in any format.")
2564 (home-page "https://dthompson.us/projects/haunt.html")
2565 (license license:gpl3+)))
2566
2567 (define-public guile2.2-haunt
2568 (package
2569 (inherit haunt)
2570 (name "guile2.2-haunt")
2571 (inputs `(("guile" ,guile-2.2)))
2572 (propagated-inputs
2573 `(("guile-reader" ,guile2.2-reader)
2574 ("guile-commonmark" ,guile2.2-commonmark)))))
2575
2576 (define-public guile2.0-haunt
2577 (package
2578 (inherit haunt)
2579 (name "guile2.0-haunt")
2580 (inputs `(("guile" ,guile-2.0)))))
2581
2582 (define-public guile-redis
2583 (package
2584 (name "guile-redis")
2585 (version "2.1.1")
2586 (home-page "https://github.com/aconchillo/guile-redis")
2587 (source (origin
2588 (method git-fetch)
2589 (uri (git-reference
2590 (url home-page)
2591 (commit version)))
2592 (file-name (git-file-name name version))
2593 (sha256
2594 (base32
2595 "0pvk4yadgx64wk81cpisdc7zqhk6ww58xi5fs5fs6s28wb6l5bfj"))))
2596 (build-system gnu-build-system)
2597 (arguments
2598 '(#:make-flags '("GUILE_AUTO_COMPILE=0")))
2599 (native-inputs
2600 `(("autoconf" ,autoconf)
2601 ("automake" ,automake)
2602 ("pkg-config" ,pkg-config)
2603 ("guile" ,guile-3.0)))
2604 (synopsis "Redis client library for Guile")
2605 (description "Guile-redis provides a Scheme interface to the Redis
2606 key-value cache and store.")
2607 (license license:lgpl3+)))
2608
2609 (define-public guile2.2-redis
2610 (package
2611 (inherit guile-redis)
2612 (name "guile2.2-redis")
2613 (native-inputs `(("guile" ,guile-2.2)
2614 ,@(alist-delete "guile"
2615 (package-native-inputs guile-redis))))))
2616
2617 (define-public guile2.0-redis
2618 (package
2619 (inherit guile-redis)
2620 (name "guile2.0-redis")
2621 (arguments
2622 `(#:phases
2623 (modify-phases %standard-phases
2624 (add-after 'unpack 'patch-source
2625 (lambda _
2626 ;; put-string is in (rnrs io ports) in guile2.0,
2627 ;; not in (ice-9 textual-ports)
2628 (substitute* "redis/utils.scm"
2629 (("\\(ice-9 textual-ports\\)")
2630 "(rnrs io ports)"))
2631 #t)))
2632 ,@(package-arguments guile-redis)))
2633 (native-inputs `(("guile" ,guile-2.0)
2634 ,@(alist-delete "guile"
2635 (package-native-inputs guile-redis))))))
2636
2637 (define-public guile-commonmark
2638 (package
2639 (name "guile-commonmark")
2640 (version "0.1.2")
2641 (source (origin
2642 (method url-fetch)
2643 (uri (string-append "https://github.com/OrangeShark/" name
2644 "/releases/download/v" version
2645 "/" name "-" version ".tar.gz"))
2646 (sha256
2647 (base32
2648 "17lrsdisa3kckh24q114vfmzdc4wkqa6ccwl4hdlrng5wpn1iman"))
2649 (modules '((guix build utils)))
2650 (snippet
2651 '(begin
2652 ;; Allow builds with Guile 3.0.
2653 (substitute* "configure"
2654 (("2\\.2 2\\.0")
2655 "3.0 2.2 2.0"))
2656 #t))))
2657 (build-system gnu-build-system)
2658 ;; The tests throw exceptions with Guile 3.0.5, because they evaluate
2659 ;; (exit ...).
2660 ;;
2661 ;; This has been fixed upstream, but there has not been a new release
2662 ;; containing this change.
2663 (arguments
2664 '(#:phases
2665 (modify-phases %standard-phases
2666 (add-after 'unpack 'fix-tests-when-building-with-guile-3.0.5
2667 (lambda _
2668 (substitute* (find-files "tests" "\\.scm$")
2669 (("\\(exit.*") ""))
2670 #t)))))
2671 (inputs
2672 `(("guile" ,guile-3.0)))
2673 (native-inputs
2674 `(("pkg-config" ,pkg-config)))
2675 (synopsis "CommonMark parser for Guile")
2676 (description
2677 "guile-commonmark is a library for parsing CommonMark, a fully specified
2678 variant of Markdown. The library is written in Guile Scheme and is designed
2679 to transform a CommonMark document to SXML. guile-commonmark tries to closely
2680 follow the @uref{http://commonmark.org/, CommonMark spec}, the main difference
2681 is no support for parsing block and inline level HTML.")
2682 (home-page "https://github.com/OrangeShark/guile-commonmark")
2683 (license license:lgpl3+)))
2684
2685 (define-public guile2.2-commonmark
2686 (package
2687 (inherit guile-commonmark)
2688 (name "guile2.2-commonmark")
2689 (inputs `(("guile" ,guile-2.2)))))
2690
2691 (define-public guile2.0-commonmark
2692 (package
2693 (inherit guile-commonmark)
2694 (name "guile2.0-commonmark")
2695 (inputs `(("guile" ,guile-2.0)))))
2696
2697 (define-public mcron
2698 (package
2699 (name "mcron")
2700 (version "1.2.1")
2701 (source (origin
2702 (method url-fetch)
2703 (uri (string-append "mirror://gnu/mcron/mcron-"
2704 version ".tar.gz"))
2705 (sha256
2706 (base32
2707 "0bkn235g2ia4f7ispr9d55c7bc18282r3qd8ldhh5q2kiin75zi0"))))
2708 (build-system gnu-build-system)
2709 (arguments
2710 '(#:phases (modify-phases %standard-phases
2711 (add-before 'check 'adjust-tests
2712 (lambda _
2713 (substitute* "tests/job-specifier.scm"
2714 ;; (getpw) fails with "entry not found" in the build
2715 ;; environment, so pass an argument.
2716 (("\\(getpw\\)")
2717 "(getpwnam (getuid))")
2718 ;; The build environment lacks an entry for root in
2719 ;; /etc/passwd.
2720 (("\\(getpw 0\\)")
2721 "(getpwnam \"nobody\")")
2722
2723 ;; FIXME: Skip the 4 faulty tests (see above).
2724 (("\\(test-equal \"next-year\"" all)
2725 (string-append "(test-skip 4)\n" all)))
2726 #t)))))
2727 (native-inputs `(("pkg-config" ,pkg-config)
2728 ("tzdata" ,tzdata-for-tests)
2729 ("guile-native" ;for 'guild compile'
2730 ,@(assoc-ref (package-inputs this-package) "guile"))))
2731 (inputs `(("guile" ,guile-3.0)))
2732 (home-page "https://www.gnu.org/software/mcron/")
2733 (synopsis "Run jobs at scheduled times")
2734 (description
2735 "GNU Mcron is a complete replacement for Vixie cron. It is used to run
2736 tasks on a schedule, such as every hour or every Monday. Mcron is written in
2737 Guile, so its configuration can be written in Scheme; the original cron
2738 format is also supported.")
2739 (license license:gpl3+)))
2740
2741 (define-public guile2.2-mcron
2742 (package
2743 (inherit mcron)
2744 (name "guile2.2-mcron")
2745 (inputs `(("guile" ,guile-2.2)))))
2746
2747 (define-public guile-picture-language
2748 (let ((commit "a1322bf11945465241ca5b742a70893f24156d12")
2749 (revision "5"))
2750 (package
2751 (name "guile-picture-language")
2752 (version (git-version "0.0.1" revision commit))
2753 (source (origin
2754 (method git-fetch)
2755 (uri (git-reference
2756 (url "https://git.elephly.net/software/guile-picture-language.git")
2757 (commit commit)))
2758 (file-name (git-file-name name version))
2759 (sha256
2760 (base32
2761 "03i528z92ainccgm28shg4haxiav5x4cyhyi5dggq1rm027vbm99"))))
2762 (build-system gnu-build-system)
2763 (inputs
2764 `(("guile" ,guile-3.0)))
2765 (propagated-inputs
2766 `(("guile-cairo" ,guile-cairo)
2767 ("guile-rsvg" ,guile-rsvg)))
2768 (native-inputs
2769 `(("autoconf" ,autoconf)
2770 ("automake" ,automake)
2771 ("librsvg" ,librsvg)
2772 ("pkg-config" ,pkg-config)
2773 ("texinfo" ,texinfo)))
2774 (home-page "https://git.elephly.net/software/guile-picture-language.git")
2775 (synopsis "Picture language for Guile")
2776 (description
2777 "This package provides a simple SVG-based picture language for Guile.
2778 The picture values can directly be displayed in Geiser.")
2779 ;; (pict base64) is under GPLv3+, the rest is under LGPLv3+
2780 (license (list license:lgpl3+
2781 license:gpl3+)))))
2782
2783 (define-public guile2.2-picture-language
2784 (package
2785 (inherit guile-picture-language)
2786 (name "guile2.2-picture-language")
2787 (inputs `(("guile" ,guile-2.2)))
2788 (propagated-inputs
2789 `(("guile-cairo" ,guile2.2-cairo)
2790 ("guile-rsvg" ,guile2.2-rsvg)))))
2791
2792 (define-public guile-studio
2793 (let ((commit "dd0ad42e51feafebda7cc29afe7c8bc7a182a842")
2794 (revision "1"))
2795 (package
2796 (name "guile-studio")
2797 (version (git-version "0.1.1" revision commit))
2798 (source (origin
2799 (method git-fetch)
2800 (uri (git-reference
2801 (url "https://git.elephly.net/software/guile-studio.git")
2802 (commit commit)))
2803 (file-name (git-file-name name version))
2804 (sha256
2805 (base32
2806 "1cpqilly8dqmai1qsgjxy99zs34sfz95zwxhzx979wryqb69vi0q"))))
2807 (build-system gnu-build-system)
2808 (arguments
2809 `(#:modules
2810 ((ice-9 match)
2811 (srfi srfi-1)
2812 ,@%gnu-build-system-modules)
2813 #:tests? #f ; there are none
2814 #:make-flags
2815 (list (string-append "PICT_DIR="
2816 (assoc-ref %build-inputs "guile-picture-language"))
2817 (string-append "EMACS_DIR="
2818 (assoc-ref %build-inputs "emacs"))
2819 (string-append "GUILE_DIR="
2820 (assoc-ref %build-inputs "guile"))
2821 (string-join (cons "INPUTS="
2822 (filter-map
2823 (lambda (input)
2824 (match input
2825 ((label . pkg)
2826 (and (string-prefix? "emacs" label) pkg))))
2827 %build-inputs)))
2828 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2829 #:phases
2830 (modify-phases %standard-phases
2831 (delete 'configure)
2832 (delete 'install))))
2833 (inputs
2834 `(("guile" ,guile-3.0)
2835 ("guile-picture-language" ,guile-picture-language)
2836 ("emacs" ,emacs)
2837 ("emacs-f" ,emacs-f) ; needed by doom-modeline
2838 ("emacs-memoize" ,emacs-memoize) ; needed by all-the-icons
2839 ("emacs-all-the-icons" ,emacs-all-the-icons) ; needed by doom-modeline
2840 ("emacs-all-the-icons-dired" ,emacs-all-the-icons-dired)
2841 ("emacs-dired-sidebar" ,emacs-dired-sidebar)
2842 ("emacs-doom-modeline" ,emacs-doom-modeline)
2843 ("emacs-modus-themes" ,emacs-modus-themes)
2844 ("emacs-geiser" ,emacs-geiser)
2845 ("emacs-geiser-guile" ,emacs-geiser-guile)
2846 ("emacs-company" ,emacs-company)
2847 ("emacs-ivy" ,emacs-ivy)
2848 ("emacs-flycheck" ,emacs-flycheck)
2849 ("emacs-flycheck-guile" ,emacs-flycheck-guile)
2850 ("emacs-paren-face" ,emacs-paren-face)))
2851 (native-inputs
2852 `(("texinfo" ,texinfo)))
2853 (home-page "https://gnu.org/software/guile")
2854 (synopsis "IDE for Guile")
2855 (description
2856 "This is Emacs with a few settings that make working with Guile easier
2857 for people new to Emacs. Features include: CUA mode, Geiser, tool bar icons
2858 to evaluate Guile buffers, support for Guile's very own picture language, code
2859 completion, a simple mode line, etc.")
2860 (license license:gpl3+))))
2861
2862 (define-public guile-stis-parser
2863 (package
2864 (name "guile-stis-parser")
2865 (version "1.2.4.1")
2866 (source (origin
2867 (method git-fetch)
2868 (uri (git-reference
2869 (url "https://gitlab.com/tampe/stis-parser")
2870 (commit (string-append "v" version))))
2871 (file-name (git-file-name name version))
2872 (sha256
2873 (base32
2874 "1fvxdfvc80zqhwzq5x3kxyr6j8p4b51yx85fx1gr3d4gy2ddpx5w"))))
2875 (build-system gnu-build-system)
2876 (arguments
2877 `(#:parallel-build? #f ; not supported
2878 #:phases
2879 (modify-phases %standard-phases
2880 (add-after 'unpack 'chdir
2881 (lambda _ (chdir "modules") #t))
2882 (add-after 'chdir 'delete-broken-symlink
2883 (lambda _
2884 (delete-file "parser/stis-parser/lang/.#calc.scm")
2885 #t)))))
2886 (inputs
2887 `(("guile" ,guile-3.0)))
2888 (native-inputs
2889 `(("autoconf" ,autoconf)
2890 ("automake" ,automake)
2891 ("pkg-config" ,pkg-config)))
2892 (home-page "https://gitlab.com/tampe/stis-parser")
2893 (synopsis "Parser combinator framework")
2894 (description
2895 "This package provides a functional parser combinator library that
2896 supports backtracking and a small logical framework. The idea is to build up
2897 chunks that are memoized and there is no clear scanner/parser separation,
2898 chunks can be expressions as well as simple tokens.")
2899 (license license:lgpl2.0+)))
2900
2901 (define-public guile-persist
2902 (package
2903 (name "guile-persist")
2904 (version "1.2.3")
2905 (source (origin
2906 (method git-fetch)
2907 (uri (git-reference
2908 (url "https://gitlab.com/tampe/guile-persist")
2909 (commit (string-append "v" version))))
2910 (file-name (git-file-name name version))
2911 (sha256
2912 (base32
2913 "19f8hqcax4v40858kx2j8fy1cvzc2djj99r0n17dy1xxmwa097qi"))))
2914 (build-system gnu-build-system)
2915 (arguments
2916 `(#:phases
2917 (modify-phases %standard-phases
2918 (add-after 'unpack 'patch-prefix
2919 (lambda* (#:key inputs outputs #:allow-other-keys)
2920 (substitute* "src/Makefile.am"
2921 (("/usr/local/lib/guile")
2922 (string-append (assoc-ref outputs "out") "/lib/guile"))
2923 (("/usr/local/include/guile")
2924 (search-input-directory inputs "/include/guile"))
2925 (("-L/usr/local/lib")
2926 (string-append "-L" (assoc-ref inputs "guile") "/lib")))
2927 #t))
2928 (add-after 'unpack 'patch-library-reference
2929 (lambda* (#:key outputs #:allow-other-keys)
2930 (let ((out (assoc-ref outputs "out")))
2931 (substitute* "persist/persistance.scm"
2932 (("\"libguile-persist\"")
2933 (format #f "\"~a/lib/guile/3.0/extensions/libguile-persist\"" out)))
2934 #t))))))
2935 (inputs
2936 `(("guile" ,guile-3.0)))
2937 (native-inputs
2938 `(("autoconf" ,autoconf)
2939 ("automake" ,automake)
2940 ("libtool" ,libtool)
2941 ("pkg-config" ,pkg-config)))
2942 (home-page "https://gitlab.com/tampe/guile-persist")
2943 (synopsis "Persistence programming framework for Guile")
2944 (description
2945 "This is a serialization library for serializing objects like classes
2946 and objects, closures and structs. This currently does not support
2947 serializing continuations or delimited continuations.")
2948 (license license:lgpl2.0+)))
2949
2950 (define-public python-on-guile
2951 (package
2952 (name "python-on-guile")
2953 (version "1.2.3.5")
2954 (home-page "https://gitlab.com/python-on-guile/python-on-guile")
2955 (source (origin
2956 (method git-fetch)
2957 (uri (git-reference (url home-page)
2958 (commit (string-append "v" version))))
2959 (file-name (git-file-name name version))
2960 (sha256
2961 (base32
2962 "05xrvcj6a4gzq1ybyin270qz8wamgc7w2skyi9iy6hkpgdhxy8vf"))))
2963 (build-system gnu-build-system)
2964 (arguments
2965 `(#:parallel-build? #f ;not supported
2966 #:make-flags '("GUILE_AUTO_COMPILE=0") ;to prevent guild warnings
2967 #:phases
2968 (modify-phases %standard-phases
2969 (add-after 'unpack 'chdir
2970 (lambda _ (chdir "modules") #t))
2971 (add-after 'chdir 'augment-GUILE_LOAD_PATH
2972 (lambda _
2973 ;; TODO: It would be better to patch the Makefile.
2974 (setenv "GUILE_LOAD_PATH"
2975 (string-append ".:"
2976 (getenv "GUILE_LOAD_PATH")))
2977 #t))
2978 (add-after 'install 'wrap
2979 (lambda* (#:key outputs #:allow-other-keys)
2980 ;; Wrap the 'python' executable so it can find its
2981 ;; dependencies and own modules.
2982 (let* ((out (assoc-ref outputs "out"))
2983 (guile-version ,(version-major+minor
2984 (package-version guile-3.0)))
2985 (scm (string-append out "/share/guile/site/"
2986 guile-version))
2987 (ccache (string-append out "/lib/guile/" guile-version
2988 "/site-ccache"))
2989 (load-path (string-join
2990 (cons scm
2991 ;; XXX: cdr because we augment it above.
2992 (cdr (string-split
2993 (getenv "GUILE_LOAD_PATH") #\:)))
2994 ":"))
2995 (compiled-path (string-append
2996 ccache ":"
2997 (getenv "GUILE_LOAD_COMPILED_PATH"))))
2998 (wrap-program (string-append out "/bin/python")
2999 `("GUILE_LOAD_PATH" ":" prefix
3000 (,load-path))
3001 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
3002 (,compiled-path)))
3003 #t))))))
3004 (inputs
3005 `(("guile" ,guile-3.0)
3006 ("guile-persist" ,guile-persist)
3007 ("guile-readline" ,guile-readline)
3008 ("guile-stis-parser" ,guile-stis-parser)))
3009 (native-inputs
3010 `(("autoconf" ,autoconf)
3011 ("automake" ,automake)
3012 ("libtool" ,libtool)
3013 ("pkg-config" ,pkg-config)))
3014 (synopsis "Python implementation in Guile")
3015 (description
3016 "This package allows you to compile a Guile Python file to any target
3017 from @code{tree-il}.")
3018 (license license:lgpl2.0+)))
3019
3020 (define-public guile-file-names
3021 (package
3022 (name "guile-file-names")
3023 (version "0.3")
3024 (source (origin
3025 (method url-fetch)
3026 (uri (string-append "http://brandon.invergo.net/software/download/"
3027 "guile-file-names/guile-file-names-"
3028 version ".tar.gz"))
3029 (sha256
3030 (base32
3031 "01chizdxkhw6aqv629vxka9f5x3534ij7r0jqndawsg2vxm1r9sz"))))
3032 (build-system gnu-build-system)
3033 (arguments
3034 `(#:phases
3035 (modify-phases %standard-phases
3036 (add-after 'unpack 'fix-target-directory
3037 (lambda _
3038 (substitute* "src/Makefile.in"
3039 (("guilemoddir = \\$\\(GUILE_SITE\\)")
3040 "guilemoddir = $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
3041 #t)))))
3042 (inputs
3043 `(("guile" ,guile-2.2)))
3044 (native-inputs
3045 `(("pkg-config" ,pkg-config)))
3046 (home-page "https://gitlab.com/brandoninvergo/guile-file-names")
3047 (synopsis "Manipulate file names")
3048 (description
3049 "The @code{(file-names)} module provides tools for manipulating file
3050 names. The module was built on the idea that doing anything more than a
3051 non-trivial modification of a file name string is a pain (making sure all
3052 slashes are present and accounted for, resolving @code{.} and @code{..}, etc).
3053 Inevitably, you have to break the string up into chunks and operate on that
3054 list of components. This module takes care of that for you.")
3055 (license license:lgpl3+)))
3056
3057 (define-public guile-gi
3058 (package
3059 (name "guile-gi")
3060 (version "0.3.1")
3061 (source (origin
3062 (method url-fetch)
3063 (uri (string-append "http://lonelycactus.com/tarball/guile_gi-"
3064 version ".tar.gz"))
3065 (sha256
3066 (base32
3067 "1ljcfyar1nb6h4jskxnnzrcxcsblawc50qqfdn8cax3zqfskmvzj"))))
3068 (build-system glib-or-gtk-build-system)
3069 (arguments
3070 `(#:configure-flags '("--with-gnu-filesystem-hierarchy")
3071 #:modules ((guix build glib-or-gtk-build-system)
3072 (guix build utils)
3073 (ice-9 popen)
3074 (ice-9 rdelim))
3075 #:phases
3076 (modify-phases %standard-phases
3077 (add-after 'unpack 'remove-dotted-circle-from-combining-character
3078 ;; The test/string.scm files contain ◌̀, which is a dotted circle
3079 ;; (U+25cc) followed by an upper combining character (U+0300). The
3080 ;; old guile 3.0.2 reader incorrectly ignores the dotted circle,
3081 ;; and parses it as the combining character alone, but the new
3082 ;; guile reader does not.
3083 ;; See https://github.com/spk121/guile-gi/issues/112
3084 (lambda* _
3085 (substitute* "test/string.scm"
3086 (("#\\\\◌̀") "#\\x0300"))))
3087 (add-after 'unpack 'patch-references-to-extension
3088 (lambda* (#:key outputs #:allow-other-keys)
3089 (let ((effective (read-line
3090 (open-pipe* OPEN_READ
3091 "guile" "-c"
3092 "(display (effective-version))"))))
3093 (substitute* (find-files "module" ".*\\.scm")
3094 (("\\(load-extension \"libguile-gi\" \"(.*)\"\\)" m arg)
3095 (format #f "~s"
3096 `(load-extension
3097 (format #f "~alibguile-gi"
3098 (if (getenv "GUILE_GI_UNINSTALLED")
3099 ""
3100 ,(format #f "~a/lib/guile/~a/extensions/"
3101 (assoc-ref outputs "out")
3102 effective)))
3103 ,arg)))))
3104 (setenv "GUILE_GI_UNINSTALLED" "1")
3105 #t))
3106 (add-before 'check 'start-xorg-server
3107 (lambda* (#:key inputs #:allow-other-keys)
3108 ;; The init_check test requires a running X server.
3109 (system (format #f "~a/bin/Xvfb :1 &"
3110 (assoc-ref inputs "xorg-server")))
3111 (setenv "DISPLAY" ":1")
3112 #t)))))
3113 (native-inputs
3114 `(("gettext" ,gettext-minimal)
3115 ("glib:bin" ,glib "bin") ; for glib-compile-resources
3116 ("libtool" ,libtool)
3117 ("pkg-config" ,pkg-config)
3118 ("xorg-server" ,xorg-server)))
3119 (propagated-inputs
3120 `(("glib" ,glib)
3121 ("gobject-introspection" ,gobject-introspection)
3122 ("gssettings-desktop-schemas" ,gsettings-desktop-schemas)
3123 ("gtk+" ,gtk+)
3124 ("guile-lib" ,guile-lib)
3125 ("webkitgtk" ,webkitgtk)))
3126 (inputs `(("guile" ,guile-3.0)))
3127 (home-page "https://github.com/spk121/guile-gi")
3128 (synopsis "GObject bindings for Guile")
3129 (description
3130 "Guile-GI is a library for Guile that allows using GObject-based
3131 libraries, such as GTK+3. Its README comes with the disclaimer: This is
3132 pre-alpha code.")
3133 (license license:gpl3+)))
3134
3135 (define-public guile2.2-gi
3136 (package
3137 (inherit guile-gi)
3138 (name "guile2.2-gi")
3139 (inputs
3140 `(("guile" ,guile-2.2)
3141 ,@(alist-delete "guile" (package-inputs guile-gi))))))
3142
3143 (define-public guile-srfi-89
3144 (package
3145 (name "guile-srfi-89")
3146 (version "0.0.1")
3147 (source
3148 (origin
3149 (method git-fetch)
3150 (uri (git-reference
3151 (url "https://gitlab.com/mjbecze/guile-srfi-89.git")
3152 (commit version)))
3153 (sha256
3154 (base32
3155 "1981c0rrzxqx3md9jx8ir7j3m2mzg9m72b33p5jvw36zirbzpl20"))
3156 (file-name (git-file-name name version))))
3157 (build-system guile-build-system)
3158 (native-inputs
3159 `(("guile" ,guile-3.0)))
3160 (home-page "https://gitlab.com/mjbecze/guile-srfi-89")
3161 (synopsis "Hygienic implementation of SRFI-89 for Guile")
3162 (description
3163 "This package provides SRFI-89 optional positional and named
3164 parameters, which define* and lambda* special forms")
3165 (license license:gpl3+)))
3166
3167 (define-public guile-srfi-145
3168 (package
3169 (name "guile-srfi-145")
3170 (version "0.0.1")
3171 (source
3172 (origin
3173 (method git-fetch)
3174 (uri (git-reference
3175 (url "https://gitlab.com/mjbecze/guile-srfi-145.git")
3176 (commit version)))
3177 (sha256
3178 (base32
3179 "1gssa8cmcp8640fil9z8dpil8v5l279wlalqjcx3fls5jwv13q1b"))
3180 (file-name (git-file-name name version))))
3181 (build-system guile-build-system)
3182 (native-inputs
3183 `(("guile" ,guile-3.0)))
3184 (home-page "https://gitlab.com/mjbecze/guile-srfi-145")
3185 (synopsis "SRFI-145 port for Guile")
3186 (description
3187 "This package provides SRFI-145. This provides the means to
3188 denote the invalidity of certain code paths in a Scheme program.")
3189 (license license:gpl3+)))
3190
3191 (define-public guile-srfi-158
3192 (package
3193 (name "guile-srfi-158")
3194 (version "0.0.1")
3195 (source
3196 (origin
3197 (method git-fetch)
3198 (uri (git-reference
3199 (url "https://gitlab.com/mjbecze/guile-srfi-158.git")
3200 (commit version)))
3201 (sha256
3202 (base32
3203 "0b8hlv1bldbcwkcxi9y8mm6xp5gbgpg7b15bwqxv70iynl9d9a7c"))
3204 (file-name (git-file-name name version))))
3205 (build-system gnu-build-system)
3206 (native-inputs
3207 `(("autoconf" ,autoconf)
3208 ("automake" ,automake)
3209 ("pkg-config" ,pkg-config)))
3210 (inputs
3211 `(("guile" ,guile-3.0)))
3212 (home-page "https://gitlab.com/samplet/guile-srfi-158")
3213 (synopsis "SRFI 158 (Generators and Accumulators) for Guile")
3214 (description "This package provides an implementation of SRFI 158
3215 for Guile. SRFI 158 defines utility procedures that create,
3216 transform, and consume generators. It also defines procedures that
3217 return accumulators. It is implemented by wrapping the sample
3218 implementation in a thin Guile compatibility layer.")
3219 (license license:gpl3+)))
3220
3221 (define-public guile-srfi-159
3222 (let ((commit "1bd98abda2ae4ef8f36761a167903e55c6bda7bb")
3223 (revision "0"))
3224 (package
3225 (name "guile-srfi-159")
3226 (version (git-version "0" revision commit))
3227 (home-page "https://bitbucket.org/bjoli/guile-srfi-159")
3228 (source (origin
3229 (method hg-fetch)
3230 (uri (hg-reference (changeset commit)
3231 (url home-page)))
3232 (sha256
3233 (base32
3234 "1zw6cmcy7xdbfiz3nz9arqnn7l2daidaps6ixkcrc9b6k51fdv3p"))
3235 (file-name (git-file-name name version))))
3236 (build-system guile-build-system)
3237 (arguments
3238 ;; The *-impl.scm files are actually included from module files; they
3239 ;; should not be compiled separately, but they must be installed.
3240 '(#:not-compiled-file-regexp "-impl\\.scm$"))
3241 (inputs
3242 `(("guile" ,guile-2.2)))
3243 (synopsis "Formatting combinators for Guile")
3244 (description
3245 "The @code{(srfi-159)} module and its sub-modules implement the
3246 formatting combinators specified by
3247 @uref{https://srfi.schemers.org/srfi-159/srfi-159.html, SRFI-159}. These are
3248 more expressive and flexible than the traditional @code{format} procedure.")
3249 (license license:bsd-3))))
3250
3251 (define-public guile-srfi-180
3252 (let ((commit "9188bf9724c6d320ef804579d222e855b007b193")
3253 (revision "0"))
3254 (package
3255 (name "guile-srfi-180")
3256 (version (git-version "0" revision commit))
3257 (source
3258 (origin
3259 (method git-fetch)
3260 (uri (git-reference
3261 (url "https://github.com/scheme-requests-for-implementation/srfi-180")
3262 (commit commit)))
3263 (sha256
3264 (base32
3265 "08lf70rsak8mwfij55xc37pg9zg7c87fizmhz7ln46skzj68sl3y"))
3266 (modules '((guix build utils)))
3267 (snippet
3268 '(begin
3269 (delete-file-recursively "srfi/files")
3270 (delete-file "srfi/run-r7rs-checks.guile.scm")
3271 (delete-file "srfi/run-r7rs-checks.scm")
3272 (delete-file "srfi/check.scm")
3273 #t))
3274 (file-name (git-file-name name version))))
3275 (build-system guile-build-system)
3276 (arguments
3277 '(#:not-compiled-file-regexp "body\\.scm$"))
3278 (native-inputs
3279 `(("guile" ,guile-3.0)))
3280 (propagated-inputs
3281 `(("guile-srfi-145" ,guile-srfi-145)))
3282 (home-page "https://srfi.schemers.org/srfi-180/")
3283 (synopsis "JSON parser and printer for Guile")
3284 (description
3285 "This library implements a JavaScript Object Notation (JSON) parser and printer.
3286 It also supports parsing JSON objects that may be bigger than memory with a streaming
3287 API.")
3288 (license license:expat))))
3289
3290 (define-public emacsy
3291 (package
3292 (name "emacsy")
3293 (version "0.4.1")
3294 (source (origin
3295 (method url-fetch)
3296 (uri (string-append "mirror://savannah/emacsy/emacsy-"
3297 version ".tar.gz"))
3298 (sha256
3299 (base32
3300 "1cpb85dl1nibd34c2x2h7vfmjpkgh353p5b1w20v6cs6gmvgg4np"))
3301 (modules '((guix build utils)))
3302 (snippet
3303 '(begin
3304 (substitute* "configure"
3305 ;; Allow builds with Guile 3.0.
3306 (("2\\.2 2\\.0")
3307 "3.0 2.2 2.0")
3308
3309 ;; Freeglut 3.2 provides 'glut.pc', not 'freeglut.pc'.
3310 (("freeglut >= ")
3311 "glut >= "))
3312
3313 (substitute* '("emacsy/emacsy.c"
3314 "example/hello-emacsy.c")
3315 (("#include <libguile\\.h>")
3316 (string-append "#include <stdlib.h>\n"
3317 "#include <stdio.h>\n"
3318 "#include <string.h>\n"
3319 "#include <unistd.h>\n"
3320 "#include <libguile.h>\n")))))))
3321 (build-system gnu-build-system)
3322 (native-inputs
3323 `(("bzip2" ,bzip2)
3324 ("guile" ,guile-3.0)
3325 ("gettext" ,gettext-minimal)
3326 ("libtool" ,libtool)
3327 ("perl" ,perl)
3328 ("pkg-config" ,pkg-config)
3329 ("texinfo" ,texinfo)
3330 ("texlive" ,(texlive-updmap.cfg (list texlive-epsf)))))
3331 (inputs
3332 `(("dbus-glib" ,dbus-glib)
3333 ("guile" ,guile-3.0)
3334 ("guile-lib" ,guile-lib)
3335 ("guile-readline" ,guile-readline)
3336 ("freeglut" ,freeglut)
3337 ("webkitgtk" ,webkitgtk)))
3338 (propagated-inputs
3339 `(("glib-networking" ,glib-networking)
3340 ("gssettings-desktop-schemas" ,gsettings-desktop-schemas)))
3341 (arguments
3342 `(#:modules ((guix build gnu-build-system)
3343 (guix build utils)
3344 (ice-9 popen)
3345 (ice-9 rdelim)
3346 (ice-9 regex)
3347 (ice-9 ftw)
3348 (srfi srfi-26))
3349 #:phases
3350 (modify-phases %standard-phases
3351 (add-before 'configure 'setenv
3352 (lambda _
3353 (setenv "GUILE_AUTO_COMPILE" "0")
3354 #t))
3355 (add-after 'install 'wrap-binaries
3356 (lambda* (#:key inputs outputs #:allow-other-keys)
3357 (let* ((out (assoc-ref outputs "out"))
3358 (effective (read-line
3359 (open-pipe* OPEN_READ
3360 "guile" "-c"
3361 "(display (effective-version))")))
3362 (deps (map (cut assoc-ref inputs <>)
3363 '("guile-lib" "guile-readline")))
3364 (scm-path (map (cut string-append <> "/share/guile/site/"
3365 effective) `(,out ,@deps)))
3366 (go-path (map (cut string-append <> "/lib/guile/" effective
3367 "/site-ccache/") `(,out ,@deps)))
3368 (examples (filter (cut string-match "emacsy" <>)
3369 (scandir (string-append out "/bin/"))))
3370 (progs (map (cut string-append out "/bin/" <>)
3371 examples)))
3372 (map (cut wrap-program <>
3373 `("GUILE_LOAD_PATH" ":" prefix ,scm-path)
3374 `("GUILE_LOAD_COMPILED_PATH" ":" prefix ,go-path))
3375 progs)
3376 #t))))))
3377 (home-page "https://savannah.nongnu.org/projects/emacsy")
3378 (synopsis "Embeddable GNU Emacs-like library using Guile")
3379 (description
3380 "Emacsy is an embeddable Emacs-like library that uses GNU Guile
3381 as extension language. Emacsy can give a C program an Emacsy feel with
3382 keymaps, minibuffer, recordable macros, history, tab completion, major
3383 and minor modes, etc., and can also be used as a pure Guile library. It
3384 comes with a simple counter example using FreeGLUT and browser examples
3385 in C using Gtk+-3 and WebKitGtk.")
3386 (license license:gpl3+)))
3387
3388 (define-public emacsy-minimal
3389 (let ((commit "v0.4.1-37-g5f91ee6"))
3390 (package
3391 (inherit emacsy)
3392 (name "emacsy-minimal")
3393 (version (string-drop commit 1))
3394 (source
3395 (origin
3396 (method git-fetch)
3397 (uri (git-reference
3398 (url "https://git.savannah.gnu.org/git/emacsy.git")
3399 (commit commit)))
3400 (file-name (git-file-name name version))
3401 (sha256
3402 (base32 "03ym14g9qhjqmryr5z065kynqm8yhmvnbs2djl6vp3i9cmqln8cl"))))
3403 (build-system gnu-build-system)
3404 (native-inputs
3405 `(("autoconf" ,autoconf)
3406 ("automake" ,automake)
3407 ("gettext" ,gettext-minimal)
3408 ("libtool" ,libtool)
3409 ("makeinfo" ,texinfo)
3410 ("pkg-config" ,pkg-config)))
3411 (inputs
3412 `(("guile" ,guile-2.2)
3413 ("guile-lib" ,guile2.2-lib)
3414 ("guile-readline" ,guile2.2-readline)))
3415 (propagated-inputs '())
3416 (arguments
3417 `(#:configure-flags '("--without-examples")
3418 #:phases
3419 (modify-phases %standard-phases
3420 (add-before 'configure 'setenv
3421 (lambda _
3422 (setenv "GUILE_AUTO_COMPILE" "0")
3423 #t))))))))
3424
3425 (define-public guile-jpeg
3426 (let ((commit "6a1673578b297c2c1b28e44a76bd5c49e76a5046")
3427 (revision "0"))
3428 (package
3429 (name "guile-jpeg")
3430 (version (git-version "0.0" revision commit))
3431 (home-page "https://gitlab.com/wingo/guile-jpeg")
3432 (source (origin
3433 (method git-fetch)
3434 (uri (git-reference (url home-page)
3435 (commit commit)))
3436 (sha256
3437 (base32
3438 "05z9m408w3h6aqb5k3r3qa7khir0k10rxwvsrzhkcq1hr5vbmr4m"))
3439 (file-name (git-file-name name version))
3440 (modules '((guix build utils)))
3441 (snippet
3442 '(begin
3443 ;; Install .go files in the right place.
3444 (substitute* "Makefile.am"
3445 (("/ccache") "/site-ccache"))
3446 #t))))
3447 (build-system gnu-build-system)
3448 (native-inputs
3449 `(("autoconf" ,autoconf)
3450 ("automake" ,automake)
3451 ("pkg-config" ,pkg-config)
3452 ("guile" ,guile-2.2)))
3453 (synopsis "JPEG file parsing library for Guile")
3454 (description
3455 "Guile-JPEG is a Scheme library to parse JPEG image files and to
3456 perform geometrical transforms on JPEG images.")
3457 (license license:gpl3+))))
3458
3459 (define-public nomad
3460 (package
3461 (name "nomad")
3462 (version "0.2.0-alpha-199-g3e7a475")
3463 (source (origin
3464 (method git-fetch)
3465 (uri (git-reference
3466 (url "https://git.savannah.gnu.org/git/nomad.git/")
3467 (commit version)))
3468 (file-name (git-file-name name version))
3469 (sha256
3470 (base32
3471 "0p0ha6prp7pyadp61clbhc6b55023vxzfwy14j2qygb2mkq7fhic"))))
3472 (build-system gnu-build-system)
3473 (native-inputs
3474 `(("autoconf" ,autoconf)
3475 ("automake" ,automake)
3476 ("bash" ,bash)
3477 ("pkg-config" ,pkg-config)
3478 ("libtool" ,libtool)
3479 ("guile" ,guile-2.2)
3480 ("glib:bin" ,glib "bin")
3481 ("texinfo" ,texinfo)
3482 ("gettext" ,gettext-minimal)
3483 ("perl" ,perl)))
3484 (inputs
3485 `(;; Guile
3486 ("guile" ,guile-2.2)
3487 ("guile-lib" ,guile2.2-lib)
3488 ("guile-readline" ,guile2.2-readline)
3489 ("guile-gcrypt" ,guile2.2-gcrypt)
3490 ("gnutls" ,gnutls)
3491 ("g-golf" ,g-golf)
3492 ("shroud" ,shroud)
3493 ("emacsy" ,emacsy-minimal)
3494 ;; Gtk
3495 ("glib" ,glib)
3496 ("dbus-glib" ,dbus-glib)
3497 ("glib-networking" ,glib-networking)
3498 ("gtk+" ,gtk+)
3499 ("gtk+:bin" ,gtk+ "bin")
3500 ("webkitgtk" ,webkitgtk)
3501 ("gtksourceview" ,gtksourceview)
3502 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
3503 ("vte" ,vte)
3504 ;; Gstreamer
3505 ("gstreamer" ,gstreamer)
3506 ("gst-plugins-base" ,gst-plugins-base)
3507 ("gst-plugins-good" ,gst-plugins-good)
3508 ("gst-plugins-bad" ,gst-plugins-bad)
3509 ("gst-plugins-ugly" ,gst-plugins-ugly)
3510 ;; Util
3511 ("xorg-server" ,xorg-server)))
3512 (arguments
3513 `(#:modules ((guix build gnu-build-system)
3514 (guix build utils)
3515 (ice-9 popen)
3516 (ice-9 rdelim)
3517 (srfi srfi-26))
3518 #:phases
3519 (modify-phases %standard-phases
3520 (add-before 'check 'start-xorg-server
3521 (lambda* (#:key inputs #:allow-other-keys)
3522 ;; The test suite requires a running X server.
3523 (system (format #f "~a/bin/Xvfb :1 &"
3524 (assoc-ref inputs "xorg-server")))
3525 (setenv "DISPLAY" ":1")
3526 #t))
3527 (add-after 'install 'wrap-binaries
3528 (lambda* (#:key inputs outputs #:allow-other-keys)
3529 (let* ((out (assoc-ref outputs "out"))
3530 (effective (read-line (open-pipe*
3531 OPEN_READ
3532 "guile" "-c"
3533 "(display (effective-version))")))
3534 (gst-plugins (map (lambda (i)
3535 (string-append (assoc-ref inputs i)
3536 "/lib/gstreamer-1.0"))
3537 `("gstreamer"
3538 "gst-plugins-base"
3539 "gst-plugins-good"
3540 "gst-plugins-bad"
3541 "gst-plugins-ugly")))
3542 (out-append (lambda (. args)
3543 (apply string-append out args)))
3544 (gi-path (out-append "/lib/girepository-1.0"))
3545 (load-path (out-append "/share/guile/site/" effective))
3546 (comp-path (out-append "/lib/guile/"
3547 effective "/site-ccache"))
3548 (ext-path (out-append "/libexec/nomad")))
3549 (wrap-program (string-append out "/bin/nomad")
3550 `("GUILE_LOAD_PATH" ":" prefix
3551 (,load-path
3552 ,(getenv "GUILE_LOAD_PATH")))
3553 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
3554 (,comp-path
3555 ,(getenv "GUILE_LOAD_COMPILED_PATH")))
3556 `("GI_TYPELIB_PATH" ":" prefix
3557 (,gi-path ,(getenv "GI_TYPELIB_PATH")))
3558 `("GIO_EXTRA_MODULES" ":" prefix
3559 (,(getenv "GIO_EXTRA_MODULES")))
3560 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix ,gst-plugins)
3561 `("NOMAD_WEB_EXTENSION_DIR" ":" prefix (,ext-path)))
3562 #t))))))
3563 (home-page "https://savannah.nongnu.org/projects/nomad/")
3564 (synopsis "Extensible Web Browser in Guile Scheme")
3565 (description "Nomad is a Emacs-like web browser that consists of a modular
3566 feature-set, fully programmable in Guile Scheme.")
3567 (license license:gpl3+)))
3568
3569 (define-public guile-cv
3570 (package
3571 (name "guile-cv")
3572 (version "0.2.1")
3573 (source (origin
3574 (method url-fetch)
3575 (uri (string-append "mirror://gnu/guile-cv/guile-cv-"
3576 version ".tar.gz"))
3577 (sha256
3578 (base32
3579 "0qdf0s2h1xj5lbhnc1pfw69i3zg08pqy2y6869b92ydfis8r82j9"))))
3580 (build-system gnu-build-system)
3581 (arguments
3582 `(#:phases
3583 (modify-phases %standard-phases
3584 (add-after 'unpack 'prepare-build
3585 (lambda* (#:key inputs outputs #:allow-other-keys)
3586 (substitute* "configure"
3587 (("SITEDIR=\"\\$datadir/guile-cv\"")
3588 "SITEDIR=\"$datadir/guile/site/$GUILE_EFFECTIVE_VERSION\"")
3589 (("SITECCACHEDIR=\"\\$libdir/guile-cv/")
3590 "SITECCACHEDIR=\"$libdir/"))
3591 (substitute* "cv/init.scm"
3592 (("\\(dynamic-link \"libvigra_c\"\\)")
3593 (string-append "(dynamic-link \""
3594 (assoc-ref inputs "vigra-c")
3595 "/lib/libvigra_c\")"))
3596 (("\\(dynamic-link \"libguile-cv\"\\)")
3597 (format #f "~s"
3598 `(dynamic-link
3599 (format #f "~alibguile-cv"
3600 (if (getenv "GUILE_CV_UNINSTALLED")
3601 ""
3602 ,(format #f "~a/lib/"
3603 (assoc-ref outputs "out"))))))))
3604 (setenv "GUILE_CV_UNINSTALLED" "1")
3605 ;; Only needed to satisfy the configure script.
3606 (setenv "LD_LIBRARY_PATH"
3607 (string-append (assoc-ref inputs "vigra-c") "/lib"))
3608 #t)))))
3609 (inputs
3610 `(("vigra" ,vigra)
3611 ("vigra-c" ,vigra-c)
3612 ("guile" ,guile-2.2)))
3613 (native-inputs
3614 `(("texlive" ,(texlive-updmap.cfg (list texlive-booktabs
3615 texlive-lm
3616 texlive-siunitx
3617 texlive-standalone
3618 texlive-xcolor
3619 texlive-fonts-iwona)))
3620 ("pkg-config" ,pkg-config)))
3621 (propagated-inputs
3622 `(("guile-lib" ,guile2.2-lib)))
3623 (home-page "https://www.gnu.org/software/guile-cv/")
3624 (synopsis "Computer vision library for Guile")
3625 (description "Guile-CV is a Computer Vision functional programming library
3626 for the Guile Scheme language. It is based on Vigra (Vision with Generic
3627 Algorithms), a C++ image processing and analysis library. Guile-CV contains
3628 bindings to Vigra C (a C wrapper to most of the Vigra functionality) and is
3629 enriched with pure Guile Scheme algorithms, all accessible through a nice,
3630 clean and easy to use high level API.")
3631 (license license:gpl3+)))
3632
3633 (define-public guile-ffi-fftw
3634 (let ((commit "294ad9e7491dcb40026d2fec9be2af05263be1c0")
3635 (revision "2"))
3636 (package
3637 (name "guile-ffi-fftw")
3638 (version (git-version "0" revision commit))
3639 (source (origin
3640 (method git-fetch)
3641 (uri (git-reference
3642 (url "https://github.com/lloda/guile-ffi-fftw")
3643 (commit commit)))
3644 (file-name (git-file-name "guile-ffi-fftw" version))
3645 (sha256
3646 (base32
3647 "08j40a5p6a8pgvhffmzb5rfdnrav2mksy3gfjkdqy93jfj1z5afg"))))
3648 (build-system guile-build-system)
3649 (arguments
3650 `(#:source-directory "mod"
3651 #:phases
3652 (modify-phases %standard-phases
3653 (add-after 'unpack 'prepare-build
3654 (lambda* (#:key inputs #:allow-other-keys)
3655 (substitute* "mod/ffi/fftw.scm"
3656 (("\\(getenv \"GUILE_FFI_FFTW_LIBFFTW3_PATH\"\\)")
3657 (format #f "\"~a/lib\"" (assoc-ref inputs "fftw"))))
3658 #t))
3659 (add-after 'build 'check
3660 (lambda _
3661 (invoke "guile" "-L" "mod"
3662 "-s" "test/test-ffi-fftw.scm"))))))
3663 (inputs
3664 `(("fftw" ,fftw)
3665 ("guile" ,guile-2.2)))
3666 (home-page "https://github.com/lloda/guile-ffi-fftw/")
3667 (synopsis "Access FFTW through Guile's FFI")
3668 (description "This is a minimal set of Guile FFI bindings for the FFTW
3669 library's ‘guru interface’. It provides two functions: @code{fftw-dft! rank
3670 sign in out} and @code{fftw-dft rank sign in}. These bindings being minimal,
3671 there is no support for computing & reusing plans, or split r/i transforms, or
3672 anything other than straight complex DFTs.")
3673 (license license:lgpl3+))))
3674
3675 (define-public srfi-64-driver
3676 (package
3677 (name "srfi-64-driver")
3678 (version "0.1")
3679 (source (origin
3680 (method url-fetch)
3681 (uri (string-append "https://files.ngyro.com/srfi-64-driver/"
3682 "srfi-64-driver-" version ".tar.gz"))
3683 (sha256
3684 (base32
3685 "188b6mb7sjjg0a8zldikinglf40ky8mg8rwh5768gjmch6gkk3ph"))))
3686 (build-system gnu-build-system)
3687 (arguments
3688 `(#:tests? #f
3689 #:phases
3690 (modify-phases %standard-phases
3691 (delete 'build))))
3692 (native-inputs
3693 `(("pkg-config" ,pkg-config)))
3694 (inputs
3695 `(("guile" ,guile-2.2)))
3696 (home-page "https://ngyro.com/software/srfi-64-driver.html")
3697 (synopsis "Automake test driver for SRFI 64 test suites")
3698 (description "This package provides an Automake test driver that can
3699 run SRFI 64 test suites. It gives Automake insight into the individual
3700 tests being run, resulting clearer and more specific output.")
3701 (license license:gpl3+)))
3702
3703 (define-public guile-semver
3704 (package
3705 (name "guile-semver")
3706 (version "0.1.1")
3707 (source (origin
3708 (method url-fetch)
3709 (uri (string-append "https://files.ngyro.com/guile-semver/"
3710 "guile-semver-" version ".tar.gz"))
3711 (sha256
3712 (base32
3713 "109p4n39ln44cxvwdccf9kgb96qx54makvd2ir521ssz6wchjyag"))))
3714 (build-system gnu-build-system)
3715 (native-inputs
3716 `(("pkg-config" ,pkg-config)))
3717 (inputs
3718 `(("guile" ,guile-3.0)))
3719 (home-page "https://ngyro.com/software/guile-semver.html")
3720 (synopsis "Semantic Versioning (SemVer) for Guile")
3721 (description "This Guile library provides tools for reading,
3722 comparing, and writing Semantic Versions. It also includes ranges in
3723 the style of the Node Package Manager (NPM).")
3724 (license license:gpl3+)))
3725
3726 (define-public guile2.2-semver
3727 (package
3728 (inherit guile-semver)
3729 (name "guile2.2-semver")
3730 (inputs
3731 `(("guile" ,guile-2.2)))))
3732
3733 (define-public guile-hashing
3734 (package
3735 (name "guile-hashing")
3736 (version "1.2.0")
3737 (home-page "https://github.com/weinholt/hashing")
3738 (source (origin
3739 (method git-fetch)
3740 (uri (git-reference
3741 (url home-page)
3742 (commit (string-append "v" version))))
3743 (file-name (git-file-name name version))
3744 (sha256
3745 (base32
3746 "1362d3lmpv7slmv1zmr9wy8panq9sjr9787gc2hagd646mpsfpkl"))))
3747 (build-system guile-build-system)
3748 (arguments
3749 `(#:modules ((guix build guile-build-system)
3750 (guix build utils)
3751 (srfi srfi-26)
3752 (ice-9 ftw))
3753 #:implicit-inputs? #f ;needs nothing but Guile
3754 #:phases (modify-phases %standard-phases
3755 (add-before 'build 'move-sls-files
3756 (lambda _
3757 ;; Move the source under hashing/ in order to match
3758 ;; module names, and rename .sls files to .scm.
3759 (define (target file)
3760 (string-append "hashing/" file))
3761
3762 (define (sls->scm sls)
3763 (string-append (string-drop-right sls 4)
3764 ".scm"))
3765
3766 (mkdir "hashing")
3767 (for-each (lambda (file)
3768 (rename-file file (sls->scm file)))
3769 (find-files "." "\\.sls$"))
3770 (for-each (lambda (file)
3771 (rename-file file (target file)))
3772 (scandir "." (cut string-suffix? ".scm" <>)))
3773 (rename-file "private" "hashing/private")
3774 #t)))))
3775 (native-inputs
3776 `(("guile" ,guile-3.0)))
3777 (synopsis "Cryprographic hash functions implemented in Scheme")
3778 (description
3779 "The @code{(hashing @dots{})} modules implement cryptographic hash
3780 functions in pure R6RS Scheme: CRC, HMAC, MD5, SHA-1, and SHA-2 (SHA-256,
3781 SHA-512).")
3782 (license license:expat)))
3783
3784 (define-public guile2.2-hashing
3785 (package
3786 (inherit guile-hashing)
3787 (name "guile2.2-hashing")
3788 (native-inputs
3789 `(("guile" ,guile-2.2)))))
3790
3791 (define-public guile-packrat
3792 (package
3793 (name "guile-packrat")
3794 (version "0.1.1")
3795 (home-page "https://github.com/weinholt/packrat")
3796 (source (origin
3797 (method git-fetch)
3798 (uri (git-reference
3799 (url home-page)
3800 (commit (string-append "v" version))))
3801 (file-name (git-file-name name version))
3802 (sha256
3803 (base32
3804 "1aga17164fkhbgllqc7ni6fk5zl8mkmgkl5zcsy67x7ngpyalbby"))))
3805 (build-system guile-build-system)
3806 (arguments
3807 `(#:implicit-inputs? #f ;needs nothing but Guile
3808 #:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
3809 #:not-compiled-file-regexp "/extensible\\.scm$"
3810 #:phases (modify-phases %standard-phases
3811 (add-before 'build 'no-srfi-23
3812 (lambda _
3813 (substitute* "packrat.sls"
3814 (("\\(srfi :23 error\\)")
3815 (object->string '(only (guile) error))))
3816 #t)))))
3817 (native-inputs
3818 `(("guile" ,guile-3.0)))
3819 (synopsis "Packrat parser library in R6RS Scheme")
3820 (description
3821 "This is an R6RS Scheme adaptation of the
3822 @uref{https://bford.info/packrat/, packrat parsing}. Packrat parsing is a
3823 memoizing, backtracking, recursive-descent parsing technique that runs in time
3824 and space linear in the size of the input text.")
3825 (license license:expat)))
3826
3827 (define-public guile-ac-d-bus
3828 (package
3829 (name "guile-ac-d-bus")
3830 (version "1.0.0-beta.0")
3831 (home-page "https://gitlab.com/weinholt/ac-d-bus/")
3832 (source (origin
3833 (method git-fetch)
3834 (uri (git-reference
3835 (url home-page)
3836 (commit (string-append "v" version))))
3837 (file-name (git-file-name name version))
3838 (sha256
3839 (base32
3840 "0rl809qimhgz6b0rixakb42r2l4g53jr09a2g0s1hxgab0blz0kb"))))
3841 (build-system guile-build-system)
3842 (arguments
3843 `(#:implicit-inputs? #f ;needs nothing but Guile
3844 #:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
3845 #:phases (modify-phases %standard-phases
3846 (add-before 'build 'adjust-for-guile
3847 (lambda _
3848 ;; Adjust source file names for Guile.
3849 (define (guile-sls->sls file)
3850 (string-append (string-drop-right
3851 file (string-length ".guile.sls"))
3852 ".sls"))
3853
3854 ;; Remove files targeting other implementations:
3855 ;; *.mosh.sls, etc.
3856 (for-each delete-file
3857 (find-files
3858 "compat"
3859 (lambda (file stat)
3860 (not (string-contains file ".guile.")))))
3861
3862 ;; Rename *.guile.sls to *.sls so the ".guile" bit does
3863 ;; not appear in .go file names.
3864 (for-each (lambda (file)
3865 (rename-file file (guile-sls->sls file)))
3866 (find-files "compat" "\\.guile\\.sls"))
3867
3868 ;; Move directories under d-bus/ to match module names.
3869 (mkdir "d-bus")
3870 (for-each (lambda (directory)
3871 (rename-file directory
3872 (string-append "d-bus/"
3873 directory)))
3874 '("compat" "protocol"))
3875
3876 #t)))))
3877 (native-inputs
3878 `(("guile" ,guile-3.0)))
3879 (propagated-inputs
3880 `(("guile-packrat" ,guile-packrat)))
3881 (synopsis "D-Bus protocol implementation in R6RS Scheme")
3882 (description
3883 "AC/D-Bus is an implementation of the D-Bus wire protocol. D-Bus is an
3884 interprocess communication protocol popular on GNU/Linux systems to
3885 communicate with a variety of services. Originally designed for desktop
3886 environments, it is now used by programs like VLC media player, BlueZ,
3887 NetworkManager, Pulseaudio, systemd (including logind and resolved), Polkit,
3888 gnome-keyring, and many more.")
3889 (license license:expat)))
3890
3891 (define-public guile-webutils
3892 (let ((commit "8541904f761066dc9c27b1153e9a838be9a55299")
3893 (revision "0"))
3894 (package
3895 (name "guile-webutils")
3896 (version (git-version "0.1" revision commit))
3897 (source (origin
3898 (method git-fetch)
3899 (uri (git-reference
3900 (url "https://notabug.org/cwebber/guile-webutils.git")
3901 (commit commit)))
3902 (file-name (git-file-name name version))
3903 (sha256
3904 (base32
3905 "1s9n3hbxd7lfpdi0x8wr0cfvlsf6g62ird9gbspxdrp5p05rbi64"))
3906 (modules '((guix build utils)))
3907 (snippet
3908 '(begin
3909 ;; Allow builds with Guile 3.0.
3910 (substitute* "configure.ac"
3911 (("2\\.2 2\\.0")
3912 "3.0 2.2 2.0"))
3913 #t))))
3914 (build-system gnu-build-system)
3915 (native-inputs
3916 `(("autoconf" ,autoconf)
3917 ("automake" ,automake)
3918 ("pkg-config" ,pkg-config)
3919 ("texinfo" ,texinfo)))
3920 (inputs
3921 `(("guile" ,guile-3.0)))
3922 (propagated-inputs
3923 `(("guile-irregex" ,guile-irregex)
3924 ("guile-gcrypt" ,guile-gcrypt)))
3925 (home-page "https://notabug.org/cwebber/guile-webutils")
3926 (synopsis "Web application authoring utilities for Guile")
3927 (description
3928 "This package provides tooling to write web applications in Guile, such
3929 as signed sessions, multipart message support, etc.")
3930 (license license:gpl3+))))
3931
3932 (define-public guile2.2-webutils
3933 (package
3934 (inherit guile-webutils)
3935 (name "guile2.2-webutils")
3936 (inputs
3937 `(("guile" ,guile-2.2)))
3938 (propagated-inputs
3939 `(("guile-irregex" ,guile2.2-irregex)
3940 ("guile-gcrypt" ,guile2.2-gcrypt)))))
3941
3942 (define-public guile-lens
3943 (let ((commit "14b15d07255f9d3f55d40a3b750d13c9ee3a154f")
3944 (revision "0"))
3945 (package
3946 (name "guile-lens")
3947 (version (git-version "0.1" revision commit))
3948 (source (origin
3949 (method git-fetch)
3950 (uri (git-reference
3951 (url "https://gitlab.com/a-sassmannshausen/guile-lens.git")
3952 (commit commit)))
3953 (file-name (git-file-name name version))
3954 (sha256
3955 (base32
3956 "0w8jzqyla56yrgj7acsgd4nspyir6zgp3vgxid4xmwhg9wmf1ida"))))
3957 (build-system gnu-build-system)
3958 (arguments
3959 '(#:phases
3960 (modify-phases %standard-phases
3961 (add-after 'unpack 'run-hall
3962 (lambda _
3963 (setenv "HOME" "/tmp") ; for ~/.hall
3964 (invoke "hall" "dist" "-x"))))))
3965 (native-inputs
3966 `(("autoconf" ,autoconf)
3967 ("automake" ,automake)
3968 ("guile" ,guile-3.0)
3969 ("guile-hall" ,guile-hall)
3970 ("pkg-config" ,pkg-config)
3971 ("texinfo" ,texinfo)))
3972 (home-page "https://gitlab.com/a-sassmannshausen/guile-lens.git")
3973 (synopsis "Composable lenses for data structures in Guile")
3974 (description
3975 "Guile-Lens is a library implementing lenses in Guile. The library is
3976 currently a re-implementation of the lentes library for Clojure. Lenses
3977 provide composable procedures, which can be used to focus, apply functions
3978 over, or update a value in arbitrary data structures.")
3979 (license license:gpl3+))))
3980
3981 (define-public guile2.2-lens
3982 (package
3983 (inherit guile-lens)
3984 (name "guile2.2-lens")
3985 (native-inputs
3986 `(("guile" ,guile-2.2)
3987 ,@(alist-delete "guile" (package-native-inputs guile-lens))))))
3988
3989 (define-public guile-xapian
3990 (package
3991 (name "guile-xapian")
3992 (version "0.1.0")
3993 (home-page "https://git.systemreboot.net/guile-xapian")
3994 (source
3995 (origin
3996 (method git-fetch)
3997 (uri (git-reference (url home-page)
3998 (commit (string-append "v" version))))
3999 (file-name (git-file-name name version))
4000 (sha256
4001 (base32
4002 "16k61f1jn3g48jaf3730b9l0izr5j933jzyri73nmcnjd09gm35i"))
4003 (modules '((guix build utils)))
4004 (snippet
4005 ;; Guile >= 3.0.7 no longer uses libltdl so we need to explicitly add
4006 ;; ".libs" so that 'load-extension' finds the '.so' file.
4007 '(substitute* "pre-inst-env.in"
4008 (("^LD_LIBRARY_PATH=.*$")
4009 "LD_LIBRARY_PATH=\"$abs_top_builddir/.libs\"\n")))))
4010 (build-system gnu-build-system)
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 inputs outputs #:allow-other-keys)
4551 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
4552 (doc (string-append share "/doc/" ,name "-" ,version))
4553 (info (string-append share "/info/"))
4554 (makeinfo (search-input-file inputs
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 "f5d33a6880e96571d3cb079ed7755ffc156cac46")
4603 (revision "1"))
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 "12x91983fh1j39zy7kbk19acc1rqdh8515ddx1mh7l26j04k9wgq"))))
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
4631 '("guix.scm" "demo1.yml" "demo1.scm"
4632 "yaml/libyaml.scm"
4633 ;; This file is mismatched with the generated FFI code.
4634 "yaml/ffi-help-rt.scm"))
4635 (copy-file (search-input-file
4636 inputs "/share/guile/site/3.0/system/ffi-help-rt.scm")
4637 "yaml/ffi-help-rt.scm")
4638 (substitute* "yaml/ffi-help-rt.scm"
4639 (("system ffi-help-rt") "yaml ffi-help-rt"))
4640 #true))
4641 (add-before 'build 'build-ffi
4642 (lambda* (#:key inputs #:allow-other-keys)
4643 (invoke "guild" "compile-ffi"
4644 "--no-exec" ; allow us to patch the generated file
4645 "yaml/libyaml.ffi")
4646 (substitute* "yaml/libyaml.scm"
4647 (("system ffi-help-rt") "yaml ffi-help-rt")
4648 (("dynamic-link \"libyaml\"")
4649 (format #false "dynamic-link \"~a/lib/libyaml\""
4650 (assoc-ref inputs "libyaml"))))
4651 #true))
4652 (replace 'build
4653 (assoc-ref guile:%standard-phases 'build))
4654 (delete 'install))))
4655 (inputs
4656 `(("guile" ,guile-3.0)
4657 ("libyaml" ,libyaml)))
4658 (propagated-inputs
4659 `(("guile-bytestructures" ,guile-bytestructures)))
4660 (native-inputs
4661 `(("nyacc" ,nyacc)))
4662 (home-page "https://github.com/mwette/guile-libyaml")
4663 (synopsis "Guile wrapper for libyaml")
4664 (description
4665 "This package provides a simple yaml module for Guile using the
4666 ffi-helper from nyacc.")
4667 (license license:lgpl3+))))
4668
4669 (define-public schmutz
4670 (let ((commit "add24588c59552537b8f1316df99a0cdd62c221e")
4671 (revision "1"))
4672 (package
4673 (name "schmutz")
4674 (version (git-version "0" revision commit))
4675 (source (origin
4676 (method git-fetch)
4677 (uri (git-reference
4678 (url "https://github.com/arximboldi/schmutz")
4679 (commit commit)))
4680 (file-name (git-file-name name version))
4681 (sha256
4682 (base32
4683 "1z3n61sj62lnn15mandvyrpjzli07rp9r62ypvgg3a8bvh37yc89"))))
4684 (build-system cmake-build-system)
4685 (arguments `(#:tests? #f))
4686 (native-inputs
4687 `(("pkg-config" ,pkg-config)))
4688 (inputs
4689 `(("guile" ,guile-2.2)))
4690 (home-page "https://github.com/arximboldi/schmutz")
4691 (synopsis "Bind C++ code to Scheme")
4692 (description "Schmutz is a header-only library to declare Scheme bindings
4693 for C++ code using a simple embedded DSL. Think of it as @code{Boost.Python}
4694 or @code{LuaBind} but for Scheme.")
4695 (license license:boost1.0))))
4696
4697 (define-public guile-cbor
4698 (package
4699 (name "guile-cbor")
4700 (version "0.1.0")
4701 (source
4702 (origin
4703 (method git-fetch)
4704 (uri (git-reference
4705 (url "https://inqlab.net/git/guile-cbor.git")
4706 (commit (string-append "v" version))))
4707 (file-name (git-file-name name version))
4708 (sha256 (base32 "0bdqg3ifayf7m2j09lqrgdfprbdaa67azf09bcq9b4k71inxfnxl"))))
4709 (build-system gnu-build-system)
4710 (arguments `())
4711 (native-inputs
4712 `(("autoconf" ,autoconf)
4713 ("automake" ,automake)
4714 ("pkg-config" ,pkg-config)
4715 ("texinfo" ,texinfo)))
4716 (inputs `(("guile" ,guile-3.0)))
4717 (synopsis "Guile implementation of CBOR")
4718 (description
4719 "The Concise Binary Object Representation (CBOR), as specified by RFC 8949, is
4720 a binary data serialization format. CBOR is similar to JSON but serializes to
4721 binary which is smaller and faster to generate and parse. This package provides
4722 a Guile implementation of CBOR.")
4723 (home-page "https://inqlab.net/git/guile-cbor.git")
4724 (license license:gpl3+)))
4725
4726 (define-public guile-quickcheck
4727 (package
4728 (name "guile-quickcheck")
4729 (version "0.1.0")
4730 (source (origin
4731 (method url-fetch)
4732 (uri (string-append "https://files.ngyro.com/"
4733 "guile-quickcheck/guile-quickcheck-"
4734 version ".tar.gz"))
4735 (sha256
4736 (base32
4737 "03mwi1l3354x52nar0zwhcm0x29yai9xjln4p4gbchwvx5dsr6fb"))))
4738 (build-system gnu-build-system)
4739 (native-inputs
4740 `(("pkg-config" ,pkg-config)))
4741 (inputs
4742 `(("guile" ,guile-3.0)))
4743 (home-page "https://ngyro.com/software/guile-quickcheck.html")
4744 (synopsis "Randomized property-based testing for Guile")
4745 (description "Guile-Quickcheck is a library for random testing of program
4746 properties inspired by ghc-quickcheck. You can use it to express properties,
4747 which functions should satisfy, as Scheme code and then check whether they hold
4748 in a large number of randomly generated test cases.")
4749 (license license:gpl3+)))
4750
4751 (define-public guile-fslib
4752 (package
4753 (name "guile-fslib")
4754 (version "0.2.0")
4755 (source
4756 (origin
4757 (method git-fetch)
4758 (uri (git-reference
4759 (url "https://notabug.org/ZelphirKaltstahl/guile-fslib/")
4760 (commit version)))
4761 (file-name (git-file-name name version))
4762 (sha256
4763 (base32
4764 "118d84p443w7hrslv8hjyhgws631ia08mggiyklkmk0b9plfdsvz"))))
4765 (build-system guile-build-system)
4766 (inputs
4767 `(("guile" ,guile-3.0)))
4768 (home-page "https://notabug.org/ZelphirKaltstahl/guile-fslib")
4769 (synopsis "Helper functions for working with locations in file systems")
4770 (description
4771 "This package contains helper functions for working with file system
4772 locations.")
4773 (license license:agpl3+)))
4774
4775 (define-public guile-netlink
4776 (package
4777 (name "guile-netlink")
4778 (version "1.1")
4779 (source
4780 (origin
4781 (method git-fetch)
4782 (uri (git-reference
4783 (url "https://git.lepiller.eu/git/guile-netlink")
4784 (commit version)))
4785 (file-name (git-file-name name version))
4786 (sha256
4787 (base32
4788 "1x1rx6agjdah56r50cfs41vyvycydyjdq0plq3jxgvl1q2dar1gw"))))
4789 (build-system gnu-build-system)
4790 (arguments
4791 `(#:tests? #f)); no tests
4792 (inputs
4793 `(("guile" ,guile-3.0)))
4794 (native-inputs
4795 `(("automake" ,automake)
4796 ("autoconf" ,autoconf)
4797 ("pkg-config" ,pkg-config)
4798 ("texinfo" ,texinfo)))
4799 (home-page "https://git.lepiller.eu/guile-netlink")
4800 (synopsis "Netlink protocol implementation for Guile")
4801 (description "Guile Netlink is a GNU Guile library providing an implementation
4802 of the netlink protocol.
4803
4804 It provides a generic library for writing implementations of a netlink
4805 protocol, a low-level rtnetlink implementation that uses that library and a
4806 high-level API for network management that uses rtnetlink.")
4807 (license license:gpl3+)))