gnu: webkitgtk: Update to 2.28.2.
[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>
b488b64a 26;;; Copyright © 2019 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
1836 '(#:configure-flags (list "--with-ncursesw" ; Unicode support
1837 "--with-gnu-filesystem-hierarchy")
1838 #:phases
1839 (modify-phases %standard-phases
1840 (add-before 'build 'fix-libguile-ncurses-file-name
1841 (lambda* (#:key outputs #:allow-other-keys)
1842 (invoke "make" "install"
1843 "-C" "src/ncurses"
1844 "-j" (number->string
1845 (parallel-job-count)))
1846 (let* ((out (assoc-ref outputs "out"))
1847 (dir "src/ncurses")
1848 (files (find-files dir ".scm")))
1849 (substitute* files
1850 (("\"libguile-ncurses\"")
1851 (format #f "\"~a/lib/guile/2.2/libguile-ncurses\""
1852 out)))
1853 #t))))))
1854 (home-page "https://www.gnu.org/software/guile-ncurses/")
1855 (synopsis "Guile bindings to ncurses")
1856 (description
1857 "guile-ncurses provides Guile language bindings for the ncurses
1858library.")
1859 (license license:lgpl3+)))
1860
1861(define-public guile-ncurses/gpm
1862 (package
1863 (inherit guile-ncurses)
1864 (name "guile-ncurses-with-gpm")
1865 (inputs `(("ncurses" ,ncurses/gpm)
1866 ("guile" ,guile-2.2)))))
1867
1868(define-public guile-lib
1869 (package
1870 (name "guile-lib")
1871 (version "0.2.6.1")
1872 (source (origin
1873 (method url-fetch)
1874 (uri (string-append "mirror://savannah/guile-lib/guile-lib-"
1875 version ".tar.gz"))
1876 (sha256
1877 (base32
675f1940
LC
1878 "0aizxdif5dpch9cvs8zz5g8ds5s4xhfnwza2il5ji7fv2h7ks7bd"))
1879 (modules '((guix build utils)))
1880 (snippet
1881 '(begin
1882 ;; Work around miscompilation on Guile 3.0.0 at -O2:
1883 ;; <https://bugs.gnu.org/39251>.
1884 (substitute* "src/md5.scm"
1885 (("\\(define f-ash ash\\)")
1886 "(define f-ash (@ (guile) ash))\n")
1887 (("\\(define f-add \\+\\)")
1888 "(define f-add (@ (guile) +))\n"))
1889 #t))))
0791437f
RW
1890 (build-system gnu-build-system)
1891 (arguments
1892 '(#:make-flags
1893 '("GUILE_AUTO_COMPILE=0") ; to prevent guild errors
1894 #:phases
1895 (modify-phases %standard-phases
1896 (add-before 'configure 'patch-module-dir
1897 (lambda _
1898 (substitute* "src/Makefile.in"
1899 (("^moddir = ([[:graph:]]+)")
1900 "moddir = $(datadir)/guile/site/@GUILE_EFFECTIVE_VERSION@\n")
1901 (("^godir = ([[:graph:]]+)")
1902 "godir = \
1903$(libdir)/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n"))
1904 #t)))))
1905 (native-inputs `(("pkg-config" ,pkg-config)))
1906 (inputs `(("guile" ,guile-2.2)))
1907 (home-page "https://www.nongnu.org/guile-lib/")
1908 (synopsis "Collection of useful Guile Scheme modules")
1909 (description
1910 "Guile-Lib is intended as an accumulation place for pure-scheme Guile
1911modules, allowing for people to cooperate integrating their generic Guile
1912modules into a coherent library. Think \"a down-scaled, limited-scope CPAN
1913for Guile\".")
1914
1915 ;; The whole is under GPLv3+, but some modules are under laxer
1916 ;; distribution terms such as LGPL and public domain. See `COPYING' for
1917 ;; details.
1918 (license license:gpl3+)))
1919
1920(define-public guile2.0-lib
1921 (package
1922 (inherit guile-lib)
1923 (name "guile2.0-lib")
1924 (inputs `(("guile" ,guile-2.0)))))
1925
675f1940
LC
1926(define-public guile3.0-lib
1927 (package
1928 (inherit guile-lib)
1929 (name "guile3.0-lib")
1930 (inputs `(("guile" ,guile-3.0)))))
1931
0791437f
RW
1932(define-public guile-minikanren
1933 (package
1934 (name "guile-minikanren")
1935 (version "20150424.e844d85")
1936 (source (origin
1937 (method git-fetch)
1938 (uri (git-reference
1939 (url "https://github.com/ijp/minikanren.git")
1940 (commit "e844d85512f8c055d3f96143ee506007389a25e3")))
1941 (file-name (string-append name "-" version "-checkout"))
1942 (sha256
1943 (base32
1944 "0r50jlpzi940jlmxyy3ddqqwmj5r12gb4bcv0ssini9v8km13xz6"))))
1945 (build-system guile-build-system)
1946 (native-inputs
1947 `(("guile" ,guile-2.2)))
1948 (home-page "https://github.com/ijp/minikanren")
1949 (synopsis "MiniKanren declarative logic system, packaged for Guile")
1950 (description
1951 "MiniKanren is a relational programming extension to the Scheme
1952programming Language, written as a smaller version of Kanren suitable for
1953pedagogical purposes. It is featured in the book, The Reasoned Schemer,
1954written by Dan Friedman, William Byrd, and Oleg Kiselyov.
1955
1956This is Ian Price's r6rs packaged version of miniKanren, which deviates
1957slightly from miniKanren mainline.
1958
1959See http://minikanren.org/ for more on miniKanren generally.")
1960 (license license:expat)))
1961
1962(define-public guile2.0-minikanren
1963 (package
1964 (inherit guile-minikanren)
1965 (name "guile2.0-minikanren")
1966 (native-inputs `(("guile" ,guile-2.0)))))
1967
89a99d53
LC
1968(define-public guile3.0-minikanren
1969 (package
1970 (inherit guile-minikanren)
1971 (name "guile3.0-minikanren")
1972 (native-inputs `(("guile" ,guile-next)))))
1973
0791437f
RW
1974(define-public guile-irregex
1975 (package
1976 (name "guile-irregex")
1977 (version "0.9.6")
1978 (source (origin
1979 (method url-fetch)
1980 (uri (string-append
1981 "http://synthcode.com/scheme/irregex/irregex-"
1982 version ".tar.gz"))
1983 (sha256
1984 (base32
1985 "1ia3m7dp3lcxa048q0gqbiwwsyvn99baw6xkhb4bhhzn4k7bwyqq"))))
1986 (build-system guile-build-system)
1987 (arguments
1988 '(#:phases (modify-phases %standard-phases
1989 (add-after 'unpack 'move-files-around
1990 (lambda _
1991 ;; Move the relevant source files to src/ and create the
1992 ;; rx/ directory to match the expected module hierarchy.
1993 (mkdir-p "src/rx/source")
1994 (rename-file "irregex-guile.scm"
1995 "src/rx/irregex.scm")
1996 (rename-file "irregex.scm"
1997 "src/rx/source/irregex.scm")
1998 ;; Not really reachable via guile's packaging system,
1999 ;; but nice to have around.
2000 (rename-file "irregex-utils.scm"
2001 "src/rx/source/irregex-utils.scm")
2002 #t)))
2003 #:source-directory "src"))
2004 (native-inputs
2005 `(("guile" ,guile-2.2)))
2006 (home-page "http://synthcode.com/scheme/irregex")
2007 (synopsis "S-expression based regular expressions")
2008 (description
2009 "Irregex is an s-expression based alternative to your classic
2010string-based regular expressions. It implements SRFI 115 and is deeply
2011inspired by the SCSH regular expression system.")
2012 (license license:bsd-3)))
2013
2014(define-public guile2.0-irregex
2015 (package
2016 (inherit guile-irregex)
2017 (name "guile2.0-irregex")
2018 (native-inputs `(("guile" ,guile-2.0)))))
2019
89a99d53
LC
2020(define-public guile3.0-irregex
2021 (package
2022 (inherit guile-irregex)
2023 (name "guile3.0-irregex")
2024 (native-inputs `(("guile" ,guile-next)))))
2025
0791437f
RW
2026(define-public haunt
2027 (package
2028 (name "haunt")
2029 (version "0.2.4")
2030 (source (origin
2031 (method url-fetch)
2032 (uri (string-append "https://files.dthompson.us/haunt/haunt-"
2033 version ".tar.gz"))
2034 (sha256
2035 (base32
93d94134
LC
2036 "056z4znikk83nr5mr0x2ac3iinqbywa2bvb37mhr566a1q50isfc"))
2037 (modules '((guix build utils)))
2038 (snippet
2039 '(begin
2040 ;; Allow builds with Guile 3.0.
2041 (substitute* "configure"
2042 (("2\\.2 2\\.0")
2043 "3.0 2.2 2.0"))
2044 #t))))
0791437f
RW
2045 (build-system gnu-build-system)
2046 (arguments
2047 `(#:modules ((ice-9 match) (ice-9 ftw)
2048 ,@%gnu-build-system-modules)
2049 #:tests? #f ; test suite is non-deterministic :(
2050 #:phases (modify-phases %standard-phases
2051 (add-after 'install 'wrap-haunt
2052 (lambda* (#:key inputs outputs #:allow-other-keys)
2053 ;; Wrap the 'haunt' command to refer to the right
2054 ;; modules.
2055 (let* ((out (assoc-ref outputs "out"))
2056 (bin (string-append out "/bin"))
2057 (site (string-append
2058 out "/share/guile/site"))
93d94134
LC
2059 (guile-reader (assoc-ref inputs "guile-reader"))
2060 (deps `(,@(if guile-reader
2061 (list guile-reader)
2062 '())
2063 ,(assoc-ref inputs "guile-commonmark"))))
0791437f
RW
2064 (match (scandir site)
2065 (("." ".." version)
2066 (let ((modules (string-append site "/" version))
2067 (compiled-modules (string-append
2068 out "/lib/guile/" version
2069 "/site-ccache")))
2070 (wrap-program (string-append bin "/haunt")
2071 `("GUILE_LOAD_PATH" ":" prefix
2072 (,modules
2073 ,@(map (lambda (dep)
2074 (string-append dep
2075 "/share/guile/site/"
2076 version))
2077 deps)))
2078 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
2079 (,compiled-modules
2080 ,@(map (lambda (dep)
2081 (string-append dep "/lib/guile/"
2082 version
2083 "/site-ccache"))
2084 deps))))
2085 #t)))))))))
2086 (native-inputs
2087 `(("pkg-config" ,pkg-config)
2088 ("texinfo" ,texinfo)))
2089 (inputs
2090 `(("guile" ,guile-2.2)))
2091 (propagated-inputs
2092 `(("guile-reader" ,guile-reader)
2093 ("guile-commonmark" ,guile-commonmark)))
2094 (synopsis "Functional static site generator")
2095 (description "Haunt is a static site generator written in Guile
2096Scheme. Haunt features a functional build system and an extensible
2097interface for reading articles in any format.")
2098 (home-page "http://haunt.dthompson.us")
2099 (license license:gpl3+)))
2100
93d94134
LC
2101(define-public guile3.0-haunt
2102 (package
2103 (inherit haunt)
2104 (name "guile3.0-haunt")
2105 (inputs `(("guile" ,guile-3.0)))
2106 (propagated-inputs
2107 ;; XXX: Guile-Reader is currently unavailable for Guile 3.0 so strip it.
2108 `(("guile-commonmark" ,guile3.0-commonmark)))))
2109
0791437f
RW
2110(define-public guile2.0-haunt
2111 (package
2112 (inherit haunt)
2113 (name "guile2.0-haunt")
2114 (inputs `(("guile" ,guile-2.0)))))
2115
0791437f
RW
2116(define-public guile-redis
2117 (package
2118 (name "guile-redis")
f57bf15c 2119 (version "1.3.0")
0791437f
RW
2120 (home-page "https://github.com/aconchillo/guile-redis")
2121 (source (origin
29fde3bf
EF
2122 (method git-fetch)
2123 (uri (git-reference
2124 (url home-page)
2125 (commit version)))
2126 (file-name (git-file-name name version))
0791437f
RW
2127 (sha256
2128 (base32
29fde3bf 2129 "14izs8daxh7pb7vwpxi5g427qa31137jkaxrb1cy5rpjkwchy723"))))
0791437f
RW
2130 (build-system gnu-build-system)
2131 (native-inputs
2132 `(("autoconf" ,autoconf)
2133 ("automake" ,automake)
2134 ("pkg-config" ,pkg-config)
2135 ("guile" ,guile-2.2)))
2136 (synopsis "Redis client library for Guile")
2137 (description "Guile-redis provides a Scheme interface to the Redis
2138key-value cache and store.")
2139 (license license:lgpl3+)))
2140
2141(define-public guile2.0-redis
2142 (package
2143 (inherit guile-redis)
2144 (name "guile2.0-redis")
2145 (native-inputs `(("guile" ,guile-2.0)
2146 ,@(alist-delete "guile"
2147 (package-native-inputs guile-redis))))))
2148
0791437f
RW
2149(define-public guile-commonmark
2150 (package
2151 (name "guile-commonmark")
b552e307 2152 (version "0.1.2")
0791437f
RW
2153 (source (origin
2154 (method url-fetch)
2155 (uri (string-append "https://github.com/OrangeShark/" name
2156 "/releases/download/v" version
2157 "/" name "-" version ".tar.gz"))
2158 (sha256
2159 (base32
1fa34232
LC
2160 "17lrsdisa3kckh24q114vfmzdc4wkqa6ccwl4hdlrng5wpn1iman"))
2161 (modules '((guix build utils)))
2162 (snippet
2163 '(begin
2164 ;; Allow builds with Guile 3.0.
2165 (substitute* "configure"
2166 (("2\\.2 2\\.0")
2167 "3.0 2.2 2.0"))
2168 #t))))
0791437f
RW
2169 (build-system gnu-build-system)
2170 (inputs
2171 `(("guile" ,guile-2.2)))
2172 (native-inputs
2173 `(("pkg-config" ,pkg-config)))
2174 (synopsis "CommonMark parser for Guile")
2175 (description
2176 "guile-commonmark is a library for parsing CommonMark, a fully specified
2177variant of Markdown. The library is written in Guile Scheme and is designed
2178to transform a CommonMark document to SXML. guile-commonmark tries to closely
2179follow the @uref{http://commonmark.org/, CommonMark spec}, the main difference
2180is no support for parsing block and inline level HTML.")
2181 (home-page "https://github.com/OrangeShark/guile-commonmark")
2182 (license license:lgpl3+)))
2183
1fa34232
LC
2184(define-public guile3.0-commonmark
2185 (package
2186 (inherit guile-commonmark)
2187 (name "guile3.0-commonmark")
2188 (inputs `(("guile" ,guile-3.0)))))
2189
0791437f
RW
2190(define-public guile2.0-commonmark
2191 (package
2192 (inherit guile-commonmark)
2193 (name "guile2.0-commonmark")
2194 (inputs `(("guile" ,guile-2.0)))))
2195
0791437f
RW
2196(define-public mcron
2197 (package
2198 (name "mcron")
a52aa7fd 2199 (version "1.1.4")
0791437f
RW
2200 (source (origin
2201 (method url-fetch)
2202 (uri (string-append "mirror://gnu/mcron/mcron-"
2203 version ".tar.gz"))
2204 (sha256
2205 (base32
a52aa7fd 2206 "1521w3h33bhdlg6qc66sq4dwv3qsx8r8x6srq4ca6kaahy6dszw8"))))
0791437f
RW
2207 (build-system gnu-build-system)
2208 (arguments
2209 '(#:phases (modify-phases %standard-phases
0791437f
RW
2210 (add-before 'check 'adjust-tests
2211 (lambda _
2212 (substitute* "tests/job-specifier.scm"
2213 ;; (getpw) fails with "entry not found" in the build
2214 ;; environment, so pass an argument.
2215 (("\\(getpw\\)")
2216 "(getpwnam (getuid))")
2217 ;; The build environment lacks an entry for root in
2218 ;; /etc/passwd.
2219 (("\\(getpw 0\\)")
2220 "(getpwnam \"nobody\")")
2221
2222 ;; FIXME: Skip the 4 faulty tests (see above).
2223 (("\\(test-equal \"next-year\"" all)
2224 (string-append "(test-skip 4)\n" all)))
2225 #t)))))
30ebff69 2226 (native-inputs `(("pkg-config" ,pkg-config)
0791437f 2227 ("tzdata" ,tzdata-for-tests)))
e002332b 2228 (inputs `(("guile" ,guile-2.2.7))) ;fix <https://bugs.gnu.org/37237>
0791437f
RW
2229 (home-page "https://www.gnu.org/software/mcron/")
2230 (synopsis "Run jobs at scheduled times")
2231 (description
2232 "GNU Mcron is a complete replacement for Vixie cron. It is used to run
2233tasks on a schedule, such as every hour or every Monday. Mcron is written in
2234Guile, so its configuration can be written in Scheme; the original cron
2235format is also supported.")
2236 (license license:gpl3+)))
2237
3de0d20b
LC
2238(define-public guile3.0-mcron
2239 (package
2240 (inherit mcron)
2241 (name "guile3.0-mcron")
2242 (inputs `(("guile" ,guile-3.0)))))
2243
6bb5f88e 2244(define-public guile-picture-language
d1a3a8e1
RW
2245 (let ((commit "91d10c96708d732145006dd2802acc4de08b632e")
2246 (revision "1"))
6bb5f88e
RW
2247 (package
2248 (name "guile-picture-language")
d1a3a8e1 2249 (version (git-version "0.0.1" revision commit))
6bb5f88e
RW
2250 (source (origin
2251 (method git-fetch)
2252 (uri (git-reference
2253 (url "https://git.elephly.net/software/guile-picture-language.git")
2254 (commit commit)))
f1d4d79f 2255 (file-name (git-file-name name version))
6bb5f88e
RW
2256 (sha256
2257 (base32
d1a3a8e1
RW
2258 "1ydvw9dvssdvlvhh1dr8inyzy2x6m41qgp8hsivca1xysr4gc23a"))))
2259 (build-system gnu-build-system)
6bb5f88e
RW
2260 (inputs
2261 `(("guile" ,guile-2.2)))
d1a3a8e1
RW
2262 (native-inputs
2263 `(("autoconf" ,autoconf)
2264 ("automake" ,automake)
2265 ("imagemagick" ,imagemagick)
2266 ("pkg-config" ,pkg-config)
2267 ("texinfo" ,texinfo)))
6bb5f88e
RW
2268 (home-page "https://git.elephly.net/software/guile-picture-language.git")
2269 (synopsis "Picture language for Guile")
2270 (description
2271 "This package provides a simple SVG-based picture language for Guile.
2272The picture values can directly be displayed in Geiser.")
2273 (license license:lgpl3+))))
5531782d 2274
4f408684
LC
2275(define-public guile3.0-picture-language
2276 (package
2277 (inherit guile-picture-language)
2278 (name "guile3.0-picture-language")
2279 (inputs `(("guile" ,guile-3.0)))))
2280
5531782d 2281(define-public guile-studio
223236f6
RW
2282 (package
2283 (name "guile-studio")
2284 (version "0.0.2")
2285 (source (origin
2286 (method git-fetch)
2287 (uri (git-reference
2288 (url "https://git.elephly.net/software/guile-studio.git")
2289 (commit version)))
2290 (file-name (git-file-name name version))
2291 (sha256
2292 (base32
2293 "10ls4ra148hd9ra7sin4kh9vv0am5pwk48p7dsjhrlg2l1hsh4hi"))))
2294 (build-system gnu-build-system)
2295 (arguments
2296 `(#:modules
2297 ((ice-9 match)
2298 (srfi srfi-1)
2299 ,@%gnu-build-system-modules)
2300 #:tests? #f ; there are none
2301 #:make-flags
2302 (list (string-append "ICONS_DIR="
2303 (assoc-ref %build-inputs "adwaita-icon-theme")
2304 "/share/icons/Adwaita/")
2305 (string-append "PICT_DIR="
2306 (assoc-ref %build-inputs "guile-picture-language"))
2307 (string-append "EMACS_DIR="
2308 (assoc-ref %build-inputs "emacs"))
2309 (string-append "GUILE_DIR="
2310 (assoc-ref %build-inputs "guile"))
2311 (string-join (cons "INPUTS="
2312 (filter-map
2313 (lambda (input)
2314 (match input
2315 ((label . pkg)
2316 (and (string-prefix? "emacs" label) pkg))))
2317 %build-inputs)))
2318 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2319 #:phases
2320 (modify-phases %standard-phases
2321 (delete 'configure)
2322 (delete 'install))))
2323 (inputs
2324 `(("guile" ,guile-2.2)
2325 ("guile-picture-language" ,guile-picture-language)
2326 ("emacs" ,emacs)
2327 ("emacs-geiser" ,emacs-geiser)
2328 ("emacs-company" ,emacs-company)
2329 ("emacs-flycheck" ,emacs-flycheck)
2330 ("emacs-smart-mode-line" ,emacs-smart-mode-line)
2331 ("emacs-paren-face" ,emacs-paren-face)
2332 ("adwaita-icon-theme" ,adwaita-icon-theme)))
2333 (native-inputs
2334 `(("texinfo" ,texinfo)))
2335 (home-page "https://gnu.org/software/guile")
2336 (synopsis "IDE for Guile")
2337 (description
2338 "This is Emacs with a few settings that make working with Guile easier
5531782d
RW
2339for people new to Emacs. Features include: CUA mode, Geiser, tool bar icons
2340to evaluate Guile buffers, support for Guile's very own picture language, code
2341completion, a simple mode line, etc.")
223236f6 2342 (license license:gpl3+)))
9f8698ad
RW
2343
2344(define-public guile-stis-parser
2345 (let ((commit "6e85d37ffc333b722f4413a6c648263701eb75bd")
2346 (revision "1"))
2347 (package
2348 (name "guile-stis-parser")
2349 (version (git-version "0" revision commit))
2350 (source (origin
2351 (method git-fetch)
2352 (uri (git-reference
2353 (url "https://gitlab.com/tampe/stis-parser")
2354 (commit commit)))
29e76f07 2355 (file-name (git-file-name name version))
9f8698ad
RW
2356 (sha256
2357 (base32
2358 "0v4hvq7rlpbra1ni73lf8k6sdmjlflr50yi3p1f24g85h77pc7c0"))))
2359 (build-system gnu-build-system)
2360 (arguments
2361 `(#:parallel-build? #f ; not supported
2362 #:phases
2363 (modify-phases %standard-phases
2364 (add-after 'unpack 'chdir
2365 (lambda _ (chdir "modules") #t))
8318b3ed
RW
2366 (add-after 'chdir 'use-canonical-directory-for-go-files
2367 (lambda _
2368 (substitute* "Makefile.am"
2369 (("/ccache") "/site-ccache"))
2370 #t))
9f8698ad
RW
2371 (add-after 'chdir 'delete-broken-symlink
2372 (lambda _
2373 (delete-file "parser/stis-parser/lang/.#calc.scm")
2374 #t)))))
2375 (inputs
2376 `(("guile" ,guile-2.2)))
2377 (native-inputs
2378 `(("autoconf" ,autoconf)
2379 ("automake" ,automake)
2380 ("pkg-config" ,pkg-config)))
2381 (home-page "https://gitlab.com/tampe/stis-parser")
2382 (synopsis "Parser combinator framework")
2383 (description
2384 "This package provides a functional parser combinator library that
2385supports backtracking and a small logical framework. The idea is to build up
2386chunks that are memoized and there is no clear scanner/parser separation,
2387chunks can be expressions as well as simple tokens.")
2388 (license license:lgpl2.0+))))
12d73f9c
RW
2389
2390(define-public guile-persist
2391 (let ((commit "b14927b0368af51c024560aee5f55724aee35233")
2392 (revision "1"))
2393 (package
2394 (name "guile-persist")
2395 (version (git-version "0" revision commit))
2396 (source (origin
2397 (method git-fetch)
2398 (uri (git-reference
2399 (url "https://gitlab.com/tampe/guile-persist")
2400 (commit commit)))
2401 (file-name (git-file-name name version))
2402 (sha256
2403 (base32
85a411bc
LC
2404 "0z5nf377wh8yj6n3sx2ddn4bdx1qrqnw899dlqjhg0q69qzil522"))
2405 (modules '((guix build utils)))
2406 (snippet
2407 '(begin
2408 ;; Install .go files in the right place.
2409 (substitute* "Makefile.am"
2410 (("/ccache") "/site-ccache"))
2411 #t))))
12d73f9c
RW
2412 (build-system gnu-build-system)
2413 (arguments
2414 `(#:phases
2415 (modify-phases %standard-phases
2416 (add-after 'unpack 'patch-prefix
2417 (lambda* (#:key inputs outputs #:allow-other-keys)
2418 (substitute* "src/Makefile.am"
2419 (("/usr/local/lib/guile")
2420 (string-append (assoc-ref outputs "out") "/lib/guile"))
2421 (("/usr/local/include/guile")
2422 (string-append (assoc-ref inputs "guile") "/include/guile"))
2423 (("-L/usr/local/lib")
8f052528
RW
2424 (string-append "-L" (assoc-ref inputs "guile") "/lib"))
2425 ;; Use canonical directory for go files.
2426 (("/ccache") "/site-ccache"))
12d73f9c
RW
2427 #t))
2428 (add-after 'unpack 'patch-library-reference
2429 (lambda* (#:key outputs #:allow-other-keys)
2430 (let ((out (assoc-ref outputs "out")))
2431 (substitute* "persist/persistance.scm"
2432 (("\"libguile-persist\"")
2433 (format #f "\"~a/lib/guile/2.2/extensions/libguile-persist\"" out)))
2434 #t))))))
2435 (inputs
2436 `(("guile" ,guile-2.2)))
2437 (native-inputs
2438 `(("autoconf" ,autoconf)
2439 ("automake" ,automake)
2440 ("libtool" ,libtool)
2441 ("pkg-config" ,pkg-config)))
2442 (home-page "https://gitlab.com/tampe/guile-persist")
028053f2 2443 (synopsis "Persistence programming framework for Guile")
12d73f9c
RW
2444 (description
2445 "This is a serialization library for serializing objects like classes
2446and objects, closures and structs. This currently does not support
2447serializing continuations or delimited continuations.")
2448 (license license:lgpl2.0+))))
6d37301b
RW
2449
2450(define-public python-on-guile
5d5edb88
LC
2451 (let ((commit "00a51a23247f1edc4ae8eda72b30df5cd7d0015f")
2452 (revision "3"))
6d37301b
RW
2453 (package
2454 (name "python-on-guile")
2455 (version (git-version "0.1.0" revision commit))
2456 (source (origin
2457 (method git-fetch)
2458 (uri (git-reference
4088ae42 2459 (url "https://git.elephly.net/software/python-on-guile.git")
6d37301b
RW
2460 (commit commit)))
2461 (file-name (git-file-name name version))
2462 (sha256
2463 (base32
5d5edb88 2464 "03rpnqr08rqr3gay128g564rwk8w4jbj28ss6b46z1d4vjs4nk68"))))
6d37301b
RW
2465 (build-system gnu-build-system)
2466 (arguments
2467 `(#:parallel-build? #f ; not supported
83817158
LC
2468 #:make-flags '("GUILE_AUTO_COMPILE=0") ;to prevent guild warnings
2469
6d37301b
RW
2470 #:phases
2471 (modify-phases %standard-phases
2472 (add-after 'unpack 'chdir
83817158
LC
2473 (lambda _ (chdir "modules") #t))
2474 (add-after 'install 'wrap
2475 (lambda* (#:key outputs #:allow-other-keys)
2476 ;; Wrap the 'python' executable so it can find its
2477 ;; dependencies.
2478 (let ((out (assoc-ref outputs "out")))
2479 (wrap-program (string-append out "/bin/python")
2480 `("GUILE_LOAD_PATH" ":" prefix
2481 (,(getenv "GUILE_LOAD_PATH")))
2482 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
2483 (,(getenv "GUILE_LOAD_COMPILED_PATH"))))
2484 #t))))))
6d37301b
RW
2485 (inputs
2486 `(("guile" ,guile-2.2)))
2487 (propagated-inputs
2488 `(("guile-persist" ,guile-persist)
2489 ("guile-readline" ,guile-readline)
2490 ("guile-stis-parser" ,guile-stis-parser)))
2491 (native-inputs
2492 `(("autoconf" ,autoconf)
2493 ("automake" ,automake)
2494 ("libtool" ,libtool)
2495 ("pkg-config" ,pkg-config)))
2496 (home-page "https://gitlab.com/python-on-guile/python-on-guile/")
2497 (synopsis "Python implementation in Guile")
2498 (description
2499 "This package allows you to compile a Guile Python file to any target
2500from @code{tree-il}.")
2501 (license license:lgpl2.0+))))
b97b4624
RW
2502
2503(define-public guile-file-names
2504 (package
2505 (name "guile-file-names")
72a0706f 2506 (version "0.3")
b97b4624
RW
2507 (source (origin
2508 (method url-fetch)
2509 (uri (string-append "http://brandon.invergo.net/software/download/"
2510 "guile-file-names/guile-file-names-"
2511 version ".tar.gz"))
2512 (sha256
2513 (base32
72a0706f 2514 "01chizdxkhw6aqv629vxka9f5x3534ij7r0jqndawsg2vxm1r9sz"))))
b97b4624
RW
2515 (build-system gnu-build-system)
2516 (arguments
2517 `(#:phases
2518 (modify-phases %standard-phases
481eca80 2519 (add-after 'unpack 'fix-target-directory
b97b4624 2520 (lambda _
481eca80 2521 (substitute* "src/Makefile.in"
b97b4624
RW
2522 (("guilemoddir = \\$\\(GUILE_SITE\\)")
2523 "guilemoddir = $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
2524 #t)))))
2525 (inputs
2526 `(("guile" ,guile-2.2)))
2527 (native-inputs
2528 `(("pkg-config" ,pkg-config)))
2529 (home-page "https://gitlab.com/brandoninvergo/guile-file-names")
2530 (synopsis "Manipulate file names")
2531 (description
2532 "The @code{(file-names)} module provides tools for manipulating file
2533names. The module was built on the idea that doing anything more than a
2534non-trivial modification of a file name string is a pain (making sure all
2535slashes are present and accounted for, resolving @code{.} and @code{..}, etc).
2536Inevitably, you have to break the string up into chunks and operate on that
2537list of components. This module takes care of that for you.")
2538 (license license:lgpl3+)))
bdf2dd79
JN
2539
2540(define-public guile-gi
bb6c8f20
RW
2541 (package
2542 (name "guile-gi")
195e1c1b 2543 (version "0.2.2")
bb6c8f20
RW
2544 (source (origin
2545 (method url-fetch)
2546 (uri (string-append "http://lonelycactus.com/tarball/guile_gi-"
2547 version ".tar.gz"))
2548 (sha256
2549 (base32
195e1c1b 2550 "1v82kz8mz7wgq6w5llaz8a2wwdnl8vk2667dpjwjxscl0qyxsy6y"))))
bb6c8f20
RW
2551 (build-system gnu-build-system)
2552 (arguments
b5d4d5b9 2553 `(#:configure-flags '("--with-gnu-filesystem-hierarchy")
a431a635
RW
2554 #:modules ((guix build gnu-build-system)
2555 (guix build utils)
2556 (ice-9 popen)
2557 (ice-9 rdelim))
b5d4d5b9
RW
2558 #:phases
2559 (modify-phases %standard-phases
a431a635
RW
2560 (add-after 'unpack 'patch-references-to-extension
2561 (lambda* (#:key outputs #:allow-other-keys)
2562 (let ((effective (read-line
2563 (open-pipe* OPEN_READ
2564 "guile" "-c"
2565 "(display (effective-version))"))))
2566 (substitute* '("module/gi.scm"
2567 "module/gi/oop.scm"
2568 "module/gi/documentation.scm"
2569 "module/gi/types.scm"
2570 "module/gi/repository.scm")
2571 (("\\(load-extension \"libguile-gi\" \"(.*)\"\\)" m arg)
2572 (format #f "~s"
2573 `(load-extension
2574 (format #f "~alibguile-gi"
2575 (if (getenv "GUILE_GI_UNINSTALLED")
2576 ""
2577 ,(format #f "~a/lib/guile/~a/"
2578 (assoc-ref outputs "out")
2579 effective)))
2580 ,arg)))))
2581 (setenv "GUILE_GI_UNINSTALLED" "1")
2582 #t))
b5d4d5b9
RW
2583 (add-before 'check 'start-xorg-server
2584 (lambda* (#:key inputs #:allow-other-keys)
2585 ;; The init_check test requires a running X server.
2586 (system (format #f "~a/bin/Xvfb :1 &"
2587 (assoc-ref inputs "xorg-server")))
2588 (setenv "DISPLAY" ":1")
2589 #t)))))
bb6c8f20 2590 (native-inputs
f2d97d57 2591 `(("gettext" ,gettext-minimal)
6153fa0a 2592 ("glib:bin" ,glib "bin") ; for glib-compile-resources
bb6c8f20 2593 ("libtool" ,libtool)
b5d4d5b9
RW
2594 ("pkg-config" ,pkg-config)
2595 ("xorg-server" ,xorg-server)))
bb6c8f20
RW
2596 (propagated-inputs
2597 `(("glib" ,glib)
2598 ("gobject-introspection" ,gobject-introspection)
2599 ("gssettings-desktop-schemas" ,gsettings-desktop-schemas)
2600 ("gtk+" ,gtk+)
2601 ("guile-lib" ,guile-lib)
2602 ("webkitgtk" ,webkitgtk)))
2603 (inputs `(("guile" ,guile-2.2)))
2604 (home-page "https://github.com/spk121/guile-gi")
2605 (synopsis "GObject bindings for Guile")
2606 (description
2607 "Guile-GI is a library for Guile that allows using GObject-based
bdf2dd79
JN
2608libraries, such as GTK+3. Its README comes with the disclaimer: This is
2609pre-alpha code.")
bb6c8f20 2610 (license license:gpl3+)))
dec4b3aa 2611
bfb51f5e
RW
2612(define-public guile3.0-gi
2613 (package
2614 (inherit guile-gi)
2615 (name "guile3.0-gi")
2616 (native-inputs
2617 `(("guile" ,guile-3.0)
2618 ,@(package-native-inputs guile-gi)))))
2619
dec4b3aa
LC
2620(define-public guile-srfi-159
2621 (let ((commit "1bd98abda2ae4ef8f36761a167903e55c6bda7bb")
2622 (revision "0"))
2623 (package
2624 (name "guile-srfi-159")
2625 (version (git-version "0" revision commit))
2626 (home-page "https://bitbucket.org/bjoli/guile-srfi-159")
2627 (source (origin
2628 (method hg-fetch)
2629 (uri (hg-reference (changeset commit)
2630 (url home-page)))
2631 (sha256
2632 (base32
2633 "1zw6cmcy7xdbfiz3nz9arqnn7l2daidaps6ixkcrc9b6k51fdv3p"))
2634 (file-name (git-file-name name version))))
2635 (build-system guile-build-system)
2636 (arguments
2637 ;; The *-impl.scm files are actually included from module files; they
2638 ;; should not be compiled separately, but they must be installed.
2639 '(#:not-compiled-file-regexp "-impl\\.scm$"))
2640 (inputs
2641 `(("guile" ,guile-2.2)))
2642 (synopsis "Formatting combinators for Guile")
2643 (description
2644 "The @code{(srfi-159)} module and its sub-modules implement the
2645formatting combinators specified by
2646@uref{https://srfi.schemers.org/srfi-159/srfi-159.html, SRFI-159}. These are
2647more expressive and flexible than the traditional @code{format} procedure.")
2648 (license license:bsd-3))))
f0de9544
JN
2649
2650(define-public emacsy
48eb71ae
JN
2651 (package
2652 (name "emacsy")
2653 (version "0.4.1")
2654 (source (origin
2655 (method url-fetch)
2656 (uri (string-append
2657 "https://download.savannah.nongnu.org/releases/"
2658 name "/" name "-" version ".tar.gz"))
2659 (sha256
2660 (base32
2661 "1cpb85dl1nibd34c2x2h7vfmjpkgh353p5b1w20v6cs6gmvgg4np"))))
2662 (build-system gnu-build-system)
2663 (native-inputs
2664 `(("autoconf" ,autoconf)
2665 ("automake" ,automake)
2666 ("bzip2" ,bzip2)
2667 ("guile" ,guile-2.2)
f2d97d57 2668 ("gettext" ,gettext-minimal)
48eb71ae
JN
2669 ("libtool" ,libtool)
2670 ("perl" ,perl)
2671 ("pkg-config" ,pkg-config)
2672 ("texinfo" ,texinfo)
1aa026aa 2673 ("texlive" ,(texlive-union (list texlive-generic-epsf)))))
114f02ba 2674 (inputs
48eb71ae
JN
2675 `(("dbus-glib" ,dbus-glib)
2676 ("guile" ,guile-2.2)
2677 ("guile-lib" ,guile-lib)
2678 ("guile-readline" ,guile-readline)
48eb71ae 2679 ("freeglut" ,freeglut)
48eb71ae 2680 ("webkitgtk" ,webkitgtk)))
114f02ba
AS
2681 (propagated-inputs
2682 `(("glib-networking" ,glib-networking)
2683 ("gssettings-desktop-schemas" ,gsettings-desktop-schemas)))
48eb71ae 2684 (arguments
114f02ba
AS
2685 `(#:modules ((guix build gnu-build-system)
2686 (guix build utils)
2687 (ice-9 popen)
2688 (ice-9 rdelim)
2689 (ice-9 regex)
2690 (ice-9 ftw)
2691 (srfi srfi-26))
2692 #:phases
48eb71ae
JN
2693 (modify-phases %standard-phases
2694 (add-before 'configure 'setenv
2695 (lambda _
2696 (setenv "GUILE_AUTO_COMPILE" "0")
114f02ba
AS
2697 #t))
2698 (add-after 'install 'wrap-binaries
2699 (lambda* (#:key inputs outputs #:allow-other-keys)
2700 (let* ((out (assoc-ref outputs "out"))
2701 (effective (read-line
2702 (open-pipe* OPEN_READ
2703 "guile" "-c"
2704 "(display (effective-version))")))
2705 (deps (map (cut assoc-ref inputs <>)
2706 '("guile-lib" "guile-readline")))
2707 (scm-path (map (cut string-append <> "/share/guile/site/"
2708 effective) `(,out ,@deps)))
2709 (go-path (map (cut string-append <> "/lib/guile/" effective
2710 "/site-ccache/") `(,out ,@deps)))
2711 (examples (filter (cut string-match "emacsy" <>)
2712 (scandir (string-append out "/bin/"))))
2713 (progs (map (cut string-append out "/bin/" <>)
2714 examples)))
2715 (map (cut wrap-program <>
2716 `("GUILE_LOAD_PATH" ":" prefix ,scm-path)
2717 `("GUILE_LOAD_COMPILED_PATH" ":" prefix ,go-path))
2718 progs)
2719 #t))))))
48eb71ae
JN
2720 (home-page "https://savannah.nongnu.org/projects/emacsy")
2721 (synopsis "Embeddable GNU Emacs-like library using Guile")
2722 (description
2723 "Emacsy is an embeddable Emacs-like library that uses GNU Guile
f0de9544
JN
2724as extension language. Emacsy can give a C program an Emacsy feel with
2725keymaps, minibuffer, recordable macros, history, tab completion, major
2726and minor modes, etc., and can also be used as a pure Guile library. It
48eb71ae
JN
2727comes with a simple counter example using FreeGLUT and browser examples
2728in C using Gtk+-3 and WebKitGtk.")
2729 (license license:gpl3+)))
2135610c 2730
c99f32b9 2731(define-public emacsy-minimal
2708ae3d 2732 (let ((commit "d459ca1d3d09e7624e662bc4cfc3596850796fc6"))
c99f32b9
AS
2733 (package
2734 (inherit emacsy)
2735 (name "emacsy-minimal")
2708ae3d 2736 (version (git-version "v0.4.1" "28" commit))
c99f32b9
AS
2737 (source (origin
2738 (method git-fetch)
2739 (uri (git-reference
2740 (url "https://git.savannah.gnu.org/git/emacsy.git")
2741 (commit commit)))
2742 (file-name (git-file-name name version))
2743 (sha256
2744 (base32
2708ae3d 2745 "1ps15w8cxj9kc18gmvys9jv9xa1qqa7m43ismv34l3cmhddrn0sr"))))
c99f32b9
AS
2746 (build-system gnu-build-system)
2747 (inputs
2748 `(("guile" ,guile-2.2)
2749 ("guile-lib" ,guile-lib)
2750 ("guile-readline" ,guile-readline)))
2751 (propagated-inputs '())
2752 (arguments
2753 `(#:configure-flags '("--without-examples")
2754 #:phases
2755 (modify-phases %standard-phases
2756 (add-before 'configure 'setenv
2757 (lambda _
2758 (setenv "GUILE_AUTO_COMPILE" "0")
2759 #t))))))))
2760
2135610c
LC
2761(define-public guile-jpeg
2762 (let ((commit "6a1673578b297c2c1b28e44a76bd5c49e76a5046")
2763 (revision "0"))
2764 (package
2765 (name "guile-jpeg")
2766 (version (git-version "0.0" revision commit))
2767 (home-page "https://gitlab.com/wingo/guile-jpeg")
2768 (source (origin
2769 (method git-fetch)
2770 (uri (git-reference (url home-page)
2771 (commit commit)))
2772 (sha256
2773 (base32
2774 "05z9m408w3h6aqb5k3r3qa7khir0k10rxwvsrzhkcq1hr5vbmr4m"))
2775 (file-name (git-file-name name version))
2776 (modules '((guix build utils)))
2777 (snippet
2778 '(begin
2779 ;; Install .go files in the right place.
2780 (substitute* "Makefile.am"
2781 (("/ccache") "/site-ccache"))
2782 #t))))
2783 (build-system gnu-build-system)
2784 (native-inputs
2785 `(("autoconf" ,autoconf)
2786 ("automake" ,automake)
2787 ("pkg-config" ,pkg-config)
2788 ("guile" ,guile-2.2)))
2789 (synopsis "JPEG file parsing library for Guile")
2790 (description
2791 "Guile-JPEG is a Scheme library to parse JPEG image files and to
2792perform geometrical transforms on JPEG images.")
2793 (license license:gpl3+))))
e8c2da41
AS
2794
2795(define-public nomad
2796 (package
2797 (name "nomad")
5f1553ce 2798 (version "0.1.2-alpha")
e8c2da41
AS
2799 (source (origin
2800 (method git-fetch)
2801 (uri (git-reference
2802 (url "https://git.savannah.gnu.org/git/nomad.git")
2803 (commit version)))
2804 (file-name (git-file-name name version))
2805 (sha256
2806 (base32
5f1553ce 2807 "1dnkr1hmvfkwgxd75dcf93pg39yfgawvdpzdhv991yhghv0qxc9h"))))
e8c2da41
AS
2808 (build-system gnu-build-system)
2809 (native-inputs
2810 `(("autoconf" ,autoconf)
2811 ("automake" ,automake)
2812 ("bash" ,bash)
2813 ("pkg-config" ,pkg-config)
2814 ("libtool" ,libtool)
2815 ("guile" ,guile-2.2)
5f1553ce
AS
2816 ("glib:bin" ,glib "bin")
2817 ("texinfo" ,texinfo)
2818 ("perl" ,perl)))
e8c2da41
AS
2819 (inputs
2820 `(("guile" ,guile-2.2)
2821 ("guile-lib" ,guile-lib)
2822 ("guile-gcrypt" ,guile-gcrypt)
2823 ("guile-readline" ,guile-readline)
2824 ("gnutls" ,gnutls)
2825 ("shroud" ,shroud)
2826 ("emacsy" ,emacsy-minimal)
2827 ("glib" ,glib)
2828 ("dbus-glib" ,dbus-glib)
2829 ("gtk+" ,gtk+)
2830 ("gtksourceview" ,gtksourceview)
2831 ("webkitgtk" ,webkitgtk)
2832 ("xorg-server" ,xorg-server)))
2833 (propagated-inputs
2834 `(("glib" ,glib)
2835 ("glib-networking" ,glib-networking)
2836 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
2837 (arguments
2838 `(#:modules ((guix build gnu-build-system)
2839 (guix build utils)
2840 (ice-9 popen)
2841 (ice-9 rdelim)
2842 (srfi srfi-26))
2843 #:phases
2844 (modify-phases %standard-phases
2845 (add-before 'check 'start-xorg-server
2846 (lambda* (#:key inputs #:allow-other-keys)
2847 ;; The test suite requires a running X server.
2848 (system (format #f "~a/bin/Xvfb :1 &"
2849 (assoc-ref inputs "xorg-server")))
2850 (setenv "DISPLAY" ":1")
2851 #t))
2852 (add-after 'install 'wrap-binaries
2853 (lambda* (#:key inputs outputs #:allow-other-keys)
2854 (let* ((out (assoc-ref outputs "out"))
2855 (gio-deps (map (cut assoc-ref inputs <>) '("glib-networking"
2856 "glib")))
2857 (gio-mod-path (map (cut string-append <> "/lib/gio/modules")
2858 gio-deps))
2859 (effective (read-line (open-pipe*
2860 OPEN_READ
2861 "guile" "-c"
2862 "(display (effective-version))")))
2863 (deps (map (cut assoc-ref inputs <>)
2864 '("emacsy" "guile-lib" "guile-readline"
2865 "shroud")))
2866 (scm-path (map (cut string-append <>
2867 "/share/guile/site/" effective)
2868 `(,out ,@deps)))
2869 (go-path (map (cut string-append <>
2870 "/lib/guile/" effective "/site-ccache")
2871 `(,out ,@deps)))
2872 (progs (map (cut string-append out "/bin/" <>)
2873 '("nomad"))))
2874 (map (cut wrap-program <>
2875 `("GIO_EXTRA_MODULES" ":" prefix ,gio-mod-path)
2876 `("GUILE_LOAD_PATH" ":" prefix ,scm-path)
2877 `("GUILE_LOAD_COMPILED_PATH" ":"
2878 prefix ,go-path))
2879 progs)
2880 #t))))))
2881 (home-page "https://savannah.nongnu.org/projects/nomad/")
2882 (synopsis "Extensible Web Browser in Guile Scheme")
2883 (description "Nomad is an Emacs-like Web Browser built using Webkitgtk and
2884Emacsy. It has a small C layer and most browser features are fully
2885programmable in Guile. It has hooks, keymaps, and self documentation
2886features.")
2887 (license license:gpl3+)))
248965c9
RW
2888
2889(define-public guile-cv
2890 (package
2891 (name "guile-cv")
2892 (version "0.2.1")
2893 (source (origin
2894 (method url-fetch)
2895 (uri (string-append "mirror://gnu/guile-cv/guile-cv-"
2896 version ".tar.gz"))
2897 (sha256
2898 (base32
2899 "0qdf0s2h1xj5lbhnc1pfw69i3zg08pqy2y6869b92ydfis8r82j9"))))
2900 (build-system gnu-build-system)
2901 (arguments
2902 `(#:phases
2903 (modify-phases %standard-phases
2904 (add-after 'unpack 'prepare-build
2905 (lambda* (#:key inputs outputs #:allow-other-keys)
2906 (substitute* "configure"
2907 (("SITEDIR=\"\\$datadir/guile-cv\"")
2908 "SITEDIR=\"$datadir/guile/site/$GUILE_EFFECTIVE_VERSION\"")
2909 (("SITECCACHEDIR=\"\\$libdir/guile-cv/")
2910 "SITECCACHEDIR=\"$libdir/"))
2911 (substitute* "cv/init.scm"
2912 (("\\(dynamic-link \"libvigra_c\"\\)")
2913 (string-append "(dynamic-link \""
2914 (assoc-ref inputs "vigra-c")
2915 "/lib/libvigra_c\")"))
2916 (("\\(dynamic-link \"libguile-cv\"\\)")
2917 (format #f "~s"
2918 `(dynamic-link
2919 (format #f "~alibguile-cv"
2920 (if (getenv "GUILE_CV_UNINSTALLED")
2921 ""
2922 ,(format #f "~a/lib/"
2923 (assoc-ref outputs "out"))))))))
2924 (setenv "GUILE_CV_UNINSTALLED" "1")
2925 ;; Only needed to satisfy the configure script.
2926 (setenv "LD_LIBRARY_PATH"
2927 (string-append (assoc-ref inputs "vigra-c") "/lib"))
2928 #t)))))
2929 (inputs
2930 `(("vigra" ,vigra)
2931 ("vigra-c" ,vigra-c)
2932 ("guile" ,guile-2.2)))
2933 (native-inputs
2934 `(("texlive" ,(texlive-union (list texlive-booktabs
2935 texlive-lm
2936 texlive-siunitx
2937 texlive-standalone
2938 texlive-xcolor
2939 texlive-fonts-iwona)))
2940 ("pkg-config" ,pkg-config)))
2941 (propagated-inputs
2942 `(("guile-lib" ,guile-lib)))
2943 (home-page "https://www.gnu.org/software/guile-cv/")
2944 (synopsis "Computer vision library for Guile")
2945 (description "Guile-CV is a Computer Vision functional programming library
2946for the Guile Scheme language. It is based on Vigra (Vision with Generic
2947Algorithms), a C++ image processing and analysis library. Guile-CV contains
2948bindings to Vigra C (a C wrapper to most of the Vigra functionality) and is
2949enriched with pure Guile Scheme algorithms, all accessible through a nice,
2950clean and easy to use high level API.")
2951 (license license:gpl3+)))
7ff157c1
RW
2952
2953(define-public guile-ffi-fftw
353fb48f
RW
2954 (let ((commit "294ad9e7491dcb40026d2fec9be2af05263be1c0")
2955 (revision "2"))
7ff157c1
RW
2956 (package
2957 (name "guile-ffi-fftw")
2958 (version (git-version "0" revision commit))
2959 (source (origin
2960 (method git-fetch)
2961 (uri (git-reference
2962 (url "https://github.com/lloda/guile-ffi-fftw.git")
2963 (commit commit)))
2964 (file-name (git-file-name "guile-ffi-fftw" version))
2965 (sha256
2966 (base32
353fb48f 2967 "08j40a5p6a8pgvhffmzb5rfdnrav2mksy3gfjkdqy93jfj1z5afg"))))
7ff157c1
RW
2968 (build-system guile-build-system)
2969 (arguments
2970 `(#:source-directory "mod"
2971 #:phases
2972 (modify-phases %standard-phases
2973 (add-after 'unpack 'prepare-build
2974 (lambda* (#:key inputs #:allow-other-keys)
2975 (substitute* "mod/ffi/fftw.scm"
2976 (("\\(getenv \"GUILE_FFI_FFTW_LIBFFTW3_PATH\"\\)")
2977 (format #f "\"~a/lib\"" (assoc-ref inputs "fftw"))))
2978 #t))
2979 (add-after 'build 'check
2980 (lambda _
2981 (invoke "guile" "-L" "mod"
2982 "-s" "test/test-ffi-fftw.scm"))))))
2983 (inputs
2984 `(("fftw" ,fftw)
2985 ("guile" ,guile-2.2)))
2986 (home-page "https://github.com/lloda/guile-ffi-fftw/")
2987 (synopsis "Access FFTW through Guile's FFI")
2988 (description "This is a minimal set of Guile FFI bindings for the FFTW
2989library's ‘guru interface’. It provides two functions: @code{fftw-dft! rank
2990sign in out} and @code{fftw-dft rank sign in}. These bindings being minimal,
2991there is no support for computing & reusing plans, or split r/i transforms, or
2992anything other than straight complex DFTs.")
353fb48f 2993 (license license:lgpl3+))))
f9ec89f4
TS
2994
2995(define-public srfi-64-driver
2996 (package
2997 (name "srfi-64-driver")
2998 (version "0.1")
2999 (source (origin
3000 (method url-fetch)
3001 (uri (string-append "https://files.ngyro.com/srfi-64-driver/"
3002 "srfi-64-driver-" version ".tar.gz"))
3003 (sha256
3004 (base32
3005 "188b6mb7sjjg0a8zldikinglf40ky8mg8rwh5768gjmch6gkk3ph"))))
3006 (build-system gnu-build-system)
3007 (arguments
3008 `(#:tests? #f
3009 #:phases
3010 (modify-phases %standard-phases
3011 (delete 'build))))
3012 (native-inputs
3013 `(("pkg-config" ,pkg-config)))
3014 (inputs
3015 `(("guile" ,guile-2.2)))
3016 (home-page "https://ngyro.com/software/srfi-64-driver.html")
3017 (synopsis "Automake test driver for SRFI 64 test suites")
3018 (description "This package provides an Automake test driver that can
3019run SRFI 64 test suites. It gives Automake insight into the individual
3020tests being run, resulting clearer and more specific output.")
3021 (license license:gpl3+)))
f6bf4b2c
TS
3022
3023(define-public guile-semver
3024 (package
3025 (name "guile-semver")
85ced665 3026 (version "0.1.1")
f6bf4b2c
TS
3027 (source (origin
3028 (method url-fetch)
3029 (uri (string-append "https://files.ngyro.com/guile-semver/"
3030 "guile-semver-" version ".tar.gz"))
3031 (sha256
3032 (base32
85ced665 3033 "109p4n39ln44cxvwdccf9kgb96qx54makvd2ir521ssz6wchjyag"))))
f6bf4b2c
TS
3034 (build-system gnu-build-system)
3035 (native-inputs
85ced665 3036 `(("pkg-config" ,pkg-config)))
f6bf4b2c
TS
3037 (inputs
3038 `(("guile" ,guile-2.2)))
3039 (home-page "https://ngyro.com/software/guile-semver.html")
3040 (synopsis "Semantic Versioning (SemVer) for Guile")
3041 (description "This Guile library provides tools for reading,
3042comparing, and writing Semantic Versions. It also includes ranges in
3043the style of the Node Package Manager (NPM).")
3044 (license license:gpl3+)))
d67fa5c8 3045
b488b64a
MB
3046(define-public guile3.0-semver
3047 (package
3048 (inherit guile-semver)
3049 (name "guile3.0-semver")
3050 (inputs
3051 `(("guile" ,guile-3.0)))))
3052
d67fa5c8
LC
3053(define-public guile-hashing
3054 (package
3055 (name "guile-hashing")
3056 (version "1.2.0")
3057 (home-page "https://github.com/weinholt/hashing")
3058 (source (origin
3059 (method git-fetch)
3060 (uri (git-reference
3061 (url home-page)
3062 (commit (string-append "v" version))))
3063 (file-name (git-file-name name version))
3064 (sha256
3065 (base32
3066 "1362d3lmpv7slmv1zmr9wy8panq9sjr9787gc2hagd646mpsfpkl"))))
3067 (build-system guile-build-system)
3068 (arguments
3069 `(#:modules ((guix build guile-build-system)
3070 (guix build utils)
3071 (srfi srfi-26)
3072 (ice-9 ftw))
3073 #:implicit-inputs? #f ;needs nothing but Guile
3074 #:phases (modify-phases %standard-phases
3075 (add-before 'build 'move-sls-files
3076 (lambda _
3077 ;; Move the source under hashing/ in order to match
3078 ;; module names, and rename .sls files to .scm.
3079 (define (target file)
3080 (string-append "hashing/" file))
3081
3082 (define (sls->scm sls)
3083 (string-append (string-drop-right sls 4)
3084 ".scm"))
3085
3086 (mkdir "hashing")
3087 (for-each (lambda (file)
3088 (rename-file file (sls->scm file)))
3089 (find-files "." "\\.sls$"))
3090 (for-each (lambda (file)
3091 (rename-file file (target file)))
3092 (scandir "." (cut string-suffix? ".scm" <>)))
3093 (rename-file "private" "hashing/private")
3094 #t)))))
3095 (native-inputs
3096 `(("guile" ,guile-2.2)))
3097 (synopsis "Cryprographic hash functions implemented in Scheme")
3098 (description
3099 "The @code{(hashing @dots{})} modules implement cryptographic hash
3100functions in pure R6RS Scheme: CRC, HMAC, MD5, SHA-1, and SHA-2 (SHA-256,
3101SHA-512).")
3102 (license license:expat)))
f918a8d9
LC
3103
3104(define-public guile3.0-hashing
3105 (package
3106 (inherit guile-hashing)
3107 (name "guile3.0-hashing")
3108 (native-inputs
3109 `(("guile" ,guile-next)))))
ef2b1d2c
RW
3110
3111(define-public guile-webutils
3112 (let ((commit "8541904f761066dc9c27b1153e9a838be9a55299")
3113 (revision "0"))
3114 (package
3115 (name "guile-webutils")
3116 (version (git-version "0.1" revision commit))
3117 (source (origin
3118 (method git-fetch)
3119 (uri (git-reference
3120 (url "https://notabug.org/cwebber/guile-webutils.git")
3121 (commit commit)))
3122 (file-name (git-file-name name version))
3123 (sha256
3124 (base32
3125 "1s9n3hbxd7lfpdi0x8wr0cfvlsf6g62ird9gbspxdrp5p05rbi64"))))
3126 (build-system gnu-build-system)
3127 (native-inputs
3128 `(("autoconf" ,autoconf)
3129 ("automake" ,automake)
3130 ("pkg-config" ,pkg-config)
3131 ("texinfo" ,texinfo)))
3132 (inputs
3133 `(("guile" ,guile-2.2)))
3134 (propagated-inputs
3135 `(("guile-irregex" ,guile-irregex)
3136 ("guile-gcrypt" ,guile-gcrypt)))
3137 (home-page "https://notabug.org/cwebber/guile-webutils")
3138 (synopsis "Web application authoring utilities for Guile")
3139 (description
3140 "This package provides tooling to write web applications in Guile, such
3141as signed sessions, multipart message support, etc.")
3142 (license license:gpl3+))))
5479cef8
RW
3143
3144(define-public guile-lens
3145 (let ((commit "14b15d07255f9d3f55d40a3b750d13c9ee3a154f")
3146 (revision "0"))
3147 (package
3148 (name "guile-lens")
3149 (version (git-version "0.1" revision commit))
3150 (source (origin
3151 (method git-fetch)
3152 (uri (git-reference
3153 (url "https://gitlab.com/a-sassmannshausen/guile-lens.git")
3154 (commit commit)))
3155 (file-name (git-file-name name version))
3156 (sha256
3157 (base32
3158 "0w8jzqyla56yrgj7acsgd4nspyir6zgp3vgxid4xmwhg9wmf1ida"))))
3159 (build-system gnu-build-system)
3160 (arguments
3161 '(#:phases
3162 (modify-phases %standard-phases
3163 (add-after 'unpack 'run-hall
3164 (lambda _
3165 (setenv "HOME" "/tmp") ; for ~/.hall
3166 (invoke "hall" "dist" "-x"))))))
3167 (native-inputs
3168 `(("autoconf" ,autoconf)
3169 ("automake" ,automake)
3170 ("guile" ,guile-2.2)
3171 ("guile-hall" ,guile-hall)
3172 ("pkg-config" ,pkg-config)
3173 ("texinfo" ,texinfo)))
3174 (home-page "https://gitlab.com/a-sassmannshausen/guile-lens.git")
3175 (synopsis "Composable lenses for data structures in Guile")
3176 (description
3177 "Guile-Lens is a library implementing lenses in Guile. The library is
3178currently a re-implementation of the lentes library for Clojure. Lenses
3179provide composable procedures, which can be used to focus, apply functions
3180over, or update a value in arbitrary data structures.")
3181 (license license:gpl3+))))
69bb61f1
AI
3182
3183(define-public guile-xapian
d10e7a34
RW
3184 (package
3185 (name "guile-xapian")
3186 (version "0.1.0")
3187 (home-page "https://git.systemreboot.net/guile-xapian")
3188 (source
3189 (origin
3190 (method git-fetch)
3191 (uri (git-reference (url home-page)
3192 (commit (string-append "v" version))))
3193 (file-name (git-file-name name version))
3194 (sha256
3195 (base32
3196 "16k61f1jn3g48jaf3730b9l0izr5j933jzyri73nmcnjd09gm35i"))))
3197 (build-system gnu-build-system)
3198 (arguments
3199 '(#:make-flags '("GUILE_AUTO_COMPILE=0"))) ; to prevent guild warnings
3200 (inputs
3201 `(("guile" ,guile-2.2)
3202 ("xapian" ,xapian)
3203 ("zlib" ,zlib)))
3204 (native-inputs
3205 `(("autoconf" ,autoconf)
3206 ("autoconf-archive" ,autoconf-archive)
3207 ("automake" ,automake)
3208 ("libtool" ,libtool)
3209 ("pkg-config" ,pkg-config)
3210 ("swig" ,swig)))
3211 (synopsis "Guile bindings for Xapian")
3212 (description "@code{guile-xapian} provides Guile bindings for Xapian, a
69bb61f1
AI
3213search engine library. Xapian is a highly adaptable toolkit which allows
3214developers to easily add advanced indexing and search facilities to their own
3215applications. It has built-in support for several families of weighting
3216models and also supports a rich set of boolean query operators.")
d10e7a34 3217 (license license:gpl2+)))
69bb61f1
AI
3218
3219(define-public guile3.0-xapian
3220 (package
3221 (inherit guile-xapian)
3222 (name "guile3.0-xapian")
3223 (inputs
3224 `(("guile" ,guile-next)
3225 ,@(alist-delete "guile" (package-inputs guile-xapian))))))
be789065
AS
3226
3227(define-public guile-torrent
3228 (package
3229 (name "guile-torrent")
3230 (version "0.1.3")
3231 (source (origin (method git-fetch)
3232 (uri (git-reference
3233 (url
3234 "https://github.com/o-nly/torrent.git")
3235 (commit version)))
3236 (file-name (git-file-name name version))
3237 (sha256
3238 (base32
3239 "1yiagi55ncq1x7s9n7salzywjm4l96y3n7y3s47a9anvz87mrmim"))))
3240 (build-system gnu-build-system)
3241 (native-inputs
3242 `(("autoconf" ,autoconf)
3243 ("automake" ,automake)
3244 ("guile" ,guile-2.2)
3245 ("texinfo" ,texinfo)
3246 ("perl" ,perl)
3247 ("pkg-config" ,pkg-config)))
3248 (propagated-inputs
3249 `(("guile-gcrypt" ,guile-gcrypt)))
3250 (home-page "https://github.com/o-nly/torrent")
3251 (synopsis "Torrent library for GNU Guile")
3252 (description "This package provides facilities for working with
3253@code{.torrent} or metainfo files. Implements a bencode reader and writer
3254according to Bitorrent BEP003.")
3255 (license license:gpl3+)))
3c0456c6
RW
3256
3257(define-public guile-irc
3258 (let ((commit "375d3bde9c6ae7ccc9d7cc65817966b6fda8f26a")
3259 (revision "0"))
3260 (package
3261 (name "guile-irc")
3262 (version (git-version "0.3.0" revision commit))
3263 (source (origin
3264 (method git-fetch)
3265 (uri (git-reference
3266 (url "https://github.com/rekado/guile-irc.git")
3267 (commit commit)))
3268 (file-name (git-file-name name version))
3269 (sha256
3270 (base32
3271 "113lcckcywrz9060w1c3fnvr8d7crdsjgsv4h47hgmr1slgadl4y"))))
3272 (build-system gnu-build-system)
3273 (arguments
3274 `(#:configure-flags '("--enable-gnutls=yes")))
3275 (native-inputs
3276 `(("autoconf" ,autoconf)
3277 ("automake" ,automake)
3278 ("texinfo" ,texinfo)))
3279 (inputs
3280 `(("gnutls" ,gnutls)
3281 ("guile" ,guile-2.2)))
3282 (home-page "https://github.com/rekado/guile-irc")
3283 (synopsis "IRC library for Guile")
3284 (description "This package provides a Guile library for @dfn{Internet
3285Relay Chat} (IRC).")
3286 ;; Some file headers incorrectly say LGPLv2+.
3287 (license license:lgpl2.1+))))
8ffc20ef
ES
3288
3289(define-public guile3.0-websocket
3290 (let ((commit "c854e0f84a40d972cbd532bbb89c97ca0126a7cf"))
3291 (package
3292 (name "guile3.0-websocket")
3293 (version "0.1")
3294 (source
3295 (origin
3296 (method git-fetch)
3297 (uri (git-reference
3298 (url "git://dthompson.us/guile-websocket.git")
3299 (commit commit)))
3300 (file-name (git-file-name name version))
3301 (sha256
3302 (base32
3303 "1hymvsfrmq9qxr5cxnsgdz7y757yp1cpsgxmdp3f5wxxxpqgsmzx"))))
3304 (build-system gnu-build-system)
3305 (arguments
3306 '(#:make-flags
3307 '("GUILE_AUTO_COMPILE=0")
3308 #:phases
3309 (modify-phases %standard-phases
3310 ;; The package was developed for Guile 2.0 and has this version
3311 ;; hardcoded in the configure.ac and Makefile.am files. Substitute
3312 ;; 3.0 instead so it can support Guile 3.0.
3313 (add-after 'unpack 'update-guile-version
3314 (lambda _
3315 (substitute* "configure.ac"
3316 (("2.0.9") "3.0.0"))
3317 (substitute* "Makefile.am"
cea91813
LC
3318 (("2.0") "3.0")
3319
3320 ;; Install .go files where they belong.
3321 (("/ccache") "/site-ccache"))
8ffc20ef
ES
3322 #t)))))
3323 (native-inputs
3324 `(("autoconf" ,autoconf)
3325 ("automake" ,automake)))
3326 (inputs
3327 `(("guile" ,guile-next)))
3328 (synopsis "Websocket server/client for Guile")
3329 (description "Guile-websocket provides an implementation of the
3330WebSocket protocol as defined by RFC 6455.")
3331 (home-page "https://git.dthompson.us/guile-websocket.git")
3332 (license license:lgpl3+))))