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, 2019 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, 2019 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, 2019 Mathieu Othacehe <m.othacehe@gmail.com>
16 ;;; Copyright © 2017 Theodoros Foradis <theodoros@foradis.org>
17 ;;; Copyright © 2017 ng0 <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, 2019 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>
24 ;;; Copyright © 2019 Amar Singh <nly@disroot.org>
26 ;;; This file is part of GNU Guix.
28 ;;; GNU Guix is free software; you can redistribute it and/or modify it
29 ;;; under the terms of the GNU General Public License as published by
30 ;;; the Free Software Foundation; either version 3 of the License, or (at
31 ;;; your option) any later version.
33 ;;; GNU Guix is distributed in the hope that it will be useful, but
34 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
35 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36 ;;; GNU General Public License for more details.
38 ;;; You should have received a copy of the GNU General Public License
39 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
41 (define-module (gnu packages guile-xyz)
42 #:use-module ((guix licenses) #:prefix license:)
43 #:use-module (gnu packages)
44 #:use-module (gnu packages algebra)
45 #:use-module (gnu packages aspell)
46 #:use-module (gnu packages autotools)
47 #:use-module (gnu packages base)
48 #:use-module (gnu packages bash)
49 #:use-module (gnu packages compression)
50 #:use-module (gnu packages databases)
51 #:use-module (gnu packages disk)
52 #:use-module (gnu packages emacs)
53 #:use-module (gnu packages emacs-xyz)
54 #:use-module (gnu packages gawk)
55 #:use-module (gnu packages gettext)
56 #:use-module (gnu packages gl)
57 #:use-module (gnu packages glib)
58 #:use-module (gnu packages gnome)
59 #:use-module (gnu packages gnupg)
60 #:use-module (gnu packages gperf)
61 #:use-module (gnu packages gtk)
62 #:use-module (gnu packages guile)
63 #:use-module (gnu packages hurd)
64 #:use-module (gnu packages image)
65 #:use-module (gnu packages imagemagick)
66 #:use-module (gnu packages libffi)
67 #:use-module (gnu packages libunistring)
68 #:use-module (gnu packages linux)
69 #:use-module (gnu packages man)
70 #:use-module (gnu packages maths)
71 #:use-module (gnu packages multiprecision)
72 #:use-module (gnu packages ncurses)
73 #:use-module (gnu packages networking)
74 #:use-module (gnu packages noweb)
75 #:use-module (gnu packages password-utils)
76 #:use-module (gnu packages perl)
77 #:use-module (gnu packages pkg-config)
78 #:use-module (gnu packages python)
79 #:use-module (gnu packages readline)
80 #:use-module (gnu packages sdl)
81 #:use-module (gnu packages slang)
82 #:use-module (gnu packages sqlite)
83 #:use-module (gnu packages tex)
84 #:use-module (gnu packages texinfo)
85 #:use-module (gnu packages tls)
86 #:use-module (gnu packages version-control)
87 #:use-module (gnu packages webkit)
88 #:use-module (gnu packages xdisorg)
89 #:use-module (gnu packages xorg)
90 #:use-module (guix packages)
91 #:use-module (guix download)
92 #:use-module (guix git-download)
93 #:use-module (guix hg-download)
94 #:use-module (guix build-system gnu)
95 #:use-module (guix build-system guile)
96 #:use-module (guix utils)
97 #:use-module (ice-9 match)
98 #:use-module ((srfi srfi-1) #:select (alist-delete)))
100 (define-public artanis
101 (let ((release "0.3.1")
105 (version (if (zero? revision)
107 (string-append release "-"
108 (number->string revision))))
111 (uri (string-append "mirror://gnu/artanis/artanis-"
113 (file-name (string-append name "-" version ".tar.gz"))
116 "0hqr5m3mb558bdhkc2sadmd9cbrhp3y525wx7cwirgy6i0zmay68"))
117 (modules '((guix build utils)))
120 ;; Unbundle guile-redis and guile-json
121 (delete-file-recursively "artanis/third-party/json.scm")
122 (delete-file-recursively "artanis/third-party/json")
123 (delete-file-recursively "artanis/third-party/redis.scm")
124 (delete-file-recursively "artanis/third-party/redis")
125 (substitute* '("artanis/artanis.scm"
128 (("(#:use-module \\()artanis third-party (json\\))" _
130 (string-append use-module json)))
131 (substitute* '("artanis/lpc.scm"
132 "artanis/session.scm")
133 (("(#:use-module \\()artanis third-party (redis\\))" _
135 (string-append use-module redis)))
136 (substitute* "artanis/oht.scm"
137 (("([[:punct:][:space:]]+)(->json-string)([[:punct:][:space:]]+)"
138 _ pre json-string post)
142 (substitute* "artanis/artanis.scm"
143 (("[[:punct:][:space:]]+->json-string[[:punct:][:space:]]+")
146 (build-system gnu-build-system)
147 ;; FIXME the bundled csv contains one more exported procedure
148 ;; (sxml->csv-string) than guile-csv. The author is maintainer of both
150 ;; TODO: Add guile-dbi and guile-dbd optional dependencies.
151 (inputs `(("guile" ,guile-2.2)
152 ("guile-json" ,guile-json-1)
153 ("guile-redis" ,guile-redis)))
154 (native-inputs `(("bash" ,bash) ;for the `source' builtin
155 ("pkgconfig" ,pkg-config)
156 ("util-linux" ,util-linux))) ;for the `script' command
159 ;; TODO: The documentation must be built with the `docs' target.
160 (let* ((out (assoc-ref %outputs "out"))
161 (scm (string-append out "/share/guile/site/2.2"))
162 (go (string-append out "/lib/guile/2.2/site-ccache")))
163 ;; Don't use (%site-dir) for site paths.
164 (list (string-append "MOD_PATH=" scm)
165 (string-append "MOD_COMPILED_PATH=" go)))
168 (modify-phases %standard-phases
169 (add-after 'unpack 'patch-site-dir
170 (lambda* (#:key outputs #:allow-other-keys)
171 (substitute* "artanis/commands/help.scm"
174 (assoc-ref outputs "out")
175 "/share/guile/site/2.2\"")))))
176 (add-before 'install 'substitute-root-dir
177 (lambda* (#:key outputs #:allow-other-keys)
178 (let ((out (assoc-ref outputs "out")))
179 (substitute* "Makefile" ;ignore the execution of bash.bashrc
180 ((" /etc/bash.bashrc") " /dev/null"))
181 (substitute* "Makefile" ;set the root of config files to OUT
182 ((" /etc") (string-append " " out "/etc")))
183 (mkdir-p (string-append out "/bin")) ;for the `art' executable
185 (add-after 'install 'wrap-art
186 (lambda* (#:key inputs outputs #:allow-other-keys)
187 (let* ((out (assoc-ref outputs "out"))
188 (bin (string-append out "/bin"))
189 (scm (string-append out "/share/guile/site/2.2"))
190 (go (string-append out "/lib/guile/2.2/site-ccache")))
191 (wrap-program (string-append bin "/art")
192 `("GUILE_LOAD_PATH" ":" prefix
193 (,scm ,(getenv "GUILE_LOAD_PATH")))
194 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
195 (,go ,(getenv "GUILE_LOAD_COMPILED_PATH"))))
197 (synopsis "Web application framework written in Guile")
198 (description "GNU Artanis is a web application framework written in Guile
199 Scheme. A web application framework (WAF) is a software framework that is
200 designed to support the development of dynamic websites, web applications, web
201 services and web resources. The framework aims to alleviate the overhead
202 associated with common activities performed in web development. Artanis
203 provides several tools for web development: database access, templating
204 frameworks, session management, URL-remapping for RESTful, page caching, and
206 (home-page "https://www.gnu.org/software/artanis/")
207 (license (list license:gpl3+ license:lgpl3+))))) ;dual license
209 ;; There has not been any release yet.
210 (define-public guildhall
211 (let ((commit "2fe2cc539f4b811bbcd69e58738db03eb5a2b778")
215 (version (string-append "0-" revision "." (string-take commit 9)))
219 (url "https://github.com/ijp/guildhall.git")
221 (file-name (string-append name "-" version "-checkout"))
224 "115bym7bg66h3gs399yb2vkzc2ygriaqsn4zbrg8f054mgy8wzn1"))))
225 (build-system gnu-build-system)
228 (modify-phases %standard-phases
229 ;; Tests fail without this fix because they try to load the bash
230 ;; executable as a Scheme file. See bug report at
231 ;; https://github.com/ijp/guildhall/issues/22
232 (add-after 'unpack 'fix-bug-22
234 (substitute* "Makefile.am"
235 (("TESTS_ENVIRONMENT=.*")
236 "AM_TESTS_ENVIRONMENT=srcdir=$(abs_top_srcdir)/tests/
237 TEST_EXTENSIONS = .scm
238 SCM_LOG_COMPILER= $(top_builddir)/env $(GUILE)
239 AM_SCM_LOG_FLAGS = --no-auto-compile -s")
240 ;; FIXME: one of the database tests fails for unknown
241 ;; reasons. It does not fail when run outside of Guix.
242 (("tests/database.scm") ""))
245 `(("guile" ,guile-2.0)))
247 `(("zip" ,zip) ; for tests
248 ("autoconf" ,autoconf)
249 ("automake" ,automake)
250 ("texinfo" ,texinfo)))
251 (synopsis "Package manager for Guile")
253 "Guildhall is a package manager written for Guile Scheme. A guild is
254 an association of independent craftspeople. A guildhall is where they meet.
255 This Guildhall aims to make a virtual space for Guile wizards and journeyfolk
258 On a practical level, Guildhall lets you share Scheme modules and programs
259 over the internet, and install code that has been shared by others. Guildhall
260 can handle dependencies, so when a program requires several libraries, and
261 each of those has further dependencies, all of the prerequisites for the
262 program can be installed in one go.")
263 (home-page "https://github.com/ijp/guildhall")
264 (license license:gpl3+))))
266 (define-public guile-aspell
268 (name "guile-aspell")
273 "http://lonelycactus.com/tarball/guile_aspell-"
277 "0vpk5xj9m9qc702z3khmkwhgpb949qbsyz8kw2qycda6qnxk0077"))))
278 (build-system gnu-build-system)
280 '(#:phases (modify-phases %standard-phases
281 (add-before 'configure 'set-guilesitedir
283 (substitute* "Makefile.in"
284 (("^guilesitedir =.*$")
286 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
288 (add-before 'build 'set-libaspell-file-name
289 (lambda* (#:key inputs #:allow-other-keys)
290 (let ((aspell (assoc-ref inputs "aspell")))
291 (substitute* "aspell.scm"
292 (("\"libaspell\\.so\"")
293 (string-append "\"" aspell
294 "/lib/libaspell\"")))
296 (native-inputs `(("pkg-config" ,pkg-config)))
297 (inputs `(("guile" ,guile-2.2)
299 (home-page "https://github.com/spk121/guile-aspell")
300 (synopsis "Spell-checking from Guile")
302 "guile-aspell is a Guile Scheme library for comparing a string against a
303 dictionary and suggesting spelling corrections.")
304 (license license:gpl3+)))
306 (define-public guile-bash
307 ;; This project is currently retired. It was initially announced here:
308 ;; <https://lists.gnu.org/archive/html/guile-user/2015-02/msg00003.html>.
309 (let ((commit "1eabc563ca5692b3e08d84f1f0e6fd2283284469")
313 (version (string-append "0.1.6-" revision "." (string-take commit 7)))
315 "https://anonscm.debian.org/cgit/users/kaction-guest/retired/dev.guile-bash.git")
323 "097vny990wp2qpjij6a5a5gwc6fxzg5wk56inhy18iki5v6pif1p"))
324 (file-name (string-append name "-" version "-checkout"))))
325 (build-system gnu-build-system)
328 ;; Add -I to match 'bash.pc' of Bash 4.4.
329 (list (string-append "CPPFLAGS=-I"
330 (assoc-ref %build-inputs "bash:include")
331 "/include/bash/include")
333 ;; The '.a' file is useless.
336 ;; Install 'lib/bash' as Bash 4.4 expects.
337 (string-append "--libdir=" (assoc-ref %outputs "out")
339 (native-inputs `(("pkg-config" ,pkg-config)
340 ("autoconf" ,autoconf-wrapper)
341 ("automake" ,automake)
343 ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
344 ("gettext" ,gettext-minimal)
346 ;; Bash with loadable module support, for the test
348 ("bash-full" ,bash)))
349 (inputs `(("guile" ,guile-2.0)
350 ("bash:include" ,bash "include")))
351 (synopsis "Extend Bash using Guile")
353 "Guile-Bash provides a shared library and set of Guile modules,
354 allowing you to extend Bash in Scheme. Scheme interfaces allow you to access
355 the following aspects of Bash:
359 @item setting and getting Bash variables;
360 @item creating dynamic variables;
361 @item creating Bash functions with a Scheme implementation;
362 @item reader macro for output capturing;
363 @item reader macro for evaluating raw Bash commands.
369 enable -f ~/.guix-profile/lib/bash/libguile-bash.so scm
372 and then run @command{scm example.scm}.")
373 (license license:gpl3+))))
375 (define-public guile-8sync
381 (uri (string-append "mirror://gnu/8sync/8sync-" version
385 "031wm13srak3wsnll7j2mbbi29g1pcm4swdb71ds9yn567pn20qw"))))
386 (build-system gnu-build-system)
387 (native-inputs `(("autoconf" ,autoconf)
388 ("automake" ,automake)
390 ("pkg-config" ,pkg-config)
391 ("texinfo" ,texinfo)))
393 `(#:phases (modify-phases %standard-phases
394 (add-before 'configure 'setenv
397 (setenv "GUILE_AUTO_COMPILE" "0")
399 (home-page "https://gnu.org/s/8sync/")
400 (synopsis "Asynchronous actor model library for Guile")
402 "GNU 8sync (pronounced \"eight-sync\") is an asynchronous programming
403 library for GNU Guile based on the actor model.
405 Note that 8sync is only available for Guile 2.2.")
406 (license license:lgpl3+)))
408 (define-public guile-daemon
410 (name "guile-daemon")
414 (uri (string-append "https://github.com/alezost/" name
415 "/releases/download/v" version
416 "/" name "-" version ".tar.gz"))
419 "0hh6gq6b6phpxm0b1dkxyzj3f4sxdf7dji63609lzypa5v1ad2gv"))))
420 (build-system gnu-build-system)
422 `(("pkg-config" ,pkg-config)))
424 `(("guile" ,guile-2.2)))
425 (home-page "https://github.com/alezost/guile-daemon")
426 (synopsis "Evaluate code in a running Guile process")
428 "Guile-Daemon is a small Guile program that loads your initial
429 configuration file, and then reads and evaluates Guile expressions that
430 you send to a FIFO file.")
431 (license license:gpl3+)))
433 (define-public guile-dsv
440 (url "https://github.com/artyom-poptsov/guile-dsv")
441 (commit "bdc5267d007478abc20ea96d7c459b7dd9560b3d")))
442 (file-name (string-append name "-" version "-checkout"))
445 "1irw6mz8998nwyhzrw9g94jcz60b9zljgqfmipaz1ybn8579qjx0"))))
446 (build-system gnu-build-system)
448 `(("autoconf" ,autoconf)
449 ("automake" ,automake)
450 ("pkg-config" ,pkg-config)
451 ("texinfo" ,texinfo)))
452 (inputs `(("guile" ,guile-2.2)))
453 (propagated-inputs `(("guile-lib" ,guile-lib)))
455 '(#:phases (modify-phases %standard-phases
456 (add-before 'configure 'set-guilesitedir
458 (substitute* "Makefile.in"
459 (("^guilesitedir =.*$")
461 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
462 (substitute* "modules/Makefile.in"
463 (("^guilesitedir =.*$")
465 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
466 (substitute* "modules/dsv/Makefile.in"
467 (("^guilesitedir =.*$")
469 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
471 (home-page "https://github.com/artyom-poptsov/guile-dsv")
472 (synopsis "DSV module for Guile")
474 "Guile-DSV is a GNU Guile module for working with the
475 delimiter-separated values (DSV) data format. Guile-DSV supports the
476 Unix-style DSV format and RFC 4180 format.")
477 (license license:gpl3+)))
479 (define-public guile-fibers
481 (name "guile-fibers")
485 (uri (string-append "https://wingolog.org/pub/fibers/fibers-"
489 "0vjkg72ghgdgphzbjz9ig8al8271rq8974viknb2r1rg4lz92ld0"))))
490 (build-system gnu-build-system)
492 '(#:phases (modify-phases %standard-phases
493 (add-after 'install 'mode-guile-objects
494 (lambda* (#:key outputs #:allow-other-keys)
495 ;; .go files are installed to "lib/guile/X.Y/cache".
496 ;; This phase moves them to "…/site-ccache".
497 (let* ((out (assoc-ref outputs "out"))
498 (lib (string-append out "/lib/guile"))
499 (old (car (find-files lib "^ccache$"
501 (new (string-append (dirname old)
503 (rename-file old new)
506 `(("texinfo" ,texinfo)
507 ("pkg-config" ,pkg-config)))
509 `(("guile" ,guile-2.2)))
510 (synopsis "Lightweight concurrency facility for Guile")
512 "Fibers is a Guile library that implements a a lightweight concurrency
513 facility, inspired by systems like Concurrent ML, Go, and Erlang. A fiber is
514 like a \"goroutine\" from the Go language: a lightweight thread-like
515 abstraction. Systems built with Fibers can scale up to millions of concurrent
516 fibers, tens of thousands of concurrent socket connections, and many parallel
517 cores. The Fibers library also provides Concurrent ML-like channels for
518 communication between fibers.
520 Note that Fibers makes use of some Guile 2.1/2.2-specific features and
521 is not available for Guile 2.0.")
522 (home-page "https://github.com/wingo/fibers")
523 (license license:lgpl3+)))
525 (define-public guile-syntax-highlight
527 (name "guile-syntax-highlight")
531 (uri (string-append "https://files.dthompson.us/"
532 "guile-syntax-highlight/"
533 "guile-syntax-highlight-"
537 "1p771kq15x83483m23bhah1sz6vkalg3drm7x279f4j1cxligkzi"))))
538 (build-system gnu-build-system)
540 `(("pkg-config" ,pkg-config)))
542 `(("guile" ,guile-2.2)))
543 (synopsis "General-purpose syntax highlighter for GNU Guile")
544 (description "Guile-syntax-highlight is a general-purpose syntax
545 highlighting library for GNU Guile. It can parse code written in various
546 programming languages into a simple s-expression that can be converted to
547 HTML (via SXML) or any other format for rendering.")
548 (home-page "http://dthompson.us/projects/guile-syntax-highlight.html")
549 (license license:lgpl3+)))
551 (define-public guile-sjson
557 (uri (string-append "https://dustycloud.org/misc/sjson-" version
561 "1mzmapln79vv10qxaggz9qwcdbag3jnrj19xx8bgkmxss8h03sv3"))))
562 (build-system gnu-build-system)
564 `(("autoconf" ,autoconf)
565 ("automake" ,automake)
566 ("pkg-config" ,pkg-config)))
568 `(("guile" ,guile-2.2)))
569 (home-page "https://gitlab.com/dustyweb/guile-sjson")
570 (synopsis "S-expression based json reader/writer for Guile")
571 (description "guile-sjson is a json reader/writer for Guile.
572 It has a nice, simple s-expression based syntax.")
573 (license license:lgpl3+)))
575 (define-public guile-squee
576 (let ((commit "a85902a92bf6f58a1d35fd974a01ade163deda8d")
580 (version (string-append "0-" revision "." (string-take commit 7)))
584 (url "https://notabug.org/cwebber/guile-squee.git")
586 (file-name (git-file-name name version))
589 "0p1lpsp4kx57j3ai1dkxilm4ziavzzx8wbbc42m3hpziq0a7qz5z"))))
590 (build-system guile-build-system)
593 (modify-phases %standard-phases
594 (add-after 'unpack 'patch
595 (lambda* (#:key inputs #:allow-other-keys)
596 (substitute* "squee.scm"
597 (("dynamic-link \"libpq\"")
600 (assoc-ref inputs "postgresql") "/lib/libpq.so"
604 `(("postgresql" ,postgresql)))
606 `(("guile" ,guile-2.2)))
607 (home-page "https://notabug.org/cwebber/guile-squee")
608 (synopsis "Connect to PostgreSQL using Guile")
610 "@code{squee} is a Guile library for connecting to PostgreSQL databases
611 using Guile's foreign function interface.")
612 (license license:lgpl3+))))
614 (define-public guile-colorized
616 (name "guile-colorized")
622 (url "https://gitlab.com/NalaGinrut/guile-colorized.git")
623 (commit (string-append "v" version))))
624 (file-name (git-file-name name version))
626 (base32 "10mv8c63159r3qvwwdvsgnsvdg7nc2ghak85zapwqpv4ywrqp9zc"))))
627 (build-system guile-build-system)
629 `(("guile" ,guile-2.2)))
630 (home-page "https://gitlab.com/NalaGinrut/guile-colorized")
631 (synopsis "Colorized REPL for Guile")
633 "Guile-colorized provides you with a colorized REPL for GNU Guile.")
634 (license license:gpl3+)))
636 (define-public guile-pfds
640 (home-page "https://github.com/ijp/pfds")
645 (commit (string-append "v" version))))
648 "19y33wg94pf0n98dkfqd1zbw93fgky4sawxsxl6s3vyqwl0yi5vh"))
649 (file-name (string-append name "-" version "-checkout"))))
650 (build-system guile-build-system)
652 '(#:source-directory "src"
653 #:phases (modify-phases %standard-phases
654 (add-after 'unpack 'move-files-around
656 ;; Move files under a pfds/ directory to reflect the
659 (for-each (lambda (file)
661 (string-append "src/pfds/"
677 ;; In Guile <= 2.2.4, there's no way to tell 'guild
678 ;; compile' to accept the ".sls" extension. So...
679 (for-each (lambda (file)
682 (string-drop-right file 4)
684 (find-files "." "\\.sls$"))
687 `(("guile" ,guile-2.2)))
688 (synopsis "Purely functional data structures for Guile")
690 "This package provides purely functional data structures written in R6RS
691 Scheme and compiled for Guile. It has been tested with Racket, Guile 2,
692 Vicare Scheme and IronScheme. Right now it contains:
700 @item priority search queues (PSQs)
704 @item hash array mapped tries (HAMTs).
706 (license license:bsd-3)))
708 (define-public guile-aa-tree
710 (name "guile-aa-tree")
714 (uri (string-append "mirror://savannah/guile-aa-tree/guile-aa-tree-"
718 "0044c105r3q9vpl17pv3phl1b79kjm1llhkakqgiasixyav01blh"))))
719 (build-system guile-build-system)
720 (native-inputs `(("guile" ,guile-2.2)))
721 ;; https://savannah.nongnu.org/projects/guile-aa-tree
722 (home-page "https://qlfiles.net/guile-aa-tree/")
723 (synopsis "AA tree data structure for Guile")
725 "This package provides an implementation of @dfn{AA trees}, a
726 self-balancing binary tree data structure, for Guile. It ensure @math{O(log
727 n)} worst case performance for core operations. The module provides
728 non-mutating insert, delete, and search operations, with support for
729 convenient nested tree operations.")
730 (license license:gpl3+)))
732 (define-public guile-simple-zmq
733 (let ((commit "68bedb6679716214fb9d3472da57544526f7a618")
736 (name "guile-simple-zmq")
737 (version (git-version "0.0.0" revision commit))
742 (url "https://github.com/jerry40/guile-simple-zmq")
746 "1ad3xg69qqviy1f6dnlw0ysmfdbmp1jq65rfqb8nfd8dsrq2syli"))
747 (file-name (git-file-name name version))))
748 (build-system guile-build-system)
750 `(#:source-directory "src"
751 #:phases (modify-phases %standard-phases
752 (add-after 'unpack 'set-libzmq-file-name
753 (lambda* (#:key inputs #:allow-other-keys)
754 (substitute* "src/simple-zmq.scm"
755 (("\\(dynamic-link \"libzmq\"\\)")
756 (format #f "(dynamic-link \"~a/lib/libzmq.so\")"
757 (assoc-ref inputs "zeromq"))))
760 `(("guile" ,guile-2.2)))
762 `(("zeromq" ,zeromq)))
763 (home-page "https://github.com/jerry40/guile-simple-zmq")
764 (synopsis "Guile wrapper over ZeroMQ library")
766 "This package provides a Guile programming interface to the ZeroMQ
768 (license license:gpl3+))))
770 (define-public jupyter-guile-kernel
771 (let ((commit "a7db9245a886e104138474df46c3e88b95cff629")
774 (name "jupyter-guile-kernel")
775 (version (git-version "0.0.0" revision commit))
780 (url "https://github.com/jerry40/guile-kernel")
782 (file-name (git-file-name name version))
785 "0aj04853bqm47ivfcmrgpb7w3wkis847kc7qrwsa5zcn9h38qh2f"))))
786 (build-system guile-build-system)
788 '(#:phases (modify-phases %standard-phases
789 (add-after 'unpack 'set-openssl-file-name
790 (lambda* (#:key inputs #:allow-other-keys)
791 ;; Record the absolute file name of the 'openssl'
793 (substitute* "src/hmac.scm"
795 (string-append (assoc-ref inputs "openssl")
799 ;; XXX: The code uses 'include' to include its own source
800 ;; files, and "-L src" isn't enough in this case.
801 (add-before 'build 'chdir
802 (lambda _ (chdir "src") #t))
803 (add-after 'build 'chdir-back
804 (lambda _ (chdir "..") #t))
806 (add-after 'install 'install-kernel
807 (lambda* (#:key inputs outputs #:allow-other-keys)
808 (let* ((out (assoc-ref outputs "out"))
809 (json (assoc-ref inputs "guile-json"))
810 (zmq (assoc-ref inputs "guile-simple-zmq"))
811 (deps (list json zmq))
813 out "/share/jupyter/kernels/guile"))
814 (effective (target-guile-effective-version)))
816 (install-file "src/kernel.json" dir)
818 ;; Fix hard-coded file name in the kernel.
819 (substitute* (string-append dir "/kernel.json")
820 (("/home/.*/guile-jupyter-kernel.scm")
821 (string-append out "/share/guile/site/"
822 (target-guile-effective-version)
823 "/guile-jupyter-kernel.scm"))
825 (string-append "\"" (assoc-ref inputs "guile")
828 ;; Add '-L' and '-C' flags so that the kernel
829 ;; finds its dependencies.
830 (let ((-L (map (lambda (item)
831 (string-append "\"" item
835 (-C (map (lambda (item)
836 (string-append "\"" item
841 (string-append "--no-auto-compile\""
842 (string-join -L ", \"-L\", "
844 (string-join -C ", \"-C\", "
849 `(("openssl" ,openssl)
851 ("guile-json" ,guile-json-1)
852 ("guile-simple-zmq" ,guile-simple-zmq)))
853 (synopsis "Guile kernel for the Jupyter Notebook")
855 "This package provides a Guile 2.x kernel for the Jupyter Notebook. It
856 allows users to interact with the Guile REPL through Jupyter.")
857 (home-page "https://github.com/jerry40/guile-kernel")
858 (license license:gpl3+))))
860 (define-public guile-sparql
862 (name "guile-sparql")
867 "https://github.com/roelj/guile-sparql/releases/download/"
868 version "/guile-sparql-" version ".tar.gz"))
870 (base32 "1drnvhsgl0gc5crmb16yyw1j98nkhwwcgssv9vgm36ng43nnzffd"))))
871 (build-system gnu-build-system)
872 (arguments `(#:tests? #f)) ; There are no tests.
874 `(("pkg-config" ,pkg-config)))
876 `(("guile" ,guile-2.2)))
877 (home-page "https://github.com/roelj/guile-sparql")
878 (synopsis "SPARQL module for Guile")
879 (description "This package provides the functionality to query a SPARQL
880 endpoint. Additionally, it provides an interface to write SPARQL queries
881 using S-expressions.")
882 (license license:gpl3+)))
884 (define-public guile-debbugs
886 (name "guile-debbugs")
890 (uri (string-append "mirror://gnu/guile-debbugs/guile-debbugs-"
894 "16l8910p57im6s3j93xhdaqvgfy6ms5n97177mrch3y961z5hy0i"))
895 (modules '((guix build utils)))
897 '(substitute* "Makefile.in"
898 (("^godir = (.*)/ccache" _ prefix)
899 (string-append "godir = " prefix "/site-ccache"))))))
900 (build-system gnu-build-system)
902 `(("guile" ,guile-2.2)
903 ("pkg-config" ,pkg-config)))
904 (home-page "https://savannah.gnu.org/projects/guile-debbugs/")
905 (synopsis "Guile interface to the Debbugs bug tracking service")
907 "This package provides a Guile library to communicate with a Debbugs bug
908 tracker's SOAP service, such as @url{https://bugs.gnu.org}.")
909 (license license:gpl3+)))
911 (define-public guile-email
919 "https://guile-email.systemreboot.net/releases/guile-email-"
923 "1ph3pb69hr3d8mj05fmbpf5rc67dlm8qnb35cc7cxz8ingvl7kv3"))))
924 (build-system gnu-build-system)
926 `(("pkg-config" ,pkg-config)
929 `(("guile" ,guile-2.2)))
931 '(#:make-flags '("GUILE_AUTO_COMPILE=0"))) ; to prevent guild warnings
932 (home-page "https://guile-email.systemreboot.net")
933 (synopsis "Guile email parser")
934 (description "guile-email is a collection of email utilities implemented
935 in pure guile. It supports parsing MIME (Multipurpose Internet Mail
936 Extensions) compliant email messages and reading emails from the mbox
938 (license license:agpl3+)))
940 (define-public guile-debbugs-next
941 (let ((commit "fb0ae064037a38a0d526e08b4ad24c52e205edb9")
943 (package (inherit guile-debbugs)
944 (name "guile-debbugs")
945 (version (git-version "0.0.3" revision commit))
949 (url "https://git.savannah.gnu.org/git/guile-debbugs.git")
951 (file-name (git-file-name name version))
954 "195sacx2xc1mzzfljj62nfpi8mxn0rc6dabxckizjksnhb5irfwy"))))
955 (build-system gnu-build-system)
957 `(("pkg-config" ,pkg-config)
958 ("autoconf" ,autoconf)
959 ("automake" ,automake)
960 ("texinfo" ,texinfo)))
962 `(("guile" ,guile-2.2)
963 ("guile-email" ,guile-email))))))
965 (define-public guile-newt
972 (url "https://gitlab.com/mothacehe/guile-newt")
974 (file-name (git-file-name name version))
977 "1w7qy4dw1f4bx622l6hw8mv49sf1ha8kch8j4nganyk8fj0wn695"))))
978 (build-system gnu-build-system)
981 '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
983 `(("guile" ,guile-2.2)
986 `(("autoconf" ,autoconf)
987 ("automake" ,automake)
988 ("pkg-config" ,pkg-config)))
989 (synopsis "Guile bindings to Newt")
991 "This package provides bindings for Newt, a programming library for
992 color text mode, widget based user interfaces. The bindings are written in pure
993 Scheme by using Guile’s foreign function interface.")
994 (home-page "https://gitlab.com/mothacehe/guile-newt")
995 (license license:gpl3+)))
997 (define-public guile-mastodon
999 (name "guile-mastodon")
1004 (url "https://framagit.org/prouby/guile-mastodon.git")
1005 (commit (string-append "v" version))))
1006 (file-name (git-file-name name version))
1009 "1vblf3d1bbwna3l09p2ap5y8ycvl549bz6whgk78imyfmn28ygry"))))
1010 (build-system gnu-build-system)
1012 `(("autoconf" ,autoconf)
1013 ("automake" ,automake)
1014 ("pkg-config" ,pkg-config)))
1016 `(("guile" ,guile-2.2)
1018 ("guile-json" ,guile-json-1)))
1019 (home-page "https://framagit.org/prouby/guile-mastodon")
1020 (synopsis "Guile Mastodon REST API module")
1021 (description "This package provides Guile modules to access the
1022 @uref{https://docs.joinmastodon.org/api/, REST API of Mastodon}, a federated
1023 microblogging service.")
1024 (license license:gpl3+)))
1026 (define-public guile-parted
1028 (name "guile-parted")
1033 (url "https://gitlab.com/mothacehe/guile-parted")
1035 (file-name (git-file-name name version))
1038 "01qmv6xnbbq3wih0dl9bscvca2d7zx7bjiqf35y6dkaqsp8nvdxf"))))
1039 (build-system gnu-build-system)
1042 '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
1044 `(("guile" ,guile-2.2)
1045 ("parted" ,parted)))
1047 `(("guile-bytestructures" ,guile-bytestructures)))
1049 `(("autoconf" ,autoconf)
1050 ("automake" ,automake)
1051 ("pkg-config" ,pkg-config)))
1052 (synopsis "Guile bindings to GNU Parted")
1054 "This package provides bindings for GNU Parted library, a C library
1055 allowing disk partition tables creation and manipulation. The bindings are
1056 written in pure Scheme by using Guile's foreign function interface.")
1057 (home-page "https://gitlab.com/mothacehe/guile-parted")
1058 (license license:gpl3+)))
1060 (define-public guile-xosd
1066 (uri (string-append "https://github.com/alezost/" name
1067 "/releases/download/v" version
1068 "/" name "-" version ".tar.gz"))
1071 "1ri5065c16kmgrf2pysn2ymxjqi5302lhpb07wkl1jr75ym8fn8p"))))
1072 (build-system gnu-build-system)
1074 `(("pkg-config" ,pkg-config)))
1076 `(("guile" ,guile-2.2)
1078 ("libxext" ,libxext)
1079 ("libxinerama" ,libxinerama)
1081 (home-page "https://github.com/alezost/guile-xosd")
1082 (synopsis "XOSD bindings for Guile")
1084 "Guile-XOSD provides Guile bindings for @code{libxosd},
1085 @uref{http://sourceforge.net/projects/libxosd/, the X On Screen Display
1087 (license license:gpl3+)))
1089 (define-public guile-dbi
1096 "http://download.gna.org/guile-dbi/guile-dbi-"
1100 "116njrprhgrsv1qm904sp3b02rq01fx639r433d657gyhw3x159n"))))
1101 (build-system gnu-build-system)
1104 (list (string-append
1105 "--with-guile-site-dir=" %output "/share/guile/site/2.2"))
1107 (list (string-append
1108 "LDFLAGS=-Wl,-rpath=" %output "/lib:"
1109 (assoc-ref %build-inputs "guile-dbd-sqlite3") "/lib" ":"
1110 (assoc-ref %build-inputs "guile-dbd-postgresql") "/lib"))
1112 (modify-phases %standard-phases
1113 (add-after 'install 'patch-extension-path
1114 (lambda* (#:key outputs #:allow-other-keys)
1115 (let* ((out (assoc-ref outputs "out"))
1116 (dbi.scm (string-append
1117 out "/share/guile/site/2.2/dbi/dbi.scm"))
1118 (ext (string-append out "/lib/libguile-dbi")))
1119 (substitute* dbi.scm (("libguile-dbi") ext))
1122 `(("guile-dbd-sqlite3" ,guile-dbd-sqlite3)
1123 ("guile-dbd-postgresql" ,guile-dbd-postgresql))) ; only shared library, no scheme files
1125 `(("guile" ,guile-2.2)))
1126 (synopsis "Guile database abstraction layer")
1127 (home-page "http://home.gna.org/guile-dbi/guile-dbi.html")
1129 "guile-dbi is a library for Guile that provides a convenient interface to
1130 SQL databases. Database programming with guile-dbi is generic in that the same
1131 programming interface is presented regardless of which database system is used.
1132 It currently supports MySQL, Postgres and SQLite3.")
1133 (license license:gpl2+)))
1135 (define guile-dbi-bootstrap
1138 (name "guile-dbi-bootstrap")
1141 (substitute-keyword-arguments (package-arguments guile-dbi)
1142 ((#:make-flags _) '(list))))))
1144 (define-public guile-dbd-sqlite3
1146 (name "guile-dbd-sqlite3")
1151 "http://download.gna.org/guile-dbi/guile-dbd-sqlite3-"
1155 "0rg71jchxd2y8x496s8zmfmikr5g8zxi8zv2ar3f7a23pph92iw2"))))
1156 (build-system gnu-build-system)
1158 `(("pkg-config" ,pkg-config)
1159 ("guile-dbi-bootstrap" ,guile-dbi-bootstrap))) ; only required for headers
1161 `(("sqlite" ,sqlite)
1162 ("zlib" ,(@ (gnu packages compression) zlib))))
1163 (synopsis "Guile DBI driver for SQLite")
1164 (home-page "https://github.com/jkalbhenn/guile-dbd-sqlite3")
1166 "guile-dbi is a library for Guile that provides a convenient interface to
1167 SQL databases. This package implements the interface for SQLite.")
1168 (license license:gpl2+)))
1170 (define-public guile-dbd-postgresql
1171 (let ((commit "e97589b6b018b206c901e4cc24db463407a4036b")
1174 (name "guile-dbd-postgresql")
1175 (version (string-append
1176 "2.1.6-" (number->string revision) "." (string-take commit 7)))
1181 (url "https://github.com/opencog/guile-dbi.git")
1183 (file-name (git-file-name name version))
1185 (base32 "0n1gv9a0kdys10a4qmnrwvg5sydwb03880asri4gqdchcj3fimni"))))
1186 (build-system gnu-build-system)
1189 (modify-phases %standard-phases
1190 (add-after 'unpack 'chdir
1192 ;; The upstream Git repository contains all the code, so change
1193 ;; to the relevant directory.
1194 (chdir "guile-dbd-postgresql")
1196 (add-after 'chdir 'patch-src/Makefile.am
1197 (lambda* (#:key inputs #:allow-other-keys)
1198 (substitute* "src/Makefile.am"
1200 (string-append (assoc-ref inputs "postgresql") "/include")))
1202 (add-after 'patch-src/Makefile.am 'patch-src
1204 (substitute* "src/guile-dbd-postgresql.c"
1205 (("postgresql/libpq-fe\\.h") "libpq-fe.h"))
1208 `(("pkg-config" ,pkg-config)
1209 ("automake" ,automake)
1210 ("autoconf" ,autoconf)
1212 ("libtool" ,libtool)
1213 ("guile-dbi-bootstrap" ,guile-dbi-bootstrap)))
1215 `(("postgresql" ,postgresql)
1217 (synopsis "Guile DBI driver for PostgreSQL")
1219 "https://github.com/opencog/guile-dbi/tree/master/guile-dbd-postgresql")
1221 "@code{guile-dbi} is a library for Guile that provides a convenient
1222 interface to SQL databases. This package implements the interface for
1224 (license license:gpl2+))))
1226 (define-public guile-config
1228 (name "guile-config")
1234 (url "https://gitlab.com/a-sassmannshausen/guile-config")
1235 (commit "ce12de3f438c6b2b59c43ee21bcd58251835fdf3")))
1236 (file-name "guile-config-0.3-checkout")
1237 (sha256 (base32 "02zbpin0r9m2vxmr7mv68v3xdn247dcck56kbzjn0gj4c2rhih85"))))
1238 (build-system gnu-build-system)
1240 `(("autoconf" ,autoconf)
1241 ("automake" ,automake)
1242 ("pkg-config" ,pkg-config)
1243 ("texinfo" ,texinfo)))
1244 (inputs `(("guile" ,guile-2.2)))
1246 "Guile application configuration parsing library.")
1248 "Guile Config is a library providing a declarative approach to
1249 application configuration specification. The library provides clean
1250 configuration declaration forms, and processors that take care of:
1251 configuration file creation; configuration file parsing; command-line
1252 parameter parsing using getopt-long; basic GNU command-line parameter
1253 generation (--help, --usage, --version); automatic output generation for the
1254 above command-line parameters.")
1256 "https://gitlab.com/a-sassmannshausen/guile-config")
1257 (license license:gpl3+)))
1259 (define-public guile-hall
1267 (url "https://gitlab.com/a-sassmannshausen/guile-hall")
1268 (commit (string-append "v" version))))
1269 (file-name (git-file-name name version))
1271 "1bkbqgj24xh5b65sw2m98iggpi67b72szx1dsiq3cpzlcxplmgaz"))))
1272 (build-system gnu-build-system)
1277 ,@%gnu-build-system-modules)
1281 (add-after 'install 'hall-wrap-binaries
1282 (lambda* (#:key inputs outputs #:allow-other-keys)
1283 (let* ((compiled-dir
1284 (lambda (out version)
1286 out "/lib/guile/" version "/site-ccache")))
1288 (lambda (out version)
1290 out "/share/guile/site"
1291 (if (string-null? version) "" "/") version)))
1293 (lambda (env modules path)
1294 (list env ":" 'prefix
1296 (map (lambda (input)
1298 (assoc-ref inputs input)
1300 ,''("guile-config"))))))
1301 (out (assoc-ref outputs "out"))
1302 (bin (string-append out "/bin/"))
1303 (site (uncompiled-dir out "")))
1304 (match (scandir site)
1309 (string-append bin file)
1312 (uncompiled-dir out version)
1313 (uncompiled-dir "" version))
1315 "GUILE_LOAD_COMPILED_PATH"
1316 (compiled-dir out version)
1317 (compiled-dir "" version))))
1321 `(("autoconf" ,autoconf)
1322 ("automake" ,automake)
1323 ("pkg-config" ,pkg-config)
1324 ("texinfo" ,texinfo)))
1325 (inputs `(("guile" ,guile-2.2)))
1327 `(("guile-config" ,guile-config)))
1328 (synopsis "Guile project tooling")
1330 "Hall is a command-line application and a set of Guile libraries that
1331 allow you to quickly create and publish Guile projects. It allows you to
1332 transparently support the GNU build system, manage a project hierarchy &
1333 provides tight coupling to Guix.")
1334 (home-page "https://gitlab.com/a-sassmannshausen/guile-hall")
1335 (license license:gpl3+)))
1337 (define-public guile-ics
1344 (url "https://github.com/artyom-poptsov/guile-ics")
1345 (commit (string-append "v" version))))
1346 (file-name (string-append name "-" version "-checkout"))
1349 "0qjjvadr7gibdq9jvwkmlkb4afsw9n2shfj9phpiadinxk3p4m2g"))))
1350 (build-system gnu-build-system)
1352 `(("autoconf" ,autoconf-wrapper)
1353 ("automake" ,automake)
1354 ("texinfo" ,texinfo)
1355 ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
1356 ("gettext" ,gettext-minimal)
1357 ("pkg-config" ,pkg-config)))
1358 (inputs `(("guile" ,guile-2.2) ("which" ,which)))
1359 (propagated-inputs `(("guile-lib" ,guile-lib)))
1360 (home-page "https://github.com/artyom-poptsov/guile-ics")
1361 (synopsis "Guile parser library for the iCalendar format")
1363 "Guile-ICS is an iCalendar (RFC5545) format parser library written in
1364 pure Scheme. The library can be used to read and write iCalendar data.
1366 The library is shipped with documentation in Info format and usage examples.")
1367 (license license:gpl3+)))
1369 (define-public guile-wisp
1375 (uri (string-append "https://bitbucket.org/ArneBab/"
1376 "wisp/downloads/wisp-"
1380 "03pz7pj9jyallynhflp5s7qax8dj1fs8la434wrfgz7g1kgjnvf6"))))
1381 (build-system gnu-build-system)
1383 `(#:modules ((guix build gnu-build-system)
1384 ((guix build emacs-build-system) #:prefix emacs:)
1386 (guix build emacs-utils)
1389 #:imported-modules (,@%gnu-build-system-modules
1390 (guix build emacs-build-system)
1391 (guix build emacs-utils))
1393 (modify-phases %standard-phases
1394 (add-before 'configure 'patch-/usr/bin/env
1396 (substitute* "Makefile.in"
1397 (("/usr/bin/env bash") (which "bash")))
1399 ;; auto compilation breaks, but if we set HOME to /tmp,
1401 (add-before 'check 'auto-compile-hacky-workaround
1402 (lambda _ (setenv "HOME" "/tmp") #t))
1403 (add-after 'install 'install-go-files
1404 (lambda* (#:key outputs inputs #:allow-other-keys)
1405 (let* ((out (assoc-ref outputs "out"))
1406 (effective (read-line
1407 (open-pipe* OPEN_READ
1409 "(display (effective-version))")))
1410 (module-dir (string-append out "/share/guile/site/"
1412 (object-dir (string-append out "/lib/guile/" effective
1414 (prefix (string-length module-dir)))
1415 ;; compile to the destination
1416 (for-each (lambda (file)
1417 (let* ((base (string-drop (string-drop-right file 4)
1419 (go (string-append object-dir base ".go")))
1420 (invoke "guild" "compile" "-L" module-dir
1422 (find-files module-dir "\\.scm$"))
1424 (add-after 'install 'install-emacs-files
1425 (assoc-ref emacs:%standard-phases 'install))
1426 (add-after 'install-emacs-files 'compile-emacs-files
1427 (assoc-ref emacs:%standard-phases 'build))
1428 (add-after 'compile-emacs-files 'make-autoloads
1429 (assoc-ref emacs:%standard-phases 'make-autoloads)))))
1430 (home-page "https://www.draketo.de/english/wisp")
1432 `(("guile" ,guile-2.2)))
1434 `(("emacs" ,emacs-minimal)
1436 ("pkg-config" ,pkg-config)))
1437 (synopsis "Whitespace to lisp syntax for Guile")
1438 (description "Wisp is a syntax for Guile which provides a Python-like
1439 whitespace-significant language. It may be easier on the eyes for some
1440 users and in some situations.")
1441 (license license:gpl3+)))
1443 (define-public guile-sly
1449 (uri (string-append "https://files.dthompson.us/sly/sly-"
1453 "1svzlbz2vripmyq2kjh0rig16bsrnbkwbsm558pjln9l65mcl4qq"))
1454 (modules '((guix build utils)))
1457 (substitute* "configure"
1458 (("_guile_required_version=\"2.0.11\"")
1459 "_guile_required_version=\"2\"")
1460 (("ac_subst_vars='")
1461 "ac_subst_vars='GUILE_EFFECTIVE_VERSION\n"))
1462 (substitute* (find-files "." "Makefile.in")
1466 "$(prefix)/share/guile/site/@GUILE_EFFECTIVE_VERSION@\n"))
1470 "$(prefix)/lib/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n")))
1472 (build-system gnu-build-system)
1475 (list (string-append "--with-libfreeimage-prefix="
1476 (assoc-ref %build-inputs "freeimage"))
1477 (string-append "--with-libgslcblas-prefix="
1478 (assoc-ref %build-inputs "gsl")))))
1480 `(("pkg-config" ,pkg-config)))
1482 `(("guile-sdl" ,guile-sdl)
1483 ("guile-opengl" ,guile-opengl)))
1485 `(("guile" ,guile-2.2)
1487 ("freeimage" ,freeimage)
1489 (synopsis "2D/3D game engine for GNU Guile")
1490 (description "Sly is a 2D/3D game engine written in Guile Scheme. Sly
1491 features a functional reactive programming interface and live coding
1493 (home-page "https://dthompson.us/projects/sly.html")
1494 (license license:gpl3+)))
1496 (define-public g-wrap
1502 (uri (string-append "mirror://savannah/g-wrap/g-wrap-"
1506 "0ak0bha37dfpj9kmyw1r8fj8nva639aw5xr66wr5gd3l1rqf5xhg"))))
1507 (build-system gnu-build-system)
1509 `(("pkg-config" ,pkg-config)))
1511 `(("guile" ,guile-2.2)
1512 ("guile-lib" ,guile-lib)))
1514 `(("libffi" ,libffi)))
1516 `(#:configure-flags '("--disable-Werror")
1518 (modify-phases %standard-phases
1519 (add-before 'configure 'pre-configure
1520 (lambda* (#:key outputs #:allow-other-keys)
1521 (let ((out (assoc-ref outputs "out")))
1522 (substitute* (find-files "." "^Makefile.in$")
1523 (("guilemoduledir =.*guile/site" all)
1524 (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
1526 (synopsis "Generate C bindings for Guile")
1527 (description "G-Wrap is a tool and Guile library for generating function
1528 wrappers for inter-language calls. It currently only supports generating Guile
1529 wrappers for C functions. Given a definition of the types and prototypes for
1530 a given C interface, G-Wrap will automatically generate the C code that
1531 provides access to that interface and its types from the Scheme level.")
1532 (home-page "https://www.nongnu.org/g-wrap/index.html")
1533 (license license:lgpl2.1+)))
1535 (define-public guile-miniadapton
1536 (let ((commit "1b5749422304567c96ac5367f2221dda9eff5880")
1539 (name "guile-miniadapton")
1540 (version (string-append "0-" revision "." (string-take commit 9)))
1544 (url "https://github.com/fisherdj/miniAdapton.git")
1546 (file-name (string-append name "-" version "-checkout"))
1549 "09q51zkw2fypad5xixskfzw2cjhjgs5cswdp3i7cpp651rb3zndh"))))
1550 (build-system guile-build-system)
1552 `(("guile" ,guile-2.2)))
1553 (home-page "https://github.com/fisherdj/miniAdapton")
1554 (synopsis "Minimal implementation of incremental computation in Guile
1556 (description "This package provides a complete Scheme implementation of
1557 miniAdapton, which implements the core functionality of the Adapton system for
1558 incremental computation (also known as self-adjusting computation). Like
1559 Adapton, miniAdapton allows programmers to safely combine mutation and
1560 memoization. miniAdapton is built on top of an even simpler system,
1561 microAdapton. Both miniAdapton and microAdapton are designed to be easy to
1562 understand, extend, and port to host languages other than Scheme.")
1563 (license license:expat))))
1565 (define-public guile-reader
1567 (name "guile-reader")
1571 (uri (string-append "mirror://savannah/guile-reader/guile-reader-"
1575 "0592s2s8ampqmqwilc4fvcild6rb9gy79di6vxv5kcdmv23abkgx"))))
1576 (build-system gnu-build-system)
1577 (native-inputs `(("pkgconfig" ,pkg-config)
1578 ("gperf" ,gperf-3.0)))
1579 (inputs `(("guile" ,guile-2.2)))
1580 (synopsis "Framework for building readers for GNU Guile")
1582 "Guile-Reader is a simple framework for building readers for GNU Guile.
1584 The idea is to make it easy to build procedures that extend Guile’s read
1585 procedure. Readers supporting various syntax variants can easily be written,
1586 possibly by re-using existing “token readers” of a standard Scheme
1587 readers. For example, it is used to implement Skribilo’s R5RS-derived
1590 Guile-Reader’s approach is similar to Common Lisp’s “read table”, but
1591 hopefully more powerful and flexible (for instance, one may instantiate as
1592 many readers as needed).")
1593 (home-page "https://www.nongnu.org/guile-reader/")
1594 (license license:gpl3+)))
1596 (define-public guile-ncurses
1598 (name "guile-ncurses")
1602 (uri (string-append "mirror://gnu/guile-ncurses/guile-ncurses-"
1606 "038xbffalhymg26lvmzgf7ljilxz2f2zmqg5r5nfzbipfbprwjhf"))))
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 guile-minikanren
1693 (name "guile-minikanren")
1694 (version "20150424.e844d85")
1698 (url "https://github.com/ijp/minikanren.git")
1699 (commit "e844d85512f8c055d3f96143ee506007389a25e3")))
1700 (file-name (string-append name "-" version "-checkout"))
1703 "0r50jlpzi940jlmxyy3ddqqwmj5r12gb4bcv0ssini9v8km13xz6"))))
1704 (build-system guile-build-system)
1706 `(("guile" ,guile-2.2)))
1707 (home-page "https://github.com/ijp/minikanren")
1708 (synopsis "MiniKanren declarative logic system, packaged for Guile")
1710 "MiniKanren is a relational programming extension to the Scheme
1711 programming Language, written as a smaller version of Kanren suitable for
1712 pedagogical purposes. It is featured in the book, The Reasoned Schemer,
1713 written by Dan Friedman, William Byrd, and Oleg Kiselyov.
1715 This is Ian Price's r6rs packaged version of miniKanren, which deviates
1716 slightly from miniKanren mainline.
1718 See http://minikanren.org/ for more on miniKanren generally.")
1719 (license license:expat)))
1721 (define-public guile2.0-minikanren
1723 (inherit guile-minikanren)
1724 (name "guile2.0-minikanren")
1725 (native-inputs `(("guile" ,guile-2.0)))))
1727 (define-public guile3.0-minikanren
1729 (inherit guile-minikanren)
1730 (name "guile3.0-minikanren")
1731 (native-inputs `(("guile" ,guile-next)))))
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 guile3.0-irregex
1781 (inherit guile-irregex)
1782 (name "guile3.0-irregex")
1783 (native-inputs `(("guile" ,guile-next)))))
1785 (define-public haunt
1791 (uri (string-append "https://files.dthompson.us/haunt/haunt-"
1795 "056z4znikk83nr5mr0x2ac3iinqbywa2bvb37mhr566a1q50isfc"))))
1796 (build-system gnu-build-system)
1798 `(#:modules ((ice-9 match) (ice-9 ftw)
1799 ,@%gnu-build-system-modules)
1800 #:tests? #f ; test suite is non-deterministic :(
1801 #:phases (modify-phases %standard-phases
1802 (add-after 'install 'wrap-haunt
1803 (lambda* (#:key inputs outputs #:allow-other-keys)
1804 ;; Wrap the 'haunt' command to refer to the right
1806 (let* ((out (assoc-ref outputs "out"))
1807 (bin (string-append out "/bin"))
1808 (site (string-append
1809 out "/share/guile/site"))
1810 (deps (list (assoc-ref inputs "guile-reader")
1811 (assoc-ref inputs "guile-commonmark"))))
1812 (match (scandir site)
1814 (let ((modules (string-append site "/" version))
1815 (compiled-modules (string-append
1816 out "/lib/guile/" version
1818 (wrap-program (string-append bin "/haunt")
1819 `("GUILE_LOAD_PATH" ":" prefix
1821 ,@(map (lambda (dep)
1823 "/share/guile/site/"
1826 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
1828 ,@(map (lambda (dep)
1829 (string-append dep "/lib/guile/"
1835 `(("pkg-config" ,pkg-config)
1836 ("texinfo" ,texinfo)))
1838 `(("guile" ,guile-2.2)))
1840 `(("guile-reader" ,guile-reader)
1841 ("guile-commonmark" ,guile-commonmark)))
1842 (synopsis "Functional static site generator")
1843 (description "Haunt is a static site generator written in Guile
1844 Scheme. Haunt features a functional build system and an extensible
1845 interface for reading articles in any format.")
1846 (home-page "http://haunt.dthompson.us")
1847 (license license:gpl3+)))
1849 (define-public guile2.0-haunt
1852 (name "guile2.0-haunt")
1853 (inputs `(("guile" ,guile-2.0)))))
1855 (define-public guile-redis
1857 (name "guile-redis")
1859 (home-page "https://github.com/aconchillo/guile-redis")
1865 (file-name (git-file-name name version))
1868 "14izs8daxh7pb7vwpxi5g427qa31137jkaxrb1cy5rpjkwchy723"))))
1869 (build-system gnu-build-system)
1871 `(("autoconf" ,autoconf)
1872 ("automake" ,automake)
1873 ("pkg-config" ,pkg-config)
1874 ("guile" ,guile-2.2)))
1875 (synopsis "Redis client library for Guile")
1876 (description "Guile-redis provides a Scheme interface to the Redis
1877 key-value cache and store.")
1878 (license license:lgpl3+)))
1880 (define-public guile2.0-redis
1882 (inherit guile-redis)
1883 (name "guile2.0-redis")
1884 (native-inputs `(("guile" ,guile-2.0)
1885 ,@(alist-delete "guile"
1886 (package-native-inputs 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 mcron
1927 (uri (string-append "mirror://gnu/mcron/mcron-"
1931 "00kv7fgllzjpis0g1m9csycp4f6l11774m09dqy255cvmim2g743"))))
1932 (build-system gnu-build-system)
1934 '(#:phases (modify-phases %standard-phases
1935 (add-after 'unpack 'fix-finding-guile
1937 (substitute* "configure"
1938 (("2\\.0") "2.2 2.0"))
1940 (add-before 'check 'adjust-tests
1942 (substitute* "tests/job-specifier.scm"
1943 ;; (getpw) fails with "entry not found" in the build
1944 ;; environment, so pass an argument.
1946 "(getpwnam (getuid))")
1947 ;; The build environment lacks an entry for root in
1950 "(getpwnam \"nobody\")")
1952 ;; FIXME: Skip the 4 faulty tests (see above).
1953 (("\\(test-equal \"next-year\"" all)
1954 (string-append "(test-skip 4)\n" all)))
1956 (native-inputs `(("pkg-config" ,pkg-config)
1957 ("tzdata" ,tzdata-for-tests)))
1958 (inputs `(("guile" ,guile-2.2)))
1959 (home-page "https://www.gnu.org/software/mcron/")
1960 (synopsis "Run jobs at scheduled times")
1962 "GNU Mcron is a complete replacement for Vixie cron. It is used to run
1963 tasks on a schedule, such as every hour or every Monday. Mcron is written in
1964 Guile, so its configuration can be written in Scheme; the original cron
1965 format is also supported.")
1966 (license license:gpl3+)))
1968 (define-public mcron2
1969 ;; This was mthl's mcron development branch, and it became mcron 1.1.
1970 (deprecated-package "mcron2" mcron))
1972 (define-public guile-picture-language
1973 (let ((commit "91d10c96708d732145006dd2802acc4de08b632e")
1976 (name "guile-picture-language")
1977 (version (git-version "0.0.1" revision commit))
1981 (url "https://git.elephly.net/software/guile-picture-language.git")
1983 (file-name (git-file-name name version))
1986 "1ydvw9dvssdvlvhh1dr8inyzy2x6m41qgp8hsivca1xysr4gc23a"))))
1987 (build-system gnu-build-system)
1989 `(("guile" ,guile-2.2)))
1991 `(("autoconf" ,autoconf)
1992 ("automake" ,automake)
1993 ("imagemagick" ,imagemagick)
1994 ("pkg-config" ,pkg-config)
1995 ("texinfo" ,texinfo)))
1996 (home-page "https://git.elephly.net/software/guile-picture-language.git")
1997 (synopsis "Picture language for Guile")
1999 "This package provides a simple SVG-based picture language for Guile.
2000 The picture values can directly be displayed in Geiser.")
2001 (license license:lgpl3+))))
2003 (define-public guile-studio
2004 (let ((commit "98fbbbd08de396cd8a0e45f2a4badf1c733a5772")
2007 (name "guile-studio")
2008 (version (git-version "0.0.1" revision commit))
2012 (url "https://git.elephly.net/software/guile-studio.git")
2014 (file-name (git-file-name name version))
2017 "0rxl5gv2mavycwkl33lcwyb3z71j2f4zyzk60k7vl3hzszpr08iq"))))
2018 (build-system gnu-build-system)
2020 `(#:tests? #f ; there are none
2022 (list (string-append "ICONS_DIR="
2023 (assoc-ref %build-inputs "adwaita-icon-theme")
2024 "/share/icons/Adwaita/")
2025 (string-append "PICT_DIR="
2026 (assoc-ref %build-inputs "guile-picture-language"))
2027 (string-append "EMACS_DIR="
2028 (assoc-ref %build-inputs "emacs"))
2029 (string-append "GUILE_DIR="
2030 (assoc-ref %build-inputs "guile"))
2031 (string-join (cons "INPUTS=" (map cdr %build-inputs)))
2032 (string-append "PREFIX=" (assoc-ref %outputs "out")))
2034 (modify-phases %standard-phases
2036 (delete 'install))))
2038 `(("guile" ,guile-2.2)
2039 ("guile-picture-language" ,guile-picture-language)
2041 ("emacs-geiser" ,emacs-geiser)
2042 ("emacs-company" ,emacs-company)
2043 ("emacs-flycheck" ,emacs-flycheck)
2044 ("emacs-smart-mode-line" ,emacs-smart-mode-line)
2045 ("emacs-paren-face" ,emacs-paren-face)
2046 ("adwaita-icon-theme" ,adwaita-icon-theme)))
2048 `(("texinfo" ,texinfo)))
2049 (home-page "https://gnu.org/software/guile")
2050 (synopsis "IDE for Guile")
2052 "This is Emacs with a few settings that make working with Guile easier
2053 for people new to Emacs. Features include: CUA mode, Geiser, tool bar icons
2054 to evaluate Guile buffers, support for Guile's very own picture language, code
2055 completion, a simple mode line, etc.")
2056 (license license:gpl3+))))
2058 (define-public guile-stis-parser
2059 (let ((commit "6e85d37ffc333b722f4413a6c648263701eb75bd")
2062 (name "guile-stis-parser")
2063 (version (git-version "0" revision commit))
2067 (url "https://gitlab.com/tampe/stis-parser")
2069 (file-name (git-file-name name version))
2072 "0v4hvq7rlpbra1ni73lf8k6sdmjlflr50yi3p1f24g85h77pc7c0"))))
2073 (build-system gnu-build-system)
2075 `(#:parallel-build? #f ; not supported
2077 (modify-phases %standard-phases
2078 (add-after 'unpack 'chdir
2079 (lambda _ (chdir "modules") #t))
2080 (add-after 'chdir 'use-canonical-directory-for-go-files
2082 (substitute* "Makefile.am"
2083 (("/ccache") "/site-ccache"))
2085 (add-after 'chdir 'delete-broken-symlink
2087 (delete-file "parser/stis-parser/lang/.#calc.scm")
2090 `(("guile" ,guile-2.2)))
2092 `(("autoconf" ,autoconf)
2093 ("automake" ,automake)
2094 ("pkg-config" ,pkg-config)))
2095 (home-page "https://gitlab.com/tampe/stis-parser")
2096 (synopsis "Parser combinator framework")
2098 "This package provides a functional parser combinator library that
2099 supports backtracking and a small logical framework. The idea is to build up
2100 chunks that are memoized and there is no clear scanner/parser separation,
2101 chunks can be expressions as well as simple tokens.")
2102 (license license:lgpl2.0+))))
2104 (define-public guile-persist
2105 (let ((commit "b14927b0368af51c024560aee5f55724aee35233")
2108 (name "guile-persist")
2109 (version (git-version "0" revision commit))
2113 (url "https://gitlab.com/tampe/guile-persist")
2115 (file-name (git-file-name name version))
2118 "0z5nf377wh8yj6n3sx2ddn4bdx1qrqnw899dlqjhg0q69qzil522"))
2119 (modules '((guix build utils)))
2122 ;; Install .go files in the right place.
2123 (substitute* "Makefile.am"
2124 (("/ccache") "/site-ccache"))
2126 (build-system gnu-build-system)
2129 (modify-phases %standard-phases
2130 (add-after 'unpack 'patch-prefix
2131 (lambda* (#:key inputs outputs #:allow-other-keys)
2132 (substitute* "src/Makefile.am"
2133 (("/usr/local/lib/guile")
2134 (string-append (assoc-ref outputs "out") "/lib/guile"))
2135 (("/usr/local/include/guile")
2136 (string-append (assoc-ref inputs "guile") "/include/guile"))
2137 (("-L/usr/local/lib")
2138 (string-append "-L" (assoc-ref inputs "guile") "/lib"))
2139 ;; Use canonical directory for go files.
2140 (("/ccache") "/site-ccache"))
2142 (add-after 'unpack 'patch-library-reference
2143 (lambda* (#:key outputs #:allow-other-keys)
2144 (let ((out (assoc-ref outputs "out")))
2145 (substitute* "persist/persistance.scm"
2146 (("\"libguile-persist\"")
2147 (format #f "\"~a/lib/guile/2.2/extensions/libguile-persist\"" out)))
2150 `(("guile" ,guile-2.2)))
2152 `(("autoconf" ,autoconf)
2153 ("automake" ,automake)
2154 ("libtool" ,libtool)
2155 ("pkg-config" ,pkg-config)))
2156 (home-page "https://gitlab.com/tampe/guile-persist")
2157 (synopsis "Persistence programming framework for Guile")
2159 "This is a serialization library for serializing objects like classes
2160 and objects, closures and structs. This currently does not support
2161 serializing continuations or delimited continuations.")
2162 (license license:lgpl2.0+))))
2164 (define-public python-on-guile
2165 (let ((commit "00a51a23247f1edc4ae8eda72b30df5cd7d0015f")
2168 (name "python-on-guile")
2169 (version (git-version "0.1.0" revision commit))
2173 (url "https://git.elephly.net/software/python-on-guile.git")
2175 (file-name (git-file-name name version))
2178 "03rpnqr08rqr3gay128g564rwk8w4jbj28ss6b46z1d4vjs4nk68"))))
2179 (build-system gnu-build-system)
2181 `(#:parallel-build? #f ; not supported
2182 #:make-flags '("GUILE_AUTO_COMPILE=0") ;to prevent guild warnings
2185 (modify-phases %standard-phases
2186 (add-after 'unpack 'chdir
2187 (lambda _ (chdir "modules") #t))
2188 (add-after 'install 'wrap
2189 (lambda* (#:key outputs #:allow-other-keys)
2190 ;; Wrap the 'python' executable so it can find its
2192 (let ((out (assoc-ref outputs "out")))
2193 (wrap-program (string-append out "/bin/python")
2194 `("GUILE_LOAD_PATH" ":" prefix
2195 (,(getenv "GUILE_LOAD_PATH")))
2196 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
2197 (,(getenv "GUILE_LOAD_COMPILED_PATH"))))
2200 `(("guile" ,guile-2.2)))
2202 `(("guile-persist" ,guile-persist)
2203 ("guile-readline" ,guile-readline)
2204 ("guile-stis-parser" ,guile-stis-parser)))
2206 `(("autoconf" ,autoconf)
2207 ("automake" ,automake)
2208 ("libtool" ,libtool)
2209 ("pkg-config" ,pkg-config)))
2210 (home-page "https://gitlab.com/python-on-guile/python-on-guile/")
2211 (synopsis "Python implementation in Guile")
2213 "This package allows you to compile a Guile Python file to any target
2214 from @code{tree-il}.")
2215 (license license:lgpl2.0+))))
2217 (define-public guile-file-names
2219 (name "guile-file-names")
2223 (uri (string-append "http://brandon.invergo.net/software/download/"
2224 "guile-file-names/guile-file-names-"
2228 "1kwx5hanl40960w2nhyga7ry4l6c3c57zdrihk4yajj87vn3pmi8"))))
2229 (build-system gnu-build-system)
2232 (modify-phases %standard-phases
2233 (add-after 'unpack 'fix-target-directory
2235 (substitute* "src/Makefile.in"
2236 (("guilemoddir = \\$\\(GUILE_SITE\\)")
2237 "guilemoddir = $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
2240 `(("guile" ,guile-2.2)))
2242 `(("pkg-config" ,pkg-config)))
2243 (home-page "https://gitlab.com/brandoninvergo/guile-file-names")
2244 (synopsis "Manipulate file names")
2246 "The @code{(file-names)} module provides tools for manipulating file
2247 names. The module was built on the idea that doing anything more than a
2248 non-trivial modification of a file name string is a pain (making sure all
2249 slashes are present and accounted for, resolving @code{.} and @code{..}, etc).
2250 Inevitably, you have to break the string up into chunks and operate on that
2251 list of components. This module takes care of that for you.")
2252 (license license:lgpl3+)))
2254 (define-public guile-gi
2260 (uri (string-append "http://lonelycactus.com/tarball/guile_gi-"
2264 "1n4pbrmbrjkrx826a4m31ag5c35rgkj1sirqh4qalk7gg67cfb41"))))
2265 (build-system gnu-build-system)
2267 `(#:configure-flags '("--with-gnu-filesystem-hierarchy")))
2269 `(("gettext" ,gnu-gettext)
2270 ("glib:bin" ,glib "bin") ; for glib-compile-resources
2271 ("libtool" ,libtool)
2272 ("pkg-config" ,pkg-config)))
2275 ("gobject-introspection" ,gobject-introspection)
2276 ("gssettings-desktop-schemas" ,gsettings-desktop-schemas)
2278 ("guile-lib" ,guile-lib)
2279 ("webkitgtk" ,webkitgtk)))
2280 (inputs `(("guile" ,guile-2.2)))
2281 (home-page "https://github.com/spk121/guile-gi")
2282 (synopsis "GObject bindings for Guile")
2284 "Guile-GI is a library for Guile that allows using GObject-based
2285 libraries, such as GTK+3. Its README comes with the disclaimer: This is
2287 (license license:gpl3+)))
2289 (define-public guile-srfi-159
2290 (let ((commit "1bd98abda2ae4ef8f36761a167903e55c6bda7bb")
2293 (name "guile-srfi-159")
2294 (version (git-version "0" revision commit))
2295 (home-page "https://bitbucket.org/bjoli/guile-srfi-159")
2298 (uri (hg-reference (changeset commit)
2302 "1zw6cmcy7xdbfiz3nz9arqnn7l2daidaps6ixkcrc9b6k51fdv3p"))
2303 (file-name (git-file-name name version))))
2304 (build-system guile-build-system)
2306 ;; The *-impl.scm files are actually included from module files; they
2307 ;; should not be compiled separately, but they must be installed.
2308 '(#:not-compiled-file-regexp "-impl\\.scm$"))
2310 `(("guile" ,guile-2.2)))
2311 (synopsis "Formatting combinators for Guile")
2313 "The @code{(srfi-159)} module and its sub-modules implement the
2314 formatting combinators specified by
2315 @uref{https://srfi.schemers.org/srfi-159/srfi-159.html, SRFI-159}. These are
2316 more expressive and flexible than the traditional @code{format} procedure.")
2317 (license license:bsd-3))))
2319 (define-public emacsy
2326 "https://download.savannah.nongnu.org/releases/"
2327 name "/" name "-" version ".tar.gz"))
2330 "1cpb85dl1nibd34c2x2h7vfmjpkgh353p5b1w20v6cs6gmvgg4np"))))
2331 (build-system gnu-build-system)
2333 `(("autoconf" ,autoconf)
2334 ("automake" ,automake)
2336 ("guile" ,guile-2.2)
2337 ("gettext" ,gnu-gettext)
2338 ("libtool" ,libtool)
2340 ("pkg-config" ,pkg-config)
2341 ("texinfo" ,texinfo)
2342 ("texlive" ,(texlive-union (list texlive-generic-epsf)))))
2344 `(("dbus-glib" ,dbus-glib)
2345 ("guile" ,guile-2.2)
2346 ("guile-lib" ,guile-lib)
2347 ("guile-readline" ,guile-readline)
2348 ("freeglut" ,freeglut)
2349 ("webkitgtk" ,webkitgtk)))
2351 `(("glib-networking" ,glib-networking)
2352 ("gssettings-desktop-schemas" ,gsettings-desktop-schemas)))
2354 `(#:modules ((guix build gnu-build-system)
2362 (modify-phases %standard-phases
2363 (add-before 'configure 'setenv
2365 (setenv "GUILE_AUTO_COMPILE" "0")
2367 (add-after 'install 'wrap-binaries
2368 (lambda* (#:key inputs outputs #:allow-other-keys)
2369 (let* ((out (assoc-ref outputs "out"))
2370 (effective (read-line
2371 (open-pipe* OPEN_READ
2373 "(display (effective-version))")))
2374 (deps (map (cut assoc-ref inputs <>)
2375 '("guile-lib" "guile-readline")))
2376 (scm-path (map (cut string-append <> "/share/guile/site/"
2377 effective) `(,out ,@deps)))
2378 (go-path (map (cut string-append <> "/lib/guile/" effective
2379 "/site-ccache/") `(,out ,@deps)))
2380 (examples (filter (cut string-match "emacsy" <>)
2381 (scandir (string-append out "/bin/"))))
2382 (progs (map (cut string-append out "/bin/" <>)
2384 (map (cut wrap-program <>
2385 `("GUILE_LOAD_PATH" ":" prefix ,scm-path)
2386 `("GUILE_LOAD_COMPILED_PATH" ":" prefix ,go-path))
2389 (home-page "https://savannah.nongnu.org/projects/emacsy")
2390 (synopsis "Embeddable GNU Emacs-like library using Guile")
2392 "Emacsy is an embeddable Emacs-like library that uses GNU Guile
2393 as extension language. Emacsy can give a C program an Emacsy feel with
2394 keymaps, minibuffer, recordable macros, history, tab completion, major
2395 and minor modes, etc., and can also be used as a pure Guile library. It
2396 comes with a simple counter example using FreeGLUT and browser examples
2397 in C using Gtk+-3 and WebKitGtk.")
2398 (license license:gpl3+)))
2400 (define-public emacsy-minimal
2401 (let ((commit "f3bf0dbd803d7805b6ae8303253507ad13922293"))
2404 (name "emacsy-minimal")
2405 (version (git-version "v0.4.1" "19" commit))
2409 (url "https://git.savannah.gnu.org/git/emacsy.git")
2411 (file-name (git-file-name name version))
2414 "0ivy28km1p7nlrf63xx3hvrpxf5ld5amk1wcan3k7sqv1kq9mqdb"))))
2415 (build-system gnu-build-system)
2417 `(("guile" ,guile-2.2)
2418 ("guile-lib" ,guile-lib)
2419 ("guile-readline" ,guile-readline)))
2420 (propagated-inputs '())
2422 `(#:configure-flags '("--without-examples")
2424 (modify-phases %standard-phases
2425 (add-before 'configure 'setenv
2427 (setenv "GUILE_AUTO_COMPILE" "0")
2430 (define-public guile-jpeg
2431 (let ((commit "6a1673578b297c2c1b28e44a76bd5c49e76a5046")
2435 (version (git-version "0.0" revision commit))
2436 (home-page "https://gitlab.com/wingo/guile-jpeg")
2439 (uri (git-reference (url home-page)
2443 "05z9m408w3h6aqb5k3r3qa7khir0k10rxwvsrzhkcq1hr5vbmr4m"))
2444 (file-name (git-file-name name version))
2445 (modules '((guix build utils)))
2448 ;; Install .go files in the right place.
2449 (substitute* "Makefile.am"
2450 (("/ccache") "/site-ccache"))
2452 (build-system gnu-build-system)
2454 `(("autoconf" ,autoconf)
2455 ("automake" ,automake)
2456 ("pkg-config" ,pkg-config)
2457 ("guile" ,guile-2.2)))
2458 (synopsis "JPEG file parsing library for Guile")
2460 "Guile-JPEG is a Scheme library to parse JPEG image files and to
2461 perform geometrical transforms on JPEG images.")
2462 (license license:gpl3+))))
2464 (define-public nomad
2467 (version "0.1.1-alpha")
2471 (url "https://git.savannah.gnu.org/git/nomad.git")
2473 (file-name (git-file-name name version))
2476 "0abz07hl5dh802ciy71xzkvkhyryypq1i94wna40a2wndbd73f7z"))))
2477 (build-system gnu-build-system)
2479 `(("autoconf" ,autoconf)
2480 ("automake" ,automake)
2482 ("pkg-config" ,pkg-config)
2483 ("libtool" ,libtool)
2484 ("guile" ,guile-2.2)
2485 ("glib:bin" ,glib "bin")))
2487 `(("guile" ,guile-2.2)
2488 ("guile-lib" ,guile-lib)
2489 ("guile-gcrypt" ,guile-gcrypt)
2490 ("guile-readline" ,guile-readline)
2493 ("emacsy" ,emacsy-minimal)
2495 ("dbus-glib" ,dbus-glib)
2497 ("gtksourceview" ,gtksourceview)
2498 ("webkitgtk" ,webkitgtk)
2499 ("xorg-server" ,xorg-server)))
2502 ("glib-networking" ,glib-networking)
2503 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
2505 `(#:modules ((guix build gnu-build-system)
2511 (modify-phases %standard-phases
2512 (add-before 'check 'start-xorg-server
2513 (lambda* (#:key inputs #:allow-other-keys)
2514 ;; The test suite requires a running X server.
2515 (system (format #f "~a/bin/Xvfb :1 &"
2516 (assoc-ref inputs "xorg-server")))
2517 (setenv "DISPLAY" ":1")
2519 (add-after 'install 'wrap-binaries
2520 (lambda* (#:key inputs outputs #:allow-other-keys)
2521 (let* ((out (assoc-ref outputs "out"))
2522 (gio-deps (map (cut assoc-ref inputs <>) '("glib-networking"
2524 (gio-mod-path (map (cut string-append <> "/lib/gio/modules")
2526 (effective (read-line (open-pipe*
2529 "(display (effective-version))")))
2530 (deps (map (cut assoc-ref inputs <>)
2531 '("emacsy" "guile-lib" "guile-readline"
2533 (scm-path (map (cut string-append <>
2534 "/share/guile/site/" effective)
2536 (go-path (map (cut string-append <>
2537 "/lib/guile/" effective "/site-ccache")
2539 (progs (map (cut string-append out "/bin/" <>)
2541 (map (cut wrap-program <>
2542 `("GIO_EXTRA_MODULES" ":" prefix ,gio-mod-path)
2543 `("GUILE_LOAD_PATH" ":" prefix ,scm-path)
2544 `("GUILE_LOAD_COMPILED_PATH" ":"
2548 (home-page "https://savannah.nongnu.org/projects/nomad/")
2549 (synopsis "Extensible Web Browser in Guile Scheme")
2550 (description "Nomad is an Emacs-like Web Browser built using Webkitgtk and
2551 Emacsy. It has a small C layer and most browser features are fully
2552 programmable in Guile. It has hooks, keymaps, and self documentation
2554 (license license:gpl3+)))
2556 (define-public guile-cv
2562 (uri (string-append "mirror://gnu/guile-cv/guile-cv-"
2566 "0qdf0s2h1xj5lbhnc1pfw69i3zg08pqy2y6869b92ydfis8r82j9"))))
2567 (build-system gnu-build-system)
2570 (modify-phases %standard-phases
2571 (add-after 'unpack 'prepare-build
2572 (lambda* (#:key inputs outputs #:allow-other-keys)
2573 (substitute* "configure"
2574 (("SITEDIR=\"\\$datadir/guile-cv\"")
2575 "SITEDIR=\"$datadir/guile/site/$GUILE_EFFECTIVE_VERSION\"")
2576 (("SITECCACHEDIR=\"\\$libdir/guile-cv/")
2577 "SITECCACHEDIR=\"$libdir/"))
2578 (substitute* "cv/init.scm"
2579 (("\\(dynamic-link \"libvigra_c\"\\)")
2580 (string-append "(dynamic-link \""
2581 (assoc-ref inputs "vigra-c")
2582 "/lib/libvigra_c\")"))
2583 (("\\(dynamic-link \"libguile-cv\"\\)")
2586 (format #f "~alibguile-cv"
2587 (if (getenv "GUILE_CV_UNINSTALLED")
2589 ,(format #f "~a/lib/"
2590 (assoc-ref outputs "out"))))))))
2591 (setenv "GUILE_CV_UNINSTALLED" "1")
2592 ;; Only needed to satisfy the configure script.
2593 (setenv "LD_LIBRARY_PATH"
2594 (string-append (assoc-ref inputs "vigra-c") "/lib"))
2598 ("vigra-c" ,vigra-c)
2599 ("guile" ,guile-2.2)))
2601 `(("texlive" ,(texlive-union (list texlive-booktabs
2606 texlive-fonts-iwona)))
2607 ("pkg-config" ,pkg-config)))
2609 `(("guile-lib" ,guile-lib)))
2610 (home-page "https://www.gnu.org/software/guile-cv/")
2611 (synopsis "Computer vision library for Guile")
2612 (description "Guile-CV is a Computer Vision functional programming library
2613 for the Guile Scheme language. It is based on Vigra (Vision with Generic
2614 Algorithms), a C++ image processing and analysis library. Guile-CV contains
2615 bindings to Vigra C (a C wrapper to most of the Vigra functionality) and is
2616 enriched with pure Guile Scheme algorithms, all accessible through a nice,
2617 clean and easy to use high level API.")
2618 (license license:gpl3+)))
2620 (define-public guile-ffi-fftw
2621 (let ((commit "95d7ffb55860f3163c5283ecec1ef43bc3d174dd")
2624 (name "guile-ffi-fftw")
2625 (version (git-version "0" revision commit))
2629 (url "https://github.com/lloda/guile-ffi-fftw.git")
2631 (file-name (git-file-name "guile-ffi-fftw" version))
2634 "0v9vk9cr4x9gn36lihi9gfkxyiqak0i598v5li6qw8bg95004p49"))))
2635 (build-system guile-build-system)
2637 `(#:source-directory "mod"
2639 (modify-phases %standard-phases
2640 (add-after 'unpack 'prepare-build
2641 (lambda* (#:key inputs #:allow-other-keys)
2642 (substitute* "mod/ffi/fftw.scm"
2643 (("\\(getenv \"GUILE_FFI_FFTW_LIBFFTW3_PATH\"\\)")
2644 (format #f "\"~a/lib\"" (assoc-ref inputs "fftw"))))
2646 (add-after 'build 'check
2648 (invoke "guile" "-L" "mod"
2649 "-s" "test/test-ffi-fftw.scm"))))))
2652 ("guile" ,guile-2.2)))
2653 (home-page "https://github.com/lloda/guile-ffi-fftw/")
2654 (synopsis "Access FFTW through Guile's FFI")
2655 (description "This is a minimal set of Guile FFI bindings for the FFTW
2656 library's ‘guru interface’. It provides two functions: @code{fftw-dft! rank
2657 sign in out} and @code{fftw-dft rank sign in}. These bindings being minimal,
2658 there is no support for computing & reusing plans, or split r/i transforms, or
2659 anything other than straight complex DFTs.")
2660 ;; TODO: This might actually be LGPLv3+
2661 ;; See https://github.com/lloda/guile-ffi-fftw/issues/1
2662 (license license:gpl3+))))