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