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