locale: Add glibc 2.29 to '%default-locale-libcs'.
[jackhill/guix/guix.git] / gnu / packages / guile-xyz.scm
CommitLineData
0791437f 1;;; GNU Guix --- Functional package management for GNU
f918a8d9 2;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
0791437f
RW
3;;; Copyright © 2014, 2015, 2018 Mark H Weaver <mhw@netris.org>
4;;; Copyright © 2015, 2017 Christopher Allan Webber <cwebber@dustycloud.org>
5;;; Copyright © 2016 Alex Sassmannshausen <alex@pompo.co>
195e1c1b 6;;; Copyright © 2016, 2017, 2018, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
0791437f 7;;; Copyright © 2016 Erik Edrosa <erik.edrosa@gmail.com>
a52aa7fd 8;;; Copyright © 2016, 2019, 2020 Eraim Flashner <efraim@flashner.co.il>
0791437f
RW
9;;; Copyright © 2016, 2017 Alex Kost <alezost@gmail.com>
10;;; Copyright © 2016, 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@openmailbox.org>
11;;; Copyright © 2016 Amirouche <amirouche@hypermove.net>
bdf2dd79 12;;; Copyright © 2016, 2019 Jan Nieuwenhuizen <janneke@gnu.org>
0791437f
RW
13;;; Copyright © 2017 Andy Wingo <wingo@igalia.com>
14;;; Copyright © 2017 David Thompson <davet@gnu.org>
f6145358 15;;; Copyright © 2017, 2018, 2019, 2020 Mathieu Othacehe <m.othacehe@gmail.com>
0791437f 16;;; Copyright © 2017 Theodoros Foradis <theodoros@foradis.org>
47956fa0 17;;; Copyright © 2017 ng0 <ng0@n0.is>
0791437f
RW
18;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
19;;; Copyright © 2018 Maxim Cournoyer <maxim.cournoyer@gmail.com>
69bb61f1 20;;; Copyright © 2018, 2019, 2020 Arun Isaac <arunisaac@systemreboot.net>
0791437f
RW
21;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
22;;; Copyright © 2018 Eric Bavier <bavier@member.fsf.org>
cd81199c 23;;; Copyright © 2019 swedebugia <swedebugia@riseup.net>
be789065 24;;; Copyright © 2019, 2020 Amar Singh <nly@disroot.org>
f9ec89f4 25;;; Copyright © 2019 Timothy Sample <samplet@ngyro.com>
3c566eba 26;;; Copyright © 2019, 2020 Martin Becze <mjbecze@riseup.net>
8ffc20ef 27;;; Copyright © 2020 Evan Straw <evan.straw99@gmail.com>
0791437f
RW
28;;;
29;;; This file is part of GNU Guix.
30;;;
31;;; GNU Guix is free software; you can redistribute it and/or modify it
32;;; under the terms of the GNU General Public License as published by
33;;; the Free Software Foundation; either version 3 of the License, or (at
34;;; your option) any later version.
35;;;
36;;; GNU Guix is distributed in the hope that it will be useful, but
37;;; WITHOUT ANY WARRANTY; without even the implied warranty of
38;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39;;; GNU General Public License for more details.
40;;;
41;;; You should have received a copy of the GNU General Public License
42;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
43
44(define-module (gnu packages guile-xyz)
45 #:use-module ((guix licenses) #:prefix license:)
46 #:use-module (gnu packages)
7ff157c1 47 #:use-module (gnu packages algebra)
0791437f
RW
48 #:use-module (gnu packages aspell)
49 #:use-module (gnu packages autotools)
50 #:use-module (gnu packages base)
51 #:use-module (gnu packages bash)
52 #:use-module (gnu packages compression)
406ef442 53 #:use-module (gnu packages databases)
0791437f 54 #:use-module (gnu packages disk)
15218d4e 55 #:use-module (gnu packages emacs)
5531782d 56 #:use-module (gnu packages emacs-xyz)
0791437f
RW
57 #:use-module (gnu packages gawk)
58 #:use-module (gnu packages gettext)
59 #:use-module (gnu packages gl)
bdf2dd79 60 #:use-module (gnu packages glib)
5531782d 61 #:use-module (gnu packages gnome)
e8c2da41 62 #:use-module (gnu packages gnupg)
0791437f 63 #:use-module (gnu packages gperf)
bdf2dd79 64 #:use-module (gnu packages gtk)
0791437f
RW
65 #:use-module (gnu packages guile)
66 #:use-module (gnu packages hurd)
67 #:use-module (gnu packages image)
d1a3a8e1 68 #:use-module (gnu packages imagemagick)
0791437f
RW
69 #:use-module (gnu packages libffi)
70 #:use-module (gnu packages libunistring)
71 #:use-module (gnu packages linux)
72 #:use-module (gnu packages man)
73 #:use-module (gnu packages maths)
74 #:use-module (gnu packages multiprecision)
75 #:use-module (gnu packages ncurses)
76 #:use-module (gnu packages networking)
f0de9544 77 #:use-module (gnu packages noweb)
1a37fd1e 78 #:use-module (gnu packages nss)
e8c2da41 79 #:use-module (gnu packages password-utils)
406ef442 80 #:use-module (gnu packages perl)
0791437f
RW
81 #:use-module (gnu packages pkg-config)
82 #:use-module (gnu packages python)
83 #:use-module (gnu packages readline)
84 #:use-module (gnu packages sdl)
69bb61f1 85 #:use-module (gnu packages search)
0791437f
RW
86 #:use-module (gnu packages slang)
87 #:use-module (gnu packages sqlite)
69bb61f1 88 #:use-module (gnu packages swig)
f0de9544 89 #:use-module (gnu packages tex)
0791437f
RW
90 #:use-module (gnu packages texinfo)
91 #:use-module (gnu packages tls)
92 #:use-module (gnu packages version-control)
bdf2dd79 93 #:use-module (gnu packages webkit)
0791437f
RW
94 #:use-module (gnu packages xdisorg)
95 #:use-module (gnu packages xorg)
96 #:use-module (guix packages)
97 #:use-module (guix download)
98 #:use-module (guix git-download)
dec4b3aa 99 #:use-module (guix hg-download)
0791437f
RW
100 #:use-module (guix build-system gnu)
101 #:use-module (guix build-system guile)
102 #:use-module (guix utils)
103 #:use-module (ice-9 match)
104 #:use-module ((srfi srfi-1) #:select (alist-delete)))
105
106(define-public artanis
1a37fd1e
RW
107 (package
108 (name "artanis")
109 (version "0.4.1")
110 (source (origin
111 (method url-fetch)
112 (uri (string-append "mirror://gnu/artanis/artanis-"
113 version ".tar.gz"))
114 (sha256
115 (base32
116 "0nnmdfx5xwcc3kck64var7msz7g3qk817d7bv9l159nkmic0v9w4"))
117 (modules '((guix build utils)))
118 (snippet
119 '(begin
120 ;; Unbundle guile-redis and guile-json
121 (delete-file-recursively "artanis/third-party/json.scm")
122 (delete-file-recursively "artanis/third-party/json")
123 (delete-file-recursively "artanis/third-party/redis.scm")
124 (delete-file-recursively "artanis/third-party/redis")
125 (substitute* '("artanis/artanis.scm"
126 "artanis/lpc.scm"
127 "artanis/oht.scm")
128 (("(#:use-module \\()artanis third-party (json\\))" _
129 use-module json)
130 (string-append use-module json)))
131 (substitute* '("artanis/lpc.scm"
132 "artanis/session.scm")
133 (("(#:use-module \\()artanis third-party (redis\\))" _
134 use-module redis)
135 (string-append use-module redis)))
136 (substitute* "artanis/oht.scm"
137 (("([[:punct:][:space:]]+)(->json-string)([[:punct:][:space:]]+)"
138 _ pre json-string post)
139 (string-append pre
140 "scm" json-string
141 post)))
142 (substitute* "artanis/artanis.scm"
143 (("[[:punct:][:space:]]+->json-string[[:punct:][:space:]]+")
144 ""))
145 #t))))
146 (build-system gnu-build-system)
147 (inputs
148 `(("guile" ,guile-2.2)
149 ("nss" ,nss)))
150 ;; FIXME the bundled csv contains one more exported procedure
151 ;; (sxml->csv-string) than guile-csv. The author is maintainer of both
152 ;; projects.
153 ;; TODO: Add guile-dbi and guile-dbd optional dependencies.
154 (propagated-inputs
155 `(("guile-json" ,guile-json-1)
a7a8337b 156 ("guile-readline" ,guile2.2-readline)
1a37fd1e
RW
157 ("guile-redis" ,guile-redis)))
158 (native-inputs
159 `(("bash" ,bash) ;for the `source' builtin
160 ("pkgconfig" ,pkg-config)
161 ("util-linux" ,util-linux))) ;for the `script' command
162 (arguments
163 '(#:make-flags
164 ;; TODO: The documentation must be built with the `docs' target.
165 (let* ((out (assoc-ref %outputs "out"))
166 (scm (string-append out "/share/guile/site/2.2"))
167 (go (string-append out "/lib/guile/2.2/site-ccache")))
168 ;; Don't use (%site-dir) for site paths.
169 (list (string-append "MOD_PATH=" scm)
170 (string-append "MOD_COMPILED_PATH=" go)))
171 #:test-target "test"
172 #:phases
173 (modify-phases %standard-phases
174 (add-after 'unpack 'patch-site-dir
175 (lambda* (#:key outputs #:allow-other-keys)
176 (substitute* "artanis/commands/help.scm"
177 (("\\(%site-dir\\)")
178 (string-append "\""
179 (assoc-ref outputs "out")
180 "/share/guile/site/2.2\"")))))
181 (add-after 'unpack 'patch-reference-to-libnss
182 (lambda* (#:key inputs #:allow-other-keys)
183 (substitute* "artanis/security/nss.scm"
184 (("ffi-binding \"libnss3\"")
185 (string-append
186 "ffi-binding \""
187 (assoc-ref inputs "nss") "/lib/nss/libnss3.so"
188 "\"")))
189 #t))
190 (add-before 'install 'substitute-root-dir
191 (lambda* (#:key outputs #:allow-other-keys)
192 (let ((out (assoc-ref outputs "out")))
193 (substitute* "Makefile" ;ignore the execution of bash.bashrc
194 ((" /etc/bash.bashrc") " /dev/null"))
195 (substitute* "Makefile" ;set the root of config files to OUT
196 ((" /etc") (string-append " " out "/etc")))
197 (mkdir-p (string-append out "/bin")) ;for the `art' executable
198 #t)))
199 (add-after 'install 'wrap-art
200 (lambda* (#:key inputs outputs #:allow-other-keys)
201 (let* ((out (assoc-ref outputs "out"))
202 (bin (string-append out "/bin"))
203 (scm (string-append out "/share/guile/site/2.2"))
204 (go (string-append out "/lib/guile/2.2/site-ccache")))
205 (wrap-program (string-append bin "/art")
206 `("GUILE_LOAD_PATH" ":" prefix
207 (,scm ,(getenv "GUILE_LOAD_PATH")))
208 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
209 (,go ,(getenv "GUILE_LOAD_COMPILED_PATH"))))
210 #t))))))
211 (synopsis "Web application framework written in Guile")
212 (description "GNU Artanis is a web application framework written in Guile
0791437f
RW
213Scheme. A web application framework (WAF) is a software framework that is
214designed to support the development of dynamic websites, web applications, web
215services and web resources. The framework aims to alleviate the overhead
216associated with common activities performed in web development. Artanis
217provides several tools for web development: database access, templating
218frameworks, session management, URL-remapping for RESTful, page caching, and
219more.")
1a37fd1e
RW
220 (home-page "https://www.gnu.org/software/artanis/")
221 (license (list license:gpl3+ license:lgpl3+)))) ;dual license
0791437f
RW
222
223;; There has not been any release yet.
224(define-public guildhall
225 (let ((commit "2fe2cc539f4b811bbcd69e58738db03eb5a2b778")
226 (revision "1"))
227 (package
228 (name "guildhall")
229 (version (string-append "0-" revision "." (string-take commit 9)))
230 (source (origin
231 (method git-fetch)
232 (uri (git-reference
233 (url "https://github.com/ijp/guildhall.git")
234 (commit commit)))
235 (file-name (string-append name "-" version "-checkout"))
236 (sha256
237 (base32
238 "115bym7bg66h3gs399yb2vkzc2ygriaqsn4zbrg8f054mgy8wzn1"))))
239 (build-system gnu-build-system)
240 (arguments
241 `(#:phases
242 (modify-phases %standard-phases
243 ;; Tests fail without this fix because they try to load the bash
244 ;; executable as a Scheme file. See bug report at
245 ;; https://github.com/ijp/guildhall/issues/22
246 (add-after 'unpack 'fix-bug-22
247 (lambda _
248 (substitute* "Makefile.am"
249 (("TESTS_ENVIRONMENT=.*")
250 "AM_TESTS_ENVIRONMENT=srcdir=$(abs_top_srcdir)/tests/
251TEST_EXTENSIONS = .scm
252SCM_LOG_COMPILER= $(top_builddir)/env $(GUILE)
253AM_SCM_LOG_FLAGS = --no-auto-compile -s")
254 ;; FIXME: one of the database tests fails for unknown
255 ;; reasons. It does not fail when run outside of Guix.
256 (("tests/database.scm") ""))
257 #t)))))
258 (inputs
259 `(("guile" ,guile-2.0)))
260 (native-inputs
261 `(("zip" ,zip) ; for tests
262 ("autoconf" ,autoconf)
263 ("automake" ,automake)
264 ("texinfo" ,texinfo)))
265 (synopsis "Package manager for Guile")
266 (description
267 "Guildhall is a package manager written for Guile Scheme. A guild is
268an association of independent craftspeople. A guildhall is where they meet.
269This Guildhall aims to make a virtual space for Guile wizards and journeyfolk
270to share code.
271
272On a practical level, Guildhall lets you share Scheme modules and programs
273over the internet, and install code that has been shared by others. Guildhall
274can handle dependencies, so when a program requires several libraries, and
275each of those has further dependencies, all of the prerequisites for the
276program can be installed in one go.")
277 (home-page "https://github.com/ijp/guildhall")
278 (license license:gpl3+))))
279
280(define-public guile-aspell
281 (package
282 (name "guile-aspell")
283 (version "0.4")
284 (source (origin
285 (method url-fetch)
286 (uri (string-append
287 "http://lonelycactus.com/tarball/guile_aspell-"
288 version ".tar.gz"))
289 (sha256
290 (base32
291 "0vpk5xj9m9qc702z3khmkwhgpb949qbsyz8kw2qycda6qnxk0077"))))
292 (build-system gnu-build-system)
293 (arguments
294 '(#:phases (modify-phases %standard-phases
295 (add-before 'configure 'set-guilesitedir
296 (lambda _
297 (substitute* "Makefile.in"
298 (("^guilesitedir =.*$")
299 "guilesitedir = \
300$(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
301 #t))
302 (add-before 'build 'set-libaspell-file-name
303 (lambda* (#:key inputs #:allow-other-keys)
304 (let ((aspell (assoc-ref inputs "aspell")))
305 (substitute* "aspell.scm"
306 (("\"libaspell\\.so\"")
307 (string-append "\"" aspell
308 "/lib/libaspell\"")))
309 #t))))))
310 (native-inputs `(("pkg-config" ,pkg-config)))
311 (inputs `(("guile" ,guile-2.2)
312 ("aspell" ,aspell)))
313 (home-page "https://github.com/spk121/guile-aspell")
314 (synopsis "Spell-checking from Guile")
315 (description
316 "guile-aspell is a Guile Scheme library for comparing a string against a
317dictionary and suggesting spelling corrections.")
318 (license license:gpl3+)))
319
320(define-public guile-bash
321 ;; This project is currently retired. It was initially announced here:
322 ;; <https://lists.gnu.org/archive/html/guile-user/2015-02/msg00003.html>.
323 (let ((commit "1eabc563ca5692b3e08d84f1f0e6fd2283284469")
324 (revision "0"))
325 (package
326 (name "guile-bash")
327 (version (string-append "0.1.6-" revision "." (string-take commit 7)))
328 (home-page
329 "https://anonscm.debian.org/cgit/users/kaction-guest/retired/dev.guile-bash.git")
330 (source (origin
331 (method git-fetch)
332 (uri (git-reference
333 (commit commit)
334 (url home-page)))
335 (sha256
336 (base32
337 "097vny990wp2qpjij6a5a5gwc6fxzg5wk56inhy18iki5v6pif1p"))
338 (file-name (string-append name "-" version "-checkout"))))
339 (build-system gnu-build-system)
340 (arguments
341 '(#:configure-flags
342 ;; Add -I to match 'bash.pc' of Bash 4.4.
343 (list (string-append "CPPFLAGS=-I"
344 (assoc-ref %build-inputs "bash:include")
345 "/include/bash/include")
346
347 ;; The '.a' file is useless.
348 "--disable-static"
349
350 ;; Install 'lib/bash' as Bash 4.4 expects.
351 (string-append "--libdir=" (assoc-ref %outputs "out")
352 "/lib/bash"))))
353 (native-inputs `(("pkg-config" ,pkg-config)
354 ("autoconf" ,autoconf-wrapper)
355 ("automake" ,automake)
356 ("libtool" ,libtool)
357 ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
358 ("gettext" ,gettext-minimal)
359
360 ;; Bash with loadable module support, for the test
361 ;; suite.
362 ("bash-full" ,bash)))
363 (inputs `(("guile" ,guile-2.0)
364 ("bash:include" ,bash "include")))
365 (synopsis "Extend Bash using Guile")
366 (description
367 "Guile-Bash provides a shared library and set of Guile modules,
368allowing you to extend Bash in Scheme. Scheme interfaces allow you to access
369the following aspects of Bash:
370
371@itemize
372@item aliases;
373@item setting and getting Bash variables;
374@item creating dynamic variables;
375@item creating Bash functions with a Scheme implementation;
376@item reader macro for output capturing;
377@item reader macro for evaluating raw Bash commands.
378@end itemize
379
380To enable it, run:
381
382@example
383enable -f ~/.guix-profile/lib/bash/libguile-bash.so scm
384@end example
385
386and then run @command{scm example.scm}.")
387 (license license:gpl3+))))
388
389(define-public guile-8sync
390 (package
391 (name "guile-8sync")
392 (version "0.4.2")
393 (source (origin
394 (method url-fetch)
395 (uri (string-append "mirror://gnu/8sync/8sync-" version
396 ".tar.gz"))
397 (sha256
398 (base32
399 "031wm13srak3wsnll7j2mbbi29g1pcm4swdb71ds9yn567pn20qw"))))
400 (build-system gnu-build-system)
401 (native-inputs `(("autoconf" ,autoconf)
402 ("automake" ,automake)
403 ("guile" ,guile-2.2)
404 ("pkg-config" ,pkg-config)
405 ("texinfo" ,texinfo)))
406 (arguments
407 `(#:phases (modify-phases %standard-phases
408 (add-before 'configure 'setenv
409 (lambda _
410 ;; quiet warnings
411 (setenv "GUILE_AUTO_COMPILE" "0")
412 #t)))))
413 (home-page "https://gnu.org/s/8sync/")
414 (synopsis "Asynchronous actor model library for Guile")
415 (description
416 "GNU 8sync (pronounced \"eight-sync\") is an asynchronous programming
417library for GNU Guile based on the actor model.
418
419Note that 8sync is only available for Guile 2.2.")
eee4173c 420 (properties '((upstream-name . "8sync")))
0791437f
RW
421 (license license:lgpl3+)))
422
423(define-public guile-daemon
424 (package
425 (name "guile-daemon")
f975f82d 426 (version "0.1.3")
0791437f
RW
427 (source (origin
428 (method url-fetch)
429 (uri (string-append "https://github.com/alezost/" name
430 "/releases/download/v" version
431 "/" name "-" version ".tar.gz"))
432 (sha256
433 (base32
f975f82d 434 "08gaqrgjlly9k5si72vvpbr4xhq5v52l5ma5y6a7spid5dd057cy"))))
0791437f
RW
435 (build-system gnu-build-system)
436 (native-inputs
437 `(("pkg-config" ,pkg-config)))
438 (inputs
439 `(("guile" ,guile-2.2)))
440 (home-page "https://github.com/alezost/guile-daemon")
441 (synopsis "Evaluate code in a running Guile process")
442 (description
443 "Guile-Daemon is a small Guile program that loads your initial
444configuration file, and then reads and evaluates Guile expressions that
445you send to a FIFO file.")
446 (license license:gpl3+)))
447
448(define-public guile-dsv
449 (package
450 (name "guile-dsv")
451 (version "0.2.1")
452 (source (origin
453 (method git-fetch)
454 (uri (git-reference
455 (url "https://github.com/artyom-poptsov/guile-dsv")
456 (commit "bdc5267d007478abc20ea96d7c459b7dd9560b3d")))
457 (file-name (string-append name "-" version "-checkout"))
458 (sha256
459 (base32
460 "1irw6mz8998nwyhzrw9g94jcz60b9zljgqfmipaz1ybn8579qjx0"))))
461 (build-system gnu-build-system)
462 (native-inputs
463 `(("autoconf" ,autoconf)
464 ("automake" ,automake)
465 ("pkg-config" ,pkg-config)
466 ("texinfo" ,texinfo)))
467 (inputs `(("guile" ,guile-2.2)))
468 (propagated-inputs `(("guile-lib" ,guile-lib)))
469 (arguments
470 '(#:phases (modify-phases %standard-phases
471 (add-before 'configure 'set-guilesitedir
472 (lambda _
473 (substitute* "Makefile.in"
474 (("^guilesitedir =.*$")
475 "guilesitedir = \
476$(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
477 (substitute* "modules/Makefile.in"
478 (("^guilesitedir =.*$")
479 "guilesitedir = \
480$(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
481 (substitute* "modules/dsv/Makefile.in"
482 (("^guilesitedir =.*$")
483 "guilesitedir = \
484$(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
485 #t)))))
486 (home-page "https://github.com/artyom-poptsov/guile-dsv")
487 (synopsis "DSV module for Guile")
488 (description
489 "Guile-DSV is a GNU Guile module for working with the
490delimiter-separated values (DSV) data format. Guile-DSV supports the
491Unix-style DSV format and RFC 4180 format.")
492 (license license:gpl3+)))
493
494(define-public guile-fibers
495 (package
496 (name "guile-fibers")
497 (version "1.0.0")
498 (source (origin
499 (method url-fetch)
500 (uri (string-append "https://wingolog.org/pub/fibers/fibers-"
501 version ".tar.gz"))
502 (sha256
503 (base32
9e016129
LC
504 "0vjkg72ghgdgphzbjz9ig8al8271rq8974viknb2r1rg4lz92ld0"))
505 (modules '((guix build utils)))
506 (snippet
507 '(begin
508 ;; Allow builds with Guile 3.0.
509 (substitute* "configure"
510 (("search=\"2\\.2\"")
511 "search=\"3.0 2.2\""))
512
513 ;; Explicitly include system headers rather than relying on
514 ;; <libguile.h> to do it for us.
515 (substitute* "epoll.c"
516 (("#include.*libguile\\.h.*$" all)
517 (string-append "#include <unistd.h>\n"
518 "#include <string.h>\n"
519 all "\n")))
520
521 ;; Import (ice-9 threads) for 'current-processor-count'.
522 (substitute* "tests/channels.scm"
523 (("#:use-module \\(fibers\\)")
524 (string-append "#:use-module (fibers)\n"
525 "#:use-module (ice-9 threads)\n")))
526 #t))))
0791437f
RW
527 (build-system gnu-build-system)
528 (arguments
b6bee63b
LC
529 '(;; The code uses 'scm_t_uint64' et al., which are deprecated in 3.0.
530 #:configure-flags '("CFLAGS=-Wno-error=deprecated-declarations")
531 #:phases (modify-phases %standard-phases
0791437f
RW
532 (add-after 'install 'mode-guile-objects
533 (lambda* (#:key outputs #:allow-other-keys)
534 ;; .go files are installed to "lib/guile/X.Y/cache".
535 ;; This phase moves them to "…/site-ccache".
536 (let* ((out (assoc-ref outputs "out"))
537 (lib (string-append out "/lib/guile"))
538 (old (car (find-files lib "^ccache$"
539 #:directories? #t)))
540 (new (string-append (dirname old)
541 "/site-ccache")))
542 (rename-file old new)
543 #t))))))
544 (native-inputs
545 `(("texinfo" ,texinfo)
546 ("pkg-config" ,pkg-config)))
547 (inputs
b6bee63b 548 `(("guile" ,guile-3.0)))
0791437f
RW
549 (synopsis "Lightweight concurrency facility for Guile")
550 (description
551 "Fibers is a Guile library that implements a a lightweight concurrency
552facility, inspired by systems like Concurrent ML, Go, and Erlang. A fiber is
553like a \"goroutine\" from the Go language: a lightweight thread-like
554abstraction. Systems built with Fibers can scale up to millions of concurrent
555fibers, tens of thousands of concurrent socket connections, and many parallel
556cores. The Fibers library also provides Concurrent ML-like channels for
557communication between fibers.
558
559Note that Fibers makes use of some Guile 2.1/2.2-specific features and
560is not available for Guile 2.0.")
561 (home-page "https://github.com/wingo/fibers")
562 (license license:lgpl3+)))
563
b6bee63b 564(define-public guile2.0-fibers
9e016129
LC
565 (package
566 (inherit guile-fibers)
b6bee63b
LC
567 (name "guile2.2-fibers")
568 (inputs `(("guile" ,guile-2.2)))))
569
570(define-public guile3.0-fibers
571 (deprecated-package "guile3.0-fibers" guile-fibers))
9e016129 572
0791437f
RW
573(define-public guile-syntax-highlight
574 (package
575 (name "guile-syntax-highlight")
576 (version "0.1")
577 (source (origin
578 (method url-fetch)
579 (uri (string-append "https://files.dthompson.us/"
580 "guile-syntax-highlight/"
581 "guile-syntax-highlight-"
582 version ".tar.gz"))
583 (sha256
584 (base32
fb8a77f4
LC
585 "1p771kq15x83483m23bhah1sz6vkalg3drm7x279f4j1cxligkzi"))
586 (modules '((guix build utils)))
587 (snippet
588 '(begin
589 ;; Allow builds with Guile 3.0.
590 (substitute* "configure"
591 (("2\\.2 2\\.0")
592 "3.0 2.2 2.0"))
593 #t))))
0791437f
RW
594 (build-system gnu-build-system)
595 (native-inputs
596 `(("pkg-config" ,pkg-config)))
597 (inputs
b6bee63b 598 `(("guile" ,guile-3.0)))
0791437f
RW
599 (synopsis "General-purpose syntax highlighter for GNU Guile")
600 (description "Guile-syntax-highlight is a general-purpose syntax
601highlighting library for GNU Guile. It can parse code written in various
602programming languages into a simple s-expression that can be converted to
603HTML (via SXML) or any other format for rendering.")
02e052ba 604 (home-page "https://dthompson.us/projects/guile-syntax-highlight.html")
0791437f
RW
605 (license license:lgpl3+)))
606
b6bee63b 607(define-public guile2.2-syntax-highlight
fb8a77f4
LC
608 (package
609 (inherit guile-syntax-highlight)
b6bee63b
LC
610 (name "guile2.2-syntax-highlight")
611 (inputs `(("guile" ,guile-2.2)))))
612
613(define-public guile3.0-syntax-highlight
614 (deprecated-package "guile3.0-syntax-highlight" guile-syntax-highlight))
fb8a77f4 615
0791437f
RW
616(define-public guile-sjson
617 (package
618 (name "guile-sjson")
619 (version "0.2.1")
620 (source (origin
621 (method url-fetch)
622 (uri (string-append "https://dustycloud.org/misc/sjson-" version
623 ".tar.gz"))
624 (sha256
625 (base32
626 "1mzmapln79vv10qxaggz9qwcdbag3jnrj19xx8bgkmxss8h03sv3"))))
627 (build-system gnu-build-system)
628 (native-inputs
629 `(("autoconf" ,autoconf)
630 ("automake" ,automake)
631 ("pkg-config" ,pkg-config)))
632 (inputs
633 `(("guile" ,guile-2.2)))
634 (home-page "https://gitlab.com/dustyweb/guile-sjson")
635 (synopsis "S-expression based json reader/writer for Guile")
636 (description "guile-sjson is a json reader/writer for Guile.
637It has a nice, simple s-expression based syntax.")
638 (license license:lgpl3+)))
639
61dafdc0
CB
640(define-public guile-squee
641 (let ((commit "a85902a92bf6f58a1d35fd974a01ade163deda8d")
642 (revision "0"))
643 (package
644 (name "guile-squee")
645 (version (string-append "0-" revision "." (string-take commit 7)))
646 (source (origin
647 (method git-fetch)
648 (uri (git-reference
649 (url "https://notabug.org/cwebber/guile-squee.git")
650 (commit commit)))
651 (file-name (git-file-name name version))
652 (sha256
653 (base32
654 "0p1lpsp4kx57j3ai1dkxilm4ziavzzx8wbbc42m3hpziq0a7qz5z"))))
655 (build-system guile-build-system)
656 (arguments
657 '(#:phases
658 (modify-phases %standard-phases
659 (add-after 'unpack 'patch
660 (lambda* (#:key inputs #:allow-other-keys)
661 (substitute* "squee.scm"
662 (("dynamic-link \"libpq\"")
663 (string-append
664 "dynamic-link \""
665 (assoc-ref inputs "postgresql") "/lib/libpq.so"
666 "\"")))
667 #t)))))
668 (inputs
669 `(("postgresql" ,postgresql)))
670 (native-inputs
671 `(("guile" ,guile-2.2)))
672 (home-page "https://notabug.org/cwebber/guile-squee")
673 (synopsis "Connect to PostgreSQL using Guile")
674 (description
675 "@code{squee} is a Guile library for connecting to PostgreSQL databases
676using Guile's foreign function interface.")
6fd72f70 677 (license license:lgpl3+))))
61dafdc0 678
945a73d8
CB
679(define-public guile3.0-squee
680 (package
681 (inherit guile-squee)
682 (name "guile3.0-squee")
cfe35814
CB
683 (native-inputs `(("guile" ,guile-next)
684 ,@(alist-delete "guile"
685 (package-native-inputs guile-squee))))))
945a73d8 686
0791437f
RW
687(define-public guile-colorized
688 (package
689 (name "guile-colorized")
690 (version "0.1")
1340ce28
TGR
691 (source
692 (origin
693 (method git-fetch)
694 (uri (git-reference
55f4282e 695 (url "https://gitlab.com/NalaGinrut/guile-colorized.git")
1340ce28
TGR
696 (commit (string-append "v" version))))
697 (file-name (git-file-name name version))
698 (sha256
699 (base32 "10mv8c63159r3qvwwdvsgnsvdg7nc2ghak85zapwqpv4ywrqp9zc"))))
0791437f
RW
700 (build-system guile-build-system)
701 (native-inputs
b6bee63b 702 `(("guile" ,guile-3.0)))
55f4282e 703 (home-page "https://gitlab.com/NalaGinrut/guile-colorized")
0791437f
RW
704 (synopsis "Colorized REPL for Guile")
705 (description
706 "Guile-colorized provides you with a colorized REPL for GNU Guile.")
707 (license license:gpl3+)))
708
b6bee63b 709(define-public guile2.2-colorized
fc870a0d
LC
710 (package
711 (inherit guile-colorized)
b6bee63b
LC
712 (name "guile2.2-colorized")
713 (native-inputs `(("guile" ,guile-2.2)))))
714
715(define-public guile3.0-colorized
716 (deprecated-package "guile3.0-colorized" guile-colorized))
fc870a0d 717
0791437f
RW
718(define-public guile-pfds
719 (package
720 (name "guile-pfds")
721 (version "0.3")
722 (home-page "https://github.com/ijp/pfds")
723 (source (origin
724 (method git-fetch)
725 (uri (git-reference
726 (url home-page)
727 (commit (string-append "v" version))))
728 (sha256
729 (base32
730 "19y33wg94pf0n98dkfqd1zbw93fgky4sawxsxl6s3vyqwl0yi5vh"))
731 (file-name (string-append name "-" version "-checkout"))))
732 (build-system guile-build-system)
733 (arguments
734 '(#:source-directory "src"
735 #:phases (modify-phases %standard-phases
b6bee63b
LC
736 (add-after 'unpack 'work-around-guile-bug
737 (lambda _
738 ;; See bug #39210.
739 (substitute* '("fingertrees.sls"
740 "queues/private/condition.sls"
741 "deques/private/condition.sls")
742 (("&assertion") "&violation"))
743 #t))
0791437f
RW
744 (add-after 'unpack 'move-files-around
745 (lambda _
746 ;; Move files under a pfds/ directory to reflect the
747 ;; module hierarchy.
748 (mkdir-p "src/pfds")
749 (for-each (lambda (file)
750 (rename-file file
751 (string-append "src/pfds/"
752 file)))
753 '("bbtrees.sls"
754 "deques"
755 "deques.sls"
756 "dlists.sls"
757 "fingertrees.sls"
758 "hamts.sls"
759 "heaps.sls"
760 "private"
761 "psqs.sls"
762 "queues"
763 "queues.sls"
764 "sequences.sls"
765 "sets.sls"))
766
767 ;; In Guile <= 2.2.4, there's no way to tell 'guild
768 ;; compile' to accept the ".sls" extension. So...
769 (for-each (lambda (file)
770 (rename-file file
771 (string-append
772 (string-drop-right file 4)
773 ".scm")))
774 (find-files "." "\\.sls$"))
775 #t)))))
776 (native-inputs
b6bee63b 777 `(("guile" ,guile-3.0)))
0791437f
RW
778 (synopsis "Purely functional data structures for Guile")
779 (description
780 "This package provides purely functional data structures written in R6RS
781Scheme and compiled for Guile. It has been tested with Racket, Guile 2,
782Vicare Scheme and IronScheme. Right now it contains:
783
784@itemize
785@item queues
786@item deques
787@item bbtrees
788@item sets
789@item dlists
790@item priority search queues (PSQs)
791@item finger trees
792@item sequences
793@item heaps
794@item hash array mapped tries (HAMTs).
795@end itemize\n")
796 (license license:bsd-3)))
797
b6bee63b 798(define-public guile2.2-pfds
77c95ee6
RW
799 (package
800 (inherit guile-pfds)
b6bee63b
LC
801 (name "guile2.2-pfds")
802 (native-inputs `(("guile" ,guile-2.2)))
77c95ee6 803 (arguments
0dd1e277
RW
804 (substitute-keyword-arguments (package-arguments guile-pfds)
805 ((#:phases phases)
806 `(modify-phases ,phases
b6bee63b
LC
807 (delete 'work-around-guile-bug)))))))
808
809(define-public guile3.0-pfds
810 (deprecated-package "guile3.0-pfds" guile-pfds))
77c95ee6 811
0791437f
RW
812(define-public guile-aa-tree
813 (package
814 (name "guile-aa-tree")
815 (version "3.1.1")
816 (source (origin
817 (method url-fetch)
818 (uri (string-append "mirror://savannah/guile-aa-tree/guile-aa-tree-"
819 version ".tar.gz"))
820 (sha256
821 (base32
822 "0044c105r3q9vpl17pv3phl1b79kjm1llhkakqgiasixyav01blh"))))
823 (build-system guile-build-system)
824 (native-inputs `(("guile" ,guile-2.2)))
825 ;; https://savannah.nongnu.org/projects/guile-aa-tree
826 (home-page "https://qlfiles.net/guile-aa-tree/")
827 (synopsis "AA tree data structure for Guile")
828 (description
829 "This package provides an implementation of @dfn{AA trees}, a
830self-balancing binary tree data structure, for Guile. It ensure @math{O(log
831n)} worst case performance for core operations. The module provides
832non-mutating insert, delete, and search operations, with support for
833convenient nested tree operations.")
834 (license license:gpl3+)))
835
836(define-public guile-simple-zmq
837 (let ((commit "68bedb6679716214fb9d3472da57544526f7a618")
838 (revision "3"))
839 (package
840 (name "guile-simple-zmq")
841 (version (git-version "0.0.0" revision commit))
842 (source
843 (origin
844 (method git-fetch)
845 (uri (git-reference
846 (url "https://github.com/jerry40/guile-simple-zmq")
847 (commit commit)))
848 (sha256
849 (base32
850 "1ad3xg69qqviy1f6dnlw0ysmfdbmp1jq65rfqb8nfd8dsrq2syli"))
851 (file-name (git-file-name name version))))
852 (build-system guile-build-system)
853 (arguments
854 `(#:source-directory "src"
855 #:phases (modify-phases %standard-phases
856 (add-after 'unpack 'set-libzmq-file-name
857 (lambda* (#:key inputs #:allow-other-keys)
858 (substitute* "src/simple-zmq.scm"
859 (("\\(dynamic-link \"libzmq\"\\)")
860 (format #f "(dynamic-link \"~a/lib/libzmq.so\")"
861 (assoc-ref inputs "zeromq"))))
862 #t)))))
863 (native-inputs
b6bee63b 864 `(("guile" ,guile-3.0)))
0791437f
RW
865 (inputs
866 `(("zeromq" ,zeromq)))
867 (home-page "https://github.com/jerry40/guile-simple-zmq")
868 (synopsis "Guile wrapper over ZeroMQ library")
869 (description
870 "This package provides a Guile programming interface to the ZeroMQ
871messaging library.")
872 (license license:gpl3+))))
873
b6bee63b 874(define-public guile2.2-simple-zmq
015bb1c8
LC
875 (package
876 (inherit guile-simple-zmq)
b6bee63b
LC
877 (name "guile2.2-simple-zmq")
878 (native-inputs `(("guile" ,guile-2.2)))))
879
880(define-public guile3.0-simple-zmq
881 (deprecated-package "guile3.0-simple-zmq" guile-simple-zmq))
015bb1c8 882
0791437f
RW
883(define-public jupyter-guile-kernel
884 (let ((commit "a7db9245a886e104138474df46c3e88b95cff629")
885 (revision "1"))
886 (package
887 (name "jupyter-guile-kernel")
888 (version (git-version "0.0.0" revision commit))
889 (source
890 (origin
891 (method git-fetch)
892 (uri (git-reference
893 (url "https://github.com/jerry40/guile-kernel")
894 (commit commit)))
f1d4d79f 895 (file-name (git-file-name name version))
0791437f
RW
896 (sha256
897 (base32
898 "0aj04853bqm47ivfcmrgpb7w3wkis847kc7qrwsa5zcn9h38qh2f"))))
899 (build-system guile-build-system)
900 (arguments
901 '(#:phases (modify-phases %standard-phases
902 (add-after 'unpack 'set-openssl-file-name
903 (lambda* (#:key inputs #:allow-other-keys)
904 ;; Record the absolute file name of the 'openssl'
905 ;; command.
906 (substitute* "src/hmac.scm"
907 (("openssl")
908 (string-append (assoc-ref inputs "openssl")
909 "/bin/openssl")))
910 #t))
911
912 ;; XXX: The code uses 'include' to include its own source
913 ;; files, and "-L src" isn't enough in this case.
914 (add-before 'build 'chdir
915 (lambda _ (chdir "src") #t))
916 (add-after 'build 'chdir-back
917 (lambda _ (chdir "..") #t))
918
919 (add-after 'install 'install-kernel
920 (lambda* (#:key inputs outputs #:allow-other-keys)
921 (let* ((out (assoc-ref outputs "out"))
922 (json (assoc-ref inputs "guile-json"))
923 (zmq (assoc-ref inputs "guile-simple-zmq"))
924 (deps (list json zmq))
925 (dir (string-append
926 out "/share/jupyter/kernels/guile"))
927 (effective (target-guile-effective-version)))
928 ;; Install kernel.
929 (install-file "src/kernel.json" dir)
930
931 ;; Fix hard-coded file name in the kernel.
932 (substitute* (string-append dir "/kernel.json")
933 (("/home/.*/guile-jupyter-kernel.scm")
934 (string-append out "/share/guile/site/"
935 (target-guile-effective-version)
936 "/guile-jupyter-kernel.scm"))
937 (("\"guile\"")
938 (string-append "\"" (assoc-ref inputs "guile")
939 "/bin/guile\""))
940 (("-s")
941 ;; Add '-L' and '-C' flags so that the kernel
942 ;; finds its dependencies.
943 (let ((-L (map (lambda (item)
944 (string-append "\"" item
945 "/share/guile/site/"
946 effective "\""))
947 deps))
948 (-C (map (lambda (item)
949 (string-append "\"" item
950 "/lib/guile/"
951 effective
952 "/site-ccache\""))
953 deps)))
954 (string-append "--no-auto-compile\""
955 (string-join -L ", \"-L\", "
956 'prefix)
957 (string-join -C ", \"-C\", "
958 'prefix)
959 ", \"-s"))))
960 #t))))))
961 (inputs
962 `(("openssl" ,openssl)
963 ("guile" ,guile-2.2)
91f55717 964 ("guile-json" ,guile-json-1)
0791437f
RW
965 ("guile-simple-zmq" ,guile-simple-zmq)))
966 (synopsis "Guile kernel for the Jupyter Notebook")
967 (description
968 "This package provides a Guile 2.x kernel for the Jupyter Notebook. It
969allows users to interact with the Guile REPL through Jupyter.")
970 (home-page "https://github.com/jerry40/guile-kernel")
971 (license license:gpl3+))))
972
973(define-public guile-sparql
974 (package
975 (name "guile-sparql")
976 (version "0.0.7")
977 (source (origin
978 (method url-fetch)
979 (uri (string-append
980 "https://github.com/roelj/guile-sparql/releases/download/"
981 version "/guile-sparql-" version ".tar.gz"))
982 (sha256
983 (base32 "1drnvhsgl0gc5crmb16yyw1j98nkhwwcgssv9vgm36ng43nnzffd"))))
984 (build-system gnu-build-system)
985 (arguments `(#:tests? #f)) ; There are no tests.
986 (native-inputs
987 `(("pkg-config" ,pkg-config)))
988 (inputs
989 `(("guile" ,guile-2.2)))
990 (home-page "https://github.com/roelj/guile-sparql")
991 (synopsis "SPARQL module for Guile")
992 (description "This package provides the functionality to query a SPARQL
993endpoint. Additionally, it provides an interface to write SPARQL queries
994using S-expressions.")
995 (license license:gpl3+)))
996
997(define-public guile-debbugs
998 (package
999 (name "guile-debbugs")
5144f542 1000 (version "0.0.3")
0791437f
RW
1001 (source (origin
1002 (method url-fetch)
1003 (uri (string-append "mirror://gnu/guile-debbugs/guile-debbugs-"
1004 version ".tar.gz"))
1005 (sha256
1006 (base32
5144f542 1007 "1cc63nw3xdfjrfk8c58r6d5lidmfq5cpqcy32yd5xp81yccprvn9"))))
0791437f 1008 (build-system gnu-build-system)
5144f542
RW
1009 (propagated-inputs
1010 `(("guile-email" ,guile-email)))
0791437f
RW
1011 (native-inputs
1012 `(("guile" ,guile-2.2)
1013 ("pkg-config" ,pkg-config)))
1014 (home-page "https://savannah.gnu.org/projects/guile-debbugs/")
1015 (synopsis "Guile interface to the Debbugs bug tracking service")
1016 (description
1017 "This package provides a Guile library to communicate with a Debbugs bug
1018tracker's SOAP service, such as @url{https://bugs.gnu.org}.")
1019 (license license:gpl3+)))
1020
1021(define-public guile-email
50771f5b
AI
1022 (package
1023 (name "guile-email")
223cb7c6 1024 (version "0.2.2")
50771f5b
AI
1025 (source
1026 (origin
1027 (method url-fetch)
1028 (uri (string-append
db18d87a
AI
1029 "https://guile-email.systemreboot.net/releases/guile-email-"
1030 version ".tar.lz"))
50771f5b
AI
1031 (sha256
1032 (base32
223cb7c6 1033 "1rc8r0fgvflnyq5ckl7ii8sghpsgpkzxa8vskjr1ak2kyar6m35k"))))
50771f5b
AI
1034 (build-system gnu-build-system)
1035 (native-inputs
1036 `(("pkg-config" ,pkg-config)
db18d87a 1037 ("lzip" ,lzip)))
50771f5b
AI
1038 (inputs
1039 `(("guile" ,guile-2.2)))
db18d87a 1040 (arguments
2c33a849 1041 '(#:make-flags '("GUILE_AUTO_COMPILE=0"))) ; to prevent guild warnings
db18d87a 1042 (home-page "https://guile-email.systemreboot.net")
50771f5b 1043 (synopsis "Guile email parser")
db18d87a
AI
1044 (description "guile-email is a collection of email utilities implemented
1045in pure guile. It supports parsing MIME (Multipurpose Internet Mail
1046Extensions) compliant email messages and reading emails from the mbox
1047format.")
50771f5b 1048 (license license:agpl3+)))
0791437f 1049
63a847cb
CB
1050(define-public guile3.0-email
1051 (package
1052 (inherit guile-email)
1053 (name "guile3.0-email")
1054 (inputs `(("guile" ,guile-next)
1055 ,@(alist-delete "guile" (package-inputs guile-email))))))
1056
0791437f 1057(define-public guile-newt
442a11f6
MO
1058 (package
1059 (name "guile-newt")
f52c1f5f 1060 (version "0.0.2")
442a11f6
MO
1061 (source (origin
1062 (method git-fetch)
1063 (uri (git-reference
1064 (url "https://gitlab.com/mothacehe/guile-newt")
1065 (commit version)))
1066 (file-name (git-file-name name version))
1067 (sha256
1068 (base32
f52c1f5f 1069 "1gksd1lzgjjh1p9vczghg8jw995d22hm34kbsiv8rcryirv2xy09"))))
442a11f6
MO
1070 (build-system gnu-build-system)
1071 (arguments
1072 '(#:make-flags
1073 '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
1074 (inputs
b6bee63b 1075 `(("guile" ,guile-3.0)
442a11f6
MO
1076 ("newt" ,newt)))
1077 (native-inputs
1078 `(("autoconf" ,autoconf)
1079 ("automake" ,automake)
1080 ("pkg-config" ,pkg-config)))
1081 (synopsis "Guile bindings to Newt")
1082 (description
1083 "This package provides bindings for Newt, a programming library for
0791437f
RW
1084color text mode, widget based user interfaces. The bindings are written in pure
1085Scheme by using Guile’s foreign function interface.")
442a11f6
MO
1086 (home-page "https://gitlab.com/mothacehe/guile-newt")
1087 (license license:gpl3+)))
0791437f 1088
b6bee63b 1089(define-public guile2.2-newt
e7fc7746
LC
1090 (package
1091 (inherit guile-newt)
b6bee63b 1092 (name "guile2.2-newt")
e7fc7746
LC
1093 (inputs `(("guile" ,guile-next)
1094 ,@(alist-delete "guile" (package-inputs guile-newt))))))
1095
b6bee63b
LC
1096(define-public guile3.0-newt
1097 (deprecated-package "guile3.0-newt" guile-newt))
1098
0791437f
RW
1099(define-public guile-mastodon
1100 (package
1101 (name "guile-mastodon")
1102 (version "0.0.1")
1103 (source (origin
1104 (method git-fetch)
1105 (uri (git-reference
1106 (url "https://framagit.org/prouby/guile-mastodon.git")
1107 (commit (string-append "v" version))))
1108 (file-name (git-file-name name version))
1109 (sha256
1110 (base32
1111 "1vblf3d1bbwna3l09p2ap5y8ycvl549bz6whgk78imyfmn28ygry"))))
1112 (build-system gnu-build-system)
1113 (native-inputs
1114 `(("autoconf" ,autoconf)
1115 ("automake" ,automake)
1116 ("pkg-config" ,pkg-config)))
1117 (inputs
1118 `(("guile" ,guile-2.2)
1119 ("gnutls" ,gnutls)
91f55717 1120 ("guile-json" ,guile-json-1)))
0791437f
RW
1121 (home-page "https://framagit.org/prouby/guile-mastodon")
1122 (synopsis "Guile Mastodon REST API module")
1123 (description "This package provides Guile modules to access the
1124@uref{https://docs.joinmastodon.org/api/, REST API of Mastodon}, a federated
1125microblogging service.")
1126 (license license:gpl3+)))
1127
0791437f 1128(define-public guile-parted
dbcd503c
MO
1129 (package
1130 (name "guile-parted")
575032c8 1131 (version "0.0.4")
dbcd503c
MO
1132 (source (origin
1133 (method git-fetch)
1134 (uri (git-reference
1135 (url "https://gitlab.com/mothacehe/guile-parted")
1136 (commit version)))
1137 (file-name (git-file-name name version))
1138 (sha256
1139 (base32
575032c8 1140 "0b7h8psfm9gmmwb65pp5zwzglvwnfmw5j40g09hhf3f7kwxc0mv2"))
f6145358 1141 (modules '((guix build utils)))))
dbcd503c
MO
1142 (build-system gnu-build-system)
1143 (arguments
1144 '(#:make-flags
1145 '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
1146 (inputs
b6bee63b 1147 `(("guile" ,guile-3.0)
dbcd503c
MO
1148 ("parted" ,parted)))
1149 (propagated-inputs
1150 `(("guile-bytestructures" ,guile-bytestructures)))
1151 (native-inputs
1152 `(("autoconf" ,autoconf)
1153 ("automake" ,automake)
1154 ("pkg-config" ,pkg-config)))
1155 (synopsis "Guile bindings to GNU Parted")
1156 (description
1157 "This package provides bindings for GNU Parted library, a C library
1158allowing disk partition tables creation and manipulation. The bindings are
0791437f 1159written in pure Scheme by using Guile's foreign function interface.")
dbcd503c
MO
1160 (home-page "https://gitlab.com/mothacehe/guile-parted")
1161 (license license:gpl3+)))
0791437f 1162
b6bee63b 1163(define-public guile2.2-parted
e5b95558
LC
1164 (package
1165 (inherit guile-parted)
b6bee63b 1166 (name "guile2.2-parted")
e5b95558
LC
1167 (inputs `(("guile" ,guile-next)
1168 ,@(alist-delete "guile" (package-inputs guile-parted))))
1169 (propagated-inputs
b6bee63b
LC
1170 `(("guile-bytestructures" ,guile2.2-bytestructures)))))
1171
1172(define-public guile3.0-parted
1173 (deprecated-package "guile3.0-parted" guile-parted))
e5b95558 1174
0791437f
RW
1175(define-public guile-xosd
1176 (package
1177 (name "guile-xosd")
1178 (version "0.2.1")
1179 (source (origin
1180 (method url-fetch)
1181 (uri (string-append "https://github.com/alezost/" name
1182 "/releases/download/v" version
1183 "/" name "-" version ".tar.gz"))
1184 (sha256
1185 (base32
1186 "1ri5065c16kmgrf2pysn2ymxjqi5302lhpb07wkl1jr75ym8fn8p"))))
1187 (build-system gnu-build-system)
1188 (native-inputs
1189 `(("pkg-config" ,pkg-config)))
1190 (inputs
1191 `(("guile" ,guile-2.2)
1192 ("libx11" ,libx11)
1193 ("libxext" ,libxext)
1194 ("libxinerama" ,libxinerama)
1195 ("xosd" ,xosd)))
1196 (home-page "https://github.com/alezost/guile-xosd")
1197 (synopsis "XOSD bindings for Guile")
1198 (description
1199 "Guile-XOSD provides Guile bindings for @code{libxosd},
1200@uref{http://sourceforge.net/projects/libxosd/, the X On Screen Display
1201library}.")
1202 (license license:gpl3+)))
1203
1204(define-public guile-dbi
1205 (package
1206 (name "guile-dbi")
1207 (version "2.1.6")
1208 (source (origin
1209 (method url-fetch)
1210 (uri (string-append
1211 "http://download.gna.org/guile-dbi/guile-dbi-"
1212 version ".tar.gz"))
1213 (sha256
1214 (base32
1215 "116njrprhgrsv1qm904sp3b02rq01fx639r433d657gyhw3x159n"))))
1216 (build-system gnu-build-system)
1217 (arguments
1218 '(#:configure-flags
1219 (list (string-append
1220 "--with-guile-site-dir=" %output "/share/guile/site/2.2"))
1221 #:make-flags
406ef442
CB
1222 (list (string-append
1223 "LDFLAGS=-Wl,-rpath=" %output "/lib:"
1224 (assoc-ref %build-inputs "guile-dbd-sqlite3") "/lib" ":"
1225 (assoc-ref %build-inputs "guile-dbd-postgresql") "/lib"))
0791437f
RW
1226 #:phases
1227 (modify-phases %standard-phases
1228 (add-after 'install 'patch-extension-path
1229 (lambda* (#:key outputs #:allow-other-keys)
1230 (let* ((out (assoc-ref outputs "out"))
1231 (dbi.scm (string-append
1232 out "/share/guile/site/2.2/dbi/dbi.scm"))
1233 (ext (string-append out "/lib/libguile-dbi")))
1234 (substitute* dbi.scm (("libguile-dbi") ext))
1235 #t))))))
1236 (inputs
406ef442
CB
1237 `(("guile-dbd-sqlite3" ,guile-dbd-sqlite3)
1238 ("guile-dbd-postgresql" ,guile-dbd-postgresql))) ; only shared library, no scheme files
0791437f
RW
1239 (propagated-inputs
1240 `(("guile" ,guile-2.2)))
1241 (synopsis "Guile database abstraction layer")
1242 (home-page "http://home.gna.org/guile-dbi/guile-dbi.html")
1243 (description
1244 "guile-dbi is a library for Guile that provides a convenient interface to
1245SQL databases. Database programming with guile-dbi is generic in that the same
1246programming interface is presented regardless of which database system is used.
1247It currently supports MySQL, Postgres and SQLite3.")
1248 (license license:gpl2+)))
1249
1250(define guile-dbi-bootstrap
1251 (package
1252 (inherit guile-dbi)
1253 (name "guile-dbi-bootstrap")
1254 (inputs '())
1255 (arguments
1256 (substitute-keyword-arguments (package-arguments guile-dbi)
1257 ((#:make-flags _) '(list))))))
1258
1259(define-public guile-dbd-sqlite3
1260 (package
1261 (name "guile-dbd-sqlite3")
1262 (version "2.1.6")
1263 (source (origin
1264 (method url-fetch)
1265 (uri (string-append
1266 "http://download.gna.org/guile-dbi/guile-dbd-sqlite3-"
1267 version ".tar.gz"))
1268 (sha256
1269 (base32
1270 "0rg71jchxd2y8x496s8zmfmikr5g8zxi8zv2ar3f7a23pph92iw2"))))
1271 (build-system gnu-build-system)
1272 (native-inputs
1273 `(("pkg-config" ,pkg-config)
1274 ("guile-dbi-bootstrap" ,guile-dbi-bootstrap))) ; only required for headers
1275 (inputs
1276 `(("sqlite" ,sqlite)
1277 ("zlib" ,(@ (gnu packages compression) zlib))))
1278 (synopsis "Guile DBI driver for SQLite")
1279 (home-page "https://github.com/jkalbhenn/guile-dbd-sqlite3")
1280 (description
1281 "guile-dbi is a library for Guile that provides a convenient interface to
1282SQL databases. This package implements the interface for SQLite.")
1283 (license license:gpl2+)))
1284
406ef442
CB
1285(define-public guile-dbd-postgresql
1286 (let ((commit "e97589b6b018b206c901e4cc24db463407a4036b")
1287 (revision 0))
1288 (package
1289 (name "guile-dbd-postgresql")
1290 (version (string-append
1291 "2.1.6-" (number->string revision) "." (string-take commit 7)))
1292 (source
1293 (origin
1294 (method git-fetch)
1295 (uri (git-reference
1296 (url "https://github.com/opencog/guile-dbi.git")
1297 (commit commit)))
1298 (file-name (git-file-name name version))
1299 (sha256
1300 (base32 "0n1gv9a0kdys10a4qmnrwvg5sydwb03880asri4gqdchcj3fimni"))))
1301 (build-system gnu-build-system)
1302 (arguments
1303 '(#:phases
1304 (modify-phases %standard-phases
1305 (add-after 'unpack 'chdir
1306 (lambda _
1307 ;; The upstream Git repository contains all the code, so change
1308 ;; to the relevant directory.
1309 (chdir "guile-dbd-postgresql")
1310 #t))
1311 (add-after 'chdir 'patch-src/Makefile.am
1312 (lambda* (#:key inputs #:allow-other-keys)
1313 (substitute* "src/Makefile.am"
1314 (("/usr/include")
1315 (string-append (assoc-ref inputs "postgresql") "/include")))
1316 #t))
1317 (add-after 'patch-src/Makefile.am 'patch-src
1318 (lambda _
1319 (substitute* "src/guile-dbd-postgresql.c"
1320 (("postgresql/libpq-fe\\.h") "libpq-fe.h"))
1321 #t)))))
1322 (native-inputs
1323 `(("pkg-config" ,pkg-config)
1324 ("automake" ,automake)
1325 ("autoconf" ,autoconf)
1326 ("perl" ,perl)
1327 ("libtool" ,libtool)
1328 ("guile-dbi-bootstrap" ,guile-dbi-bootstrap)))
1329 (inputs
1330 `(("postgresql" ,postgresql)
1331 ("zlib" ,zlib)))
1332 (synopsis "Guile DBI driver for PostgreSQL")
1333 (home-page
1334 "https://github.com/opencog/guile-dbi/tree/master/guile-dbd-postgresql")
1335 (description
1336 "@code{guile-dbi} is a library for Guile that provides a convenient
1337interface to SQL databases. This package implements the interface for
1338PostgreSQL.")
1339 (license license:gpl2+))))
1340
0791437f
RW
1341(define-public guile-config
1342 (package
1343 (name "guile-config")
91e29547 1344 (version "0.3.1")
0791437f
RW
1345 (source
1346 (origin
1347 (method git-fetch)
1348 (uri (git-reference
1349 (url "https://gitlab.com/a-sassmannshausen/guile-config")
91e29547
AS
1350 (commit (string-append "v" version))))
1351 (file-name (git-file-name name version))
1352 (sha256 (base32
1353 "0gglsqwpw77gvrqcny8irpqfl7qdf2v8n9ggwrswanxalj4vcbvf"))))
0791437f
RW
1354 (build-system gnu-build-system)
1355 (native-inputs
1356 `(("autoconf" ,autoconf)
1357 ("automake" ,automake)
1358 ("pkg-config" ,pkg-config)
1359 ("texinfo" ,texinfo)))
b6bee63b 1360 (inputs `(("guile" ,guile-3.0)))
0791437f
RW
1361 (synopsis
1362 "Guile application configuration parsing library.")
1363 (description
1364 "Guile Config is a library providing a declarative approach to
1365application configuration specification. The library provides clean
1366configuration declaration forms, and processors that take care of:
1367configuration file creation; configuration file parsing; command-line
1368parameter parsing using getopt-long; basic GNU command-line parameter
1369generation (--help, --usage, --version); automatic output generation for the
1370above command-line parameters.")
1371 (home-page
1372 "https://gitlab.com/a-sassmannshausen/guile-config")
1373 (license license:gpl3+)))
1374
b6bee63b 1375(define-public guile2.2-config
0ac6b836
AS
1376 (package
1377 (inherit guile-config)
b6bee63b
LC
1378 (name "guile2.2-config")
1379 (inputs `(("guile" ,guile-2.2)
0ac6b836
AS
1380 ,@(alist-delete "guile" (package-inputs guile-config))))))
1381
b6bee63b
LC
1382(define-public guile3.0-config
1383 (deprecated-package "guile3.0-config" guile-config))
1384
0791437f
RW
1385(define-public guile-hall
1386 (package
1387 (name "guile-hall")
cfc4e498 1388 (version "0.2.1")
0791437f 1389 (source
feb11b08
RW
1390 (origin
1391 (method git-fetch)
1392 (uri (git-reference
1393 (url "https://gitlab.com/a-sassmannshausen/guile-hall")
1394 (commit (string-append "v" version))))
1395 (file-name (git-file-name name version))
1396 (sha256 (base32
cfc4e498 1397 "0dwx5iyg0dmdf64wq0b4w306bapr86jwnw35npgbjq4cqm8qbzqn"))))
0791437f
RW
1398 (build-system gnu-build-system)
1399 (arguments
63bf0afd
AS
1400 `(#:modules
1401 ((ice-9 match)
1402 (ice-9 ftw)
1403 ,@%gnu-build-system-modules)
1404 #:phases
1405 (modify-phases
1406 %standard-phases
1407 (add-after 'install 'hall-wrap-binaries
1408 (lambda* (#:key inputs outputs #:allow-other-keys)
1409 (let* ((compiled-dir
1410 (lambda (out version)
1411 (string-append
1412 out "/lib/guile/" version "/site-ccache")))
1413 (uncompiled-dir
1414 (lambda (out version)
1415 (string-append
1416 out "/share/guile/site"
1417 (if (string-null? version) "" "/") version)))
1418 (dep-path
1419 (lambda (env modules path)
1420 (list env ":" 'prefix
1421 (cons modules
1422 (map (lambda (input)
1423 (string-append
1424 (assoc-ref inputs input)
1425 path))
1426 ,''("guile-config"))))))
1427 (out (assoc-ref outputs "out"))
1428 (bin (string-append out "/bin/"))
1429 (site (uncompiled-dir out "")))
1430 (match (scandir site)
1431 (("." ".." version)
1432 (for-each
1433 (lambda (file)
1434 (wrap-program
1435 (string-append bin file)
1436 (dep-path
1437 "GUILE_LOAD_PATH"
1438 (uncompiled-dir out version)
1439 (uncompiled-dir "" version))
1440 (dep-path
1441 "GUILE_LOAD_COMPILED_PATH"
1442 (compiled-dir out version)
1443 (compiled-dir "" version))))
1444 ,''("hall"))
1445 #t))))))))
0791437f 1446 (native-inputs
63bf0afd
AS
1447 `(("autoconf" ,autoconf)
1448 ("automake" ,automake)
1449 ("pkg-config" ,pkg-config)
1450 ("texinfo" ,texinfo)))
b6bee63b 1451 (inputs `(("guile" ,guile-3.0)))
0791437f 1452 (propagated-inputs
3c3e6620 1453 `(("guile-config" ,guile-config)))
0791437f
RW
1454 (synopsis "Guile project tooling")
1455 (description
3c3e6620
RW
1456 "Hall is a command-line application and a set of Guile libraries that
1457allow you to quickly create and publish Guile projects. It allows you to
1458transparently support the GNU build system, manage a project hierarchy &
1459provides tight coupling to Guix.")
1460 (home-page "https://gitlab.com/a-sassmannshausen/guile-hall")
06085fac 1461 (license license:gpl3+)))
0791437f 1462
b6bee63b 1463(define-public guile2.2-hall
df18ea6f
AS
1464 (package
1465 (inherit guile-hall)
b6bee63b
LC
1466 (name "guile2.2-hall")
1467 (inputs `(("guile" ,guile-2.2)
df18ea6f
AS
1468 ,@(alist-delete "guile" (package-inputs guile-hall))))
1469 (propagated-inputs
b6bee63b 1470 `(("guile-config" ,guile2.2-config)
df18ea6f
AS
1471 ,@(alist-delete "guile-config"
1472 (package-propagated-inputs guile-hall))))))
1473
b6bee63b
LC
1474(define-public guile3.0-hall
1475 (deprecated-package "guile3.0-hall" guile-hall))
1476
0791437f
RW
1477(define-public guile-ics
1478 (package
1479 (name "guile-ics")
1480 (version "0.2.0")
1481 (source (origin
1482 (method git-fetch)
1483 (uri (git-reference
1484 (url "https://github.com/artyom-poptsov/guile-ics")
1485 (commit (string-append "v" version))))
1486 (file-name (string-append name "-" version "-checkout"))
1487 (sha256
1488 (base32
6713589d
LC
1489 "0qjjvadr7gibdq9jvwkmlkb4afsw9n2shfj9phpiadinxk3p4m2g"))
1490 (modules '((guix build utils)))
1491 (snippet
1492 '(begin
1493 ;; Allow builds with Guile 3.0.
1494 (substitute* "configure.ac"
1495 (("^GUILE_PKG.*")
1496 "GUILE_PKG([3.0 2.2 2.0])\n"))
1497 #t))))
0791437f
RW
1498 (build-system gnu-build-system)
1499 (native-inputs
1500 `(("autoconf" ,autoconf-wrapper)
1501 ("automake" ,automake)
1502 ("texinfo" ,texinfo)
1503 ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
1504 ("gettext" ,gettext-minimal)
1505 ("pkg-config" ,pkg-config)))
b6bee63b 1506 (inputs `(("guile" ,guile-3.0) ("which" ,which)))
0791437f
RW
1507 (propagated-inputs `(("guile-lib" ,guile-lib)))
1508 (home-page "https://github.com/artyom-poptsov/guile-ics")
1509 (synopsis "Guile parser library for the iCalendar format")
1510 (description
1511 "Guile-ICS is an iCalendar (RFC5545) format parser library written in
1512pure Scheme. The library can be used to read and write iCalendar data.
1513
1514The library is shipped with documentation in Info format and usage examples.")
1515 (license license:gpl3+)))
1516
b6bee63b 1517(define-public guile2.2-ics
6713589d
LC
1518 (package
1519 (inherit guile-ics)
b6bee63b
LC
1520 (name "guile2.2-ics")
1521 (inputs `(("guile" ,guile-2.2)
6713589d 1522 ,@(alist-delete "guile" (package-inputs guile-ics))))
b6bee63b
LC
1523 (propagated-inputs `(("guile-lib" ,guile2.2-lib)))))
1524
1525(define-public guile3.0-ics
1526 (deprecated-package "guile3.0-ics" guile-ics))
6713589d 1527
0791437f
RW
1528(define-public guile-wisp
1529 (package
1530 (name "guile-wisp")
65610f73 1531 (version "1.0.2")
0791437f
RW
1532 (source (origin
1533 (method url-fetch)
1534 (uri (string-append "https://bitbucket.org/ArneBab/"
1535 "wisp/downloads/wisp-"
1536 version ".tar.gz"))
1537 (sha256
1538 (base32
65610f73 1539 "03pz7pj9jyallynhflp5s7qax8dj1fs8la434wrfgz7g1kgjnvf6"))))
0791437f
RW
1540 (build-system gnu-build-system)
1541 (arguments
1542 `(#:modules ((guix build gnu-build-system)
15218d4e 1543 ((guix build emacs-build-system) #:prefix emacs:)
0791437f 1544 (guix build utils)
15218d4e 1545 (guix build emacs-utils)
0791437f
RW
1546 (ice-9 rdelim)
1547 (ice-9 popen))
15218d4e
RW
1548 #:imported-modules (,@%gnu-build-system-modules
1549 (guix build emacs-build-system)
1550 (guix build emacs-utils))
0791437f
RW
1551 #:phases
1552 (modify-phases %standard-phases
b6bee63b
LC
1553 (add-after 'unpack 'support-guile-3.0
1554 (lambda _
1555 (substitute* "configure"
1556 (("_guile_versions_to_search=\"2.2")
1557 "_guile_versions_to_search=\"3.0 2.2"))
1558 #t))
0791437f
RW
1559 (add-before 'configure 'patch-/usr/bin/env
1560 (lambda _
1561 (substitute* "Makefile.in"
65610f73 1562 (("/usr/bin/env bash") (which "bash")))
0791437f
RW
1563 #t))
1564 ;; auto compilation breaks, but if we set HOME to /tmp,
1565 ;; that works ok
1566 (add-before 'check 'auto-compile-hacky-workaround
1567 (lambda _ (setenv "HOME" "/tmp") #t))
1568 (add-after 'install 'install-go-files
1569 (lambda* (#:key outputs inputs #:allow-other-keys)
1570 (let* ((out (assoc-ref outputs "out"))
1571 (effective (read-line
1572 (open-pipe* OPEN_READ
1573 "guile" "-c"
1574 "(display (effective-version))")))
1575 (module-dir (string-append out "/share/guile/site/"
1576 effective))
1577 (object-dir (string-append out "/lib/guile/" effective
1578 "/site-ccache"))
1579 (prefix (string-length module-dir)))
1580 ;; compile to the destination
1581 (for-each (lambda (file)
1582 (let* ((base (string-drop (string-drop-right file 4)
1583 prefix))
1584 (go (string-append object-dir base ".go")))
1585 (invoke "guild" "compile" "-L" module-dir
1586 file "-o" go)))
1587 (find-files module-dir "\\.scm$"))
15218d4e
RW
1588 #t)))
1589 (add-after 'install 'install-emacs-files
1590 (assoc-ref emacs:%standard-phases 'install))
1591 (add-after 'install-emacs-files 'compile-emacs-files
1592 (assoc-ref emacs:%standard-phases 'build))
1593 (add-after 'compile-emacs-files 'make-autoloads
1594 (assoc-ref emacs:%standard-phases 'make-autoloads)))))
17f90b67 1595 (home-page "https://www.draketo.de/english/wisp")
0791437f 1596 (inputs
b6bee63b 1597 `(("guile" ,guile-3.0)))
0791437f 1598 (native-inputs
15218d4e
RW
1599 `(("emacs" ,emacs-minimal)
1600 ("python" ,python)
0791437f
RW
1601 ("pkg-config" ,pkg-config)))
1602 (synopsis "Whitespace to lisp syntax for Guile")
1603 (description "Wisp is a syntax for Guile which provides a Python-like
1604whitespace-significant language. It may be easier on the eyes for some
1605users and in some situations.")
1606 (license license:gpl3+)))
1607
b6bee63b 1608(define-public guile2.2-wisp
b0b725ed
RW
1609 (package
1610 (inherit guile-wisp)
b6bee63b
LC
1611 (name "guile2.2-wisp")
1612 (inputs `(("guile" ,guile-2.2)))))
1613
1614(define-public guile3.0-wisp
1615 (deprecated-package "guile3.0-wisp" guile-wisp))
b0b725ed 1616
0791437f
RW
1617(define-public guile-sly
1618 (package
1619 (name "guile-sly")
1620 (version "0.1")
1621 (source (origin
1622 (method url-fetch)
1623 (uri (string-append "https://files.dthompson.us/sly/sly-"
1624 version ".tar.gz"))
1625 (sha256
1626 (base32
1627 "1svzlbz2vripmyq2kjh0rig16bsrnbkwbsm558pjln9l65mcl4qq"))
1628 (modules '((guix build utils)))
1629 (snippet
1630 '(begin
1631 (substitute* "configure"
1632 (("_guile_required_version=\"2.0.11\"")
1633 "_guile_required_version=\"2\"")
1634 (("ac_subst_vars='")
1635 "ac_subst_vars='GUILE_EFFECTIVE_VERSION\n"))
1636 (substitute* (find-files "." "Makefile.in")
1637 (("moddir = .*$")
1638 (string-append
1639 "moddir = "
1640 "$(prefix)/share/guile/site/@GUILE_EFFECTIVE_VERSION@\n"))
1641 (("godir = .*$")
1642 (string-append
1643 "godir = "
1644 "$(prefix)/lib/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n")))
1645 #t))))
1646 (build-system gnu-build-system)
1647 (arguments
1648 '(#:configure-flags
1649 (list (string-append "--with-libfreeimage-prefix="
1650 (assoc-ref %build-inputs "freeimage"))
1651 (string-append "--with-libgslcblas-prefix="
1652 (assoc-ref %build-inputs "gsl")))))
1653 (native-inputs
1654 `(("pkg-config" ,pkg-config)))
1655 (propagated-inputs
1656 `(("guile-sdl" ,guile-sdl)
1657 ("guile-opengl" ,guile-opengl)))
1658 (inputs
1659 `(("guile" ,guile-2.2)
1660 ("gsl" ,gsl)
1661 ("freeimage" ,freeimage)
1662 ("mesa" ,mesa)))
1663 (synopsis "2D/3D game engine for GNU Guile")
1664 (description "Sly is a 2D/3D game engine written in Guile Scheme. Sly
1665features a functional reactive programming interface and live coding
1666capabilities.")
1667 (home-page "https://dthompson.us/projects/sly.html")
1668 (license license:gpl3+)))
1669
dfe277a5
VS
1670(define-public g-golf
1671 (let ((commit "4a4edf25e4877df9182c77843bdd98ab59e13ef7"))
1672 (package
1673 (name "g-golf")
1674 (version (git-version "1" "683" commit))
1675 (source (origin
1676 (method git-fetch)
1677 (uri (git-reference
1678 (url "https://git.savannah.gnu.org/git/g-golf.git")
1679 (commit commit)))
1680 (file-name (git-file-name name version))
1681 (sha256
1682 (base32
1683 "09p0gf71wbmlm9kri693a8fvr9hl3hhlmlidyadwjdh7853xg0h8"))))
1684 (build-system gnu-build-system)
1685 (native-inputs
1686 `(("autoconf" ,autoconf)
1687 ("automake" ,automake)
1688 ("texinfo" ,texinfo)
1689 ("gettext" ,gettext-minimal)
1690 ("libtool" ,libtool)
1691 ("pkg-config" ,pkg-config)))
1692 (inputs
1693 `(("guile" ,guile-2.2)
1694 ("guile-lib" ,guile-lib)
1695 ("clutter" ,clutter)
1696 ("gtk" ,gtk+)
1697 ("glib" ,glib)))
1698 (propagated-inputs
1699 `(("gobject-introspection" ,gobject-introspection)))
1700 (arguments
1701 `(#:phases
1702 (modify-phases %standard-phases
1703 (add-before 'configure 'tests-work-arounds
1704 (lambda* (#:key inputs #:allow-other-keys)
1705 ;; In build environment, There is no /dev/tty
1706 (substitute*
1707 "test-suite/tests/gobject.scm"
1708 (("/dev/tty") "/dev/null"))))
1709 (add-before 'configure 'substitute-libs
1710 (lambda* (#:key inputs outputs #:allow-other-keys)
1711 (let* ((get (lambda (key lib)
1712 (string-append (assoc-ref inputs key) "/lib/" lib)))
1713 (libgi (get "gobject-introspection" "libgirepository-1.0"))
1714 (libglib (get "glib" "libglib-2.0"))
1715 (libgobject (get "glib" "libgobject-2.0"))
1716 (libgdk (get "gtk" "libgdk-3")))
1717 (substitute* "configure"
1718 (("SITEDIR=\"\\$datadir/g-golf\"")
1719 "SITEDIR=\"$datadir/guile/site/$GUILE_EFFECTIVE_VERSION\"")
1720 (("SITECCACHEDIR=\"\\$libdir/g-golf/")
1721 "SITECCACHEDIR=\"$libdir/"))
1722 (substitute* "g-golf/init.scm"
1723 (("libgirepository-1.0") libgi)
1724 (("libglib-2.0") libglib)
1725 (("libgdk-3") libgdk)
1726 (("libgobject-2.0") libgobject)
1727 (("\\(dynamic-link \"libg-golf\"\\)")
1728 (format #f "~s"
1729 `(dynamic-link
1730 (format #f "~alibg-golf"
1731 (if (getenv "GUILE_GGOLF_UNINSTALLED")
1732 ""
1733 ,(format #f "~a/lib/"
1734 (assoc-ref outputs "out"))))))))
1735 (setenv "GUILE_AUTO_COMPILE" "0")
1736 (setenv "GUILE_GGOLF_UNINSTALLED" "1")
1737 #t))))))
1738 (home-page "https://www.gnu.org/software/g-golf/")
1739 (synopsis "Guile bindings for GObject Introspection")
1740 (description
1741 "G-Golf (Gnome: (Guile Object Library for)) is a library for developing
1742modern applications in Guile Scheme. It comprises a direct binding to the
1743GObject Introspection API and higher-level functionality for importing Gnome
1744libraries and making GObject classes (and methods) available in Guile's
1745object-oriented programming system, GOOPS.")
1746 (license license:lgpl3+))))
1747
0791437f
RW
1748(define-public g-wrap
1749 (package
1750 (name "g-wrap")
1751 (version "1.9.15")
1752 (source (origin
1753 (method url-fetch)
1754 (uri (string-append "mirror://savannah/g-wrap/g-wrap-"
1755 version ".tar.gz"))
1756 (sha256
1757 (base32
1758 "0ak0bha37dfpj9kmyw1r8fj8nva639aw5xr66wr5gd3l1rqf5xhg"))))
1759 (build-system gnu-build-system)
1760 (native-inputs
1761 `(("pkg-config" ,pkg-config)))
1762 (propagated-inputs
1763 `(("guile" ,guile-2.2)
1764 ("guile-lib" ,guile-lib)))
1765 (inputs
1766 `(("libffi" ,libffi)))
1767 (arguments
1768 `(#:configure-flags '("--disable-Werror")
1769 #:phases
1770 (modify-phases %standard-phases
1771 (add-before 'configure 'pre-configure
1772 (lambda* (#:key outputs #:allow-other-keys)
1773 (let ((out (assoc-ref outputs "out")))
1774 (substitute* (find-files "." "^Makefile.in$")
1775 (("guilemoduledir =.*guile/site" all)
1776 (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
1777 #t))))))
1778 (synopsis "Generate C bindings for Guile")
1779 (description "G-Wrap is a tool and Guile library for generating function
1780wrappers for inter-language calls. It currently only supports generating Guile
1781wrappers for C functions. Given a definition of the types and prototypes for
1782a given C interface, G-Wrap will automatically generate the C code that
1783provides access to that interface and its types from the Scheme level.")
1784 (home-page "https://www.nongnu.org/g-wrap/index.html")
1785 (license license:lgpl2.1+)))
1786
1787(define-public guile-miniadapton
1788 (let ((commit "1b5749422304567c96ac5367f2221dda9eff5880")
1789 (revision "1"))
1790 (package
1791 (name "guile-miniadapton")
1792 (version (string-append "0-" revision "." (string-take commit 9)))
1793 (source (origin
1794 (method git-fetch)
1795 (uri (git-reference
1796 (url "https://github.com/fisherdj/miniAdapton.git")
1797 (commit commit)))
1798 (file-name (string-append name "-" version "-checkout"))
1799 (sha256
1800 (base32
1801 "09q51zkw2fypad5xixskfzw2cjhjgs5cswdp3i7cpp651rb3zndh"))))
1802 (build-system guile-build-system)
1803 (native-inputs
1804 `(("guile" ,guile-2.2)))
1805 (home-page "https://github.com/fisherdj/miniAdapton")
1806 (synopsis "Minimal implementation of incremental computation in Guile
1807Scheme")
1808 (description "This package provides a complete Scheme implementation of
1809miniAdapton, which implements the core functionality of the Adapton system for
1810incremental computation (also known as self-adjusting computation). Like
1811Adapton, miniAdapton allows programmers to safely combine mutation and
1812memoization. miniAdapton is built on top of an even simpler system,
1813microAdapton. Both miniAdapton and microAdapton are designed to be easy to
1814understand, extend, and port to host languages other than Scheme.")
1815 (license license:expat))))
1816
1817(define-public guile-reader
1818 (package
1819 (name "guile-reader")
1820 (version "0.6.2")
1821 (source (origin
1822 (method url-fetch)
1823 (uri (string-append "mirror://savannah/guile-reader/guile-reader-"
1824 version ".tar.gz"))
1825 (sha256
1826 (base32
1827 "0592s2s8ampqmqwilc4fvcild6rb9gy79di6vxv5kcdmv23abkgx"))))
1828 (build-system gnu-build-system)
1829 (native-inputs `(("pkgconfig" ,pkg-config)
1830 ("gperf" ,gperf-3.0)))
1831 (inputs `(("guile" ,guile-2.2)))
1832 (synopsis "Framework for building readers for GNU Guile")
1833 (description
1834 "Guile-Reader is a simple framework for building readers for GNU Guile.
1835
1836The idea is to make it easy to build procedures that extend Guile’s read
1837procedure. Readers supporting various syntax variants can easily be written,
1838possibly by re-using existing “token readers” of a standard Scheme
1839readers. For example, it is used to implement Skribilo’s R5RS-derived
1840document syntax.
1841
1842Guile-Reader’s approach is similar to Common Lisp’s “read table”, but
1843hopefully more powerful and flexible (for instance, one may instantiate as
1844many readers as needed).")
1845 (home-page "https://www.nongnu.org/guile-reader/")
1846 (license license:gpl3+)))
1847
0791437f
RW
1848(define-public guile-ncurses
1849 (package
1850 (name "guile-ncurses")
2b155e3a 1851 (version "3.0")
0791437f
RW
1852 (source (origin
1853 (method url-fetch)
1854 (uri (string-append "mirror://gnu/guile-ncurses/guile-ncurses-"
1855 version ".tar.gz"))
1856 (sha256
1857 (base32
2b155e3a 1858 "038xbffalhymg26lvmzgf7ljilxz2f2zmqg5r5nfzbipfbprwjhf"))))
0791437f
RW
1859 (build-system gnu-build-system)
1860 (inputs `(("ncurses" ,ncurses)
1861 ("guile" ,guile-2.2)))
1862 (native-inputs `(("pkg-config" ,pkg-config)))
1863 (arguments
3c566eba
MB
1864 `(#:modules ((guix build gnu-build-system)
1865 ((guix build guile-build-system)
1866 #:select (target-guile-effective-version))
1867 (guix build utils))
1868 #:imported-modules ((guix build guile-build-system)
1869 ,@%gnu-build-system-modules)
1870 #:configure-flags (list "--with-ncursesw" ; Unicode support
0791437f
RW
1871 "--with-gnu-filesystem-hierarchy")
1872 #:phases
1873 (modify-phases %standard-phases
1874 (add-before 'build 'fix-libguile-ncurses-file-name
1875 (lambda* (#:key outputs #:allow-other-keys)
1876 (invoke "make" "install"
1877 "-C" "src/ncurses"
1878 "-j" (number->string
1879 (parallel-job-count)))
1880 (let* ((out (assoc-ref outputs "out"))
1881 (dir "src/ncurses")
1882 (files (find-files dir ".scm")))
1883 (substitute* files
1884 (("\"libguile-ncurses\"")
3c566eba
MB
1885 (format #f "\"~a/lib/guile/~a/libguile-ncurses\""
1886 out (target-guile-effective-version))))
0791437f
RW
1887 #t))))))
1888 (home-page "https://www.gnu.org/software/guile-ncurses/")
1889 (synopsis "Guile bindings to ncurses")
1890 (description
1891 "guile-ncurses provides Guile language bindings for the ncurses
1892library.")
1893 (license license:lgpl3+)))
1894
3c566eba
MB
1895(define-public guile3.0-ncurses
1896 (package
1897 (inherit guile-ncurses)
1898 (name "guile3.0-ncurses")
1899 (version "3.0")
1900 (inputs `(("ncurses" ,ncurses)
1901 ("guile" ,guile-3.0)))))
1902
0791437f
RW
1903(define-public guile-ncurses/gpm
1904 (package
1905 (inherit guile-ncurses)
1906 (name "guile-ncurses-with-gpm")
1907 (inputs `(("ncurses" ,ncurses/gpm)
1908 ("guile" ,guile-2.2)))))
1909
87001355
MB
1910(define-public guile3.0-ncurses/gpm
1911 (package
1912 (inherit guile3.0-ncurses)
1913 (name "guile3.0-ncurses-with-gpm")
1914 (inputs `(("ncurses" ,ncurses/gpm)
1915 ("guile" ,guile-3.0)))))
1916
0791437f
RW
1917(define-public guile-lib
1918 (package
1919 (name "guile-lib")
1920 (version "0.2.6.1")
1921 (source (origin
1922 (method url-fetch)
1923 (uri (string-append "mirror://savannah/guile-lib/guile-lib-"
1924 version ".tar.gz"))
1925 (sha256
1926 (base32
675f1940
LC
1927 "0aizxdif5dpch9cvs8zz5g8ds5s4xhfnwza2il5ji7fv2h7ks7bd"))
1928 (modules '((guix build utils)))
1929 (snippet
1930 '(begin
1931 ;; Work around miscompilation on Guile 3.0.0 at -O2:
1932 ;; <https://bugs.gnu.org/39251>.
1933 (substitute* "src/md5.scm"
1934 (("\\(define f-ash ash\\)")
1935 "(define f-ash (@ (guile) ash))\n")
1936 (("\\(define f-add \\+\\)")
1937 "(define f-add (@ (guile) +))\n"))
1938 #t))))
0791437f
RW
1939 (build-system gnu-build-system)
1940 (arguments
1941 '(#:make-flags
1942 '("GUILE_AUTO_COMPILE=0") ; to prevent guild errors
1943 #:phases
1944 (modify-phases %standard-phases
1945 (add-before 'configure 'patch-module-dir
1946 (lambda _
1947 (substitute* "src/Makefile.in"
1948 (("^moddir = ([[:graph:]]+)")
1949 "moddir = $(datadir)/guile/site/@GUILE_EFFECTIVE_VERSION@\n")
1950 (("^godir = ([[:graph:]]+)")
1951 "godir = \
1952$(libdir)/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n"))
1953 #t)))))
1954 (native-inputs `(("pkg-config" ,pkg-config)))
b6bee63b 1955 (inputs `(("guile" ,guile-3.0)))
0791437f
RW
1956 (home-page "https://www.nongnu.org/guile-lib/")
1957 (synopsis "Collection of useful Guile Scheme modules")
1958 (description
1959 "Guile-Lib is intended as an accumulation place for pure-scheme Guile
1960modules, allowing for people to cooperate integrating their generic Guile
1961modules into a coherent library. Think \"a down-scaled, limited-scope CPAN
1962for Guile\".")
1963
1964 ;; The whole is under GPLv3+, but some modules are under laxer
1965 ;; distribution terms such as LGPL and public domain. See `COPYING' for
1966 ;; details.
1967 (license license:gpl3+)))
1968
1969(define-public guile2.0-lib
1970 (package
1971 (inherit guile-lib)
1972 (name "guile2.0-lib")
1973 (inputs `(("guile" ,guile-2.0)))))
1974
b6bee63b 1975(define-public guile2.2-lib
675f1940
LC
1976 (package
1977 (inherit guile-lib)
b6bee63b
LC
1978 (name "guile2.2-lib")
1979 (inputs `(("guile" ,guile-2.2)))))
1980
1981(define-public guile3.0-lib
1982 (deprecated-package "guile3.0-lib" guile-lib))
675f1940 1983
0791437f
RW
1984(define-public guile-minikanren
1985 (package
1986 (name "guile-minikanren")
1987 (version "20150424.e844d85")
1988 (source (origin
1989 (method git-fetch)
1990 (uri (git-reference
1991 (url "https://github.com/ijp/minikanren.git")
1992 (commit "e844d85512f8c055d3f96143ee506007389a25e3")))
1993 (file-name (string-append name "-" version "-checkout"))
1994 (sha256
1995 (base32
1996 "0r50jlpzi940jlmxyy3ddqqwmj5r12gb4bcv0ssini9v8km13xz6"))))
1997 (build-system guile-build-system)
1998 (native-inputs
b6bee63b 1999 `(("guile" ,guile-3.0)))
0791437f
RW
2000 (home-page "https://github.com/ijp/minikanren")
2001 (synopsis "MiniKanren declarative logic system, packaged for Guile")
2002 (description
2003 "MiniKanren is a relational programming extension to the Scheme
2004programming Language, written as a smaller version of Kanren suitable for
2005pedagogical purposes. It is featured in the book, The Reasoned Schemer,
2006written by Dan Friedman, William Byrd, and Oleg Kiselyov.
2007
2008This is Ian Price's r6rs packaged version of miniKanren, which deviates
2009slightly from miniKanren mainline.
2010
2011See http://minikanren.org/ for more on miniKanren generally.")
2012 (license license:expat)))
2013
2014(define-public guile2.0-minikanren
2015 (package
2016 (inherit guile-minikanren)
2017 (name "guile2.0-minikanren")
2018 (native-inputs `(("guile" ,guile-2.0)))))
2019
b6bee63b 2020(define-public guile2.2-minikanren
89a99d53
LC
2021 (package
2022 (inherit guile-minikanren)
b6bee63b
LC
2023 (name "guile2.2-minikanren")
2024 (native-inputs `(("guile" ,guile-2.2)))))
2025
2026(define-public guile3.0-minikanren
2027 (deprecated-package "guile3.0-minikanren" guile-minikanren))
89a99d53 2028
0791437f
RW
2029(define-public guile-irregex
2030 (package
2031 (name "guile-irregex")
2032 (version "0.9.6")
2033 (source (origin
2034 (method url-fetch)
2035 (uri (string-append
2036 "http://synthcode.com/scheme/irregex/irregex-"
2037 version ".tar.gz"))
2038 (sha256
2039 (base32
2040 "1ia3m7dp3lcxa048q0gqbiwwsyvn99baw6xkhb4bhhzn4k7bwyqq"))))
2041 (build-system guile-build-system)
2042 (arguments
2043 '(#:phases (modify-phases %standard-phases
2044 (add-after 'unpack 'move-files-around
2045 (lambda _
2046 ;; Move the relevant source files to src/ and create the
2047 ;; rx/ directory to match the expected module hierarchy.
2048 (mkdir-p "src/rx/source")
2049 (rename-file "irregex-guile.scm"
2050 "src/rx/irregex.scm")
2051 (rename-file "irregex.scm"
2052 "src/rx/source/irregex.scm")
2053 ;; Not really reachable via guile's packaging system,
2054 ;; but nice to have around.
2055 (rename-file "irregex-utils.scm"
2056 "src/rx/source/irregex-utils.scm")
2057 #t)))
2058 #:source-directory "src"))
2059 (native-inputs
b6bee63b 2060 `(("guile" ,guile-3.0)))
0791437f
RW
2061 (home-page "http://synthcode.com/scheme/irregex")
2062 (synopsis "S-expression based regular expressions")
2063 (description
2064 "Irregex is an s-expression based alternative to your classic
2065string-based regular expressions. It implements SRFI 115 and is deeply
2066inspired by the SCSH regular expression system.")
2067 (license license:bsd-3)))
2068
2069(define-public guile2.0-irregex
2070 (package
2071 (inherit guile-irregex)
2072 (name "guile2.0-irregex")
2073 (native-inputs `(("guile" ,guile-2.0)))))
2074
b6bee63b 2075(define-public guile2.2-irregex
89a99d53
LC
2076 (package
2077 (inherit guile-irregex)
b6bee63b
LC
2078 (name "guile2.2-irregex")
2079 (native-inputs `(("guile" ,guile-2.2)))))
2080
2081(define-public guile3.0-irregex
2082 (deprecated-package "guile3.0-irregex" guile-irregex))
89a99d53 2083
0791437f
RW
2084(define-public haunt
2085 (package
2086 (name "haunt")
2087 (version "0.2.4")
2088 (source (origin
2089 (method url-fetch)
2090 (uri (string-append "https://files.dthompson.us/haunt/haunt-"
2091 version ".tar.gz"))
2092 (sha256
2093 (base32
93d94134
LC
2094 "056z4znikk83nr5mr0x2ac3iinqbywa2bvb37mhr566a1q50isfc"))
2095 (modules '((guix build utils)))
2096 (snippet
2097 '(begin
2098 ;; Allow builds with Guile 3.0.
2099 (substitute* "configure"
2100 (("2\\.2 2\\.0")
2101 "3.0 2.2 2.0"))
2102 #t))))
0791437f
RW
2103 (build-system gnu-build-system)
2104 (arguments
2105 `(#:modules ((ice-9 match) (ice-9 ftw)
2106 ,@%gnu-build-system-modules)
2107 #:tests? #f ; test suite is non-deterministic :(
2108 #:phases (modify-phases %standard-phases
2109 (add-after 'install 'wrap-haunt
2110 (lambda* (#:key inputs outputs #:allow-other-keys)
2111 ;; Wrap the 'haunt' command to refer to the right
2112 ;; modules.
2113 (let* ((out (assoc-ref outputs "out"))
2114 (bin (string-append out "/bin"))
2115 (site (string-append
2116 out "/share/guile/site"))
93d94134
LC
2117 (guile-reader (assoc-ref inputs "guile-reader"))
2118 (deps `(,@(if guile-reader
2119 (list guile-reader)
2120 '())
2121 ,(assoc-ref inputs "guile-commonmark"))))
0791437f
RW
2122 (match (scandir site)
2123 (("." ".." version)
2124 (let ((modules (string-append site "/" version))
2125 (compiled-modules (string-append
2126 out "/lib/guile/" version
2127 "/site-ccache")))
2128 (wrap-program (string-append bin "/haunt")
2129 `("GUILE_LOAD_PATH" ":" prefix
2130 (,modules
2131 ,@(map (lambda (dep)
2132 (string-append dep
2133 "/share/guile/site/"
2134 version))
2135 deps)))
2136 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
2137 (,compiled-modules
2138 ,@(map (lambda (dep)
2139 (string-append dep "/lib/guile/"
2140 version
2141 "/site-ccache"))
2142 deps))))
2143 #t)))))))))
2144 (native-inputs
2145 `(("pkg-config" ,pkg-config)
2146 ("texinfo" ,texinfo)))
2147 (inputs
b6bee63b 2148 `(("guile" ,guile-3.0)))
0791437f 2149 (propagated-inputs
b6bee63b
LC
2150 ;; XXX: Guile-Reader is currently unavailable for Guile 2.2 so strip it.
2151 `(;;("guile-reader" ,guile-reader)
0791437f
RW
2152 ("guile-commonmark" ,guile-commonmark)))
2153 (synopsis "Functional static site generator")
2154 (description "Haunt is a static site generator written in Guile
2155Scheme. Haunt features a functional build system and an extensible
2156interface for reading articles in any format.")
2157 (home-page "http://haunt.dthompson.us")
2158 (license license:gpl3+)))
2159
b6bee63b 2160(define-public guile2.2-haunt
93d94134
LC
2161 (package
2162 (inherit haunt)
b6bee63b
LC
2163 (name "guile2.2-haunt")
2164 (inputs `(("guile" ,guile-2.2)))
93d94134 2165 (propagated-inputs
b6bee63b
LC
2166 `(("guile-reader" ,guile-reader)
2167 ("guile-commonmark" ,guile2.2-commonmark)))))
93d94134 2168
0791437f
RW
2169(define-public guile2.0-haunt
2170 (package
2171 (inherit haunt)
2172 (name "guile2.0-haunt")
2173 (inputs `(("guile" ,guile-2.0)))))
2174
b6bee63b
LC
2175(define-public guile3.0-haunt
2176 (deprecated-package "guile3.0-haunt" haunt))
2177
0791437f
RW
2178(define-public guile-redis
2179 (package
2180 (name "guile-redis")
f57bf15c 2181 (version "1.3.0")
0791437f
RW
2182 (home-page "https://github.com/aconchillo/guile-redis")
2183 (source (origin
29fde3bf
EF
2184 (method git-fetch)
2185 (uri (git-reference
2186 (url home-page)
2187 (commit version)))
2188 (file-name (git-file-name name version))
0791437f
RW
2189 (sha256
2190 (base32
29fde3bf 2191 "14izs8daxh7pb7vwpxi5g427qa31137jkaxrb1cy5rpjkwchy723"))))
0791437f
RW
2192 (build-system gnu-build-system)
2193 (native-inputs
2194 `(("autoconf" ,autoconf)
2195 ("automake" ,automake)
2196 ("pkg-config" ,pkg-config)
2197 ("guile" ,guile-2.2)))
2198 (synopsis "Redis client library for Guile")
2199 (description "Guile-redis provides a Scheme interface to the Redis
2200key-value cache and store.")
2201 (license license:lgpl3+)))
2202
2203(define-public guile2.0-redis
2204 (package
2205 (inherit guile-redis)
2206 (name "guile2.0-redis")
2207 (native-inputs `(("guile" ,guile-2.0)
2208 ,@(alist-delete "guile"
2209 (package-native-inputs guile-redis))))))
2210
0791437f
RW
2211(define-public guile-commonmark
2212 (package
2213 (name "guile-commonmark")
b552e307 2214 (version "0.1.2")
0791437f
RW
2215 (source (origin
2216 (method url-fetch)
2217 (uri (string-append "https://github.com/OrangeShark/" name
2218 "/releases/download/v" version
2219 "/" name "-" version ".tar.gz"))
2220 (sha256
2221 (base32
1fa34232
LC
2222 "17lrsdisa3kckh24q114vfmzdc4wkqa6ccwl4hdlrng5wpn1iman"))
2223 (modules '((guix build utils)))
2224 (snippet
2225 '(begin
2226 ;; Allow builds with Guile 3.0.
2227 (substitute* "configure"
2228 (("2\\.2 2\\.0")
2229 "3.0 2.2 2.0"))
2230 #t))))
0791437f
RW
2231 (build-system gnu-build-system)
2232 (inputs
b6bee63b 2233 `(("guile" ,guile-3.0)))
0791437f
RW
2234 (native-inputs
2235 `(("pkg-config" ,pkg-config)))
2236 (synopsis "CommonMark parser for Guile")
2237 (description
2238 "guile-commonmark is a library for parsing CommonMark, a fully specified
2239variant of Markdown. The library is written in Guile Scheme and is designed
2240to transform a CommonMark document to SXML. guile-commonmark tries to closely
2241follow the @uref{http://commonmark.org/, CommonMark spec}, the main difference
2242is no support for parsing block and inline level HTML.")
2243 (home-page "https://github.com/OrangeShark/guile-commonmark")
2244 (license license:lgpl3+)))
2245
b6bee63b 2246(define-public guile2.2-commonmark
1fa34232
LC
2247 (package
2248 (inherit guile-commonmark)
b6bee63b
LC
2249 (name "guile2.2-commonmark")
2250 (inputs `(("guile" ,guile-2.2)))))
1fa34232 2251
0791437f
RW
2252(define-public guile2.0-commonmark
2253 (package
2254 (inherit guile-commonmark)
2255 (name "guile2.0-commonmark")
2256 (inputs `(("guile" ,guile-2.0)))))
2257
b6bee63b
LC
2258(define-public guile3.0-commonmark
2259 (deprecated-package "guile3.0-commonmark" guile-commonmark))
2260
0791437f
RW
2261(define-public mcron
2262 (package
2263 (name "mcron")
a52aa7fd 2264 (version "1.1.4")
0791437f
RW
2265 (source (origin
2266 (method url-fetch)
2267 (uri (string-append "mirror://gnu/mcron/mcron-"
2268 version ".tar.gz"))
2269 (sha256
2270 (base32
a52aa7fd 2271 "1521w3h33bhdlg6qc66sq4dwv3qsx8r8x6srq4ca6kaahy6dszw8"))))
0791437f
RW
2272 (build-system gnu-build-system)
2273 (arguments
2274 '(#:phases (modify-phases %standard-phases
0791437f
RW
2275 (add-before 'check 'adjust-tests
2276 (lambda _
2277 (substitute* "tests/job-specifier.scm"
2278 ;; (getpw) fails with "entry not found" in the build
2279 ;; environment, so pass an argument.
2280 (("\\(getpw\\)")
2281 "(getpwnam (getuid))")
2282 ;; The build environment lacks an entry for root in
2283 ;; /etc/passwd.
2284 (("\\(getpw 0\\)")
2285 "(getpwnam \"nobody\")")
2286
2287 ;; FIXME: Skip the 4 faulty tests (see above).
2288 (("\\(test-equal \"next-year\"" all)
2289 (string-append "(test-skip 4)\n" all)))
2290 #t)))))
30ebff69 2291 (native-inputs `(("pkg-config" ,pkg-config)
0791437f 2292 ("tzdata" ,tzdata-for-tests)))
b6bee63b 2293 (inputs `(("guile" ,guile-3.0)))
0791437f
RW
2294 (home-page "https://www.gnu.org/software/mcron/")
2295 (synopsis "Run jobs at scheduled times")
2296 (description
2297 "GNU Mcron is a complete replacement for Vixie cron. It is used to run
2298tasks on a schedule, such as every hour or every Monday. Mcron is written in
2299Guile, so its configuration can be written in Scheme; the original cron
2300format is also supported.")
2301 (license license:gpl3+)))
2302
b6bee63b 2303(define-public guile2.2-mcron
3de0d20b
LC
2304 (package
2305 (inherit mcron)
b6bee63b
LC
2306 (name "guile2.2-mcron")
2307 (inputs `(("guile" ,guile-2.2)))))
2308
2309(define-public guile3.0-mcron
2310 (deprecated-package "guile3.0-mcron" mcron))
3de0d20b 2311
6bb5f88e 2312(define-public guile-picture-language
d1a3a8e1
RW
2313 (let ((commit "91d10c96708d732145006dd2802acc4de08b632e")
2314 (revision "1"))
6bb5f88e
RW
2315 (package
2316 (name "guile-picture-language")
d1a3a8e1 2317 (version (git-version "0.0.1" revision commit))
6bb5f88e
RW
2318 (source (origin
2319 (method git-fetch)
2320 (uri (git-reference
2321 (url "https://git.elephly.net/software/guile-picture-language.git")
2322 (commit commit)))
f1d4d79f 2323 (file-name (git-file-name name version))
6bb5f88e
RW
2324 (sha256
2325 (base32
d1a3a8e1
RW
2326 "1ydvw9dvssdvlvhh1dr8inyzy2x6m41qgp8hsivca1xysr4gc23a"))))
2327 (build-system gnu-build-system)
6bb5f88e 2328 (inputs
b6bee63b 2329 `(("guile" ,guile-3.0)))
d1a3a8e1
RW
2330 (native-inputs
2331 `(("autoconf" ,autoconf)
2332 ("automake" ,automake)
2333 ("imagemagick" ,imagemagick)
2334 ("pkg-config" ,pkg-config)
2335 ("texinfo" ,texinfo)))
6bb5f88e
RW
2336 (home-page "https://git.elephly.net/software/guile-picture-language.git")
2337 (synopsis "Picture language for Guile")
2338 (description
2339 "This package provides a simple SVG-based picture language for Guile.
2340The picture values can directly be displayed in Geiser.")
2341 (license license:lgpl3+))))
5531782d 2342
b6bee63b 2343(define-public guile2.2-picture-language
4f408684
LC
2344 (package
2345 (inherit guile-picture-language)
b6bee63b
LC
2346 (name "guile2.2-picture-language")
2347 (inputs `(("guile" ,guile-2.2)))))
2348
2349(define-public guile3.0-picture-language
2350 (deprecated-package "guile3.0-picture-language"
2351 guile-picture-language))
4f408684 2352
5531782d 2353(define-public guile-studio
223236f6
RW
2354 (package
2355 (name "guile-studio")
2356 (version "0.0.2")
2357 (source (origin
2358 (method git-fetch)
2359 (uri (git-reference
2360 (url "https://git.elephly.net/software/guile-studio.git")
2361 (commit version)))
2362 (file-name (git-file-name name version))
2363 (sha256
2364 (base32
2365 "10ls4ra148hd9ra7sin4kh9vv0am5pwk48p7dsjhrlg2l1hsh4hi"))))
2366 (build-system gnu-build-system)
2367 (arguments
2368 `(#:modules
2369 ((ice-9 match)
2370 (srfi srfi-1)
2371 ,@%gnu-build-system-modules)
2372 #:tests? #f ; there are none
2373 #:make-flags
2374 (list (string-append "ICONS_DIR="
2375 (assoc-ref %build-inputs "adwaita-icon-theme")
2376 "/share/icons/Adwaita/")
2377 (string-append "PICT_DIR="
2378 (assoc-ref %build-inputs "guile-picture-language"))
2379 (string-append "EMACS_DIR="
2380 (assoc-ref %build-inputs "emacs"))
2381 (string-append "GUILE_DIR="
2382 (assoc-ref %build-inputs "guile"))
2383 (string-join (cons "INPUTS="
2384 (filter-map
2385 (lambda (input)
2386 (match input
2387 ((label . pkg)
2388 (and (string-prefix? "emacs" label) pkg))))
2389 %build-inputs)))
2390 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2391 #:phases
2392 (modify-phases %standard-phases
2393 (delete 'configure)
2394 (delete 'install))))
2395 (inputs
2396 `(("guile" ,guile-2.2)
2397 ("guile-picture-language" ,guile-picture-language)
2398 ("emacs" ,emacs)
2399 ("emacs-geiser" ,emacs-geiser)
2400 ("emacs-company" ,emacs-company)
2401 ("emacs-flycheck" ,emacs-flycheck)
2402 ("emacs-smart-mode-line" ,emacs-smart-mode-line)
2403 ("emacs-paren-face" ,emacs-paren-face)
2404 ("adwaita-icon-theme" ,adwaita-icon-theme)))
2405 (native-inputs
2406 `(("texinfo" ,texinfo)))
2407 (home-page "https://gnu.org/software/guile")
2408 (synopsis "IDE for Guile")
2409 (description
2410 "This is Emacs with a few settings that make working with Guile easier
5531782d
RW
2411for people new to Emacs. Features include: CUA mode, Geiser, tool bar icons
2412to evaluate Guile buffers, support for Guile's very own picture language, code
2413completion, a simple mode line, etc.")
223236f6 2414 (license license:gpl3+)))
9f8698ad
RW
2415
2416(define-public guile-stis-parser
2417 (let ((commit "6e85d37ffc333b722f4413a6c648263701eb75bd")
2418 (revision "1"))
2419 (package
2420 (name "guile-stis-parser")
2421 (version (git-version "0" revision commit))
2422 (source (origin
2423 (method git-fetch)
2424 (uri (git-reference
2425 (url "https://gitlab.com/tampe/stis-parser")
2426 (commit commit)))
29e76f07 2427 (file-name (git-file-name name version))
9f8698ad
RW
2428 (sha256
2429 (base32
2430 "0v4hvq7rlpbra1ni73lf8k6sdmjlflr50yi3p1f24g85h77pc7c0"))))
2431 (build-system gnu-build-system)
2432 (arguments
2433 `(#:parallel-build? #f ; not supported
2434 #:phases
2435 (modify-phases %standard-phases
2436 (add-after 'unpack 'chdir
2437 (lambda _ (chdir "modules") #t))
8318b3ed
RW
2438 (add-after 'chdir 'use-canonical-directory-for-go-files
2439 (lambda _
2440 (substitute* "Makefile.am"
2441 (("/ccache") "/site-ccache"))
2442 #t))
9f8698ad
RW
2443 (add-after 'chdir 'delete-broken-symlink
2444 (lambda _
2445 (delete-file "parser/stis-parser/lang/.#calc.scm")
2446 #t)))))
2447 (inputs
2448 `(("guile" ,guile-2.2)))
2449 (native-inputs
2450 `(("autoconf" ,autoconf)
2451 ("automake" ,automake)
2452 ("pkg-config" ,pkg-config)))
2453 (home-page "https://gitlab.com/tampe/stis-parser")
2454 (synopsis "Parser combinator framework")
2455 (description
2456 "This package provides a functional parser combinator library that
2457supports backtracking and a small logical framework. The idea is to build up
2458chunks that are memoized and there is no clear scanner/parser separation,
2459chunks can be expressions as well as simple tokens.")
2460 (license license:lgpl2.0+))))
12d73f9c
RW
2461
2462(define-public guile-persist
2463 (let ((commit "b14927b0368af51c024560aee5f55724aee35233")
2464 (revision "1"))
2465 (package
2466 (name "guile-persist")
2467 (version (git-version "0" revision commit))
2468 (source (origin
2469 (method git-fetch)
2470 (uri (git-reference
2471 (url "https://gitlab.com/tampe/guile-persist")
2472 (commit commit)))
2473 (file-name (git-file-name name version))
2474 (sha256
2475 (base32
85a411bc
LC
2476 "0z5nf377wh8yj6n3sx2ddn4bdx1qrqnw899dlqjhg0q69qzil522"))
2477 (modules '((guix build utils)))
2478 (snippet
2479 '(begin
2480 ;; Install .go files in the right place.
2481 (substitute* "Makefile.am"
2482 (("/ccache") "/site-ccache"))
2483 #t))))
12d73f9c
RW
2484 (build-system gnu-build-system)
2485 (arguments
2486 `(#:phases
2487 (modify-phases %standard-phases
2488 (add-after 'unpack 'patch-prefix
2489 (lambda* (#:key inputs outputs #:allow-other-keys)
2490 (substitute* "src/Makefile.am"
2491 (("/usr/local/lib/guile")
2492 (string-append (assoc-ref outputs "out") "/lib/guile"))
2493 (("/usr/local/include/guile")
2494 (string-append (assoc-ref inputs "guile") "/include/guile"))
2495 (("-L/usr/local/lib")
8f052528
RW
2496 (string-append "-L" (assoc-ref inputs "guile") "/lib"))
2497 ;; Use canonical directory for go files.
2498 (("/ccache") "/site-ccache"))
12d73f9c
RW
2499 #t))
2500 (add-after 'unpack 'patch-library-reference
2501 (lambda* (#:key outputs #:allow-other-keys)
2502 (let ((out (assoc-ref outputs "out")))
2503 (substitute* "persist/persistance.scm"
2504 (("\"libguile-persist\"")
2505 (format #f "\"~a/lib/guile/2.2/extensions/libguile-persist\"" out)))
2506 #t))))))
2507 (inputs
2508 `(("guile" ,guile-2.2)))
2509 (native-inputs
2510 `(("autoconf" ,autoconf)
2511 ("automake" ,automake)
2512 ("libtool" ,libtool)
2513 ("pkg-config" ,pkg-config)))
2514 (home-page "https://gitlab.com/tampe/guile-persist")
028053f2 2515 (synopsis "Persistence programming framework for Guile")
12d73f9c
RW
2516 (description
2517 "This is a serialization library for serializing objects like classes
2518and objects, closures and structs. This currently does not support
2519serializing continuations or delimited continuations.")
2520 (license license:lgpl2.0+))))
6d37301b
RW
2521
2522(define-public python-on-guile
5d5edb88
LC
2523 (let ((commit "00a51a23247f1edc4ae8eda72b30df5cd7d0015f")
2524 (revision "3"))
6d37301b
RW
2525 (package
2526 (name "python-on-guile")
2527 (version (git-version "0.1.0" revision commit))
2528 (source (origin
2529 (method git-fetch)
2530 (uri (git-reference
4088ae42 2531 (url "https://git.elephly.net/software/python-on-guile.git")
6d37301b
RW
2532 (commit commit)))
2533 (file-name (git-file-name name version))
2534 (sha256
2535 (base32
5d5edb88 2536 "03rpnqr08rqr3gay128g564rwk8w4jbj28ss6b46z1d4vjs4nk68"))))
6d37301b
RW
2537 (build-system gnu-build-system)
2538 (arguments
2539 `(#:parallel-build? #f ; not supported
83817158
LC
2540 #:make-flags '("GUILE_AUTO_COMPILE=0") ;to prevent guild warnings
2541
6d37301b
RW
2542 #:phases
2543 (modify-phases %standard-phases
2544 (add-after 'unpack 'chdir
83817158
LC
2545 (lambda _ (chdir "modules") #t))
2546 (add-after 'install 'wrap
2547 (lambda* (#:key outputs #:allow-other-keys)
2548 ;; Wrap the 'python' executable so it can find its
2549 ;; dependencies.
2550 (let ((out (assoc-ref outputs "out")))
2551 (wrap-program (string-append out "/bin/python")
2552 `("GUILE_LOAD_PATH" ":" prefix
2553 (,(getenv "GUILE_LOAD_PATH")))
2554 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
2555 (,(getenv "GUILE_LOAD_COMPILED_PATH"))))
2556 #t))))))
6d37301b
RW
2557 (inputs
2558 `(("guile" ,guile-2.2)))
2559 (propagated-inputs
2560 `(("guile-persist" ,guile-persist)
2561 ("guile-readline" ,guile-readline)
2562 ("guile-stis-parser" ,guile-stis-parser)))
2563 (native-inputs
2564 `(("autoconf" ,autoconf)
2565 ("automake" ,automake)
2566 ("libtool" ,libtool)
2567 ("pkg-config" ,pkg-config)))
2568 (home-page "https://gitlab.com/python-on-guile/python-on-guile/")
2569 (synopsis "Python implementation in Guile")
2570 (description
2571 "This package allows you to compile a Guile Python file to any target
2572from @code{tree-il}.")
2573 (license license:lgpl2.0+))))
b97b4624
RW
2574
2575(define-public guile-file-names
2576 (package
2577 (name "guile-file-names")
72a0706f 2578 (version "0.3")
b97b4624
RW
2579 (source (origin
2580 (method url-fetch)
2581 (uri (string-append "http://brandon.invergo.net/software/download/"
2582 "guile-file-names/guile-file-names-"
2583 version ".tar.gz"))
2584 (sha256
2585 (base32
72a0706f 2586 "01chizdxkhw6aqv629vxka9f5x3534ij7r0jqndawsg2vxm1r9sz"))))
b97b4624
RW
2587 (build-system gnu-build-system)
2588 (arguments
2589 `(#:phases
2590 (modify-phases %standard-phases
481eca80 2591 (add-after 'unpack 'fix-target-directory
b97b4624 2592 (lambda _
481eca80 2593 (substitute* "src/Makefile.in"
b97b4624
RW
2594 (("guilemoddir = \\$\\(GUILE_SITE\\)")
2595 "guilemoddir = $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
2596 #t)))))
2597 (inputs
2598 `(("guile" ,guile-2.2)))
2599 (native-inputs
2600 `(("pkg-config" ,pkg-config)))
2601 (home-page "https://gitlab.com/brandoninvergo/guile-file-names")
2602 (synopsis "Manipulate file names")
2603 (description
2604 "The @code{(file-names)} module provides tools for manipulating file
2605names. The module was built on the idea that doing anything more than a
2606non-trivial modification of a file name string is a pain (making sure all
2607slashes are present and accounted for, resolving @code{.} and @code{..}, etc).
2608Inevitably, you have to break the string up into chunks and operate on that
2609list of components. This module takes care of that for you.")
2610 (license license:lgpl3+)))
bdf2dd79
JN
2611
2612(define-public guile-gi
bb6c8f20
RW
2613 (package
2614 (name "guile-gi")
195e1c1b 2615 (version "0.2.2")
bb6c8f20
RW
2616 (source (origin
2617 (method url-fetch)
2618 (uri (string-append "http://lonelycactus.com/tarball/guile_gi-"
2619 version ".tar.gz"))
2620 (sha256
2621 (base32
195e1c1b 2622 "1v82kz8mz7wgq6w5llaz8a2wwdnl8vk2667dpjwjxscl0qyxsy6y"))))
bb6c8f20
RW
2623 (build-system gnu-build-system)
2624 (arguments
b5d4d5b9 2625 `(#:configure-flags '("--with-gnu-filesystem-hierarchy")
a431a635
RW
2626 #:modules ((guix build gnu-build-system)
2627 (guix build utils)
2628 (ice-9 popen)
2629 (ice-9 rdelim))
b5d4d5b9
RW
2630 #:phases
2631 (modify-phases %standard-phases
a431a635
RW
2632 (add-after 'unpack 'patch-references-to-extension
2633 (lambda* (#:key outputs #:allow-other-keys)
2634 (let ((effective (read-line
2635 (open-pipe* OPEN_READ
2636 "guile" "-c"
2637 "(display (effective-version))"))))
2638 (substitute* '("module/gi.scm"
2639 "module/gi/oop.scm"
2640 "module/gi/documentation.scm"
2641 "module/gi/types.scm"
2642 "module/gi/repository.scm")
2643 (("\\(load-extension \"libguile-gi\" \"(.*)\"\\)" m arg)
2644 (format #f "~s"
2645 `(load-extension
2646 (format #f "~alibguile-gi"
2647 (if (getenv "GUILE_GI_UNINSTALLED")
2648 ""
2649 ,(format #f "~a/lib/guile/~a/"
2650 (assoc-ref outputs "out")
2651 effective)))
2652 ,arg)))))
2653 (setenv "GUILE_GI_UNINSTALLED" "1")
2654 #t))
b5d4d5b9
RW
2655 (add-before 'check 'start-xorg-server
2656 (lambda* (#:key inputs #:allow-other-keys)
2657 ;; The init_check test requires a running X server.
2658 (system (format #f "~a/bin/Xvfb :1 &"
2659 (assoc-ref inputs "xorg-server")))
2660 (setenv "DISPLAY" ":1")
2661 #t)))))
bb6c8f20 2662 (native-inputs
f2d97d57 2663 `(("gettext" ,gettext-minimal)
6153fa0a 2664 ("glib:bin" ,glib "bin") ; for glib-compile-resources
bb6c8f20 2665 ("libtool" ,libtool)
b5d4d5b9
RW
2666 ("pkg-config" ,pkg-config)
2667 ("xorg-server" ,xorg-server)))
bb6c8f20
RW
2668 (propagated-inputs
2669 `(("glib" ,glib)
2670 ("gobject-introspection" ,gobject-introspection)
2671 ("gssettings-desktop-schemas" ,gsettings-desktop-schemas)
2672 ("gtk+" ,gtk+)
2673 ("guile-lib" ,guile-lib)
2674 ("webkitgtk" ,webkitgtk)))
b6bee63b 2675 (inputs `(("guile" ,guile-3.0)))
bb6c8f20
RW
2676 (home-page "https://github.com/spk121/guile-gi")
2677 (synopsis "GObject bindings for Guile")
2678 (description
2679 "Guile-GI is a library for Guile that allows using GObject-based
bdf2dd79
JN
2680libraries, such as GTK+3. Its README comes with the disclaimer: This is
2681pre-alpha code.")
bb6c8f20 2682 (license license:gpl3+)))
dec4b3aa 2683
b6bee63b 2684(define-public guile2.2-gi
bfb51f5e
RW
2685 (package
2686 (inherit guile-gi)
b6bee63b 2687 (name "guile2.2-gi")
bfb51f5e 2688 (native-inputs
b6bee63b 2689 `(("guile" ,guile-2.2)
bfb51f5e
RW
2690 ,@(package-native-inputs guile-gi)))))
2691
b6bee63b
LC
2692(define-public guile3.0-gi
2693 (deprecated-package "guile3.0-gi" guile-gi))
2694
dec4b3aa
LC
2695(define-public guile-srfi-159
2696 (let ((commit "1bd98abda2ae4ef8f36761a167903e55c6bda7bb")
2697 (revision "0"))
2698 (package
2699 (name "guile-srfi-159")
2700 (version (git-version "0" revision commit))
2701 (home-page "https://bitbucket.org/bjoli/guile-srfi-159")
2702 (source (origin
2703 (method hg-fetch)
2704 (uri (hg-reference (changeset commit)
2705 (url home-page)))
2706 (sha256
2707 (base32
2708 "1zw6cmcy7xdbfiz3nz9arqnn7l2daidaps6ixkcrc9b6k51fdv3p"))
2709 (file-name (git-file-name name version))))
2710 (build-system guile-build-system)
2711 (arguments
2712 ;; The *-impl.scm files are actually included from module files; they
2713 ;; should not be compiled separately, but they must be installed.
2714 '(#:not-compiled-file-regexp "-impl\\.scm$"))
2715 (inputs
2716 `(("guile" ,guile-2.2)))
2717 (synopsis "Formatting combinators for Guile")
2718 (description
2719 "The @code{(srfi-159)} module and its sub-modules implement the
2720formatting combinators specified by
2721@uref{https://srfi.schemers.org/srfi-159/srfi-159.html, SRFI-159}. These are
2722more expressive and flexible than the traditional @code{format} procedure.")
2723 (license license:bsd-3))))
f0de9544
JN
2724
2725(define-public emacsy
48eb71ae
JN
2726 (package
2727 (name "emacsy")
2728 (version "0.4.1")
2729 (source (origin
2730 (method url-fetch)
2731 (uri (string-append
2732 "https://download.savannah.nongnu.org/releases/"
2733 name "/" name "-" version ".tar.gz"))
2734 (sha256
2735 (base32
2736 "1cpb85dl1nibd34c2x2h7vfmjpkgh353p5b1w20v6cs6gmvgg4np"))))
2737 (build-system gnu-build-system)
2738 (native-inputs
2739 `(("autoconf" ,autoconf)
2740 ("automake" ,automake)
2741 ("bzip2" ,bzip2)
2742 ("guile" ,guile-2.2)
f2d97d57 2743 ("gettext" ,gettext-minimal)
48eb71ae
JN
2744 ("libtool" ,libtool)
2745 ("perl" ,perl)
2746 ("pkg-config" ,pkg-config)
2747 ("texinfo" ,texinfo)
1aa026aa 2748 ("texlive" ,(texlive-union (list texlive-generic-epsf)))))
114f02ba 2749 (inputs
48eb71ae
JN
2750 `(("dbus-glib" ,dbus-glib)
2751 ("guile" ,guile-2.2)
2752 ("guile-lib" ,guile-lib)
2753 ("guile-readline" ,guile-readline)
48eb71ae 2754 ("freeglut" ,freeglut)
48eb71ae 2755 ("webkitgtk" ,webkitgtk)))
114f02ba
AS
2756 (propagated-inputs
2757 `(("glib-networking" ,glib-networking)
2758 ("gssettings-desktop-schemas" ,gsettings-desktop-schemas)))
48eb71ae 2759 (arguments
114f02ba
AS
2760 `(#:modules ((guix build gnu-build-system)
2761 (guix build utils)
2762 (ice-9 popen)
2763 (ice-9 rdelim)
2764 (ice-9 regex)
2765 (ice-9 ftw)
2766 (srfi srfi-26))
2767 #:phases
48eb71ae
JN
2768 (modify-phases %standard-phases
2769 (add-before 'configure 'setenv
2770 (lambda _
2771 (setenv "GUILE_AUTO_COMPILE" "0")
114f02ba
AS
2772 #t))
2773 (add-after 'install 'wrap-binaries
2774 (lambda* (#:key inputs outputs #:allow-other-keys)
2775 (let* ((out (assoc-ref outputs "out"))
2776 (effective (read-line
2777 (open-pipe* OPEN_READ
2778 "guile" "-c"
2779 "(display (effective-version))")))
2780 (deps (map (cut assoc-ref inputs <>)
2781 '("guile-lib" "guile-readline")))
2782 (scm-path (map (cut string-append <> "/share/guile/site/"
2783 effective) `(,out ,@deps)))
2784 (go-path (map (cut string-append <> "/lib/guile/" effective
2785 "/site-ccache/") `(,out ,@deps)))
2786 (examples (filter (cut string-match "emacsy" <>)
2787 (scandir (string-append out "/bin/"))))
2788 (progs (map (cut string-append out "/bin/" <>)
2789 examples)))
2790 (map (cut wrap-program <>
2791 `("GUILE_LOAD_PATH" ":" prefix ,scm-path)
2792 `("GUILE_LOAD_COMPILED_PATH" ":" prefix ,go-path))
2793 progs)
2794 #t))))))
48eb71ae
JN
2795 (home-page "https://savannah.nongnu.org/projects/emacsy")
2796 (synopsis "Embeddable GNU Emacs-like library using Guile")
2797 (description
2798 "Emacsy is an embeddable Emacs-like library that uses GNU Guile
f0de9544
JN
2799as extension language. Emacsy can give a C program an Emacsy feel with
2800keymaps, minibuffer, recordable macros, history, tab completion, major
2801and minor modes, etc., and can also be used as a pure Guile library. It
48eb71ae
JN
2802comes with a simple counter example using FreeGLUT and browser examples
2803in C using Gtk+-3 and WebKitGtk.")
2804 (license license:gpl3+)))
2135610c 2805
c99f32b9 2806(define-public emacsy-minimal
2708ae3d 2807 (let ((commit "d459ca1d3d09e7624e662bc4cfc3596850796fc6"))
c99f32b9
AS
2808 (package
2809 (inherit emacsy)
2810 (name "emacsy-minimal")
2708ae3d 2811 (version (git-version "v0.4.1" "28" commit))
c99f32b9
AS
2812 (source (origin
2813 (method git-fetch)
2814 (uri (git-reference
2815 (url "https://git.savannah.gnu.org/git/emacsy.git")
2816 (commit commit)))
2817 (file-name (git-file-name name version))
2818 (sha256
2819 (base32
2708ae3d 2820 "1ps15w8cxj9kc18gmvys9jv9xa1qqa7m43ismv34l3cmhddrn0sr"))))
c99f32b9
AS
2821 (build-system gnu-build-system)
2822 (inputs
2823 `(("guile" ,guile-2.2)
2824 ("guile-lib" ,guile-lib)
2825 ("guile-readline" ,guile-readline)))
2826 (propagated-inputs '())
2827 (arguments
2828 `(#:configure-flags '("--without-examples")
2829 #:phases
2830 (modify-phases %standard-phases
2831 (add-before 'configure 'setenv
2832 (lambda _
2833 (setenv "GUILE_AUTO_COMPILE" "0")
2834 #t))))))))
2835
2135610c
LC
2836(define-public guile-jpeg
2837 (let ((commit "6a1673578b297c2c1b28e44a76bd5c49e76a5046")
2838 (revision "0"))
2839 (package
2840 (name "guile-jpeg")
2841 (version (git-version "0.0" revision commit))
2842 (home-page "https://gitlab.com/wingo/guile-jpeg")
2843 (source (origin
2844 (method git-fetch)
2845 (uri (git-reference (url home-page)
2846 (commit commit)))
2847 (sha256
2848 (base32
2849 "05z9m408w3h6aqb5k3r3qa7khir0k10rxwvsrzhkcq1hr5vbmr4m"))
2850 (file-name (git-file-name name version))
2851 (modules '((guix build utils)))
2852 (snippet
2853 '(begin
2854 ;; Install .go files in the right place.
2855 (substitute* "Makefile.am"
2856 (("/ccache") "/site-ccache"))
2857 #t))))
2858 (build-system gnu-build-system)
2859 (native-inputs
2860 `(("autoconf" ,autoconf)
2861 ("automake" ,automake)
2862 ("pkg-config" ,pkg-config)
2863 ("guile" ,guile-2.2)))
2864 (synopsis "JPEG file parsing library for Guile")
2865 (description
2866 "Guile-JPEG is a Scheme library to parse JPEG image files and to
2867perform geometrical transforms on JPEG images.")
2868 (license license:gpl3+))))
e8c2da41
AS
2869
2870(define-public nomad
2871 (package
2872 (name "nomad")
5f1553ce 2873 (version "0.1.2-alpha")
e8c2da41
AS
2874 (source (origin
2875 (method git-fetch)
2876 (uri (git-reference
2877 (url "https://git.savannah.gnu.org/git/nomad.git")
2878 (commit version)))
2879 (file-name (git-file-name name version))
2880 (sha256
2881 (base32
5f1553ce 2882 "1dnkr1hmvfkwgxd75dcf93pg39yfgawvdpzdhv991yhghv0qxc9h"))))
e8c2da41
AS
2883 (build-system gnu-build-system)
2884 (native-inputs
2885 `(("autoconf" ,autoconf)
2886 ("automake" ,automake)
2887 ("bash" ,bash)
2888 ("pkg-config" ,pkg-config)
2889 ("libtool" ,libtool)
2890 ("guile" ,guile-2.2)
5f1553ce
AS
2891 ("glib:bin" ,glib "bin")
2892 ("texinfo" ,texinfo)
2893 ("perl" ,perl)))
e8c2da41
AS
2894 (inputs
2895 `(("guile" ,guile-2.2)
2896 ("guile-lib" ,guile-lib)
2897 ("guile-gcrypt" ,guile-gcrypt)
2898 ("guile-readline" ,guile-readline)
2899 ("gnutls" ,gnutls)
2900 ("shroud" ,shroud)
2901 ("emacsy" ,emacsy-minimal)
2902 ("glib" ,glib)
2903 ("dbus-glib" ,dbus-glib)
2904 ("gtk+" ,gtk+)
2905 ("gtksourceview" ,gtksourceview)
2906 ("webkitgtk" ,webkitgtk)
2907 ("xorg-server" ,xorg-server)))
2908 (propagated-inputs
2909 `(("glib" ,glib)
2910 ("glib-networking" ,glib-networking)
2911 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
2912 (arguments
2913 `(#:modules ((guix build gnu-build-system)
2914 (guix build utils)
2915 (ice-9 popen)
2916 (ice-9 rdelim)
2917 (srfi srfi-26))
2918 #:phases
2919 (modify-phases %standard-phases
2920 (add-before 'check 'start-xorg-server
2921 (lambda* (#:key inputs #:allow-other-keys)
2922 ;; The test suite requires a running X server.
2923 (system (format #f "~a/bin/Xvfb :1 &"
2924 (assoc-ref inputs "xorg-server")))
2925 (setenv "DISPLAY" ":1")
2926 #t))
2927 (add-after 'install 'wrap-binaries
2928 (lambda* (#:key inputs outputs #:allow-other-keys)
2929 (let* ((out (assoc-ref outputs "out"))
2930 (gio-deps (map (cut assoc-ref inputs <>) '("glib-networking"
2931 "glib")))
2932 (gio-mod-path (map (cut string-append <> "/lib/gio/modules")
2933 gio-deps))
2934 (effective (read-line (open-pipe*
2935 OPEN_READ
2936 "guile" "-c"
2937 "(display (effective-version))")))
2938 (deps (map (cut assoc-ref inputs <>)
2939 '("emacsy" "guile-lib" "guile-readline"
2940 "shroud")))
2941 (scm-path (map (cut string-append <>
2942 "/share/guile/site/" effective)
2943 `(,out ,@deps)))
2944 (go-path (map (cut string-append <>
2945 "/lib/guile/" effective "/site-ccache")
2946 `(,out ,@deps)))
2947 (progs (map (cut string-append out "/bin/" <>)
2948 '("nomad"))))
2949 (map (cut wrap-program <>
2950 `("GIO_EXTRA_MODULES" ":" prefix ,gio-mod-path)
2951 `("GUILE_LOAD_PATH" ":" prefix ,scm-path)
2952 `("GUILE_LOAD_COMPILED_PATH" ":"
2953 prefix ,go-path))
2954 progs)
2955 #t))))))
2956 (home-page "https://savannah.nongnu.org/projects/nomad/")
2957 (synopsis "Extensible Web Browser in Guile Scheme")
2958 (description "Nomad is an Emacs-like Web Browser built using Webkitgtk and
2959Emacsy. It has a small C layer and most browser features are fully
2960programmable in Guile. It has hooks, keymaps, and self documentation
2961features.")
2962 (license license:gpl3+)))
248965c9
RW
2963
2964(define-public guile-cv
2965 (package
2966 (name "guile-cv")
2967 (version "0.2.1")
2968 (source (origin
2969 (method url-fetch)
2970 (uri (string-append "mirror://gnu/guile-cv/guile-cv-"
2971 version ".tar.gz"))
2972 (sha256
2973 (base32
2974 "0qdf0s2h1xj5lbhnc1pfw69i3zg08pqy2y6869b92ydfis8r82j9"))))
2975 (build-system gnu-build-system)
2976 (arguments
2977 `(#:phases
2978 (modify-phases %standard-phases
2979 (add-after 'unpack 'prepare-build
2980 (lambda* (#:key inputs outputs #:allow-other-keys)
2981 (substitute* "configure"
2982 (("SITEDIR=\"\\$datadir/guile-cv\"")
2983 "SITEDIR=\"$datadir/guile/site/$GUILE_EFFECTIVE_VERSION\"")
2984 (("SITECCACHEDIR=\"\\$libdir/guile-cv/")
2985 "SITECCACHEDIR=\"$libdir/"))
2986 (substitute* "cv/init.scm"
2987 (("\\(dynamic-link \"libvigra_c\"\\)")
2988 (string-append "(dynamic-link \""
2989 (assoc-ref inputs "vigra-c")
2990 "/lib/libvigra_c\")"))
2991 (("\\(dynamic-link \"libguile-cv\"\\)")
2992 (format #f "~s"
2993 `(dynamic-link
2994 (format #f "~alibguile-cv"
2995 (if (getenv "GUILE_CV_UNINSTALLED")
2996 ""
2997 ,(format #f "~a/lib/"
2998 (assoc-ref outputs "out"))))))))
2999 (setenv "GUILE_CV_UNINSTALLED" "1")
3000 ;; Only needed to satisfy the configure script.
3001 (setenv "LD_LIBRARY_PATH"
3002 (string-append (assoc-ref inputs "vigra-c") "/lib"))
3003 #t)))))
3004 (inputs
3005 `(("vigra" ,vigra)
3006 ("vigra-c" ,vigra-c)
3007 ("guile" ,guile-2.2)))
3008 (native-inputs
3009 `(("texlive" ,(texlive-union (list texlive-booktabs
3010 texlive-lm
3011 texlive-siunitx
3012 texlive-standalone
3013 texlive-xcolor
3014 texlive-fonts-iwona)))
3015 ("pkg-config" ,pkg-config)))
3016 (propagated-inputs
3017 `(("guile-lib" ,guile-lib)))
3018 (home-page "https://www.gnu.org/software/guile-cv/")
3019 (synopsis "Computer vision library for Guile")
3020 (description "Guile-CV is a Computer Vision functional programming library
3021for the Guile Scheme language. It is based on Vigra (Vision with Generic
3022Algorithms), a C++ image processing and analysis library. Guile-CV contains
3023bindings to Vigra C (a C wrapper to most of the Vigra functionality) and is
3024enriched with pure Guile Scheme algorithms, all accessible through a nice,
3025clean and easy to use high level API.")
3026 (license license:gpl3+)))
7ff157c1
RW
3027
3028(define-public guile-ffi-fftw
353fb48f
RW
3029 (let ((commit "294ad9e7491dcb40026d2fec9be2af05263be1c0")
3030 (revision "2"))
7ff157c1
RW
3031 (package
3032 (name "guile-ffi-fftw")
3033 (version (git-version "0" revision commit))
3034 (source (origin
3035 (method git-fetch)
3036 (uri (git-reference
3037 (url "https://github.com/lloda/guile-ffi-fftw.git")
3038 (commit commit)))
3039 (file-name (git-file-name "guile-ffi-fftw" version))
3040 (sha256
3041 (base32
353fb48f 3042 "08j40a5p6a8pgvhffmzb5rfdnrav2mksy3gfjkdqy93jfj1z5afg"))))
7ff157c1
RW
3043 (build-system guile-build-system)
3044 (arguments
3045 `(#:source-directory "mod"
3046 #:phases
3047 (modify-phases %standard-phases
3048 (add-after 'unpack 'prepare-build
3049 (lambda* (#:key inputs #:allow-other-keys)
3050 (substitute* "mod/ffi/fftw.scm"
3051 (("\\(getenv \"GUILE_FFI_FFTW_LIBFFTW3_PATH\"\\)")
3052 (format #f "\"~a/lib\"" (assoc-ref inputs "fftw"))))
3053 #t))
3054 (add-after 'build 'check
3055 (lambda _
3056 (invoke "guile" "-L" "mod"
3057 "-s" "test/test-ffi-fftw.scm"))))))
3058 (inputs
3059 `(("fftw" ,fftw)
3060 ("guile" ,guile-2.2)))
3061 (home-page "https://github.com/lloda/guile-ffi-fftw/")
3062 (synopsis "Access FFTW through Guile's FFI")
3063 (description "This is a minimal set of Guile FFI bindings for the FFTW
3064library's ‘guru interface’. It provides two functions: @code{fftw-dft! rank
3065sign in out} and @code{fftw-dft rank sign in}. These bindings being minimal,
3066there is no support for computing & reusing plans, or split r/i transforms, or
3067anything other than straight complex DFTs.")
353fb48f 3068 (license license:lgpl3+))))
f9ec89f4
TS
3069
3070(define-public srfi-64-driver
3071 (package
3072 (name "srfi-64-driver")
3073 (version "0.1")
3074 (source (origin
3075 (method url-fetch)
3076 (uri (string-append "https://files.ngyro.com/srfi-64-driver/"
3077 "srfi-64-driver-" version ".tar.gz"))
3078 (sha256
3079 (base32
3080 "188b6mb7sjjg0a8zldikinglf40ky8mg8rwh5768gjmch6gkk3ph"))))
3081 (build-system gnu-build-system)
3082 (arguments
3083 `(#:tests? #f
3084 #:phases
3085 (modify-phases %standard-phases
3086 (delete 'build))))
3087 (native-inputs
3088 `(("pkg-config" ,pkg-config)))
3089 (inputs
3090 `(("guile" ,guile-2.2)))
3091 (home-page "https://ngyro.com/software/srfi-64-driver.html")
3092 (synopsis "Automake test driver for SRFI 64 test suites")
3093 (description "This package provides an Automake test driver that can
3094run SRFI 64 test suites. It gives Automake insight into the individual
3095tests being run, resulting clearer and more specific output.")
3096 (license license:gpl3+)))
f6bf4b2c
TS
3097
3098(define-public guile-semver
3099 (package
3100 (name "guile-semver")
85ced665 3101 (version "0.1.1")
f6bf4b2c
TS
3102 (source (origin
3103 (method url-fetch)
3104 (uri (string-append "https://files.ngyro.com/guile-semver/"
3105 "guile-semver-" version ".tar.gz"))
3106 (sha256
3107 (base32
85ced665 3108 "109p4n39ln44cxvwdccf9kgb96qx54makvd2ir521ssz6wchjyag"))))
f6bf4b2c
TS
3109 (build-system gnu-build-system)
3110 (native-inputs
85ced665 3111 `(("pkg-config" ,pkg-config)))
f6bf4b2c
TS
3112 (inputs
3113 `(("guile" ,guile-2.2)))
3114 (home-page "https://ngyro.com/software/guile-semver.html")
3115 (synopsis "Semantic Versioning (SemVer) for Guile")
3116 (description "This Guile library provides tools for reading,
3117comparing, and writing Semantic Versions. It also includes ranges in
3118the style of the Node Package Manager (NPM).")
3119 (license license:gpl3+)))
d67fa5c8 3120
b488b64a
MB
3121(define-public guile3.0-semver
3122 (package
3123 (inherit guile-semver)
3124 (name "guile3.0-semver")
3125 (inputs
3126 `(("guile" ,guile-3.0)))))
3127
d67fa5c8
LC
3128(define-public guile-hashing
3129 (package
3130 (name "guile-hashing")
3131 (version "1.2.0")
3132 (home-page "https://github.com/weinholt/hashing")
3133 (source (origin
3134 (method git-fetch)
3135 (uri (git-reference
3136 (url home-page)
3137 (commit (string-append "v" version))))
3138 (file-name (git-file-name name version))
3139 (sha256
3140 (base32
3141 "1362d3lmpv7slmv1zmr9wy8panq9sjr9787gc2hagd646mpsfpkl"))))
3142 (build-system guile-build-system)
3143 (arguments
3144 `(#:modules ((guix build guile-build-system)
3145 (guix build utils)
3146 (srfi srfi-26)
3147 (ice-9 ftw))
3148 #:implicit-inputs? #f ;needs nothing but Guile
3149 #:phases (modify-phases %standard-phases
3150 (add-before 'build 'move-sls-files
3151 (lambda _
3152 ;; Move the source under hashing/ in order to match
3153 ;; module names, and rename .sls files to .scm.
3154 (define (target file)
3155 (string-append "hashing/" file))
3156
3157 (define (sls->scm sls)
3158 (string-append (string-drop-right sls 4)
3159 ".scm"))
3160
3161 (mkdir "hashing")
3162 (for-each (lambda (file)
3163 (rename-file file (sls->scm file)))
3164 (find-files "." "\\.sls$"))
3165 (for-each (lambda (file)
3166 (rename-file file (target file)))
3167 (scandir "." (cut string-suffix? ".scm" <>)))
3168 (rename-file "private" "hashing/private")
3169 #t)))))
3170 (native-inputs
b6bee63b 3171 `(("guile" ,guile-3.0)))
d67fa5c8
LC
3172 (synopsis "Cryprographic hash functions implemented in Scheme")
3173 (description
3174 "The @code{(hashing @dots{})} modules implement cryptographic hash
3175functions in pure R6RS Scheme: CRC, HMAC, MD5, SHA-1, and SHA-2 (SHA-256,
3176SHA-512).")
3177 (license license:expat)))
f918a8d9 3178
b6bee63b 3179(define-public guile2.2-hashing
f918a8d9
LC
3180 (package
3181 (inherit guile-hashing)
b6bee63b 3182 (name "guile2.2-hashing")
f918a8d9
LC
3183 (native-inputs
3184 `(("guile" ,guile-next)))))
ef2b1d2c 3185
b6bee63b
LC
3186(define-public guile3.0-hashing
3187 (deprecated-package "guile3.0-hashing" guile-hashing))
3188
ef2b1d2c
RW
3189(define-public guile-webutils
3190 (let ((commit "8541904f761066dc9c27b1153e9a838be9a55299")
3191 (revision "0"))
3192 (package
3193 (name "guile-webutils")
3194 (version (git-version "0.1" revision commit))
3195 (source (origin
3196 (method git-fetch)
3197 (uri (git-reference
3198 (url "https://notabug.org/cwebber/guile-webutils.git")
3199 (commit commit)))
3200 (file-name (git-file-name name version))
3201 (sha256
3202 (base32
3203 "1s9n3hbxd7lfpdi0x8wr0cfvlsf6g62ird9gbspxdrp5p05rbi64"))))
3204 (build-system gnu-build-system)
3205 (native-inputs
3206 `(("autoconf" ,autoconf)
3207 ("automake" ,automake)
3208 ("pkg-config" ,pkg-config)
3209 ("texinfo" ,texinfo)))
3210 (inputs
3211 `(("guile" ,guile-2.2)))
3212 (propagated-inputs
3213 `(("guile-irregex" ,guile-irregex)
3214 ("guile-gcrypt" ,guile-gcrypt)))
3215 (home-page "https://notabug.org/cwebber/guile-webutils")
3216 (synopsis "Web application authoring utilities for Guile")
3217 (description
3218 "This package provides tooling to write web applications in Guile, such
3219as signed sessions, multipart message support, etc.")
3220 (license license:gpl3+))))
5479cef8
RW
3221
3222(define-public guile-lens
3223 (let ((commit "14b15d07255f9d3f55d40a3b750d13c9ee3a154f")
3224 (revision "0"))
3225 (package
3226 (name "guile-lens")
3227 (version (git-version "0.1" revision commit))
3228 (source (origin
3229 (method git-fetch)
3230 (uri (git-reference
3231 (url "https://gitlab.com/a-sassmannshausen/guile-lens.git")
3232 (commit commit)))
3233 (file-name (git-file-name name version))
3234 (sha256
3235 (base32
3236 "0w8jzqyla56yrgj7acsgd4nspyir6zgp3vgxid4xmwhg9wmf1ida"))))
3237 (build-system gnu-build-system)
3238 (arguments
3239 '(#:phases
3240 (modify-phases %standard-phases
3241 (add-after 'unpack 'run-hall
3242 (lambda _
3243 (setenv "HOME" "/tmp") ; for ~/.hall
3244 (invoke "hall" "dist" "-x"))))))
3245 (native-inputs
3246 `(("autoconf" ,autoconf)
3247 ("automake" ,automake)
3248 ("guile" ,guile-2.2)
3249 ("guile-hall" ,guile-hall)
3250 ("pkg-config" ,pkg-config)
3251 ("texinfo" ,texinfo)))
3252 (home-page "https://gitlab.com/a-sassmannshausen/guile-lens.git")
3253 (synopsis "Composable lenses for data structures in Guile")
3254 (description
3255 "Guile-Lens is a library implementing lenses in Guile. The library is
3256currently a re-implementation of the lentes library for Clojure. Lenses
3257provide composable procedures, which can be used to focus, apply functions
3258over, or update a value in arbitrary data structures.")
3259 (license license:gpl3+))))
69bb61f1
AI
3260
3261(define-public guile-xapian
d10e7a34
RW
3262 (package
3263 (name "guile-xapian")
3264 (version "0.1.0")
3265 (home-page "https://git.systemreboot.net/guile-xapian")
3266 (source
3267 (origin
3268 (method git-fetch)
3269 (uri (git-reference (url home-page)
3270 (commit (string-append "v" version))))
3271 (file-name (git-file-name name version))
3272 (sha256
3273 (base32
3274 "16k61f1jn3g48jaf3730b9l0izr5j933jzyri73nmcnjd09gm35i"))))
3275 (build-system gnu-build-system)
3276 (arguments
3277 '(#:make-flags '("GUILE_AUTO_COMPILE=0"))) ; to prevent guild warnings
3278 (inputs
3279 `(("guile" ,guile-2.2)
3280 ("xapian" ,xapian)
3281 ("zlib" ,zlib)))
3282 (native-inputs
3283 `(("autoconf" ,autoconf)
3284 ("autoconf-archive" ,autoconf-archive)
3285 ("automake" ,automake)
3286 ("libtool" ,libtool)
3287 ("pkg-config" ,pkg-config)
3288 ("swig" ,swig)))
3289 (synopsis "Guile bindings for Xapian")
3290 (description "@code{guile-xapian} provides Guile bindings for Xapian, a
69bb61f1
AI
3291search engine library. Xapian is a highly adaptable toolkit which allows
3292developers to easily add advanced indexing and search facilities to their own
3293applications. It has built-in support for several families of weighting
3294models and also supports a rich set of boolean query operators.")
d10e7a34 3295 (license license:gpl2+)))
69bb61f1
AI
3296
3297(define-public guile3.0-xapian
3298 (package
3299 (inherit guile-xapian)
3300 (name "guile3.0-xapian")
3301 (inputs
3302 `(("guile" ,guile-next)
3303 ,@(alist-delete "guile" (package-inputs guile-xapian))))))
be789065
AS
3304
3305(define-public guile-torrent
3306 (package
3307 (name "guile-torrent")
3308 (version "0.1.3")
3309 (source (origin (method git-fetch)
3310 (uri (git-reference
3311 (url
3312 "https://github.com/o-nly/torrent.git")
3313 (commit version)))
3314 (file-name (git-file-name name version))
3315 (sha256
3316 (base32
3317 "1yiagi55ncq1x7s9n7salzywjm4l96y3n7y3s47a9anvz87mrmim"))))
3318 (build-system gnu-build-system)
3319 (native-inputs
3320 `(("autoconf" ,autoconf)
3321 ("automake" ,automake)
3322 ("guile" ,guile-2.2)
3323 ("texinfo" ,texinfo)
3324 ("perl" ,perl)
3325 ("pkg-config" ,pkg-config)))
3326 (propagated-inputs
3327 `(("guile-gcrypt" ,guile-gcrypt)))
3328 (home-page "https://github.com/o-nly/torrent")
3329 (synopsis "Torrent library for GNU Guile")
3330 (description "This package provides facilities for working with
3331@code{.torrent} or metainfo files. Implements a bencode reader and writer
3332according to Bitorrent BEP003.")
3333 (license license:gpl3+)))
3c0456c6
RW
3334
3335(define-public guile-irc
3336 (let ((commit "375d3bde9c6ae7ccc9d7cc65817966b6fda8f26a")
3337 (revision "0"))
3338 (package
3339 (name "guile-irc")
3340 (version (git-version "0.3.0" revision commit))
3341 (source (origin
3342 (method git-fetch)
3343 (uri (git-reference
3344 (url "https://github.com/rekado/guile-irc.git")
3345 (commit commit)))
3346 (file-name (git-file-name name version))
3347 (sha256
3348 (base32
3349 "113lcckcywrz9060w1c3fnvr8d7crdsjgsv4h47hgmr1slgadl4y"))))
3350 (build-system gnu-build-system)
3351 (arguments
3352 `(#:configure-flags '("--enable-gnutls=yes")))
3353 (native-inputs
3354 `(("autoconf" ,autoconf)
3355 ("automake" ,automake)
3356 ("texinfo" ,texinfo)))
3357 (inputs
3358 `(("gnutls" ,gnutls)
3359 ("guile" ,guile-2.2)))
3360 (home-page "https://github.com/rekado/guile-irc")
3361 (synopsis "IRC library for Guile")
3362 (description "This package provides a Guile library for @dfn{Internet
3363Relay Chat} (IRC).")
3364 ;; Some file headers incorrectly say LGPLv2+.
3365 (license license:lgpl2.1+))))
8ffc20ef
ES
3366
3367(define-public guile3.0-websocket
3368 (let ((commit "c854e0f84a40d972cbd532bbb89c97ca0126a7cf"))
3369 (package
3370 (name "guile3.0-websocket")
3371 (version "0.1")
3372 (source
3373 (origin
3374 (method git-fetch)
3375 (uri (git-reference
3376 (url "git://dthompson.us/guile-websocket.git")
3377 (commit commit)))
3378 (file-name (git-file-name name version))
3379 (sha256
3380 (base32
3381 "1hymvsfrmq9qxr5cxnsgdz7y757yp1cpsgxmdp3f5wxxxpqgsmzx"))))
3382 (build-system gnu-build-system)
3383 (arguments
3384 '(#:make-flags
3385 '("GUILE_AUTO_COMPILE=0")
3386 #:phases
3387 (modify-phases %standard-phases
3388 ;; The package was developed for Guile 2.0 and has this version
3389 ;; hardcoded in the configure.ac and Makefile.am files. Substitute
3390 ;; 3.0 instead so it can support Guile 3.0.
3391 (add-after 'unpack 'update-guile-version
3392 (lambda _
3393 (substitute* "configure.ac"
3394 (("2.0.9") "3.0.0"))
3395 (substitute* "Makefile.am"
cea91813
LC
3396 (("2.0") "3.0")
3397
3398 ;; Install .go files where they belong.
3399 (("/ccache") "/site-ccache"))
8ffc20ef
ES
3400 #t)))))
3401 (native-inputs
3402 `(("autoconf" ,autoconf)
3403 ("automake" ,automake)))
3404 (inputs
3405 `(("guile" ,guile-next)))
3406 (synopsis "Websocket server/client for Guile")
3407 (description "Guile-websocket provides an implementation of the
3408WebSocket protocol as defined by RFC 6455.")
3409 (home-page "https://git.dthompson.us/guile-websocket.git")
3410 (license license:lgpl3+))))