1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
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>
8 ;;; Copyright © 2016 Eraim Flashner <efraim@flashner.co.il>
9 ;;; Copyright © 2016, 2017 Alex Kost <alezost@gmail.com>
10 ;;; Copyright © 2016, 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@openmailbox.org>
11 ;;; Copyright © 2016 Amirouche <amirouche@hypermove.net>
12 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
13 ;;; Copyright © 2017 Andy Wingo <wingo@igalia.com>
14 ;;; Copyright © 2017 David Thompson <davet@gnu.org>
15 ;;; Copyright © 2017, 2018 Mathieu Othacehe <m.othacehe@gmail.com>
16 ;;; Copyright © 2017 Theodoros Foradis <theodoros@foradis.org>
17 ;;; Copyright © 2017 Nils Gillmann <ng0@n0.is>
18 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
19 ;;; Copyright © 2018 Maxim Cournoyer <maxim.cournoyer@gmail.com>
20 ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
21 ;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
22 ;;; Copyright © 2018 Eric Bavier <bavier@member.fsf.org>
23 ;;; Copyright © 2019 swedebugia <swedebugia@riseup.net>
25 ;;; This file is part of GNU Guix.
27 ;;; GNU Guix is free software; you can redistribute it and/or modify it
28 ;;; under the terms of the GNU General Public License as published by
29 ;;; the Free Software Foundation; either version 3 of the License, or (at
30 ;;; your option) any later version.
32 ;;; GNU Guix is distributed in the hope that it will be useful, but
33 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
34 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35 ;;; GNU General Public License for more details.
37 ;;; You should have received a copy of the GNU General Public License
38 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
40 (define-module (gnu packages guile-xyz)
41 #:use-module ((guix licenses) #:prefix license:)
42 #:use-module (gnu packages)
43 #:use-module (gnu packages aspell)
44 #:use-module (gnu packages autotools)
45 #:use-module (gnu packages base)
46 #:use-module (gnu packages bash)
47 #:use-module (gnu packages compression)
48 #:use-module (gnu packages databases)
49 #:use-module (gnu packages disk)
50 #:use-module (gnu packages ed)
51 #:use-module (gnu packages emacs)
52 #:use-module (gnu packages emacs-xyz)
53 #:use-module (gnu packages gawk)
54 #:use-module (gnu packages gettext)
55 #:use-module (gnu packages gl)
56 #:use-module (gnu packages gnome)
57 #:use-module (gnu packages gperf)
58 #:use-module (gnu packages guile)
59 #:use-module (gnu packages hurd)
60 #:use-module (gnu packages image)
61 #:use-module (gnu packages libffi)
62 #:use-module (gnu packages libunistring)
63 #:use-module (gnu packages linux)
64 #:use-module (gnu packages man)
65 #:use-module (gnu packages maths)
66 #:use-module (gnu packages multiprecision)
67 #:use-module (gnu packages ncurses)
68 #:use-module (gnu packages networking)
69 #:use-module (gnu packages perl)
70 #:use-module (gnu packages pkg-config)
71 #:use-module (gnu packages python)
72 #:use-module (gnu packages readline)
73 #:use-module (gnu packages sdl)
74 #:use-module (gnu packages slang)
75 #:use-module (gnu packages sqlite)
76 #:use-module (gnu packages texinfo)
77 #:use-module (gnu packages tls)
78 #:use-module (gnu packages version-control)
79 #:use-module (gnu packages xdisorg)
80 #:use-module (gnu packages xorg)
81 #:use-module (guix packages)
82 #:use-module (guix download)
83 #:use-module (guix git-download)
84 #:use-module (guix build-system gnu)
85 #:use-module (guix build-system guile)
86 #:use-module (guix utils)
87 #:use-module (ice-9 match)
88 #:use-module ((srfi srfi-1) #:select (alist-delete)))
90 (define-public artanis
91 (let ((release "0.3.1")
95 (version (if (zero? revision)
97 (string-append release "-"
98 (number->string revision))))
101 (uri (string-append "mirror://gnu/artanis/artanis-"
103 (file-name (string-append name "-" version ".tar.gz"))
106 "0hqr5m3mb558bdhkc2sadmd9cbrhp3y525wx7cwirgy6i0zmay68"))
107 (modules '((guix build utils)))
110 ;; Unbundle guile-redis and guile-json
111 (delete-file-recursively "artanis/third-party/json.scm")
112 (delete-file-recursively "artanis/third-party/json")
113 (delete-file-recursively "artanis/third-party/redis.scm")
114 (delete-file-recursively "artanis/third-party/redis")
115 (substitute* '("artanis/artanis.scm"
118 (("(#:use-module \\()artanis third-party (json\\))" _
120 (string-append use-module json)))
121 (substitute* '("artanis/lpc.scm"
122 "artanis/session.scm")
123 (("(#:use-module \\()artanis third-party (redis\\))" _
125 (string-append use-module redis)))
126 (substitute* "artanis/oht.scm"
127 (("([[:punct:][:space:]]+)(->json-string)([[:punct:][:space:]]+)"
128 _ pre json-string post)
132 (substitute* "artanis/artanis.scm"
133 (("[[:punct:][:space:]]+->json-string[[:punct:][:space:]]+")
136 (build-system gnu-build-system)
137 ;; FIXME the bundled csv contains one more exported procedure
138 ;; (sxml->csv-string) than guile-csv. The author is maintainer of both
140 ;; TODO: Add guile-dbi and guile-dbd optional dependencies.
141 (inputs `(("guile" ,guile-2.2)
142 ("guile-json" ,guile-json)
143 ("guile-redis" ,guile-redis)))
144 (native-inputs `(("bash" ,bash) ;for the `source' builtin
145 ("pkgconfig" ,pkg-config)
146 ("util-linux" ,util-linux))) ;for the `script' command
149 ;; TODO: The documentation must be built with the `docs' target.
150 (let* ((out (assoc-ref %outputs "out"))
151 (scm (string-append out "/share/guile/site/2.2"))
152 (go (string-append out "/lib/guile/2.2/site-ccache")))
153 ;; Don't use (%site-dir) for site paths.
154 (list (string-append "MOD_PATH=" scm)
155 (string-append "MOD_COMPILED_PATH=" go)))
158 (modify-phases %standard-phases
159 (add-after 'unpack 'patch-site-dir
160 (lambda* (#:key outputs #:allow-other-keys)
161 (substitute* "artanis/commands/help.scm"
164 (assoc-ref outputs "out")
165 "/share/guile/site/2.2\"")))))
166 (add-before 'install 'substitute-root-dir
167 (lambda* (#:key outputs #:allow-other-keys)
168 (let ((out (assoc-ref outputs "out")))
169 (substitute* "Makefile" ;ignore the execution of bash.bashrc
170 ((" /etc/bash.bashrc") " /dev/null"))
171 (substitute* "Makefile" ;set the root of config files to OUT
172 ((" /etc") (string-append " " out "/etc")))
173 (mkdir-p (string-append out "/bin")) ;for the `art' executable
175 (add-after 'install 'wrap-art
176 (lambda* (#:key inputs outputs #:allow-other-keys)
177 (let* ((out (assoc-ref outputs "out"))
178 (bin (string-append out "/bin"))
179 (scm (string-append out "/share/guile/site/2.2"))
180 (go (string-append out "/lib/guile/2.2/site-ccache")))
181 (wrap-program (string-append bin "/art")
182 `("GUILE_LOAD_PATH" ":" prefix
183 (,scm ,(getenv "GUILE_LOAD_PATH")))
184 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
185 (,go ,(getenv "GUILE_LOAD_COMPILED_PATH"))))
187 (synopsis "Web application framework written in Guile")
188 (description "GNU Artanis is a web application framework written in Guile
189 Scheme. A web application framework (WAF) is a software framework that is
190 designed to support the development of dynamic websites, web applications, web
191 services and web resources. The framework aims to alleviate the overhead
192 associated with common activities performed in web development. Artanis
193 provides several tools for web development: database access, templating
194 frameworks, session management, URL-remapping for RESTful, page caching, and
196 (home-page "https://www.gnu.org/software/artanis/")
197 (license (list license:gpl3+ license:lgpl3+))))) ;dual license
199 ;; There has not been any release yet.
200 (define-public guildhall
201 (let ((commit "2fe2cc539f4b811bbcd69e58738db03eb5a2b778")
205 (version (string-append "0-" revision "." (string-take commit 9)))
209 (url "https://github.com/ijp/guildhall.git")
211 (file-name (string-append name "-" version "-checkout"))
214 "115bym7bg66h3gs399yb2vkzc2ygriaqsn4zbrg8f054mgy8wzn1"))))
215 (build-system gnu-build-system)
218 (modify-phases %standard-phases
219 ;; Tests fail without this fix because they try to load the bash
220 ;; executable as a Scheme file. See bug report at
221 ;; https://github.com/ijp/guildhall/issues/22
222 (add-after 'unpack 'fix-bug-22
224 (substitute* "Makefile.am"
225 (("TESTS_ENVIRONMENT=.*")
226 "AM_TESTS_ENVIRONMENT=srcdir=$(abs_top_srcdir)/tests/
227 TEST_EXTENSIONS = .scm
228 SCM_LOG_COMPILER= $(top_builddir)/env $(GUILE)
229 AM_SCM_LOG_FLAGS = --no-auto-compile -s")
230 ;; FIXME: one of the database tests fails for unknown
231 ;; reasons. It does not fail when run outside of Guix.
232 (("tests/database.scm") ""))
235 `(("guile" ,guile-2.0)))
237 `(("zip" ,zip) ; for tests
238 ("autoconf" ,autoconf)
239 ("automake" ,automake)
240 ("texinfo" ,texinfo)))
241 (synopsis "Package manager for Guile")
243 "Guildhall is a package manager written for Guile Scheme. A guild is
244 an association of independent craftspeople. A guildhall is where they meet.
245 This Guildhall aims to make a virtual space for Guile wizards and journeyfolk
248 On a practical level, Guildhall lets you share Scheme modules and programs
249 over the internet, and install code that has been shared by others. Guildhall
250 can handle dependencies, so when a program requires several libraries, and
251 each of those has further dependencies, all of the prerequisites for the
252 program can be installed in one go.")
253 (home-page "https://github.com/ijp/guildhall")
254 (license license:gpl3+))))
256 (define-public guile-aspell
258 (name "guile-aspell")
263 "http://lonelycactus.com/tarball/guile_aspell-"
267 "0vpk5xj9m9qc702z3khmkwhgpb949qbsyz8kw2qycda6qnxk0077"))))
268 (build-system gnu-build-system)
270 '(#:phases (modify-phases %standard-phases
271 (add-before 'configure 'set-guilesitedir
273 (substitute* "Makefile.in"
274 (("^guilesitedir =.*$")
276 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
278 (add-before 'build 'set-libaspell-file-name
279 (lambda* (#:key inputs #:allow-other-keys)
280 (let ((aspell (assoc-ref inputs "aspell")))
281 (substitute* "aspell.scm"
282 (("\"libaspell\\.so\"")
283 (string-append "\"" aspell
284 "/lib/libaspell\"")))
286 (native-inputs `(("pkg-config" ,pkg-config)))
287 (inputs `(("guile" ,guile-2.2)
289 (home-page "https://github.com/spk121/guile-aspell")
290 (synopsis "Spell-checking from Guile")
292 "guile-aspell is a Guile Scheme library for comparing a string against a
293 dictionary and suggesting spelling corrections.")
294 (license license:gpl3+)))
296 (define-public guile-bash
297 ;; This project is currently retired. It was initially announced here:
298 ;; <https://lists.gnu.org/archive/html/guile-user/2015-02/msg00003.html>.
299 (let ((commit "1eabc563ca5692b3e08d84f1f0e6fd2283284469")
303 (version (string-append "0.1.6-" revision "." (string-take commit 7)))
305 "https://anonscm.debian.org/cgit/users/kaction-guest/retired/dev.guile-bash.git")
313 "097vny990wp2qpjij6a5a5gwc6fxzg5wk56inhy18iki5v6pif1p"))
314 (file-name (string-append name "-" version "-checkout"))))
315 (build-system gnu-build-system)
318 ;; Add -I to match 'bash.pc' of Bash 4.4.
319 (list (string-append "CPPFLAGS=-I"
320 (assoc-ref %build-inputs "bash:include")
321 "/include/bash/include")
323 ;; The '.a' file is useless.
326 ;; Install 'lib/bash' as Bash 4.4 expects.
327 (string-append "--libdir=" (assoc-ref %outputs "out")
329 (native-inputs `(("pkg-config" ,pkg-config)
330 ("autoconf" ,autoconf-wrapper)
331 ("automake" ,automake)
333 ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
334 ("gettext" ,gettext-minimal)
336 ;; Bash with loadable module support, for the test
338 ("bash-full" ,bash)))
339 (inputs `(("guile" ,guile-2.0)
340 ("bash:include" ,bash "include")))
341 (synopsis "Extend Bash using Guile")
343 "Guile-Bash provides a shared library and set of Guile modules,
344 allowing you to extend Bash in Scheme. Scheme interfaces allow you to access
345 the following aspects of Bash:
349 @item setting and getting Bash variables;
350 @item creating dynamic variables;
351 @item creating Bash functions with a Scheme implementation;
352 @item reader macro for output capturing;
353 @item reader macro for evaluating raw Bash commands.
359 enable -f ~/.guix-profile/lib/bash/libguile-bash.so scm
362 and then run @command{scm example.scm}.")
363 (license license:gpl3+))))
365 (define-public guile-8sync
371 (uri (string-append "mirror://gnu/8sync/8sync-" version
375 "031wm13srak3wsnll7j2mbbi29g1pcm4swdb71ds9yn567pn20qw"))))
376 (build-system gnu-build-system)
377 (native-inputs `(("autoconf" ,autoconf)
378 ("automake" ,automake)
380 ("pkg-config" ,pkg-config)
381 ("texinfo" ,texinfo)))
383 `(#:phases (modify-phases %standard-phases
384 (add-before 'configure 'setenv
387 (setenv "GUILE_AUTO_COMPILE" "0")
389 (home-page "https://gnu.org/s/8sync/")
390 (synopsis "Asynchronous actor model library for Guile")
392 "GNU 8sync (pronounced \"eight-sync\") is an asynchronous programming
393 library for GNU Guile based on the actor model.
395 Note that 8sync is only available for Guile 2.2.")
396 (license license:lgpl3+)))
398 (define-public guile-daemon
400 (name "guile-daemon")
404 (uri (string-append "https://github.com/alezost/" name
405 "/releases/download/v" version
406 "/" name "-" version ".tar.gz"))
409 "0hh6gq6b6phpxm0b1dkxyzj3f4sxdf7dji63609lzypa5v1ad2gv"))))
410 (build-system gnu-build-system)
412 `(("pkg-config" ,pkg-config)))
414 `(("guile" ,guile-2.2)))
415 (home-page "https://github.com/alezost/guile-daemon")
416 (synopsis "Evaluate code in a running Guile process")
418 "Guile-Daemon is a small Guile program that loads your initial
419 configuration file, and then reads and evaluates Guile expressions that
420 you send to a FIFO file.")
421 (license license:gpl3+)))
423 (define-public guile-dsv
430 (url "https://github.com/artyom-poptsov/guile-dsv")
431 (commit "bdc5267d007478abc20ea96d7c459b7dd9560b3d")))
432 (file-name (string-append name "-" version "-checkout"))
435 "1irw6mz8998nwyhzrw9g94jcz60b9zljgqfmipaz1ybn8579qjx0"))))
436 (build-system gnu-build-system)
438 `(("autoconf" ,autoconf)
439 ("automake" ,automake)
440 ("pkg-config" ,pkg-config)
441 ("texinfo" ,texinfo)))
442 (inputs `(("guile" ,guile-2.2)))
443 (propagated-inputs `(("guile-lib" ,guile-lib)))
445 '(#:phases (modify-phases %standard-phases
446 (add-before 'configure 'set-guilesitedir
448 (substitute* "Makefile.in"
449 (("^guilesitedir =.*$")
451 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
452 (substitute* "modules/Makefile.in"
453 (("^guilesitedir =.*$")
455 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
456 (substitute* "modules/dsv/Makefile.in"
457 (("^guilesitedir =.*$")
459 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
461 (home-page "https://github.com/artyom-poptsov/guile-dsv")
462 (synopsis "DSV module for Guile")
464 "Guile-DSV is a GNU Guile module for working with the
465 delimiter-separated values (DSV) data format. Guile-DSV supports the
466 Unix-style DSV format and RFC 4180 format.")
467 (license license:gpl3+)))
469 (define-public guile-fibers
471 (name "guile-fibers")
475 (uri (string-append "https://wingolog.org/pub/fibers/fibers-"
479 "0vjkg72ghgdgphzbjz9ig8al8271rq8974viknb2r1rg4lz92ld0"))))
480 (build-system gnu-build-system)
482 '(#:phases (modify-phases %standard-phases
483 (add-after 'install 'mode-guile-objects
484 (lambda* (#:key outputs #:allow-other-keys)
485 ;; .go files are installed to "lib/guile/X.Y/cache".
486 ;; This phase moves them to "…/site-ccache".
487 (let* ((out (assoc-ref outputs "out"))
488 (lib (string-append out "/lib/guile"))
489 (old (car (find-files lib "^ccache$"
491 (new (string-append (dirname old)
493 (rename-file old new)
496 `(("texinfo" ,texinfo)
497 ("pkg-config" ,pkg-config)))
499 `(("guile" ,guile-2.2)))
500 (synopsis "Lightweight concurrency facility for Guile")
502 "Fibers is a Guile library that implements a a lightweight concurrency
503 facility, inspired by systems like Concurrent ML, Go, and Erlang. A fiber is
504 like a \"goroutine\" from the Go language: a lightweight thread-like
505 abstraction. Systems built with Fibers can scale up to millions of concurrent
506 fibers, tens of thousands of concurrent socket connections, and many parallel
507 cores. The Fibers library also provides Concurrent ML-like channels for
508 communication between fibers.
510 Note that Fibers makes use of some Guile 2.1/2.2-specific features and
511 is not available for Guile 2.0.")
512 (home-page "https://github.com/wingo/fibers")
513 (license license:lgpl3+)))
515 (define-public guile-syntax-highlight
517 (name "guile-syntax-highlight")
521 (uri (string-append "https://files.dthompson.us/"
522 "guile-syntax-highlight/"
523 "guile-syntax-highlight-"
527 "1p771kq15x83483m23bhah1sz6vkalg3drm7x279f4j1cxligkzi"))))
528 (build-system gnu-build-system)
530 `(("pkg-config" ,pkg-config)))
532 `(("guile" ,guile-2.2)))
533 (synopsis "General-purpose syntax highlighter for GNU Guile")
534 (description "Guile-syntax-highlight is a general-purpose syntax
535 highlighting library for GNU Guile. It can parse code written in various
536 programming languages into a simple s-expression that can be converted to
537 HTML (via SXML) or any other format for rendering.")
538 (home-page "http://dthompson.us/projects/guile-syntax-highlight.html")
539 (license license:lgpl3+)))
541 (define-public guile-sjson
547 (uri (string-append "https://dustycloud.org/misc/sjson-" version
551 "1mzmapln79vv10qxaggz9qwcdbag3jnrj19xx8bgkmxss8h03sv3"))))
552 (build-system gnu-build-system)
554 `(("autoconf" ,autoconf)
555 ("automake" ,automake)
556 ("pkg-config" ,pkg-config)))
558 `(("guile" ,guile-2.2)))
559 (home-page "https://gitlab.com/dustyweb/guile-sjson")
560 (synopsis "S-expression based json reader/writer for Guile")
561 (description "guile-sjson is a json reader/writer for Guile.
562 It has a nice, simple s-expression based syntax.")
563 (license license:lgpl3+)))
565 (define-public guile-squee
566 (let ((commit "a85902a92bf6f58a1d35fd974a01ade163deda8d")
570 (version (string-append "0-" revision "." (string-take commit 7)))
574 (url "https://notabug.org/cwebber/guile-squee.git")
576 (file-name (git-file-name name version))
579 "0p1lpsp4kx57j3ai1dkxilm4ziavzzx8wbbc42m3hpziq0a7qz5z"))))
580 (build-system guile-build-system)
583 (modify-phases %standard-phases
584 (add-after 'unpack 'patch
585 (lambda* (#:key inputs #:allow-other-keys)
586 (substitute* "squee.scm"
587 (("dynamic-link \"libpq\"")
590 (assoc-ref inputs "postgresql") "/lib/libpq.so"
594 `(("postgresql" ,postgresql)))
596 `(("guile" ,guile-2.2)))
597 (home-page "https://notabug.org/cwebber/guile-squee")
598 (synopsis "Connect to PostgreSQL using Guile")
600 "@code{squee} is a Guile library for connecting to PostgreSQL databases
601 using Guile's foreign function interface.")
602 (license license:lgpl3+))))
604 (define-public guile-colorized
606 (name "guile-colorized")
612 (url "https://gitlab.com/NalaGinrut/guile-colorized.git")
613 (commit (string-append "v" version))))
614 (file-name (git-file-name name version))
616 (base32 "10mv8c63159r3qvwwdvsgnsvdg7nc2ghak85zapwqpv4ywrqp9zc"))))
617 (build-system guile-build-system)
619 `(("guile" ,guile-2.2)))
620 (home-page "https://gitlab.com/NalaGinrut/guile-colorized")
621 (synopsis "Colorized REPL for Guile")
623 "Guile-colorized provides you with a colorized REPL for GNU Guile.")
624 (license license:gpl3+)))
626 (define-public guile-pfds
630 (home-page "https://github.com/ijp/pfds")
635 (commit (string-append "v" version))))
638 "19y33wg94pf0n98dkfqd1zbw93fgky4sawxsxl6s3vyqwl0yi5vh"))
639 (file-name (string-append name "-" version "-checkout"))))
640 (build-system guile-build-system)
642 '(#:source-directory "src"
643 #:phases (modify-phases %standard-phases
644 (add-after 'unpack 'move-files-around
646 ;; Move files under a pfds/ directory to reflect the
649 (for-each (lambda (file)
651 (string-append "src/pfds/"
667 ;; In Guile <= 2.2.4, there's no way to tell 'guild
668 ;; compile' to accept the ".sls" extension. So...
669 (for-each (lambda (file)
672 (string-drop-right file 4)
674 (find-files "." "\\.sls$"))
677 `(("guile" ,guile-2.2)))
678 (synopsis "Purely functional data structures for Guile")
680 "This package provides purely functional data structures written in R6RS
681 Scheme and compiled for Guile. It has been tested with Racket, Guile 2,
682 Vicare Scheme and IronScheme. Right now it contains:
690 @item priority search queues (PSQs)
694 @item hash array mapped tries (HAMTs).
696 (license license:bsd-3)))
698 (define-public guile-aa-tree
700 (name "guile-aa-tree")
704 (uri (string-append "mirror://savannah/guile-aa-tree/guile-aa-tree-"
708 "0044c105r3q9vpl17pv3phl1b79kjm1llhkakqgiasixyav01blh"))))
709 (build-system guile-build-system)
710 (native-inputs `(("guile" ,guile-2.2)))
711 ;; https://savannah.nongnu.org/projects/guile-aa-tree
712 (home-page "https://qlfiles.net/guile-aa-tree/")
713 (synopsis "AA tree data structure for Guile")
715 "This package provides an implementation of @dfn{AA trees}, a
716 self-balancing binary tree data structure, for Guile. It ensure @math{O(log
717 n)} worst case performance for core operations. The module provides
718 non-mutating insert, delete, and search operations, with support for
719 convenient nested tree operations.")
720 (license license:gpl3+)))
722 (define-public guile-simple-zmq
723 (let ((commit "68bedb6679716214fb9d3472da57544526f7a618")
726 (name "guile-simple-zmq")
727 (version (git-version "0.0.0" revision commit))
732 (url "https://github.com/jerry40/guile-simple-zmq")
736 "1ad3xg69qqviy1f6dnlw0ysmfdbmp1jq65rfqb8nfd8dsrq2syli"))
737 (file-name (git-file-name name version))))
738 (build-system guile-build-system)
740 `(#:source-directory "src"
741 #:phases (modify-phases %standard-phases
742 (add-after 'unpack 'set-libzmq-file-name
743 (lambda* (#:key inputs #:allow-other-keys)
744 (substitute* "src/simple-zmq.scm"
745 (("\\(dynamic-link \"libzmq\"\\)")
746 (format #f "(dynamic-link \"~a/lib/libzmq.so\")"
747 (assoc-ref inputs "zeromq"))))
750 `(("guile" ,guile-2.2)))
752 `(("zeromq" ,zeromq)))
753 (home-page "https://github.com/jerry40/guile-simple-zmq")
754 (synopsis "Guile wrapper over ZeroMQ library")
756 "This package provides a Guile programming interface to the ZeroMQ
758 (license license:gpl3+))))
760 (define-public jupyter-guile-kernel
761 (let ((commit "a7db9245a886e104138474df46c3e88b95cff629")
764 (name "jupyter-guile-kernel")
765 (version (git-version "0.0.0" revision commit))
770 (url "https://github.com/jerry40/guile-kernel")
774 "0aj04853bqm47ivfcmrgpb7w3wkis847kc7qrwsa5zcn9h38qh2f"))))
775 (build-system guile-build-system)
777 '(#:phases (modify-phases %standard-phases
778 (add-after 'unpack 'set-openssl-file-name
779 (lambda* (#:key inputs #:allow-other-keys)
780 ;; Record the absolute file name of the 'openssl'
782 (substitute* "src/hmac.scm"
784 (string-append (assoc-ref inputs "openssl")
788 ;; XXX: The code uses 'include' to include its own source
789 ;; files, and "-L src" isn't enough in this case.
790 (add-before 'build 'chdir
791 (lambda _ (chdir "src") #t))
792 (add-after 'build 'chdir-back
793 (lambda _ (chdir "..") #t))
795 (add-after 'install 'install-kernel
796 (lambda* (#:key inputs outputs #:allow-other-keys)
797 (let* ((out (assoc-ref outputs "out"))
798 (json (assoc-ref inputs "guile-json"))
799 (zmq (assoc-ref inputs "guile-simple-zmq"))
800 (deps (list json zmq))
802 out "/share/jupyter/kernels/guile"))
803 (effective (target-guile-effective-version)))
805 (install-file "src/kernel.json" dir)
807 ;; Fix hard-coded file name in the kernel.
808 (substitute* (string-append dir "/kernel.json")
809 (("/home/.*/guile-jupyter-kernel.scm")
810 (string-append out "/share/guile/site/"
811 (target-guile-effective-version)
812 "/guile-jupyter-kernel.scm"))
814 (string-append "\"" (assoc-ref inputs "guile")
817 ;; Add '-L' and '-C' flags so that the kernel
818 ;; finds its dependencies.
819 (let ((-L (map (lambda (item)
820 (string-append "\"" item
824 (-C (map (lambda (item)
825 (string-append "\"" item
830 (string-append "--no-auto-compile\""
831 (string-join -L ", \"-L\", "
833 (string-join -C ", \"-C\", "
838 `(("openssl" ,openssl)
840 ("guile-json" ,guile-json)
841 ("guile-simple-zmq" ,guile-simple-zmq)))
842 (synopsis "Guile kernel for the Jupyter Notebook")
844 "This package provides a Guile 2.x kernel for the Jupyter Notebook. It
845 allows users to interact with the Guile REPL through Jupyter.")
846 (home-page "https://github.com/jerry40/guile-kernel")
847 (license license:gpl3+))))
849 (define-public guile-sparql
851 (name "guile-sparql")
856 "https://github.com/roelj/guile-sparql/releases/download/"
857 version "/guile-sparql-" version ".tar.gz"))
859 (base32 "1drnvhsgl0gc5crmb16yyw1j98nkhwwcgssv9vgm36ng43nnzffd"))))
860 (build-system gnu-build-system)
861 (arguments `(#:tests? #f)) ; There are no tests.
863 `(("pkg-config" ,pkg-config)))
865 `(("guile" ,guile-2.2)))
866 (home-page "https://github.com/roelj/guile-sparql")
867 (synopsis "SPARQL module for Guile")
868 (description "This package provides the functionality to query a SPARQL
869 endpoint. Additionally, it provides an interface to write SPARQL queries
870 using S-expressions.")
871 (license license:gpl3+)))
873 (define-public guile-debbugs
875 (name "guile-debbugs")
879 (uri (string-append "mirror://gnu/guile-debbugs/guile-debbugs-"
883 "16l8910p57im6s3j93xhdaqvgfy6ms5n97177mrch3y961z5hy0i"))
884 (modules '((guix build utils)))
886 '(substitute* "Makefile.in"
887 (("^godir = (.*)/ccache" _ prefix)
888 (string-append "godir = " prefix "/site-ccache"))))))
889 (build-system gnu-build-system)
891 `(("guile" ,guile-2.2)
892 ("pkg-config" ,pkg-config)))
893 (home-page "https://savannah.gnu.org/projects/guile-debbugs/")
894 (synopsis "Guile interface to the Debbugs bug tracking service")
896 "This package provides a Guile library to communicate with a Debbugs bug
897 tracker's SOAP service, such as @url{https://bugs.gnu.org}.")
898 (license license:gpl3+)))
900 (define-public guile-email
901 (let ((commit "fa52eac55e5946db89621a6c583d2aa357864dee")
905 (version (git-version "0.1.0" revision commit))
910 (url "https://git.systemreboot.net/guile-email")
912 (file-name (git-file-name name version))
915 "1037mbz7qd9bzaqp8ysyhnl9ipd97fmj3b9jr8qfzx9179vvsj63"))))
916 (build-system gnu-build-system)
918 `(("pkg-config" ,pkg-config)
919 ("autoconf" ,autoconf)
920 ("automake" ,automake)))
922 `(("guile" ,guile-2.2)))
923 (home-page "https://git.systemreboot.net/guile-email")
924 (synopsis "Guile email parser")
925 (description "This package provides an email parser written in pure
927 (license license:agpl3+))))
929 (define-public guile-debbugs-next
930 (let ((commit "75a331d561c8b6f8efcf16216dab961c17759efe")
932 (package (inherit guile-debbugs)
933 (name "guile-debbugs")
934 (version (git-version "0.0.3" revision commit))
938 (url "https://git.savannah.gnu.org/git/guile-debbugs.git")
940 (file-name (git-file-name name version))
943 "0br3mgbw41bpc9x57jlghl0i8dz9nl63r4wzs5l47aqszf84870y"))))
944 (build-system gnu-build-system)
946 `(("pkg-config" ,pkg-config)
947 ("autoconf" ,autoconf)
948 ("automake" ,automake)
949 ("texinfo" ,texinfo)))
951 `(("guile" ,guile-2.2)
952 ("guile-email" ,guile-email))))))
954 ;; There has not been any release yet.
955 (define-public guile-newt
956 (let ((commit "80c1e9e71945f833386d1632b52573e59325804f")
960 (version (string-append "0-" revision "." (string-take commit 9)))
964 (url "https://gitlab.com/mothacehe/guile-newt")
966 (file-name (string-append name "-" version "-checkout"))
969 "1w7qy4dw1f4bx622l6hw8mv49sf1ha8kch8j4nganyk8fj0wn695"))))
970 (build-system gnu-build-system)
973 '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
975 `(("guile" ,guile-2.2)
978 `(("autoconf" ,autoconf)
979 ("automake" ,automake)
980 ("pkg-config" ,pkg-config)))
981 (synopsis "Guile bindings to Newt")
983 "This package provides bindings for Newt, a programming library for
984 color text mode, widget based user interfaces. The bindings are written in pure
985 Scheme by using Guile’s foreign function interface.")
986 (home-page "https://gitlab.com/mothacehe/guile-newt")
987 (license license:gpl3+))))
989 (define-public guile-mastodon
991 (name "guile-mastodon")
996 (url "https://framagit.org/prouby/guile-mastodon.git")
997 (commit (string-append "v" version))))
998 (file-name (git-file-name name version))
1001 "1vblf3d1bbwna3l09p2ap5y8ycvl549bz6whgk78imyfmn28ygry"))))
1002 (build-system gnu-build-system)
1004 `(("autoconf" ,autoconf)
1005 ("automake" ,automake)
1006 ("pkg-config" ,pkg-config)))
1008 `(("guile" ,guile-2.2)
1010 ("guile-json" ,guile-json)))
1011 (home-page "https://framagit.org/prouby/guile-mastodon")
1012 (synopsis "Guile Mastodon REST API module")
1013 (description "This package provides Guile modules to access the
1014 @uref{https://docs.joinmastodon.org/api/, REST API of Mastodon}, a federated
1015 microblogging service.")
1016 (license license:gpl3+)))
1018 ;; There has not been any release yet.
1019 (define-public guile-parted
1020 (let ((commit "ea3f1a1f6844775fc59d3078d2a09c62ffb341b8")
1023 (name "guile-parted")
1024 (version (string-append "0-" revision "." (string-take commit 9)))
1028 (url "https://gitlab.com/mothacehe/guile-parted")
1030 (file-name (string-append name "-" version "-checkout"))
1033 "1q7425gpjlwi2wvhzq7kw046yyx7v6j6jyzkd1cr861iz34mjwiq"))))
1034 (build-system gnu-build-system)
1037 '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
1039 `(("guile" ,guile-2.2)
1040 ("parted" ,parted)))
1042 `(("guile-bytestructures" ,guile-bytestructures)))
1044 `(("autoconf" ,autoconf)
1045 ("automake" ,automake)
1046 ("pkg-config" ,pkg-config)))
1047 (synopsis "Guile bindings to GNU Parted")
1049 "This package provides bindings for GNU Parted library, a C library
1050 allowing disk partition tables creation and manipulation. The bindings are
1051 written in pure Scheme by using Guile's foreign function interface.")
1052 (home-page "https://gitlab.com/mothacehe/guile-parted")
1053 (license license:gpl3+))))
1055 (define-public guile-xosd
1061 (uri (string-append "https://github.com/alezost/" name
1062 "/releases/download/v" version
1063 "/" name "-" version ".tar.gz"))
1066 "1ri5065c16kmgrf2pysn2ymxjqi5302lhpb07wkl1jr75ym8fn8p"))))
1067 (build-system gnu-build-system)
1069 `(("pkg-config" ,pkg-config)))
1071 `(("guile" ,guile-2.2)
1073 ("libxext" ,libxext)
1074 ("libxinerama" ,libxinerama)
1076 (home-page "https://github.com/alezost/guile-xosd")
1077 (synopsis "XOSD bindings for Guile")
1079 "Guile-XOSD provides Guile bindings for @code{libxosd},
1080 @uref{http://sourceforge.net/projects/libxosd/, the X On Screen Display
1082 (license license:gpl3+)))
1084 (define-public guile-dbi
1091 "http://download.gna.org/guile-dbi/guile-dbi-"
1095 "116njrprhgrsv1qm904sp3b02rq01fx639r433d657gyhw3x159n"))))
1096 (build-system gnu-build-system)
1099 (list (string-append
1100 "--with-guile-site-dir=" %output "/share/guile/site/2.2"))
1102 (list (string-append
1103 "LDFLAGS=-Wl,-rpath=" %output "/lib:"
1104 (assoc-ref %build-inputs "guile-dbd-sqlite3") "/lib" ":"
1105 (assoc-ref %build-inputs "guile-dbd-postgresql") "/lib"))
1107 (modify-phases %standard-phases
1108 (add-after 'install 'patch-extension-path
1109 (lambda* (#:key outputs #:allow-other-keys)
1110 (let* ((out (assoc-ref outputs "out"))
1111 (dbi.scm (string-append
1112 out "/share/guile/site/2.2/dbi/dbi.scm"))
1113 (ext (string-append out "/lib/libguile-dbi")))
1114 (substitute* dbi.scm (("libguile-dbi") ext))
1117 `(("guile-dbd-sqlite3" ,guile-dbd-sqlite3)
1118 ("guile-dbd-postgresql" ,guile-dbd-postgresql))) ; only shared library, no scheme files
1120 `(("guile" ,guile-2.2)))
1121 (synopsis "Guile database abstraction layer")
1122 (home-page "http://home.gna.org/guile-dbi/guile-dbi.html")
1124 "guile-dbi is a library for Guile that provides a convenient interface to
1125 SQL databases. Database programming with guile-dbi is generic in that the same
1126 programming interface is presented regardless of which database system is used.
1127 It currently supports MySQL, Postgres and SQLite3.")
1128 (license license:gpl2+)))
1130 (define guile-dbi-bootstrap
1133 (name "guile-dbi-bootstrap")
1136 (substitute-keyword-arguments (package-arguments guile-dbi)
1137 ((#:make-flags _) '(list))))))
1139 (define-public guile-dbd-sqlite3
1141 (name "guile-dbd-sqlite3")
1146 "http://download.gna.org/guile-dbi/guile-dbd-sqlite3-"
1150 "0rg71jchxd2y8x496s8zmfmikr5g8zxi8zv2ar3f7a23pph92iw2"))))
1151 (build-system gnu-build-system)
1153 `(("pkg-config" ,pkg-config)
1154 ("guile-dbi-bootstrap" ,guile-dbi-bootstrap))) ; only required for headers
1156 `(("sqlite" ,sqlite)
1157 ("zlib" ,(@ (gnu packages compression) zlib))))
1158 (synopsis "Guile DBI driver for SQLite")
1159 (home-page "https://github.com/jkalbhenn/guile-dbd-sqlite3")
1161 "guile-dbi is a library for Guile that provides a convenient interface to
1162 SQL databases. This package implements the interface for SQLite.")
1163 (license license:gpl2+)))
1165 (define-public guile-dbd-postgresql
1166 (let ((commit "e97589b6b018b206c901e4cc24db463407a4036b")
1169 (name "guile-dbd-postgresql")
1170 (version (string-append
1171 "2.1.6-" (number->string revision) "." (string-take commit 7)))
1176 (url "https://github.com/opencog/guile-dbi.git")
1178 (file-name (git-file-name name version))
1180 (base32 "0n1gv9a0kdys10a4qmnrwvg5sydwb03880asri4gqdchcj3fimni"))))
1181 (build-system gnu-build-system)
1184 (modify-phases %standard-phases
1185 (add-after 'unpack 'chdir
1187 ;; The upstream Git repository contains all the code, so change
1188 ;; to the relevant directory.
1189 (chdir "guile-dbd-postgresql")
1191 (add-after 'chdir 'patch-src/Makefile.am
1192 (lambda* (#:key inputs #:allow-other-keys)
1193 (substitute* "src/Makefile.am"
1195 (string-append (assoc-ref inputs "postgresql") "/include")))
1197 (add-after 'patch-src/Makefile.am 'patch-src
1199 (substitute* "src/guile-dbd-postgresql.c"
1200 (("postgresql/libpq-fe\\.h") "libpq-fe.h"))
1203 `(("pkg-config" ,pkg-config)
1204 ("automake" ,automake)
1205 ("autoconf" ,autoconf)
1207 ("libtool" ,libtool)
1208 ("guile-dbi-bootstrap" ,guile-dbi-bootstrap)))
1210 `(("postgresql" ,postgresql)
1212 (synopsis "Guile DBI driver for PostgreSQL")
1214 "https://github.com/opencog/guile-dbi/tree/master/guile-dbd-postgresql")
1216 "@code{guile-dbi} is a library for Guile that provides a convenient
1217 interface to SQL databases. This package implements the interface for
1219 (license license:gpl2+))))
1221 (define-public guile-config
1223 (name "guile-config")
1229 (url "https://gitlab.com/a-sassmannshausen/guile-config")
1230 (commit "ce12de3f438c6b2b59c43ee21bcd58251835fdf3")))
1231 (file-name "guile-config-0.3-checkout")
1232 (sha256 (base32 "02zbpin0r9m2vxmr7mv68v3xdn247dcck56kbzjn0gj4c2rhih85"))))
1233 (build-system gnu-build-system)
1235 `(("autoconf" ,autoconf)
1236 ("automake" ,automake)
1237 ("pkg-config" ,pkg-config)
1238 ("texinfo" ,texinfo)))
1239 (inputs `(("guile" ,guile-2.2)))
1241 "Guile application configuration parsing library.")
1243 "Guile Config is a library providing a declarative approach to
1244 application configuration specification. The library provides clean
1245 configuration declaration forms, and processors that take care of:
1246 configuration file creation; configuration file parsing; command-line
1247 parameter parsing using getopt-long; basic GNU command-line parameter
1248 generation (--help, --usage, --version); automatic output generation for the
1249 above command-line parameters.")
1251 "https://gitlab.com/a-sassmannshausen/guile-config")
1252 (license license:gpl3+)))
1254 (define-public guile-hall
1262 (url "https://gitlab.com/a-sassmannshausen/guile-hall")
1263 (commit (string-append "v" version))))
1264 (file-name (git-file-name name version))
1266 "1bkbqgj24xh5b65sw2m98iggpi67b72szx1dsiq3cpzlcxplmgaz"))))
1267 (build-system gnu-build-system)
1272 ,@%gnu-build-system-modules)
1276 (add-after 'install 'hall-wrap-binaries
1277 (lambda* (#:key inputs outputs #:allow-other-keys)
1278 (let* ((compiled-dir
1279 (lambda (out version)
1281 out "/lib/guile/" version "/site-ccache")))
1283 (lambda (out version)
1285 out "/share/guile/site"
1286 (if (string-null? version) "" "/") version)))
1288 (lambda (env modules path)
1289 (list env ":" 'prefix
1291 (map (lambda (input)
1293 (assoc-ref inputs input)
1295 ,''("guile-config"))))))
1296 (out (assoc-ref outputs "out"))
1297 (bin (string-append out "/bin/"))
1298 (site (uncompiled-dir out "")))
1299 (match (scandir site)
1304 (string-append bin file)
1307 (uncompiled-dir out version)
1308 (uncompiled-dir "" version))
1310 "GUILE_LOAD_COMPILED_PATH"
1311 (compiled-dir out version)
1312 (compiled-dir "" version))))
1316 `(("autoconf" ,autoconf)
1317 ("automake" ,automake)
1318 ("pkg-config" ,pkg-config)
1319 ("texinfo" ,texinfo)))
1320 (inputs `(("guile" ,guile-2.2)))
1322 `(("guile-config" ,guile-config)))
1323 (synopsis "Guile project tooling")
1325 "Hall is a command-line application and a set of Guile libraries that
1326 allow you to quickly create and publish Guile projects. It allows you to
1327 transparently support the GNU build system, manage a project hierarchy &
1328 provides tight coupling to Guix.")
1329 (home-page "https://gitlab.com/a-sassmannshausen/guile-hall")
1330 (license license:gpl3+)))
1332 (define-public guile-ics
1339 (url "https://github.com/artyom-poptsov/guile-ics")
1340 (commit (string-append "v" version))))
1341 (file-name (string-append name "-" version "-checkout"))
1344 "0qjjvadr7gibdq9jvwkmlkb4afsw9n2shfj9phpiadinxk3p4m2g"))))
1345 (build-system gnu-build-system)
1347 `(("autoconf" ,autoconf-wrapper)
1348 ("automake" ,automake)
1349 ("texinfo" ,texinfo)
1350 ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
1351 ("gettext" ,gettext-minimal)
1352 ("pkg-config" ,pkg-config)))
1353 (inputs `(("guile" ,guile-2.2) ("which" ,which)))
1354 (propagated-inputs `(("guile-lib" ,guile-lib)))
1355 (home-page "https://github.com/artyom-poptsov/guile-ics")
1356 (synopsis "Guile parser library for the iCalendar format")
1358 "Guile-ICS is an iCalendar (RFC5545) format parser library written in
1359 pure Scheme. The library can be used to read and write iCalendar data.
1361 The library is shipped with documentation in Info format and usage examples.")
1362 (license license:gpl3+)))
1364 (define-public guile-wisp
1370 (uri (string-append "https://bitbucket.org/ArneBab/"
1371 "wisp/downloads/wisp-"
1375 "1ii14qz1lx7ffhb8i9q7dgaiwbif8g2q182skx17j11skp65c8r3"))))
1376 (build-system gnu-build-system)
1378 `(#:modules ((guix build gnu-build-system)
1379 ((guix build emacs-build-system) #:prefix emacs:)
1381 (guix build emacs-utils)
1384 #:imported-modules (,@%gnu-build-system-modules
1385 (guix build emacs-build-system)
1386 (guix build emacs-utils))
1388 (modify-phases %standard-phases
1389 (add-before 'configure 'patch-/usr/bin/env
1391 (substitute* "Makefile.in"
1392 (("/usr/bin/env bash") (which "bash"))
1393 (("\\$\\(GUILE_EFFECTIVE_VERSION\\)/site")
1394 "site/$(GUILE_EFFECTIVE_VERSION)")) ;use the right order
1396 ;; auto compilation breaks, but if we set HOME to /tmp,
1398 (add-before 'check 'auto-compile-hacky-workaround
1399 (lambda _ (setenv "HOME" "/tmp") #t))
1400 (add-after 'install 'install-go-files
1401 (lambda* (#:key outputs inputs #:allow-other-keys)
1402 (let* ((out (assoc-ref outputs "out"))
1403 (effective (read-line
1404 (open-pipe* OPEN_READ
1406 "(display (effective-version))")))
1407 (module-dir (string-append out "/share/guile/site/"
1409 (object-dir (string-append out "/lib/guile/" effective
1411 (prefix (string-length module-dir)))
1412 ;; compile to the destination
1413 (for-each (lambda (file)
1414 (let* ((base (string-drop (string-drop-right file 4)
1416 (go (string-append object-dir base ".go")))
1417 (invoke "guild" "compile" "-L" module-dir
1419 (find-files module-dir "\\.scm$"))
1421 (add-after 'install 'install-emacs-files
1422 (assoc-ref emacs:%standard-phases 'install))
1423 (add-after 'install-emacs-files 'compile-emacs-files
1424 (assoc-ref emacs:%standard-phases 'build))
1425 (add-after 'compile-emacs-files 'make-autoloads
1426 (assoc-ref emacs:%standard-phases 'make-autoloads)))))
1427 (home-page "https://draketo.de/english/wisp")
1429 `(("guile" ,guile-2.2)))
1431 `(("emacs" ,emacs-minimal)
1433 ("pkg-config" ,pkg-config)))
1434 (synopsis "Whitespace to lisp syntax for Guile")
1435 (description "Wisp is a syntax for Guile which provides a Python-like
1436 whitespace-significant language. It may be easier on the eyes for some
1437 users and in some situations.")
1438 (license license:gpl3+)))
1440 (define-public guile-sly
1446 (uri (string-append "https://files.dthompson.us/sly/sly-"
1450 "1svzlbz2vripmyq2kjh0rig16bsrnbkwbsm558pjln9l65mcl4qq"))
1451 (modules '((guix build utils)))
1454 (substitute* "configure"
1455 (("_guile_required_version=\"2.0.11\"")
1456 "_guile_required_version=\"2\"")
1457 (("ac_subst_vars='")
1458 "ac_subst_vars='GUILE_EFFECTIVE_VERSION\n"))
1459 (substitute* (find-files "." "Makefile.in")
1463 "$(prefix)/share/guile/site/@GUILE_EFFECTIVE_VERSION@\n"))
1467 "$(prefix)/lib/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n")))
1469 (build-system gnu-build-system)
1472 (list (string-append "--with-libfreeimage-prefix="
1473 (assoc-ref %build-inputs "freeimage"))
1474 (string-append "--with-libgslcblas-prefix="
1475 (assoc-ref %build-inputs "gsl")))))
1477 `(("pkg-config" ,pkg-config)))
1479 `(("guile-sdl" ,guile-sdl)
1480 ("guile-opengl" ,guile-opengl)))
1482 `(("guile" ,guile-2.2)
1484 ("freeimage" ,freeimage)
1486 (synopsis "2D/3D game engine for GNU Guile")
1487 (description "Sly is a 2D/3D game engine written in Guile Scheme. Sly
1488 features a functional reactive programming interface and live coding
1490 (home-page "https://dthompson.us/projects/sly.html")
1491 (license license:gpl3+)))
1493 (define-public g-wrap
1499 (uri (string-append "mirror://savannah/g-wrap/g-wrap-"
1503 "0ak0bha37dfpj9kmyw1r8fj8nva639aw5xr66wr5gd3l1rqf5xhg"))))
1504 (build-system gnu-build-system)
1506 `(("pkg-config" ,pkg-config)))
1508 `(("guile" ,guile-2.2)
1509 ("guile-lib" ,guile-lib)))
1511 `(("libffi" ,libffi)))
1513 `(#:configure-flags '("--disable-Werror")
1515 (modify-phases %standard-phases
1516 (add-before 'configure 'pre-configure
1517 (lambda* (#:key outputs #:allow-other-keys)
1518 (let ((out (assoc-ref outputs "out")))
1519 (substitute* (find-files "." "^Makefile.in$")
1520 (("guilemoduledir =.*guile/site" all)
1521 (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
1523 (synopsis "Generate C bindings for Guile")
1524 (description "G-Wrap is a tool and Guile library for generating function
1525 wrappers for inter-language calls. It currently only supports generating Guile
1526 wrappers for C functions. Given a definition of the types and prototypes for
1527 a given C interface, G-Wrap will automatically generate the C code that
1528 provides access to that interface and its types from the Scheme level.")
1529 (home-page "https://www.nongnu.org/g-wrap/index.html")
1530 (license license:lgpl2.1+)))
1532 (define-public guile-miniadapton
1533 (let ((commit "1b5749422304567c96ac5367f2221dda9eff5880")
1536 (name "guile-miniadapton")
1537 (version (string-append "0-" revision "." (string-take commit 9)))
1541 (url "https://github.com/fisherdj/miniAdapton.git")
1543 (file-name (string-append name "-" version "-checkout"))
1546 "09q51zkw2fypad5xixskfzw2cjhjgs5cswdp3i7cpp651rb3zndh"))))
1547 (build-system guile-build-system)
1549 `(("guile" ,guile-2.2)))
1550 (home-page "https://github.com/fisherdj/miniAdapton")
1551 (synopsis "Minimal implementation of incremental computation in Guile
1553 (description "This package provides a complete Scheme implementation of
1554 miniAdapton, which implements the core functionality of the Adapton system for
1555 incremental computation (also known as self-adjusting computation). Like
1556 Adapton, miniAdapton allows programmers to safely combine mutation and
1557 memoization. miniAdapton is built on top of an even simpler system,
1558 microAdapton. Both miniAdapton and microAdapton are designed to be easy to
1559 understand, extend, and port to host languages other than Scheme.")
1560 (license license:expat))))
1562 (define-public guile-reader
1564 (name "guile-reader")
1568 (uri (string-append "mirror://savannah/guile-reader/guile-reader-"
1572 "0592s2s8ampqmqwilc4fvcild6rb9gy79di6vxv5kcdmv23abkgx"))))
1573 (build-system gnu-build-system)
1574 (native-inputs `(("pkgconfig" ,pkg-config)
1575 ("gperf" ,gperf-3.0)))
1576 (inputs `(("guile" ,guile-2.2)))
1577 (synopsis "Framework for building readers for GNU Guile")
1579 "Guile-Reader is a simple framework for building readers for GNU Guile.
1581 The idea is to make it easy to build procedures that extend Guile’s read
1582 procedure. Readers supporting various syntax variants can easily be written,
1583 possibly by re-using existing “token readers” of a standard Scheme
1584 readers. For example, it is used to implement Skribilo’s R5RS-derived
1587 Guile-Reader’s approach is similar to Common Lisp’s “read table”, but
1588 hopefully more powerful and flexible (for instance, one may instantiate as
1589 many readers as needed).")
1590 (home-page "https://www.nongnu.org/guile-reader/")
1591 (license license:gpl3+)))
1593 (define-public guile2.2-reader
1594 (deprecated-package "guile2.2-reader" guile-reader))
1596 (define-public guile-ncurses
1598 (name "guile-ncurses")
1602 (uri (string-append "mirror://gnu/guile-ncurses/guile-ncurses-"
1606 "1wvggbr4xv8idh1hzd8caj4xfp4pln78a7w1wqzd4zgzwmnzxr2f"))))
1607 (build-system gnu-build-system)
1608 (inputs `(("ncurses" ,ncurses)
1609 ("guile" ,guile-2.2)))
1610 (native-inputs `(("pkg-config" ,pkg-config)))
1612 '(#:configure-flags (list "--with-ncursesw" ; Unicode support
1613 "--with-gnu-filesystem-hierarchy")
1615 (modify-phases %standard-phases
1616 (add-before 'build 'fix-libguile-ncurses-file-name
1617 (lambda* (#:key outputs #:allow-other-keys)
1618 (invoke "make" "install"
1620 "-j" (number->string
1621 (parallel-job-count)))
1622 (let* ((out (assoc-ref outputs "out"))
1624 (files (find-files dir ".scm")))
1626 (("\"libguile-ncurses\"")
1627 (format #f "\"~a/lib/guile/2.2/libguile-ncurses\""
1630 (home-page "https://www.gnu.org/software/guile-ncurses/")
1631 (synopsis "Guile bindings to ncurses")
1633 "guile-ncurses provides Guile language bindings for the ncurses
1635 (license license:lgpl3+)))
1637 (define-public guile-ncurses/gpm
1639 (inherit guile-ncurses)
1640 (name "guile-ncurses-with-gpm")
1641 (inputs `(("ncurses" ,ncurses/gpm)
1642 ("guile" ,guile-2.2)))))
1644 (define-public guile-lib
1650 (uri (string-append "mirror://savannah/guile-lib/guile-lib-"
1654 "0aizxdif5dpch9cvs8zz5g8ds5s4xhfnwza2il5ji7fv2h7ks7bd"))))
1655 (build-system gnu-build-system)
1658 '("GUILE_AUTO_COMPILE=0") ; to prevent guild errors
1660 (modify-phases %standard-phases
1661 (add-before 'configure 'patch-module-dir
1663 (substitute* "src/Makefile.in"
1664 (("^moddir = ([[:graph:]]+)")
1665 "moddir = $(datadir)/guile/site/@GUILE_EFFECTIVE_VERSION@\n")
1666 (("^godir = ([[:graph:]]+)")
1668 $(libdir)/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n"))
1670 (native-inputs `(("pkg-config" ,pkg-config)))
1671 (inputs `(("guile" ,guile-2.2)))
1672 (home-page "https://www.nongnu.org/guile-lib/")
1673 (synopsis "Collection of useful Guile Scheme modules")
1675 "Guile-Lib is intended as an accumulation place for pure-scheme Guile
1676 modules, allowing for people to cooperate integrating their generic Guile
1677 modules into a coherent library. Think \"a down-scaled, limited-scope CPAN
1680 ;; The whole is under GPLv3+, but some modules are under laxer
1681 ;; distribution terms such as LGPL and public domain. See `COPYING' for
1683 (license license:gpl3+)))
1685 (define-public guile2.0-lib
1688 (name "guile2.0-lib")
1689 (inputs `(("guile" ,guile-2.0)))))
1691 (define-public guile2.2-lib
1692 (deprecated-package "guile2.2-lib" guile-lib))
1694 (define-public guile-minikanren
1696 (name "guile-minikanren")
1697 (version "20150424.e844d85")
1701 (url "https://github.com/ijp/minikanren.git")
1702 (commit "e844d85512f8c055d3f96143ee506007389a25e3")))
1703 (file-name (string-append name "-" version "-checkout"))
1706 "0r50jlpzi940jlmxyy3ddqqwmj5r12gb4bcv0ssini9v8km13xz6"))))
1707 (build-system guile-build-system)
1709 `(("guile" ,guile-2.2)))
1710 (home-page "https://github.com/ijp/minikanren")
1711 (synopsis "MiniKanren declarative logic system, packaged for Guile")
1713 "MiniKanren is a relational programming extension to the Scheme
1714 programming Language, written as a smaller version of Kanren suitable for
1715 pedagogical purposes. It is featured in the book, The Reasoned Schemer,
1716 written by Dan Friedman, William Byrd, and Oleg Kiselyov.
1718 This is Ian Price's r6rs packaged version of miniKanren, which deviates
1719 slightly from miniKanren mainline.
1721 See http://minikanren.org/ for more on miniKanren generally.")
1722 (license license:expat)))
1724 (define-public guile2.0-minikanren
1726 (inherit guile-minikanren)
1727 (name "guile2.0-minikanren")
1728 (native-inputs `(("guile" ,guile-2.0)))))
1730 (define-public guile2.2-minikanren
1731 (deprecated-package "guile2.2-minikanren" guile-minikanren))
1733 (define-public guile-irregex
1735 (name "guile-irregex")
1740 "http://synthcode.com/scheme/irregex/irregex-"
1744 "1ia3m7dp3lcxa048q0gqbiwwsyvn99baw6xkhb4bhhzn4k7bwyqq"))))
1745 (build-system guile-build-system)
1747 '(#:phases (modify-phases %standard-phases
1748 (add-after 'unpack 'move-files-around
1750 ;; Move the relevant source files to src/ and create the
1751 ;; rx/ directory to match the expected module hierarchy.
1752 (mkdir-p "src/rx/source")
1753 (rename-file "irregex-guile.scm"
1754 "src/rx/irregex.scm")
1755 (rename-file "irregex.scm"
1756 "src/rx/source/irregex.scm")
1757 ;; Not really reachable via guile's packaging system,
1758 ;; but nice to have around.
1759 (rename-file "irregex-utils.scm"
1760 "src/rx/source/irregex-utils.scm")
1762 #:source-directory "src"))
1764 `(("guile" ,guile-2.2)))
1765 (home-page "http://synthcode.com/scheme/irregex")
1766 (synopsis "S-expression based regular expressions")
1768 "Irregex is an s-expression based alternative to your classic
1769 string-based regular expressions. It implements SRFI 115 and is deeply
1770 inspired by the SCSH regular expression system.")
1771 (license license:bsd-3)))
1773 (define-public guile2.0-irregex
1775 (inherit guile-irregex)
1776 (name "guile2.0-irregex")
1777 (native-inputs `(("guile" ,guile-2.0)))))
1779 (define-public guile2.2-irregex
1780 (deprecated-package "guile2.2-irregex" guile-irregex))
1782 (define-public haunt
1788 (uri (string-append "https://files.dthompson.us/haunt/haunt-"
1792 "056z4znikk83nr5mr0x2ac3iinqbywa2bvb37mhr566a1q50isfc"))))
1793 (build-system gnu-build-system)
1795 `(#:modules ((ice-9 match) (ice-9 ftw)
1796 ,@%gnu-build-system-modules)
1797 #:tests? #f ; test suite is non-deterministic :(
1798 #:phases (modify-phases %standard-phases
1799 (add-after 'install 'wrap-haunt
1800 (lambda* (#:key inputs outputs #:allow-other-keys)
1801 ;; Wrap the 'haunt' command to refer to the right
1803 (let* ((out (assoc-ref outputs "out"))
1804 (bin (string-append out "/bin"))
1805 (site (string-append
1806 out "/share/guile/site"))
1807 (deps (list (assoc-ref inputs "guile-reader")
1808 (assoc-ref inputs "guile-commonmark"))))
1809 (match (scandir site)
1811 (let ((modules (string-append site "/" version))
1812 (compiled-modules (string-append
1813 out "/lib/guile/" version
1815 (wrap-program (string-append bin "/haunt")
1816 `("GUILE_LOAD_PATH" ":" prefix
1818 ,@(map (lambda (dep)
1820 "/share/guile/site/"
1823 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
1825 ,@(map (lambda (dep)
1826 (string-append dep "/lib/guile/"
1832 `(("pkg-config" ,pkg-config)
1833 ("texinfo" ,texinfo)))
1835 `(("guile" ,guile-2.2)))
1837 `(("guile-reader" ,guile-reader)
1838 ("guile-commonmark" ,guile-commonmark)))
1839 (synopsis "Functional static site generator")
1840 (description "Haunt is a static site generator written in Guile
1841 Scheme. Haunt features a functional build system and an extensible
1842 interface for reading articles in any format.")
1843 (home-page "http://haunt.dthompson.us")
1844 (license license:gpl3+)))
1846 (define-public guile2.0-haunt
1849 (name "guile2.0-haunt")
1850 (inputs `(("guile" ,guile-2.0)))))
1852 (define-public guile2.2-haunt
1853 (deprecated-package "guile2.2-haunt" haunt))
1855 (define-public guile-redis
1857 (name "guile-redis")
1859 (home-page "https://github.com/aconchillo/guile-redis")
1862 (uri (string-append home-page "/archive/" version ".tar.gz"))
1865 "1li70a2716my9q9zfq0qn2x5d1cir9k2vx0jm9glm464yaf1vj39"))))
1866 (build-system gnu-build-system)
1868 `(("autoconf" ,autoconf)
1869 ("automake" ,automake)
1870 ("pkg-config" ,pkg-config)
1871 ("guile" ,guile-2.2)))
1872 (synopsis "Redis client library for Guile")
1873 (description "Guile-redis provides a Scheme interface to the Redis
1874 key-value cache and store.")
1875 (license license:lgpl3+)))
1877 (define-public guile2.0-redis
1879 (inherit guile-redis)
1880 (name "guile2.0-redis")
1881 (native-inputs `(("guile" ,guile-2.0)
1882 ,@(alist-delete "guile"
1883 (package-native-inputs guile-redis))))))
1885 (define-public guile2.2-redis
1886 (deprecated-package "guile2.2-redis" guile-redis))
1888 (define-public guile-commonmark
1890 (name "guile-commonmark")
1894 (uri (string-append "https://github.com/OrangeShark/" name
1895 "/releases/download/v" version
1896 "/" name "-" version ".tar.gz"))
1899 "17lrsdisa3kckh24q114vfmzdc4wkqa6ccwl4hdlrng5wpn1iman"))))
1900 (build-system gnu-build-system)
1902 `(("guile" ,guile-2.2)))
1904 `(("pkg-config" ,pkg-config)))
1905 (synopsis "CommonMark parser for Guile")
1907 "guile-commonmark is a library for parsing CommonMark, a fully specified
1908 variant of Markdown. The library is written in Guile Scheme and is designed
1909 to transform a CommonMark document to SXML. guile-commonmark tries to closely
1910 follow the @uref{http://commonmark.org/, CommonMark spec}, the main difference
1911 is no support for parsing block and inline level HTML.")
1912 (home-page "https://github.com/OrangeShark/guile-commonmark")
1913 (license license:lgpl3+)))
1915 (define-public guile2.0-commonmark
1917 (inherit guile-commonmark)
1918 (name "guile2.0-commonmark")
1919 (inputs `(("guile" ,guile-2.0)))))
1921 (define-public guile2.2-commonmark
1922 (deprecated-package "guile2.2-commonmark" guile-commonmark))
1924 (define-public mcron
1930 (uri (string-append "mirror://gnu/mcron/mcron-"
1934 "1i9mcp6r6my61zfiydsm3n6my41mwvl7dfala4q29qx0zn1ynlm4"))))
1935 (build-system gnu-build-system)
1937 '(#:phases (modify-phases %standard-phases
1938 (add-before 'check 'set-timezone
1939 (lambda* (#:key inputs #:allow-other-keys)
1940 ;; 'tests/job-specifier.scm' expects to be running in
1941 ;; UTC-2 or something.
1942 ;; FIXME: This issue is being investigated upstream, for
1943 ;; now we'll just skip the tests (see below):
1944 ;; <https://lists.gnu.org/archive/html/bug-mcron/2018-04/msg00005.html>.
1945 (let ((tzdata (assoc-ref inputs "tzdata")))
1947 (string-append tzdata
1949 (setenv "TZ" "UTC-2")
1951 (add-before 'check 'adjust-tests
1953 (substitute* "tests/job-specifier.scm"
1954 ;; (getpw) fails with "entry not found" in the build
1955 ;; environment, so pass an argument.
1957 "(getpwnam (getuid))")
1958 ;; The build environment lacks an entry for root in
1961 "(getpwnam \"nobody\")")
1963 ;; FIXME: Skip the 4 faulty tests (see above).
1964 (("\\(test-equal \"next-year\"" all)
1965 (string-append "(test-skip 4)\n" all)))
1967 (native-inputs `(("pkg-config" ,pkg-config)
1968 ("tzdata" ,tzdata-for-tests)))
1969 (inputs `(("ed" ,ed) ("which" ,which) ("guile" ,guile-2.2)))
1970 (home-page "https://www.gnu.org/software/mcron/")
1971 (synopsis "Run jobs at scheduled times")
1973 "GNU Mcron is a complete replacement for Vixie cron. It is used to run
1974 tasks on a schedule, such as every hour or every Monday. Mcron is written in
1975 Guile, so its configuration can be written in Scheme; the original cron
1976 format is also supported.")
1977 (license license:gpl3+)))
1979 (define-public mcron2
1980 ;; This was mthl's mcron development branch, and it became mcron 1.1.
1981 (deprecated-package "mcron2" mcron))
1983 (define-public guile-picture-language
1984 (let ((commit "1ea8b78a8bceb4f7e5eaeb3e76987072267f99bb")
1987 (name "guile-picture-language")
1988 (version (git-version "0" revision commit))
1992 (url "https://git.elephly.net/software/guile-picture-language.git")
1996 "1rvq6q2zq21x7dx0qq1hn568wglsl4bkd8gacbarcx1fs0rrxcqw"))))
1997 (build-system guile-build-system)
1999 `(("guile" ,guile-2.2)))
2000 (home-page "https://git.elephly.net/software/guile-picture-language.git")
2001 (synopsis "Picture language for Guile")
2003 "This package provides a simple SVG-based picture language for Guile.
2004 The picture values can directly be displayed in Geiser.")
2005 (license license:lgpl3+))))
2007 (define-public guile-studio
2008 (let ((commit "e2da64f014942a73996286c4abe3c3b1f8bd220c")
2011 (name "guile-studio")
2012 (version (git-version "0" revision commit))
2016 (url "https://git.elephly.net/software/guile-studio.git")
2020 "10v3kw41bzd8c2a6vxgrwbvl216d0k8f5s9h6pm8hahpd03jl7lm"))))
2021 (build-system gnu-build-system)
2023 `(#:tests? #f ; there are none
2025 (modify-phases %standard-phases
2028 (lambda* (#:key source inputs outputs #:allow-other-keys)
2029 (let* ((out (assoc-ref outputs "out"))
2030 (bin (string-append out "/bin/"))
2031 (share (string-append out "/share/")))
2034 (apply invoke "guile" "-s" "guile-studio-configure.scm"
2036 (assoc-ref inputs "emacs")
2037 (assoc-ref inputs "guile-picture-language")
2038 (string-append (assoc-ref inputs "adwaita-icon-theme")
2039 "/share/icons/Adwaita/")
2042 (delete 'install))))
2044 `(("guile" ,guile-2.2)
2045 ("guile-picture-language" ,guile-picture-language)
2047 ("emacs-geiser" ,emacs-geiser)
2048 ("emacs-company" ,emacs-company)
2049 ("emacs-flycheck" ,emacs-flycheck)
2050 ("emacs-smart-mode-line" ,emacs-smart-mode-line)
2051 ("emacs-paren-face" ,emacs-paren-face)
2052 ("adwaita-icon-theme" ,adwaita-icon-theme)))
2053 (home-page "https://gnu.org/software/guile")
2054 (synopsis "IDE for Guile")
2056 "This is Emacs with a few settings that make working with Guile easier
2057 for people new to Emacs. Features include: CUA mode, Geiser, tool bar icons
2058 to evaluate Guile buffers, support for Guile's very own picture language, code
2059 completion, a simple mode line, etc.")
2060 (license license:gpl3+))))
2062 (define-public guile-stis-parser
2063 (let ((commit "6e85d37ffc333b722f4413a6c648263701eb75bd")
2066 (name "guile-stis-parser")
2067 (version (git-version "0" revision commit))
2071 (url "https://gitlab.com/tampe/stis-parser")
2073 (file-name (git-file-name name version))
2076 "0v4hvq7rlpbra1ni73lf8k6sdmjlflr50yi3p1f24g85h77pc7c0"))))
2077 (build-system gnu-build-system)
2079 `(#:parallel-build? #f ; not supported
2081 (modify-phases %standard-phases
2082 (add-after 'unpack 'chdir
2083 (lambda _ (chdir "modules") #t))
2084 (add-after 'chdir 'delete-broken-symlink
2086 (delete-file "parser/stis-parser/lang/.#calc.scm")
2089 `(("guile" ,guile-2.2)))
2091 `(("autoconf" ,autoconf)
2092 ("automake" ,automake)
2093 ("pkg-config" ,pkg-config)))
2094 (home-page "https://gitlab.com/tampe/stis-parser")
2095 (synopsis "Parser combinator framework")
2097 "This package provides a functional parser combinator library that
2098 supports backtracking and a small logical framework. The idea is to build up
2099 chunks that are memoized and there is no clear scanner/parser separation,
2100 chunks can be expressions as well as simple tokens.")
2101 (license license:lgpl2.0+))))
2103 (define-public guile-persist
2104 (let ((commit "b14927b0368af51c024560aee5f55724aee35233")
2107 (name "guile-persist")
2108 (version (git-version "0" revision commit))
2112 (url "https://gitlab.com/tampe/guile-persist")
2114 (file-name (git-file-name name version))
2117 "0z5nf377wh8yj6n3sx2ddn4bdx1qrqnw899dlqjhg0q69qzil522"))))
2118 (build-system gnu-build-system)
2121 (modify-phases %standard-phases
2122 (add-after 'unpack 'patch-prefix
2123 (lambda* (#:key inputs outputs #:allow-other-keys)
2124 (substitute* "src/Makefile.am"
2125 (("/usr/local/lib/guile")
2126 (string-append (assoc-ref outputs "out") "/lib/guile"))
2127 (("/usr/local/include/guile")
2128 (string-append (assoc-ref inputs "guile") "/include/guile"))
2129 (("-L/usr/local/lib")
2130 (string-append "-L" (assoc-ref inputs "guile") "/lib")))
2132 (add-after 'unpack 'patch-library-reference
2133 (lambda* (#:key outputs #:allow-other-keys)
2134 (let ((out (assoc-ref outputs "out")))
2135 (substitute* "persist/persistance.scm"
2136 (("\"libguile-persist\"")
2137 (format #f "\"~a/lib/guile/2.2/extensions/libguile-persist\"" out)))
2140 `(("guile" ,guile-2.2)))
2142 `(("autoconf" ,autoconf)
2143 ("automake" ,automake)
2144 ("libtool" ,libtool)
2145 ("pkg-config" ,pkg-config)))
2146 (home-page "https://gitlab.com/tampe/guile-persist")
2147 (synopsis "Persistance programming framework for Guile")
2149 "This is a serialization library for serializing objects like classes
2150 and objects, closures and structs. This currently does not support
2151 serializing continuations or delimited continuations.")
2152 (license license:lgpl2.0+))))