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, 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 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>
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 glib)
57 #:use-module (gnu packages gnome)
58 #:use-module (gnu packages gperf)
59 #:use-module (gnu packages gtk)
60 #:use-module (gnu packages guile)
61 #:use-module (gnu packages hurd)
62 #:use-module (gnu packages image)
63 #:use-module (gnu packages imagemagick)
64 #:use-module (gnu packages libffi)
65 #:use-module (gnu packages libunistring)
66 #:use-module (gnu packages linux)
67 #:use-module (gnu packages man)
68 #:use-module (gnu packages maths)
69 #:use-module (gnu packages multiprecision)
70 #:use-module (gnu packages ncurses)
71 #:use-module (gnu packages networking)
72 #:use-module (gnu packages noweb)
73 #:use-module (gnu packages perl)
74 #:use-module (gnu packages pkg-config)
75 #:use-module (gnu packages python)
76 #:use-module (gnu packages readline)
77 #:use-module (gnu packages sdl)
78 #:use-module (gnu packages slang)
79 #:use-module (gnu packages sqlite)
80 #:use-module (gnu packages tex)
81 #:use-module (gnu packages texinfo)
82 #:use-module (gnu packages tls)
83 #:use-module (gnu packages version-control)
84 #:use-module (gnu packages webkit)
85 #:use-module (gnu packages xdisorg)
86 #:use-module (gnu packages xorg)
87 #:use-module (guix packages)
88 #:use-module (guix download)
89 #:use-module (guix git-download)
90 #:use-module (guix hg-download)
91 #:use-module (guix build-system gnu)
92 #:use-module (guix build-system guile)
93 #:use-module (guix utils)
94 #:use-module (ice-9 match)
95 #:use-module ((srfi srfi-1) #:select (alist-delete)))
97 (define-public artanis
98 (let ((release "0.3.1")
102 (version (if (zero? revision)
104 (string-append release "-"
105 (number->string revision))))
108 (uri (string-append "mirror://gnu/artanis/artanis-"
110 (file-name (string-append name "-" version ".tar.gz"))
113 "0hqr5m3mb558bdhkc2sadmd9cbrhp3y525wx7cwirgy6i0zmay68"))
114 (modules '((guix build utils)))
117 ;; Unbundle guile-redis and guile-json
118 (delete-file-recursively "artanis/third-party/json.scm")
119 (delete-file-recursively "artanis/third-party/json")
120 (delete-file-recursively "artanis/third-party/redis.scm")
121 (delete-file-recursively "artanis/third-party/redis")
122 (substitute* '("artanis/artanis.scm"
125 (("(#:use-module \\()artanis third-party (json\\))" _
127 (string-append use-module json)))
128 (substitute* '("artanis/lpc.scm"
129 "artanis/session.scm")
130 (("(#:use-module \\()artanis third-party (redis\\))" _
132 (string-append use-module redis)))
133 (substitute* "artanis/oht.scm"
134 (("([[:punct:][:space:]]+)(->json-string)([[:punct:][:space:]]+)"
135 _ pre json-string post)
139 (substitute* "artanis/artanis.scm"
140 (("[[:punct:][:space:]]+->json-string[[:punct:][:space:]]+")
143 (build-system gnu-build-system)
144 ;; FIXME the bundled csv contains one more exported procedure
145 ;; (sxml->csv-string) than guile-csv. The author is maintainer of both
147 ;; TODO: Add guile-dbi and guile-dbd optional dependencies.
148 (inputs `(("guile" ,guile-2.2)
149 ("guile-json" ,guile-json)
150 ("guile-redis" ,guile-redis)))
151 (native-inputs `(("bash" ,bash) ;for the `source' builtin
152 ("pkgconfig" ,pkg-config)
153 ("util-linux" ,util-linux))) ;for the `script' command
156 ;; TODO: The documentation must be built with the `docs' target.
157 (let* ((out (assoc-ref %outputs "out"))
158 (scm (string-append out "/share/guile/site/2.2"))
159 (go (string-append out "/lib/guile/2.2/site-ccache")))
160 ;; Don't use (%site-dir) for site paths.
161 (list (string-append "MOD_PATH=" scm)
162 (string-append "MOD_COMPILED_PATH=" go)))
165 (modify-phases %standard-phases
166 (add-after 'unpack 'patch-site-dir
167 (lambda* (#:key outputs #:allow-other-keys)
168 (substitute* "artanis/commands/help.scm"
171 (assoc-ref outputs "out")
172 "/share/guile/site/2.2\"")))))
173 (add-before 'install 'substitute-root-dir
174 (lambda* (#:key outputs #:allow-other-keys)
175 (let ((out (assoc-ref outputs "out")))
176 (substitute* "Makefile" ;ignore the execution of bash.bashrc
177 ((" /etc/bash.bashrc") " /dev/null"))
178 (substitute* "Makefile" ;set the root of config files to OUT
179 ((" /etc") (string-append " " out "/etc")))
180 (mkdir-p (string-append out "/bin")) ;for the `art' executable
182 (add-after 'install 'wrap-art
183 (lambda* (#:key inputs outputs #:allow-other-keys)
184 (let* ((out (assoc-ref outputs "out"))
185 (bin (string-append out "/bin"))
186 (scm (string-append out "/share/guile/site/2.2"))
187 (go (string-append out "/lib/guile/2.2/site-ccache")))
188 (wrap-program (string-append bin "/art")
189 `("GUILE_LOAD_PATH" ":" prefix
190 (,scm ,(getenv "GUILE_LOAD_PATH")))
191 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
192 (,go ,(getenv "GUILE_LOAD_COMPILED_PATH"))))
194 (synopsis "Web application framework written in Guile")
195 (description "GNU Artanis is a web application framework written in Guile
196 Scheme. A web application framework (WAF) is a software framework that is
197 designed to support the development of dynamic websites, web applications, web
198 services and web resources. The framework aims to alleviate the overhead
199 associated with common activities performed in web development. Artanis
200 provides several tools for web development: database access, templating
201 frameworks, session management, URL-remapping for RESTful, page caching, and
203 (home-page "https://www.gnu.org/software/artanis/")
204 (license (list license:gpl3+ license:lgpl3+))))) ;dual license
206 ;; There has not been any release yet.
207 (define-public guildhall
208 (let ((commit "2fe2cc539f4b811bbcd69e58738db03eb5a2b778")
212 (version (string-append "0-" revision "." (string-take commit 9)))
216 (url "https://github.com/ijp/guildhall.git")
218 (file-name (string-append name "-" version "-checkout"))
221 "115bym7bg66h3gs399yb2vkzc2ygriaqsn4zbrg8f054mgy8wzn1"))))
222 (build-system gnu-build-system)
225 (modify-phases %standard-phases
226 ;; Tests fail without this fix because they try to load the bash
227 ;; executable as a Scheme file. See bug report at
228 ;; https://github.com/ijp/guildhall/issues/22
229 (add-after 'unpack 'fix-bug-22
231 (substitute* "Makefile.am"
232 (("TESTS_ENVIRONMENT=.*")
233 "AM_TESTS_ENVIRONMENT=srcdir=$(abs_top_srcdir)/tests/
234 TEST_EXTENSIONS = .scm
235 SCM_LOG_COMPILER= $(top_builddir)/env $(GUILE)
236 AM_SCM_LOG_FLAGS = --no-auto-compile -s")
237 ;; FIXME: one of the database tests fails for unknown
238 ;; reasons. It does not fail when run outside of Guix.
239 (("tests/database.scm") ""))
242 `(("guile" ,guile-2.0)))
244 `(("zip" ,zip) ; for tests
245 ("autoconf" ,autoconf)
246 ("automake" ,automake)
247 ("texinfo" ,texinfo)))
248 (synopsis "Package manager for Guile")
250 "Guildhall is a package manager written for Guile Scheme. A guild is
251 an association of independent craftspeople. A guildhall is where they meet.
252 This Guildhall aims to make a virtual space for Guile wizards and journeyfolk
255 On a practical level, Guildhall lets you share Scheme modules and programs
256 over the internet, and install code that has been shared by others. Guildhall
257 can handle dependencies, so when a program requires several libraries, and
258 each of those has further dependencies, all of the prerequisites for the
259 program can be installed in one go.")
260 (home-page "https://github.com/ijp/guildhall")
261 (license license:gpl3+))))
263 (define-public guile-aspell
265 (name "guile-aspell")
270 "http://lonelycactus.com/tarball/guile_aspell-"
274 "0vpk5xj9m9qc702z3khmkwhgpb949qbsyz8kw2qycda6qnxk0077"))))
275 (build-system gnu-build-system)
277 '(#:phases (modify-phases %standard-phases
278 (add-before 'configure 'set-guilesitedir
280 (substitute* "Makefile.in"
281 (("^guilesitedir =.*$")
283 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
285 (add-before 'build 'set-libaspell-file-name
286 (lambda* (#:key inputs #:allow-other-keys)
287 (let ((aspell (assoc-ref inputs "aspell")))
288 (substitute* "aspell.scm"
289 (("\"libaspell\\.so\"")
290 (string-append "\"" aspell
291 "/lib/libaspell\"")))
293 (native-inputs `(("pkg-config" ,pkg-config)))
294 (inputs `(("guile" ,guile-2.2)
296 (home-page "https://github.com/spk121/guile-aspell")
297 (synopsis "Spell-checking from Guile")
299 "guile-aspell is a Guile Scheme library for comparing a string against a
300 dictionary and suggesting spelling corrections.")
301 (license license:gpl3+)))
303 (define-public guile-bash
304 ;; This project is currently retired. It was initially announced here:
305 ;; <https://lists.gnu.org/archive/html/guile-user/2015-02/msg00003.html>.
306 (let ((commit "1eabc563ca5692b3e08d84f1f0e6fd2283284469")
310 (version (string-append "0.1.6-" revision "." (string-take commit 7)))
312 "https://anonscm.debian.org/cgit/users/kaction-guest/retired/dev.guile-bash.git")
320 "097vny990wp2qpjij6a5a5gwc6fxzg5wk56inhy18iki5v6pif1p"))
321 (file-name (string-append name "-" version "-checkout"))))
322 (build-system gnu-build-system)
325 ;; Add -I to match 'bash.pc' of Bash 4.4.
326 (list (string-append "CPPFLAGS=-I"
327 (assoc-ref %build-inputs "bash:include")
328 "/include/bash/include")
330 ;; The '.a' file is useless.
333 ;; Install 'lib/bash' as Bash 4.4 expects.
334 (string-append "--libdir=" (assoc-ref %outputs "out")
336 (native-inputs `(("pkg-config" ,pkg-config)
337 ("autoconf" ,autoconf-wrapper)
338 ("automake" ,automake)
340 ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
341 ("gettext" ,gettext-minimal)
343 ;; Bash with loadable module support, for the test
345 ("bash-full" ,bash)))
346 (inputs `(("guile" ,guile-2.0)
347 ("bash:include" ,bash "include")))
348 (synopsis "Extend Bash using Guile")
350 "Guile-Bash provides a shared library and set of Guile modules,
351 allowing you to extend Bash in Scheme. Scheme interfaces allow you to access
352 the following aspects of Bash:
356 @item setting and getting Bash variables;
357 @item creating dynamic variables;
358 @item creating Bash functions with a Scheme implementation;
359 @item reader macro for output capturing;
360 @item reader macro for evaluating raw Bash commands.
366 enable -f ~/.guix-profile/lib/bash/libguile-bash.so scm
369 and then run @command{scm example.scm}.")
370 (license license:gpl3+))))
372 (define-public guile-8sync
378 (uri (string-append "mirror://gnu/8sync/8sync-" version
382 "031wm13srak3wsnll7j2mbbi29g1pcm4swdb71ds9yn567pn20qw"))))
383 (build-system gnu-build-system)
384 (native-inputs `(("autoconf" ,autoconf)
385 ("automake" ,automake)
387 ("pkg-config" ,pkg-config)
388 ("texinfo" ,texinfo)))
390 `(#:phases (modify-phases %standard-phases
391 (add-before 'configure 'setenv
394 (setenv "GUILE_AUTO_COMPILE" "0")
396 (home-page "https://gnu.org/s/8sync/")
397 (synopsis "Asynchronous actor model library for Guile")
399 "GNU 8sync (pronounced \"eight-sync\") is an asynchronous programming
400 library for GNU Guile based on the actor model.
402 Note that 8sync is only available for Guile 2.2.")
403 (license license:lgpl3+)))
405 (define-public guile-daemon
407 (name "guile-daemon")
411 (uri (string-append "https://github.com/alezost/" name
412 "/releases/download/v" version
413 "/" name "-" version ".tar.gz"))
416 "0hh6gq6b6phpxm0b1dkxyzj3f4sxdf7dji63609lzypa5v1ad2gv"))))
417 (build-system gnu-build-system)
419 `(("pkg-config" ,pkg-config)))
421 `(("guile" ,guile-2.2)))
422 (home-page "https://github.com/alezost/guile-daemon")
423 (synopsis "Evaluate code in a running Guile process")
425 "Guile-Daemon is a small Guile program that loads your initial
426 configuration file, and then reads and evaluates Guile expressions that
427 you send to a FIFO file.")
428 (license license:gpl3+)))
430 (define-public guile-dsv
437 (url "https://github.com/artyom-poptsov/guile-dsv")
438 (commit "bdc5267d007478abc20ea96d7c459b7dd9560b3d")))
439 (file-name (string-append name "-" version "-checkout"))
442 "1irw6mz8998nwyhzrw9g94jcz60b9zljgqfmipaz1ybn8579qjx0"))))
443 (build-system gnu-build-system)
445 `(("autoconf" ,autoconf)
446 ("automake" ,automake)
447 ("pkg-config" ,pkg-config)
448 ("texinfo" ,texinfo)))
449 (inputs `(("guile" ,guile-2.2)))
450 (propagated-inputs `(("guile-lib" ,guile-lib)))
452 '(#:phases (modify-phases %standard-phases
453 (add-before 'configure 'set-guilesitedir
455 (substitute* "Makefile.in"
456 (("^guilesitedir =.*$")
458 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
459 (substitute* "modules/Makefile.in"
460 (("^guilesitedir =.*$")
462 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
463 (substitute* "modules/dsv/Makefile.in"
464 (("^guilesitedir =.*$")
466 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
468 (home-page "https://github.com/artyom-poptsov/guile-dsv")
469 (synopsis "DSV module for Guile")
471 "Guile-DSV is a GNU Guile module for working with the
472 delimiter-separated values (DSV) data format. Guile-DSV supports the
473 Unix-style DSV format and RFC 4180 format.")
474 (license license:gpl3+)))
476 (define-public guile-fibers
478 (name "guile-fibers")
482 (uri (string-append "https://wingolog.org/pub/fibers/fibers-"
486 "0vjkg72ghgdgphzbjz9ig8al8271rq8974viknb2r1rg4lz92ld0"))))
487 (build-system gnu-build-system)
489 '(#:phases (modify-phases %standard-phases
490 (add-after 'install 'mode-guile-objects
491 (lambda* (#:key outputs #:allow-other-keys)
492 ;; .go files are installed to "lib/guile/X.Y/cache".
493 ;; This phase moves them to "…/site-ccache".
494 (let* ((out (assoc-ref outputs "out"))
495 (lib (string-append out "/lib/guile"))
496 (old (car (find-files lib "^ccache$"
498 (new (string-append (dirname old)
500 (rename-file old new)
503 `(("texinfo" ,texinfo)
504 ("pkg-config" ,pkg-config)))
506 `(("guile" ,guile-2.2)))
507 (synopsis "Lightweight concurrency facility for Guile")
509 "Fibers is a Guile library that implements a a lightweight concurrency
510 facility, inspired by systems like Concurrent ML, Go, and Erlang. A fiber is
511 like a \"goroutine\" from the Go language: a lightweight thread-like
512 abstraction. Systems built with Fibers can scale up to millions of concurrent
513 fibers, tens of thousands of concurrent socket connections, and many parallel
514 cores. The Fibers library also provides Concurrent ML-like channels for
515 communication between fibers.
517 Note that Fibers makes use of some Guile 2.1/2.2-specific features and
518 is not available for Guile 2.0.")
519 (home-page "https://github.com/wingo/fibers")
520 (license license:lgpl3+)))
522 (define-public guile-syntax-highlight
524 (name "guile-syntax-highlight")
528 (uri (string-append "https://files.dthompson.us/"
529 "guile-syntax-highlight/"
530 "guile-syntax-highlight-"
534 "1p771kq15x83483m23bhah1sz6vkalg3drm7x279f4j1cxligkzi"))))
535 (build-system gnu-build-system)
537 `(("pkg-config" ,pkg-config)))
539 `(("guile" ,guile-2.2)))
540 (synopsis "General-purpose syntax highlighter for GNU Guile")
541 (description "Guile-syntax-highlight is a general-purpose syntax
542 highlighting library for GNU Guile. It can parse code written in various
543 programming languages into a simple s-expression that can be converted to
544 HTML (via SXML) or any other format for rendering.")
545 (home-page "http://dthompson.us/projects/guile-syntax-highlight.html")
546 (license license:lgpl3+)))
548 (define-public guile-sjson
554 (uri (string-append "https://dustycloud.org/misc/sjson-" version
558 "1mzmapln79vv10qxaggz9qwcdbag3jnrj19xx8bgkmxss8h03sv3"))))
559 (build-system gnu-build-system)
561 `(("autoconf" ,autoconf)
562 ("automake" ,automake)
563 ("pkg-config" ,pkg-config)))
565 `(("guile" ,guile-2.2)))
566 (home-page "https://gitlab.com/dustyweb/guile-sjson")
567 (synopsis "S-expression based json reader/writer for Guile")
568 (description "guile-sjson is a json reader/writer for Guile.
569 It has a nice, simple s-expression based syntax.")
570 (license license:lgpl3+)))
572 (define-public guile-squee
573 (let ((commit "a85902a92bf6f58a1d35fd974a01ade163deda8d")
577 (version (string-append "0-" revision "." (string-take commit 7)))
581 (url "https://notabug.org/cwebber/guile-squee.git")
583 (file-name (git-file-name name version))
586 "0p1lpsp4kx57j3ai1dkxilm4ziavzzx8wbbc42m3hpziq0a7qz5z"))))
587 (build-system guile-build-system)
590 (modify-phases %standard-phases
591 (add-after 'unpack 'patch
592 (lambda* (#:key inputs #:allow-other-keys)
593 (substitute* "squee.scm"
594 (("dynamic-link \"libpq\"")
597 (assoc-ref inputs "postgresql") "/lib/libpq.so"
601 `(("postgresql" ,postgresql)))
603 `(("guile" ,guile-2.2)))
604 (home-page "https://notabug.org/cwebber/guile-squee")
605 (synopsis "Connect to PostgreSQL using Guile")
607 "@code{squee} is a Guile library for connecting to PostgreSQL databases
608 using Guile's foreign function interface.")
609 (license license:lgpl3+))))
611 (define-public guile-colorized
613 (name "guile-colorized")
619 (url "https://gitlab.com/NalaGinrut/guile-colorized.git")
620 (commit (string-append "v" version))))
621 (file-name (git-file-name name version))
623 (base32 "10mv8c63159r3qvwwdvsgnsvdg7nc2ghak85zapwqpv4ywrqp9zc"))))
624 (build-system guile-build-system)
626 `(("guile" ,guile-2.2)))
627 (home-page "https://gitlab.com/NalaGinrut/guile-colorized")
628 (synopsis "Colorized REPL for Guile")
630 "Guile-colorized provides you with a colorized REPL for GNU Guile.")
631 (license license:gpl3+)))
633 (define-public guile-pfds
637 (home-page "https://github.com/ijp/pfds")
642 (commit (string-append "v" version))))
645 "19y33wg94pf0n98dkfqd1zbw93fgky4sawxsxl6s3vyqwl0yi5vh"))
646 (file-name (string-append name "-" version "-checkout"))))
647 (build-system guile-build-system)
649 '(#:source-directory "src"
650 #:phases (modify-phases %standard-phases
651 (add-after 'unpack 'move-files-around
653 ;; Move files under a pfds/ directory to reflect the
656 (for-each (lambda (file)
658 (string-append "src/pfds/"
674 ;; In Guile <= 2.2.4, there's no way to tell 'guild
675 ;; compile' to accept the ".sls" extension. So...
676 (for-each (lambda (file)
679 (string-drop-right file 4)
681 (find-files "." "\\.sls$"))
684 `(("guile" ,guile-2.2)))
685 (synopsis "Purely functional data structures for Guile")
687 "This package provides purely functional data structures written in R6RS
688 Scheme and compiled for Guile. It has been tested with Racket, Guile 2,
689 Vicare Scheme and IronScheme. Right now it contains:
697 @item priority search queues (PSQs)
701 @item hash array mapped tries (HAMTs).
703 (license license:bsd-3)))
705 (define-public guile-aa-tree
707 (name "guile-aa-tree")
711 (uri (string-append "mirror://savannah/guile-aa-tree/guile-aa-tree-"
715 "0044c105r3q9vpl17pv3phl1b79kjm1llhkakqgiasixyav01blh"))))
716 (build-system guile-build-system)
717 (native-inputs `(("guile" ,guile-2.2)))
718 ;; https://savannah.nongnu.org/projects/guile-aa-tree
719 (home-page "https://qlfiles.net/guile-aa-tree/")
720 (synopsis "AA tree data structure for Guile")
722 "This package provides an implementation of @dfn{AA trees}, a
723 self-balancing binary tree data structure, for Guile. It ensure @math{O(log
724 n)} worst case performance for core operations. The module provides
725 non-mutating insert, delete, and search operations, with support for
726 convenient nested tree operations.")
727 (license license:gpl3+)))
729 (define-public guile-simple-zmq
730 (let ((commit "68bedb6679716214fb9d3472da57544526f7a618")
733 (name "guile-simple-zmq")
734 (version (git-version "0.0.0" revision commit))
739 (url "https://github.com/jerry40/guile-simple-zmq")
743 "1ad3xg69qqviy1f6dnlw0ysmfdbmp1jq65rfqb8nfd8dsrq2syli"))
744 (file-name (git-file-name name version))))
745 (build-system guile-build-system)
747 `(#:source-directory "src"
748 #:phases (modify-phases %standard-phases
749 (add-after 'unpack 'set-libzmq-file-name
750 (lambda* (#:key inputs #:allow-other-keys)
751 (substitute* "src/simple-zmq.scm"
752 (("\\(dynamic-link \"libzmq\"\\)")
753 (format #f "(dynamic-link \"~a/lib/libzmq.so\")"
754 (assoc-ref inputs "zeromq"))))
757 `(("guile" ,guile-2.2)))
759 `(("zeromq" ,zeromq)))
760 (home-page "https://github.com/jerry40/guile-simple-zmq")
761 (synopsis "Guile wrapper over ZeroMQ library")
763 "This package provides a Guile programming interface to the ZeroMQ
765 (license license:gpl3+))))
767 (define-public jupyter-guile-kernel
768 (let ((commit "a7db9245a886e104138474df46c3e88b95cff629")
771 (name "jupyter-guile-kernel")
772 (version (git-version "0.0.0" revision commit))
777 (url "https://github.com/jerry40/guile-kernel")
781 "0aj04853bqm47ivfcmrgpb7w3wkis847kc7qrwsa5zcn9h38qh2f"))))
782 (build-system guile-build-system)
784 '(#:phases (modify-phases %standard-phases
785 (add-after 'unpack 'set-openssl-file-name
786 (lambda* (#:key inputs #:allow-other-keys)
787 ;; Record the absolute file name of the 'openssl'
789 (substitute* "src/hmac.scm"
791 (string-append (assoc-ref inputs "openssl")
795 ;; XXX: The code uses 'include' to include its own source
796 ;; files, and "-L src" isn't enough in this case.
797 (add-before 'build 'chdir
798 (lambda _ (chdir "src") #t))
799 (add-after 'build 'chdir-back
800 (lambda _ (chdir "..") #t))
802 (add-after 'install 'install-kernel
803 (lambda* (#:key inputs outputs #:allow-other-keys)
804 (let* ((out (assoc-ref outputs "out"))
805 (json (assoc-ref inputs "guile-json"))
806 (zmq (assoc-ref inputs "guile-simple-zmq"))
807 (deps (list json zmq))
809 out "/share/jupyter/kernels/guile"))
810 (effective (target-guile-effective-version)))
812 (install-file "src/kernel.json" dir)
814 ;; Fix hard-coded file name in the kernel.
815 (substitute* (string-append dir "/kernel.json")
816 (("/home/.*/guile-jupyter-kernel.scm")
817 (string-append out "/share/guile/site/"
818 (target-guile-effective-version)
819 "/guile-jupyter-kernel.scm"))
821 (string-append "\"" (assoc-ref inputs "guile")
824 ;; Add '-L' and '-C' flags so that the kernel
825 ;; finds its dependencies.
826 (let ((-L (map (lambda (item)
827 (string-append "\"" item
831 (-C (map (lambda (item)
832 (string-append "\"" item
837 (string-append "--no-auto-compile\""
838 (string-join -L ", \"-L\", "
840 (string-join -C ", \"-C\", "
845 `(("openssl" ,openssl)
847 ("guile-json" ,guile-json)
848 ("guile-simple-zmq" ,guile-simple-zmq)))
849 (synopsis "Guile kernel for the Jupyter Notebook")
851 "This package provides a Guile 2.x kernel for the Jupyter Notebook. It
852 allows users to interact with the Guile REPL through Jupyter.")
853 (home-page "https://github.com/jerry40/guile-kernel")
854 (license license:gpl3+))))
856 (define-public guile-sparql
858 (name "guile-sparql")
863 "https://github.com/roelj/guile-sparql/releases/download/"
864 version "/guile-sparql-" version ".tar.gz"))
866 (base32 "1drnvhsgl0gc5crmb16yyw1j98nkhwwcgssv9vgm36ng43nnzffd"))))
867 (build-system gnu-build-system)
868 (arguments `(#:tests? #f)) ; There are no tests.
870 `(("pkg-config" ,pkg-config)))
872 `(("guile" ,guile-2.2)))
873 (home-page "https://github.com/roelj/guile-sparql")
874 (synopsis "SPARQL module for Guile")
875 (description "This package provides the functionality to query a SPARQL
876 endpoint. Additionally, it provides an interface to write SPARQL queries
877 using S-expressions.")
878 (license license:gpl3+)))
880 (define-public guile-debbugs
882 (name "guile-debbugs")
886 (uri (string-append "mirror://gnu/guile-debbugs/guile-debbugs-"
890 "16l8910p57im6s3j93xhdaqvgfy6ms5n97177mrch3y961z5hy0i"))
891 (modules '((guix build utils)))
893 '(substitute* "Makefile.in"
894 (("^godir = (.*)/ccache" _ prefix)
895 (string-append "godir = " prefix "/site-ccache"))))))
896 (build-system gnu-build-system)
898 `(("guile" ,guile-2.2)
899 ("pkg-config" ,pkg-config)))
900 (home-page "https://savannah.gnu.org/projects/guile-debbugs/")
901 (synopsis "Guile interface to the Debbugs bug tracking service")
903 "This package provides a Guile library to communicate with a Debbugs bug
904 tracker's SOAP service, such as @url{https://bugs.gnu.org}.")
905 (license license:gpl3+)))
907 (define-public guile-email
915 "https://git.systemreboot.net/guile-email/snapshot/guile-email-"
919 "0p2v8q2kkz8m6vf2rsjvz3dj1mvnx7dxakjf72dwkndbgk3rp79f"))))
920 (build-system gnu-build-system)
922 `(("pkg-config" ,pkg-config)
923 ("autoconf" ,autoconf)
924 ("automake" ,automake)))
926 `(("guile" ,guile-2.2)))
927 (home-page "https://git.systemreboot.net/guile-email")
928 (synopsis "Guile email parser")
929 (description "This package provides an email parser written in pure
931 (license license:agpl3+)))
933 (define-public guile-debbugs-next
934 (let ((commit "75a331d561c8b6f8efcf16216dab961c17759efe")
936 (package (inherit guile-debbugs)
937 (name "guile-debbugs")
938 (version (git-version "0.0.3" revision commit))
942 (url "https://git.savannah.gnu.org/git/guile-debbugs.git")
944 (file-name (git-file-name name version))
947 "0br3mgbw41bpc9x57jlghl0i8dz9nl63r4wzs5l47aqszf84870y"))))
948 (build-system gnu-build-system)
950 `(("pkg-config" ,pkg-config)
951 ("autoconf" ,autoconf)
952 ("automake" ,automake)
953 ("texinfo" ,texinfo)))
955 `(("guile" ,guile-2.2)
956 ("guile-email" ,guile-email))))))
958 (define-public guile-newt
965 (url "https://gitlab.com/mothacehe/guile-newt")
967 (file-name (git-file-name name version))
970 "1w7qy4dw1f4bx622l6hw8mv49sf1ha8kch8j4nganyk8fj0wn695"))))
971 (build-system gnu-build-system)
974 '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
976 `(("guile" ,guile-2.2)
979 `(("autoconf" ,autoconf)
980 ("automake" ,automake)
981 ("pkg-config" ,pkg-config)))
982 (synopsis "Guile bindings to Newt")
984 "This package provides bindings for Newt, a programming library for
985 color text mode, widget based user interfaces. The bindings are written in pure
986 Scheme by using Guile’s foreign function interface.")
987 (home-page "https://gitlab.com/mothacehe/guile-newt")
988 (license license:gpl3+)))
990 (define-public guile-mastodon
992 (name "guile-mastodon")
997 (url "https://framagit.org/prouby/guile-mastodon.git")
998 (commit (string-append "v" version))))
999 (file-name (git-file-name name version))
1002 "1vblf3d1bbwna3l09p2ap5y8ycvl549bz6whgk78imyfmn28ygry"))))
1003 (build-system gnu-build-system)
1005 `(("autoconf" ,autoconf)
1006 ("automake" ,automake)
1007 ("pkg-config" ,pkg-config)))
1009 `(("guile" ,guile-2.2)
1011 ("guile-json" ,guile-json)))
1012 (home-page "https://framagit.org/prouby/guile-mastodon")
1013 (synopsis "Guile Mastodon REST API module")
1014 (description "This package provides Guile modules to access the
1015 @uref{https://docs.joinmastodon.org/api/, REST API of Mastodon}, a federated
1016 microblogging service.")
1017 (license license:gpl3+)))
1019 (define-public guile-parted
1021 (name "guile-parted")
1026 (url "https://gitlab.com/mothacehe/guile-parted")
1028 (file-name (git-file-name name version))
1031 "1q7425gpjlwi2wvhzq7kw046yyx7v6j6jyzkd1cr861iz34mjwiq"))))
1032 (build-system gnu-build-system)
1035 '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
1037 `(("guile" ,guile-2.2)
1038 ("parted" ,parted)))
1040 `(("guile-bytestructures" ,guile-bytestructures)))
1042 `(("autoconf" ,autoconf)
1043 ("automake" ,automake)
1044 ("pkg-config" ,pkg-config)))
1045 (synopsis "Guile bindings to GNU Parted")
1047 "This package provides bindings for GNU Parted library, a C library
1048 allowing disk partition tables creation and manipulation. The bindings are
1049 written in pure Scheme by using Guile's foreign function interface.")
1050 (home-page "https://gitlab.com/mothacehe/guile-parted")
1051 (license license:gpl3+)))
1053 (define-public guile-xosd
1059 (uri (string-append "https://github.com/alezost/" name
1060 "/releases/download/v" version
1061 "/" name "-" version ".tar.gz"))
1064 "1ri5065c16kmgrf2pysn2ymxjqi5302lhpb07wkl1jr75ym8fn8p"))))
1065 (build-system gnu-build-system)
1067 `(("pkg-config" ,pkg-config)))
1069 `(("guile" ,guile-2.2)
1071 ("libxext" ,libxext)
1072 ("libxinerama" ,libxinerama)
1074 (home-page "https://github.com/alezost/guile-xosd")
1075 (synopsis "XOSD bindings for Guile")
1077 "Guile-XOSD provides Guile bindings for @code{libxosd},
1078 @uref{http://sourceforge.net/projects/libxosd/, the X On Screen Display
1080 (license license:gpl3+)))
1082 (define-public guile-dbi
1089 "http://download.gna.org/guile-dbi/guile-dbi-"
1093 "116njrprhgrsv1qm904sp3b02rq01fx639r433d657gyhw3x159n"))))
1094 (build-system gnu-build-system)
1097 (list (string-append
1098 "--with-guile-site-dir=" %output "/share/guile/site/2.2"))
1100 (list (string-append
1101 "LDFLAGS=-Wl,-rpath=" %output "/lib:"
1102 (assoc-ref %build-inputs "guile-dbd-sqlite3") "/lib" ":"
1103 (assoc-ref %build-inputs "guile-dbd-postgresql") "/lib"))
1105 (modify-phases %standard-phases
1106 (add-after 'install 'patch-extension-path
1107 (lambda* (#:key outputs #:allow-other-keys)
1108 (let* ((out (assoc-ref outputs "out"))
1109 (dbi.scm (string-append
1110 out "/share/guile/site/2.2/dbi/dbi.scm"))
1111 (ext (string-append out "/lib/libguile-dbi")))
1112 (substitute* dbi.scm (("libguile-dbi") ext))
1115 `(("guile-dbd-sqlite3" ,guile-dbd-sqlite3)
1116 ("guile-dbd-postgresql" ,guile-dbd-postgresql))) ; only shared library, no scheme files
1118 `(("guile" ,guile-2.2)))
1119 (synopsis "Guile database abstraction layer")
1120 (home-page "http://home.gna.org/guile-dbi/guile-dbi.html")
1122 "guile-dbi is a library for Guile that provides a convenient interface to
1123 SQL databases. Database programming with guile-dbi is generic in that the same
1124 programming interface is presented regardless of which database system is used.
1125 It currently supports MySQL, Postgres and SQLite3.")
1126 (license license:gpl2+)))
1128 (define guile-dbi-bootstrap
1131 (name "guile-dbi-bootstrap")
1134 (substitute-keyword-arguments (package-arguments guile-dbi)
1135 ((#:make-flags _) '(list))))))
1137 (define-public guile-dbd-sqlite3
1139 (name "guile-dbd-sqlite3")
1144 "http://download.gna.org/guile-dbi/guile-dbd-sqlite3-"
1148 "0rg71jchxd2y8x496s8zmfmikr5g8zxi8zv2ar3f7a23pph92iw2"))))
1149 (build-system gnu-build-system)
1151 `(("pkg-config" ,pkg-config)
1152 ("guile-dbi-bootstrap" ,guile-dbi-bootstrap))) ; only required for headers
1154 `(("sqlite" ,sqlite)
1155 ("zlib" ,(@ (gnu packages compression) zlib))))
1156 (synopsis "Guile DBI driver for SQLite")
1157 (home-page "https://github.com/jkalbhenn/guile-dbd-sqlite3")
1159 "guile-dbi is a library for Guile that provides a convenient interface to
1160 SQL databases. This package implements the interface for SQLite.")
1161 (license license:gpl2+)))
1163 (define-public guile-dbd-postgresql
1164 (let ((commit "e97589b6b018b206c901e4cc24db463407a4036b")
1167 (name "guile-dbd-postgresql")
1168 (version (string-append
1169 "2.1.6-" (number->string revision) "." (string-take commit 7)))
1174 (url "https://github.com/opencog/guile-dbi.git")
1176 (file-name (git-file-name name version))
1178 (base32 "0n1gv9a0kdys10a4qmnrwvg5sydwb03880asri4gqdchcj3fimni"))))
1179 (build-system gnu-build-system)
1182 (modify-phases %standard-phases
1183 (add-after 'unpack 'chdir
1185 ;; The upstream Git repository contains all the code, so change
1186 ;; to the relevant directory.
1187 (chdir "guile-dbd-postgresql")
1189 (add-after 'chdir 'patch-src/Makefile.am
1190 (lambda* (#:key inputs #:allow-other-keys)
1191 (substitute* "src/Makefile.am"
1193 (string-append (assoc-ref inputs "postgresql") "/include")))
1195 (add-after 'patch-src/Makefile.am 'patch-src
1197 (substitute* "src/guile-dbd-postgresql.c"
1198 (("postgresql/libpq-fe\\.h") "libpq-fe.h"))
1201 `(("pkg-config" ,pkg-config)
1202 ("automake" ,automake)
1203 ("autoconf" ,autoconf)
1205 ("libtool" ,libtool)
1206 ("guile-dbi-bootstrap" ,guile-dbi-bootstrap)))
1208 `(("postgresql" ,postgresql)
1210 (synopsis "Guile DBI driver for PostgreSQL")
1212 "https://github.com/opencog/guile-dbi/tree/master/guile-dbd-postgresql")
1214 "@code{guile-dbi} is a library for Guile that provides a convenient
1215 interface to SQL databases. This package implements the interface for
1217 (license license:gpl2+))))
1219 (define-public guile-config
1221 (name "guile-config")
1227 (url "https://gitlab.com/a-sassmannshausen/guile-config")
1228 (commit "ce12de3f438c6b2b59c43ee21bcd58251835fdf3")))
1229 (file-name "guile-config-0.3-checkout")
1230 (sha256 (base32 "02zbpin0r9m2vxmr7mv68v3xdn247dcck56kbzjn0gj4c2rhih85"))))
1231 (build-system gnu-build-system)
1233 `(("autoconf" ,autoconf)
1234 ("automake" ,automake)
1235 ("pkg-config" ,pkg-config)
1236 ("texinfo" ,texinfo)))
1237 (inputs `(("guile" ,guile-2.2)))
1239 "Guile application configuration parsing library.")
1241 "Guile Config is a library providing a declarative approach to
1242 application configuration specification. The library provides clean
1243 configuration declaration forms, and processors that take care of:
1244 configuration file creation; configuration file parsing; command-line
1245 parameter parsing using getopt-long; basic GNU command-line parameter
1246 generation (--help, --usage, --version); automatic output generation for the
1247 above command-line parameters.")
1249 "https://gitlab.com/a-sassmannshausen/guile-config")
1250 (license license:gpl3+)))
1252 (define-public guile-hall
1260 (url "https://gitlab.com/a-sassmannshausen/guile-hall")
1261 (commit (string-append "v" version))))
1262 (file-name (git-file-name name version))
1264 "1bkbqgj24xh5b65sw2m98iggpi67b72szx1dsiq3cpzlcxplmgaz"))))
1265 (build-system gnu-build-system)
1270 ,@%gnu-build-system-modules)
1274 (add-after 'install 'hall-wrap-binaries
1275 (lambda* (#:key inputs outputs #:allow-other-keys)
1276 (let* ((compiled-dir
1277 (lambda (out version)
1279 out "/lib/guile/" version "/site-ccache")))
1281 (lambda (out version)
1283 out "/share/guile/site"
1284 (if (string-null? version) "" "/") version)))
1286 (lambda (env modules path)
1287 (list env ":" 'prefix
1289 (map (lambda (input)
1291 (assoc-ref inputs input)
1293 ,''("guile-config"))))))
1294 (out (assoc-ref outputs "out"))
1295 (bin (string-append out "/bin/"))
1296 (site (uncompiled-dir out "")))
1297 (match (scandir site)
1302 (string-append bin file)
1305 (uncompiled-dir out version)
1306 (uncompiled-dir "" version))
1308 "GUILE_LOAD_COMPILED_PATH"
1309 (compiled-dir out version)
1310 (compiled-dir "" version))))
1314 `(("autoconf" ,autoconf)
1315 ("automake" ,automake)
1316 ("pkg-config" ,pkg-config)
1317 ("texinfo" ,texinfo)))
1318 (inputs `(("guile" ,guile-2.2)))
1320 `(("guile-config" ,guile-config)))
1321 (synopsis "Guile project tooling")
1323 "Hall is a command-line application and a set of Guile libraries that
1324 allow you to quickly create and publish Guile projects. It allows you to
1325 transparently support the GNU build system, manage a project hierarchy &
1326 provides tight coupling to Guix.")
1327 (home-page "https://gitlab.com/a-sassmannshausen/guile-hall")
1328 (license license:gpl3+)))
1330 (define-public guile-ics
1337 (url "https://github.com/artyom-poptsov/guile-ics")
1338 (commit (string-append "v" version))))
1339 (file-name (string-append name "-" version "-checkout"))
1342 "0qjjvadr7gibdq9jvwkmlkb4afsw9n2shfj9phpiadinxk3p4m2g"))))
1343 (build-system gnu-build-system)
1345 `(("autoconf" ,autoconf-wrapper)
1346 ("automake" ,automake)
1347 ("texinfo" ,texinfo)
1348 ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
1349 ("gettext" ,gettext-minimal)
1350 ("pkg-config" ,pkg-config)))
1351 (inputs `(("guile" ,guile-2.2) ("which" ,which)))
1352 (propagated-inputs `(("guile-lib" ,guile-lib)))
1353 (home-page "https://github.com/artyom-poptsov/guile-ics")
1354 (synopsis "Guile parser library for the iCalendar format")
1356 "Guile-ICS is an iCalendar (RFC5545) format parser library written in
1357 pure Scheme. The library can be used to read and write iCalendar data.
1359 The library is shipped with documentation in Info format and usage examples.")
1360 (license license:gpl3+)))
1362 (define-public guile-wisp
1368 (uri (string-append "https://bitbucket.org/ArneBab/"
1369 "wisp/downloads/wisp-"
1373 "1ii14qz1lx7ffhb8i9q7dgaiwbif8g2q182skx17j11skp65c8r3"))))
1374 (build-system gnu-build-system)
1376 `(#:modules ((guix build gnu-build-system)
1377 ((guix build emacs-build-system) #:prefix emacs:)
1379 (guix build emacs-utils)
1382 #:imported-modules (,@%gnu-build-system-modules
1383 (guix build emacs-build-system)
1384 (guix build emacs-utils))
1386 (modify-phases %standard-phases
1387 (add-before 'configure 'patch-/usr/bin/env
1389 (substitute* "Makefile.in"
1390 (("/usr/bin/env bash") (which "bash"))
1391 (("\\$\\(GUILE_EFFECTIVE_VERSION\\)/site")
1392 "site/$(GUILE_EFFECTIVE_VERSION)")) ;use the right order
1394 ;; auto compilation breaks, but if we set HOME to /tmp,
1396 (add-before 'check 'auto-compile-hacky-workaround
1397 (lambda _ (setenv "HOME" "/tmp") #t))
1398 (add-after 'install 'install-go-files
1399 (lambda* (#:key outputs inputs #:allow-other-keys)
1400 (let* ((out (assoc-ref outputs "out"))
1401 (effective (read-line
1402 (open-pipe* OPEN_READ
1404 "(display (effective-version))")))
1405 (module-dir (string-append out "/share/guile/site/"
1407 (object-dir (string-append out "/lib/guile/" effective
1409 (prefix (string-length module-dir)))
1410 ;; compile to the destination
1411 (for-each (lambda (file)
1412 (let* ((base (string-drop (string-drop-right file 4)
1414 (go (string-append object-dir base ".go")))
1415 (invoke "guild" "compile" "-L" module-dir
1417 (find-files module-dir "\\.scm$"))
1419 (add-after 'install 'install-emacs-files
1420 (assoc-ref emacs:%standard-phases 'install))
1421 (add-after 'install-emacs-files 'compile-emacs-files
1422 (assoc-ref emacs:%standard-phases 'build))
1423 (add-after 'compile-emacs-files 'make-autoloads
1424 (assoc-ref emacs:%standard-phases 'make-autoloads)))))
1425 (home-page "https://draketo.de/english/wisp")
1427 `(("guile" ,guile-2.2)))
1429 `(("emacs" ,emacs-minimal)
1431 ("pkg-config" ,pkg-config)))
1432 (synopsis "Whitespace to lisp syntax for Guile")
1433 (description "Wisp is a syntax for Guile which provides a Python-like
1434 whitespace-significant language. It may be easier on the eyes for some
1435 users and in some situations.")
1436 (license license:gpl3+)))
1438 (define-public guile-sly
1444 (uri (string-append "https://files.dthompson.us/sly/sly-"
1448 "1svzlbz2vripmyq2kjh0rig16bsrnbkwbsm558pjln9l65mcl4qq"))
1449 (modules '((guix build utils)))
1452 (substitute* "configure"
1453 (("_guile_required_version=\"2.0.11\"")
1454 "_guile_required_version=\"2\"")
1455 (("ac_subst_vars='")
1456 "ac_subst_vars='GUILE_EFFECTIVE_VERSION\n"))
1457 (substitute* (find-files "." "Makefile.in")
1461 "$(prefix)/share/guile/site/@GUILE_EFFECTIVE_VERSION@\n"))
1465 "$(prefix)/lib/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n")))
1467 (build-system gnu-build-system)
1470 (list (string-append "--with-libfreeimage-prefix="
1471 (assoc-ref %build-inputs "freeimage"))
1472 (string-append "--with-libgslcblas-prefix="
1473 (assoc-ref %build-inputs "gsl")))))
1475 `(("pkg-config" ,pkg-config)))
1477 `(("guile-sdl" ,guile-sdl)
1478 ("guile-opengl" ,guile-opengl)))
1480 `(("guile" ,guile-2.2)
1482 ("freeimage" ,freeimage)
1484 (synopsis "2D/3D game engine for GNU Guile")
1485 (description "Sly is a 2D/3D game engine written in Guile Scheme. Sly
1486 features a functional reactive programming interface and live coding
1488 (home-page "https://dthompson.us/projects/sly.html")
1489 (license license:gpl3+)))
1491 (define-public g-wrap
1497 (uri (string-append "mirror://savannah/g-wrap/g-wrap-"
1501 "0ak0bha37dfpj9kmyw1r8fj8nva639aw5xr66wr5gd3l1rqf5xhg"))))
1502 (build-system gnu-build-system)
1504 `(("pkg-config" ,pkg-config)))
1506 `(("guile" ,guile-2.2)
1507 ("guile-lib" ,guile-lib)))
1509 `(("libffi" ,libffi)))
1511 `(#:configure-flags '("--disable-Werror")
1513 (modify-phases %standard-phases
1514 (add-before 'configure 'pre-configure
1515 (lambda* (#:key outputs #:allow-other-keys)
1516 (let ((out (assoc-ref outputs "out")))
1517 (substitute* (find-files "." "^Makefile.in$")
1518 (("guilemoduledir =.*guile/site" all)
1519 (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
1521 (synopsis "Generate C bindings for Guile")
1522 (description "G-Wrap is a tool and Guile library for generating function
1523 wrappers for inter-language calls. It currently only supports generating Guile
1524 wrappers for C functions. Given a definition of the types and prototypes for
1525 a given C interface, G-Wrap will automatically generate the C code that
1526 provides access to that interface and its types from the Scheme level.")
1527 (home-page "https://www.nongnu.org/g-wrap/index.html")
1528 (license license:lgpl2.1+)))
1530 (define-public guile-miniadapton
1531 (let ((commit "1b5749422304567c96ac5367f2221dda9eff5880")
1534 (name "guile-miniadapton")
1535 (version (string-append "0-" revision "." (string-take commit 9)))
1539 (url "https://github.com/fisherdj/miniAdapton.git")
1541 (file-name (string-append name "-" version "-checkout"))
1544 "09q51zkw2fypad5xixskfzw2cjhjgs5cswdp3i7cpp651rb3zndh"))))
1545 (build-system guile-build-system)
1547 `(("guile" ,guile-2.2)))
1548 (home-page "https://github.com/fisherdj/miniAdapton")
1549 (synopsis "Minimal implementation of incremental computation in Guile
1551 (description "This package provides a complete Scheme implementation of
1552 miniAdapton, which implements the core functionality of the Adapton system for
1553 incremental computation (also known as self-adjusting computation). Like
1554 Adapton, miniAdapton allows programmers to safely combine mutation and
1555 memoization. miniAdapton is built on top of an even simpler system,
1556 microAdapton. Both miniAdapton and microAdapton are designed to be easy to
1557 understand, extend, and port to host languages other than Scheme.")
1558 (license license:expat))))
1560 (define-public guile-reader
1562 (name "guile-reader")
1566 (uri (string-append "mirror://savannah/guile-reader/guile-reader-"
1570 "0592s2s8ampqmqwilc4fvcild6rb9gy79di6vxv5kcdmv23abkgx"))))
1571 (build-system gnu-build-system)
1572 (native-inputs `(("pkgconfig" ,pkg-config)
1573 ("gperf" ,gperf-3.0)))
1574 (inputs `(("guile" ,guile-2.2)))
1575 (synopsis "Framework for building readers for GNU Guile")
1577 "Guile-Reader is a simple framework for building readers for GNU Guile.
1579 The idea is to make it easy to build procedures that extend Guile’s read
1580 procedure. Readers supporting various syntax variants can easily be written,
1581 possibly by re-using existing “token readers” of a standard Scheme
1582 readers. For example, it is used to implement Skribilo’s R5RS-derived
1585 Guile-Reader’s approach is similar to Common Lisp’s “read table”, but
1586 hopefully more powerful and flexible (for instance, one may instantiate as
1587 many readers as needed).")
1588 (home-page "https://www.nongnu.org/guile-reader/")
1589 (license license:gpl3+)))
1591 (define-public guile2.2-reader
1592 (deprecated-package "guile2.2-reader" guile-reader))
1594 (define-public guile-ncurses
1596 (name "guile-ncurses")
1600 (uri (string-append "mirror://gnu/guile-ncurses/guile-ncurses-"
1604 "1wvggbr4xv8idh1hzd8caj4xfp4pln78a7w1wqzd4zgzwmnzxr2f"))))
1605 (build-system gnu-build-system)
1606 (inputs `(("ncurses" ,ncurses)
1607 ("guile" ,guile-2.2)))
1608 (native-inputs `(("pkg-config" ,pkg-config)))
1610 '(#:configure-flags (list "--with-ncursesw" ; Unicode support
1611 "--with-gnu-filesystem-hierarchy")
1613 (modify-phases %standard-phases
1614 (add-before 'build 'fix-libguile-ncurses-file-name
1615 (lambda* (#:key outputs #:allow-other-keys)
1616 (invoke "make" "install"
1618 "-j" (number->string
1619 (parallel-job-count)))
1620 (let* ((out (assoc-ref outputs "out"))
1622 (files (find-files dir ".scm")))
1624 (("\"libguile-ncurses\"")
1625 (format #f "\"~a/lib/guile/2.2/libguile-ncurses\""
1628 (home-page "https://www.gnu.org/software/guile-ncurses/")
1629 (synopsis "Guile bindings to ncurses")
1631 "guile-ncurses provides Guile language bindings for the ncurses
1633 (license license:lgpl3+)))
1635 (define-public guile-ncurses/gpm
1637 (inherit guile-ncurses)
1638 (name "guile-ncurses-with-gpm")
1639 (inputs `(("ncurses" ,ncurses/gpm)
1640 ("guile" ,guile-2.2)))))
1642 (define-public guile-lib
1648 (uri (string-append "mirror://savannah/guile-lib/guile-lib-"
1652 "0aizxdif5dpch9cvs8zz5g8ds5s4xhfnwza2il5ji7fv2h7ks7bd"))))
1653 (build-system gnu-build-system)
1656 '("GUILE_AUTO_COMPILE=0") ; to prevent guild errors
1658 (modify-phases %standard-phases
1659 (add-before 'configure 'patch-module-dir
1661 (substitute* "src/Makefile.in"
1662 (("^moddir = ([[:graph:]]+)")
1663 "moddir = $(datadir)/guile/site/@GUILE_EFFECTIVE_VERSION@\n")
1664 (("^godir = ([[:graph:]]+)")
1666 $(libdir)/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n"))
1668 (native-inputs `(("pkg-config" ,pkg-config)))
1669 (inputs `(("guile" ,guile-2.2)))
1670 (home-page "https://www.nongnu.org/guile-lib/")
1671 (synopsis "Collection of useful Guile Scheme modules")
1673 "Guile-Lib is intended as an accumulation place for pure-scheme Guile
1674 modules, allowing for people to cooperate integrating their generic Guile
1675 modules into a coherent library. Think \"a down-scaled, limited-scope CPAN
1678 ;; The whole is under GPLv3+, but some modules are under laxer
1679 ;; distribution terms such as LGPL and public domain. See `COPYING' for
1681 (license license:gpl3+)))
1683 (define-public guile2.0-lib
1686 (name "guile2.0-lib")
1687 (inputs `(("guile" ,guile-2.0)))))
1689 (define-public guile2.2-lib
1690 (deprecated-package "guile2.2-lib" guile-lib))
1692 (define-public guile-minikanren
1694 (name "guile-minikanren")
1695 (version "20150424.e844d85")
1699 (url "https://github.com/ijp/minikanren.git")
1700 (commit "e844d85512f8c055d3f96143ee506007389a25e3")))
1701 (file-name (string-append name "-" version "-checkout"))
1704 "0r50jlpzi940jlmxyy3ddqqwmj5r12gb4bcv0ssini9v8km13xz6"))))
1705 (build-system guile-build-system)
1707 `(("guile" ,guile-2.2)))
1708 (home-page "https://github.com/ijp/minikanren")
1709 (synopsis "MiniKanren declarative logic system, packaged for Guile")
1711 "MiniKanren is a relational programming extension to the Scheme
1712 programming Language, written as a smaller version of Kanren suitable for
1713 pedagogical purposes. It is featured in the book, The Reasoned Schemer,
1714 written by Dan Friedman, William Byrd, and Oleg Kiselyov.
1716 This is Ian Price's r6rs packaged version of miniKanren, which deviates
1717 slightly from miniKanren mainline.
1719 See http://minikanren.org/ for more on miniKanren generally.")
1720 (license license:expat)))
1722 (define-public guile2.0-minikanren
1724 (inherit guile-minikanren)
1725 (name "guile2.0-minikanren")
1726 (native-inputs `(("guile" ,guile-2.0)))))
1728 (define-public guile2.2-minikanren
1729 (deprecated-package "guile2.2-minikanren" guile-minikanren))
1731 (define-public guile-irregex
1733 (name "guile-irregex")
1738 "http://synthcode.com/scheme/irregex/irregex-"
1742 "1ia3m7dp3lcxa048q0gqbiwwsyvn99baw6xkhb4bhhzn4k7bwyqq"))))
1743 (build-system guile-build-system)
1745 '(#:phases (modify-phases %standard-phases
1746 (add-after 'unpack 'move-files-around
1748 ;; Move the relevant source files to src/ and create the
1749 ;; rx/ directory to match the expected module hierarchy.
1750 (mkdir-p "src/rx/source")
1751 (rename-file "irregex-guile.scm"
1752 "src/rx/irregex.scm")
1753 (rename-file "irregex.scm"
1754 "src/rx/source/irregex.scm")
1755 ;; Not really reachable via guile's packaging system,
1756 ;; but nice to have around.
1757 (rename-file "irregex-utils.scm"
1758 "src/rx/source/irregex-utils.scm")
1760 #:source-directory "src"))
1762 `(("guile" ,guile-2.2)))
1763 (home-page "http://synthcode.com/scheme/irregex")
1764 (synopsis "S-expression based regular expressions")
1766 "Irregex is an s-expression based alternative to your classic
1767 string-based regular expressions. It implements SRFI 115 and is deeply
1768 inspired by the SCSH regular expression system.")
1769 (license license:bsd-3)))
1771 (define-public guile2.0-irregex
1773 (inherit guile-irregex)
1774 (name "guile2.0-irregex")
1775 (native-inputs `(("guile" ,guile-2.0)))))
1777 (define-public guile2.2-irregex
1778 (deprecated-package "guile2.2-irregex" guile-irregex))
1780 (define-public haunt
1786 (uri (string-append "https://files.dthompson.us/haunt/haunt-"
1790 "056z4znikk83nr5mr0x2ac3iinqbywa2bvb37mhr566a1q50isfc"))))
1791 (build-system gnu-build-system)
1793 `(#:modules ((ice-9 match) (ice-9 ftw)
1794 ,@%gnu-build-system-modules)
1795 #:tests? #f ; test suite is non-deterministic :(
1796 #:phases (modify-phases %standard-phases
1797 (add-after 'install 'wrap-haunt
1798 (lambda* (#:key inputs outputs #:allow-other-keys)
1799 ;; Wrap the 'haunt' command to refer to the right
1801 (let* ((out (assoc-ref outputs "out"))
1802 (bin (string-append out "/bin"))
1803 (site (string-append
1804 out "/share/guile/site"))
1805 (deps (list (assoc-ref inputs "guile-reader")
1806 (assoc-ref inputs "guile-commonmark"))))
1807 (match (scandir site)
1809 (let ((modules (string-append site "/" version))
1810 (compiled-modules (string-append
1811 out "/lib/guile/" version
1813 (wrap-program (string-append bin "/haunt")
1814 `("GUILE_LOAD_PATH" ":" prefix
1816 ,@(map (lambda (dep)
1818 "/share/guile/site/"
1821 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
1823 ,@(map (lambda (dep)
1824 (string-append dep "/lib/guile/"
1830 `(("pkg-config" ,pkg-config)
1831 ("texinfo" ,texinfo)))
1833 `(("guile" ,guile-2.2)))
1835 `(("guile-reader" ,guile-reader)
1836 ("guile-commonmark" ,guile-commonmark)))
1837 (synopsis "Functional static site generator")
1838 (description "Haunt is a static site generator written in Guile
1839 Scheme. Haunt features a functional build system and an extensible
1840 interface for reading articles in any format.")
1841 (home-page "http://haunt.dthompson.us")
1842 (license license:gpl3+)))
1844 (define-public guile2.0-haunt
1847 (name "guile2.0-haunt")
1848 (inputs `(("guile" ,guile-2.0)))))
1850 (define-public guile2.2-haunt
1851 (deprecated-package "guile2.2-haunt" haunt))
1853 (define-public guile-redis
1855 (name "guile-redis")
1857 (home-page "https://github.com/aconchillo/guile-redis")
1860 (uri (string-append home-page "/archive/" version ".tar.gz"))
1863 "1li70a2716my9q9zfq0qn2x5d1cir9k2vx0jm9glm464yaf1vj39"))))
1864 (build-system gnu-build-system)
1866 `(("autoconf" ,autoconf)
1867 ("automake" ,automake)
1868 ("pkg-config" ,pkg-config)
1869 ("guile" ,guile-2.2)))
1870 (synopsis "Redis client library for Guile")
1871 (description "Guile-redis provides a Scheme interface to the Redis
1872 key-value cache and store.")
1873 (license license:lgpl3+)))
1875 (define-public guile2.0-redis
1877 (inherit guile-redis)
1878 (name "guile2.0-redis")
1879 (native-inputs `(("guile" ,guile-2.0)
1880 ,@(alist-delete "guile"
1881 (package-native-inputs guile-redis))))))
1883 (define-public guile2.2-redis
1884 (deprecated-package "guile2.2-redis" guile-redis))
1886 (define-public guile-commonmark
1888 (name "guile-commonmark")
1892 (uri (string-append "https://github.com/OrangeShark/" name
1893 "/releases/download/v" version
1894 "/" name "-" version ".tar.gz"))
1897 "17lrsdisa3kckh24q114vfmzdc4wkqa6ccwl4hdlrng5wpn1iman"))))
1898 (build-system gnu-build-system)
1900 `(("guile" ,guile-2.2)))
1902 `(("pkg-config" ,pkg-config)))
1903 (synopsis "CommonMark parser for Guile")
1905 "guile-commonmark is a library for parsing CommonMark, a fully specified
1906 variant of Markdown. The library is written in Guile Scheme and is designed
1907 to transform a CommonMark document to SXML. guile-commonmark tries to closely
1908 follow the @uref{http://commonmark.org/, CommonMark spec}, the main difference
1909 is no support for parsing block and inline level HTML.")
1910 (home-page "https://github.com/OrangeShark/guile-commonmark")
1911 (license license:lgpl3+)))
1913 (define-public guile2.0-commonmark
1915 (inherit guile-commonmark)
1916 (name "guile2.0-commonmark")
1917 (inputs `(("guile" ,guile-2.0)))))
1919 (define-public guile2.2-commonmark
1920 (deprecated-package "guile2.2-commonmark" guile-commonmark))
1922 (define-public mcron
1928 (uri (string-append "mirror://gnu/mcron/mcron-"
1932 "1i9mcp6r6my61zfiydsm3n6my41mwvl7dfala4q29qx0zn1ynlm4"))))
1933 (build-system gnu-build-system)
1935 '(#:phases (modify-phases %standard-phases
1936 (add-before 'check 'set-timezone
1937 (lambda* (#:key inputs #:allow-other-keys)
1938 ;; 'tests/job-specifier.scm' expects to be running in
1939 ;; UTC-2 or something.
1940 ;; FIXME: This issue is being investigated upstream, for
1941 ;; now we'll just skip the tests (see below):
1942 ;; <https://lists.gnu.org/archive/html/bug-mcron/2018-04/msg00005.html>.
1943 (let ((tzdata (assoc-ref inputs "tzdata")))
1945 (string-append tzdata
1947 (setenv "TZ" "UTC-2")
1949 (add-before 'check 'adjust-tests
1951 (substitute* "tests/job-specifier.scm"
1952 ;; (getpw) fails with "entry not found" in the build
1953 ;; environment, so pass an argument.
1955 "(getpwnam (getuid))")
1956 ;; The build environment lacks an entry for root in
1959 "(getpwnam \"nobody\")")
1961 ;; FIXME: Skip the 4 faulty tests (see above).
1962 (("\\(test-equal \"next-year\"" all)
1963 (string-append "(test-skip 4)\n" all)))
1965 (native-inputs `(("pkg-config" ,pkg-config)
1966 ("tzdata" ,tzdata-for-tests)))
1967 (inputs `(("ed" ,ed) ("which" ,which) ("guile" ,guile-2.2)))
1968 (home-page "https://www.gnu.org/software/mcron/")
1969 (synopsis "Run jobs at scheduled times")
1971 "GNU Mcron is a complete replacement for Vixie cron. It is used to run
1972 tasks on a schedule, such as every hour or every Monday. Mcron is written in
1973 Guile, so its configuration can be written in Scheme; the original cron
1974 format is also supported.")
1975 (license license:gpl3+)))
1977 (define-public mcron2
1978 ;; This was mthl's mcron development branch, and it became mcron 1.1.
1979 (deprecated-package "mcron2" mcron))
1981 (define-public guile-picture-language
1982 (let ((commit "91d10c96708d732145006dd2802acc4de08b632e")
1985 (name "guile-picture-language")
1986 (version (git-version "0.0.1" revision commit))
1990 (url "https://git.elephly.net/software/guile-picture-language.git")
1994 "1ydvw9dvssdvlvhh1dr8inyzy2x6m41qgp8hsivca1xysr4gc23a"))))
1995 (build-system gnu-build-system)
1997 `(("guile" ,guile-2.2)))
1999 `(("autoconf" ,autoconf)
2000 ("automake" ,automake)
2001 ("imagemagick" ,imagemagick)
2002 ("pkg-config" ,pkg-config)
2003 ("texinfo" ,texinfo)))
2004 (home-page "https://git.elephly.net/software/guile-picture-language.git")
2005 (synopsis "Picture language for Guile")
2007 "This package provides a simple SVG-based picture language for Guile.
2008 The picture values can directly be displayed in Geiser.")
2009 (license license:lgpl3+))))
2011 (define-public guile-studio
2012 (let ((commit "e2da64f014942a73996286c4abe3c3b1f8bd220c")
2015 (name "guile-studio")
2016 (version (git-version "0" revision commit))
2020 (url "https://git.elephly.net/software/guile-studio.git")
2024 "10v3kw41bzd8c2a6vxgrwbvl216d0k8f5s9h6pm8hahpd03jl7lm"))))
2025 (build-system gnu-build-system)
2027 `(#:tests? #f ; there are none
2029 (modify-phases %standard-phases
2032 (lambda* (#:key source inputs outputs #:allow-other-keys)
2033 (let* ((out (assoc-ref outputs "out"))
2034 (bin (string-append out "/bin/"))
2035 (share (string-append out "/share/")))
2038 (apply invoke "guile" "-s" "guile-studio-configure.scm"
2040 (assoc-ref inputs "emacs")
2041 (assoc-ref inputs "guile-picture-language")
2042 (string-append (assoc-ref inputs "adwaita-icon-theme")
2043 "/share/icons/Adwaita/")
2046 (delete 'install))))
2048 `(("guile" ,guile-2.2)
2049 ("guile-picture-language" ,guile-picture-language)
2051 ("emacs-geiser" ,emacs-geiser)
2052 ("emacs-company" ,emacs-company)
2053 ("emacs-flycheck" ,emacs-flycheck)
2054 ("emacs-smart-mode-line" ,emacs-smart-mode-line)
2055 ("emacs-paren-face" ,emacs-paren-face)
2056 ("adwaita-icon-theme" ,adwaita-icon-theme)))
2057 (home-page "https://gnu.org/software/guile")
2058 (synopsis "IDE for Guile")
2060 "This is Emacs with a few settings that make working with Guile easier
2061 for people new to Emacs. Features include: CUA mode, Geiser, tool bar icons
2062 to evaluate Guile buffers, support for Guile's very own picture language, code
2063 completion, a simple mode line, etc.")
2064 (license license:gpl3+))))
2066 (define-public guile-stis-parser
2067 (let ((commit "6e85d37ffc333b722f4413a6c648263701eb75bd")
2070 (name "guile-stis-parser")
2071 (version (git-version "0" revision commit))
2075 (url "https://gitlab.com/tampe/stis-parser")
2077 (file-name (git-file-name name version))
2080 "0v4hvq7rlpbra1ni73lf8k6sdmjlflr50yi3p1f24g85h77pc7c0"))))
2081 (build-system gnu-build-system)
2083 `(#:parallel-build? #f ; not supported
2085 (modify-phases %standard-phases
2086 (add-after 'unpack 'chdir
2087 (lambda _ (chdir "modules") #t))
2088 (add-after 'chdir 'use-canonical-directory-for-go-files
2090 (substitute* "Makefile.am"
2091 (("/ccache") "/site-ccache"))
2093 (add-after 'chdir 'delete-broken-symlink
2095 (delete-file "parser/stis-parser/lang/.#calc.scm")
2098 `(("guile" ,guile-2.2)))
2100 `(("autoconf" ,autoconf)
2101 ("automake" ,automake)
2102 ("pkg-config" ,pkg-config)))
2103 (home-page "https://gitlab.com/tampe/stis-parser")
2104 (synopsis "Parser combinator framework")
2106 "This package provides a functional parser combinator library that
2107 supports backtracking and a small logical framework. The idea is to build up
2108 chunks that are memoized and there is no clear scanner/parser separation,
2109 chunks can be expressions as well as simple tokens.")
2110 (license license:lgpl2.0+))))
2112 (define-public guile-persist
2113 (let ((commit "b14927b0368af51c024560aee5f55724aee35233")
2116 (name "guile-persist")
2117 (version (git-version "0" revision commit))
2121 (url "https://gitlab.com/tampe/guile-persist")
2123 (file-name (git-file-name name version))
2126 "0z5nf377wh8yj6n3sx2ddn4bdx1qrqnw899dlqjhg0q69qzil522"))))
2127 (build-system gnu-build-system)
2130 (modify-phases %standard-phases
2131 (add-after 'unpack 'patch-prefix
2132 (lambda* (#:key inputs outputs #:allow-other-keys)
2133 (substitute* "src/Makefile.am"
2134 (("/usr/local/lib/guile")
2135 (string-append (assoc-ref outputs "out") "/lib/guile"))
2136 (("/usr/local/include/guile")
2137 (string-append (assoc-ref inputs "guile") "/include/guile"))
2138 (("-L/usr/local/lib")
2139 (string-append "-L" (assoc-ref inputs "guile") "/lib"))
2140 ;; Use canonical directory for go files.
2141 (("/ccache") "/site-ccache"))
2143 (add-after 'unpack 'patch-library-reference
2144 (lambda* (#:key outputs #:allow-other-keys)
2145 (let ((out (assoc-ref outputs "out")))
2146 (substitute* "persist/persistance.scm"
2147 (("\"libguile-persist\"")
2148 (format #f "\"~a/lib/guile/2.2/extensions/libguile-persist\"" out)))
2151 `(("guile" ,guile-2.2)))
2153 `(("autoconf" ,autoconf)
2154 ("automake" ,automake)
2155 ("libtool" ,libtool)
2156 ("pkg-config" ,pkg-config)))
2157 (home-page "https://gitlab.com/tampe/guile-persist")
2158 (synopsis "Persistance programming framework for Guile")
2160 "This is a serialization library for serializing objects like classes
2161 and objects, closures and structs. This currently does not support
2162 serializing continuations or delimited continuations.")
2163 (license license:lgpl2.0+))))
2165 (define-public python-on-guile
2166 (let ((commit "0cb7c2b2fff4338ca6153473f3f5c409a818f293")
2169 (name "python-on-guile")
2170 (version (git-version "0.1.0" revision commit))
2174 (url "https://gitlab.com/python-on-guile/python-on-guile.git")
2176 (file-name (git-file-name name version))
2179 "0kpz08rrp5mwcf5ksc4flgrw992syham9x49dn9wq9w31bpcpnby"))))
2180 (build-system gnu-build-system)
2182 `(#:parallel-build? #f ; not supported
2184 '("GUILE_AUTO_COMPILE=0") ; to prevent guild errors
2186 (modify-phases %standard-phases
2187 (add-after 'unpack 'chdir
2188 (lambda _ (chdir "modules") #t))
2189 (add-after 'chdir 'use-canonical-directory-for-go-files
2191 (substitute* "Makefile.am"
2192 (("/ccache") "/site-ccache"))
2195 `(("guile" ,guile-2.2)))
2197 `(("guile-persist" ,guile-persist)
2198 ("guile-readline" ,guile-readline)
2199 ("guile-stis-parser" ,guile-stis-parser)))
2201 `(("autoconf" ,autoconf)
2202 ("automake" ,automake)
2203 ("libtool" ,libtool)
2204 ("pkg-config" ,pkg-config)))
2205 (home-page "https://gitlab.com/python-on-guile/python-on-guile/")
2206 (synopsis "Python implementation in Guile")
2208 "This package allows you to compile a Guile Python file to any target
2209 from @code{tree-il}.")
2210 (license license:lgpl2.0+))))
2212 (define-public guile-file-names
2214 (name "guile-file-names")
2218 (uri (string-append "http://brandon.invergo.net/software/download/"
2219 "guile-file-names/guile-file-names-"
2223 "1kwx5hanl40960w2nhyga7ry4l6c3c57zdrihk4yajj87vn3pmi8"))))
2224 (build-system gnu-build-system)
2227 (modify-phases %standard-phases
2228 (add-after 'unpack 'fix-target-directory
2230 (substitute* "src/Makefile.in"
2231 (("guilemoddir = \\$\\(GUILE_SITE\\)")
2232 "guilemoddir = $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
2235 `(("guile" ,guile-2.2)))
2237 `(("pkg-config" ,pkg-config)))
2238 (home-page "https://gitlab.com/brandoninvergo/guile-file-names")
2239 (synopsis "Manipulate file names")
2241 "The @code{(file-names)} module provides tools for manipulating file
2242 names. The module was built on the idea that doing anything more than a
2243 non-trivial modification of a file name string is a pain (making sure all
2244 slashes are present and accounted for, resolving @code{.} and @code{..}, etc).
2245 Inevitably, you have to break the string up into chunks and operate on that
2246 list of components. This module takes care of that for you.")
2247 (license license:lgpl3+)))
2249 (define-public guile-gi
2255 (uri (string-append "http://lonelycactus.com/tarball/guile_gi-"
2259 "0hs0viqzff7nzgcmyw721ima1jyymrlzrcycpgwrs6iprscxvqwn"))))
2260 (build-system gnu-build-system)
2262 `(#:configure-flags '("--with-gnu-filesystem-hierarchy")
2263 ;; The atomic_int_set test does not actually fail.
2264 #:make-flags '("XFAIL_TESTS=strjoinv.scm")))
2266 `(("gettext" ,gnu-gettext)
2267 ("libtool" ,libtool)
2268 ("pkg-config" ,pkg-config)))
2271 ("gobject-introspection" ,gobject-introspection)
2272 ("gssettings-desktop-schemas" ,gsettings-desktop-schemas)
2274 ("guile-lib" ,guile-lib)
2275 ("webkitgtk" ,webkitgtk)))
2276 (inputs `(("guile" ,guile-2.2)))
2277 (home-page "https://github.com/spk121/guile-gi")
2278 (synopsis "GObject bindings for Guile")
2280 "Guile-GI is a library for Guile that allows using GObject-based
2281 libraries, such as GTK+3. Its README comes with the disclaimer: This is
2283 (license license:gpl3+)))
2285 (define-public guile-srfi-159
2286 (let ((commit "1bd98abda2ae4ef8f36761a167903e55c6bda7bb")
2289 (name "guile-srfi-159")
2290 (version (git-version "0" revision commit))
2291 (home-page "https://bitbucket.org/bjoli/guile-srfi-159")
2294 (uri (hg-reference (changeset commit)
2298 "1zw6cmcy7xdbfiz3nz9arqnn7l2daidaps6ixkcrc9b6k51fdv3p"))
2299 (file-name (git-file-name name version))))
2300 (build-system guile-build-system)
2302 ;; The *-impl.scm files are actually included from module files; they
2303 ;; should not be compiled separately, but they must be installed.
2304 '(#:not-compiled-file-regexp "-impl\\.scm$"))
2306 `(("guile" ,guile-2.2)))
2307 (synopsis "Formatting combinators for Guile")
2309 "The @code{(srfi-159)} module and its sub-modules implement the
2310 formatting combinators specified by
2311 @uref{https://srfi.schemers.org/srfi-159/srfi-159.html, SRFI-159}. These are
2312 more expressive and flexible than the traditional @code{format} procedure.")
2313 (license license:bsd-3))))
2315 (define-public emacsy
2316 (let ((commit "7d49cc1425d5d209bdb82cac0d8ea0694b8b3784")
2320 (version (string-append "0.1.2-" revision "." (string-take commit 7)))
2324 (url "https://gitlab.com/janneke/emacsy.git")
2326 (file-name (string-append name "-" version))
2329 "0k9yns1v8zn135w60sx96nqs2bm2p2dvcvlm987hkw4lbff9ii6i"))))
2330 (build-system gnu-build-system)
2332 `(("emacsy-webkit-gtk"
2336 (url "https://gitlab.com/janneke/emacsy-webkit-gtk.git")
2337 (commit "35ded1b3e997fd779a17e0c4a2c73741718562d9")))
2338 (file-name (string-append "emacsy-webkit-gtk" "-" version))
2341 "1gp0li2rbp6in926r3hrww6cnh864pp46v1din2pgmd7vzzl7kg0"))))
2346 (url "https://gitlab.com/janneke/hello-emacsy.git")
2347 (commit "2c117e5286a261be4ff24938f3ae1d348396c538")))
2348 (file-name (string-append "hello-emacsy" "-" version))
2351 "15ykd7s8axcy8ym4v71fgal4x28fxnim0pv0jmpi3dnhizr63zqn"))))
2352 ("autoconf" ,autoconf)
2353 ("automake" ,automake)
2355 ("guile" ,guile-2.2)
2356 ("gettext" ,gnu-gettext)
2357 ("libtool" ,libtool)
2360 ("pkg-config" ,pkg-config)
2361 ("texinfo" ,texinfo)
2362 ("texlive" ,texlive)))
2364 `(("guile-lib" ,guile-lib)
2365 ("guile-readline" ,guile-readline)
2366 ("freeglut" ,freeglut)
2367 ("gssettings-desktop-schemas" ,gsettings-desktop-schemas)
2368 ("webkitgtk" ,webkitgtk)))
2369 (inputs `(("guile" ,guile-2.2)))
2372 (modify-phases %standard-phases
2373 (add-after 'unpack 'unpack-examples
2375 (copy-recursively (assoc-ref %build-inputs "emacsy-webkit-gtk")
2376 "example/emacsy-webkit-gtk")
2377 (copy-recursively (assoc-ref %build-inputs "hello-emacsy")
2378 "example/hello-emacsy")))
2379 (add-before 'configure 'setenv
2381 (setenv "GUILE_AUTO_COMPILE" "0"))))))
2382 (home-page "https://github.com/shanecelis/emacsy/")
2383 (synopsis "Embeddable GNU Emacs-like library using Guile")
2385 "Emacsy is an embeddable GNU Emacs-like library that uses GNU Guile
2386 as extension language. Emacsy can give a C program an Emacsy feel with
2387 keymaps, minibuffer, recordable macros, history, tab completion, major
2388 and minor modes, etc., and can also be used as a pure Guile library. It
2389 comes with a simple counter example using GLUT and browser examples in C
2390 using gtk+-3 and webkitgtk.")
2391 (license license:gpl3+))))