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 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2016 Erik Edrosa <erik.edrosa@gmail.com>
8 ;;; Copyright © 2016 Eraim Flashner <efraim@flashner.co.il>
9 ;;; Copyright © 2016, 2017 Alex Kost <alezost@gmail.com>
10 ;;; Copyright © 2016, 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@openmailbox.org>
11 ;;; Copyright © 2016 Amirouche <amirouche@hypermove.net>
12 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
13 ;;; Copyright © 2017 Andy Wingo <wingo@igalia.com>
14 ;;; Copyright © 2017 David Thompson <davet@gnu.org>
15 ;;; Copyright © 2017, 2018 Mathieu Othacehe <m.othacehe@gmail.com>
16 ;;; Copyright © 2017 Theodoros Foradis <theodoros@foradis.org>
17 ;;; Copyright © 2017 Nils Gillmann <ng0@n0.is>
18 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
19 ;;; Copyright © 2018 Maxim Cournoyer <maxim.cournoyer@gmail.com>
20 ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
21 ;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
22 ;;; Copyright © 2018 Eric Bavier <bavier@member.fsf.org>
24 ;;; This file is part of GNU Guix.
26 ;;; GNU Guix is free software; you can redistribute it and/or modify it
27 ;;; under the terms of the GNU General Public License as published by
28 ;;; the Free Software Foundation; either version 3 of the License, or (at
29 ;;; your option) any later version.
31 ;;; GNU Guix is distributed in the hope that it will be useful, but
32 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
33 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34 ;;; GNU General Public License for more details.
36 ;;; You should have received a copy of the GNU General Public License
37 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
39 (define-module (gnu packages guile)
40 #:use-module ((guix licenses) #:prefix license:)
41 #:use-module (gnu packages)
42 #:use-module (gnu packages aspell)
43 #:use-module (gnu packages autotools)
44 #:use-module (gnu packages base)
45 #:use-module (gnu packages bash)
46 #:use-module (gnu packages bdw-gc)
47 #:use-module (gnu packages compression)
48 #:use-module (gnu packages dbm)
49 #:use-module (gnu packages disk)
50 #:use-module (gnu packages ed)
51 #:use-module (gnu packages flex)
52 #:use-module (gnu packages gawk)
53 #:use-module (gnu packages gettext)
54 #:use-module (gnu packages gl)
55 #:use-module (gnu packages gperf)
56 #:use-module (gnu packages hurd)
57 #:use-module (gnu packages image)
58 #:use-module (gnu packages libffi)
59 #:use-module (gnu packages libunistring)
60 #:use-module (gnu packages linux)
61 #:use-module (gnu packages m4)
62 #:use-module (gnu packages man)
63 #:use-module (gnu packages maths)
64 #:use-module (gnu packages multiprecision)
65 #:use-module (gnu packages ncurses)
66 #:use-module (gnu packages networking)
67 #:use-module (gnu packages pkg-config)
68 #:use-module (gnu packages python)
69 #:use-module (gnu packages readline)
70 #:use-module (gnu packages sdl)
71 #:use-module (gnu packages slang)
72 #:use-module (gnu packages sqlite)
73 #:use-module (gnu packages texinfo)
74 #:use-module (gnu packages tls)
75 #:use-module (gnu packages version-control)
76 #:use-module (gnu packages xdisorg)
77 #:use-module (gnu packages xorg)
78 #:use-module (guix packages)
79 #:use-module (guix download)
80 #:use-module (guix git-download)
81 #:use-module (guix build-system gnu)
82 #:use-module (guix build-system guile)
83 #:use-module (guix build-system trivial)
84 #:use-module (guix utils)
85 #:use-module (ice-9 match)
86 #:use-module ((srfi srfi-1) #:prefix srfi-1:))
90 ;;; GNU Guile, and modules and extensions.
94 (define-public guile-1.8
100 (uri (string-append "mirror://gnu/guile/guile-" version
104 "0l200a0v7h8bh0cwz6v7hc13ds39cgqsmfrks55b1rbj5vniyiy3"))
105 (patches (search-patches "guile-1.8-cpp-4.5.patch"))))
106 (build-system gnu-build-system)
107 (arguments '(#:configure-flags '("--disable-error-on-warning")
109 ;; Insert a phase before `configure' to patch things up.
111 (modify-phases %standard-phases
112 (add-before 'configure 'patch-stuff
113 (lambda* (#:key outputs #:allow-other-keys)
114 ;; Add a call to `lt_dladdsearchdir' so that
115 ;; `libguile-readline.so' & co. are in the
116 ;; loader's search path.
117 (substitute* "libguile/dynl.c"
118 (("lt_dlinit.*$" match)
120 " ~a~% lt_dladdsearchdir(\"~a/lib\");~%"
122 (assoc-ref outputs "out"))))
124 ;; The usual /bin/sh...
125 (substitute* "ice-9/popen.scm"
126 (("/bin/sh") (which "sh")))
128 (inputs `(("gawk" ,gawk)
129 ("readline" ,readline)))
131 ;; Since `guile-1.8.pc' has "Libs: ... -lgmp -lltdl", these must be
133 (propagated-inputs `(("gmp" ,gmp)
134 ("libltdl" ,libltdl)))
136 ;; When cross-compiling, a native version of Guile itself is needed.
137 (self-native-input? #t)
140 (list (search-path-specification
141 (variable "GUILE_LOAD_PATH")
142 (files '("share/guile/site")))))
144 (synopsis "Scheme implementation intended especially for extensions")
146 "Guile is the GNU Ubiquitous Intelligent Language for Extensions, the
147 official extension language of the GNU system. It is an implementation of
148 the Scheme language which can be easily embedded in other applications to
149 provide a convenient means of extending the functionality of the application
150 without requiring the source code to be rewritten.")
151 (home-page "https://www.gnu.org/software/guile/")
152 (license license:lgpl2.0+)))
154 (define-public guile-2.0
160 (uri (string-append "mirror://gnu/guile/guile-" version
164 "10lxc6l5alf3lzbs3ihnbfy6dfcrsyf8667wa57f26vf4mk2ai78"))))
165 (build-system gnu-build-system)
166 (native-inputs `(("pkgconfig" ,pkg-config)))
167 (inputs `(("libffi" ,libffi)
168 ,@(libiconv-if-needed)
170 ;; We need Bash when cross-compiling because some of the scripts
171 ;; in bin/ refer to it. Use 'bash-minimal' because we don't need
172 ;; an interactive Bash with Readline and all.
173 ,@(if (target-mingw?) '() `(("bash" ,bash-minimal)))))
175 `( ;; These ones aren't normally needed here, but since `libguile-2.0.la'
176 ;; reads `-lltdl -lunistring', adding them here will add the needed
177 ;; `-L' flags. As for why the `.la' file lacks the `-L' flags, see
178 ;; <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/18903>.
179 ("libunistring" ,libunistring)
181 ;; Depend on LIBLTDL, not LIBTOOL. That way, we avoid some the extra
182 ;; dependencies that LIBTOOL has, which is helpful during bootstrap.
185 ;; The headers and/or `guile-2.0.pc' refer to these packages, so they
186 ;; must be propagated.
190 (self-native-input? #t)
192 (outputs '("out" "debug"))
195 `(#:configure-flags '("--disable-static") ; saves 3 MiB
197 (modify-phases %standard-phases
198 (add-before 'configure 'pre-configure
199 (lambda* (#:key inputs #:allow-other-keys)
200 ;; Tell (ice-9 popen) the file name of Bash.
201 (let ((bash (assoc-ref inputs "bash")))
202 (substitute* "module/ice-9/popen.scm"
203 ;; If bash is #f allow fallback for user to provide
204 ;; "bash" in PATH. This happens when cross-building to
205 ;; MinGW for which we do not have Bash yet.
207 ,@(if (target-mingw?)
209 (string-append bash "/bin/bash")
211 '((string-append bash "/bin/bash")))))
215 (list (search-path-specification
216 (variable "GUILE_LOAD_PATH")
217 (files '("share/guile/site/2.0")))
218 (search-path-specification
219 (variable "GUILE_LOAD_COMPILED_PATH")
220 (files '("lib/guile/2.0/site-ccache")))))
222 (synopsis "Scheme implementation intended especially for extensions")
224 "Guile is the GNU Ubiquitous Intelligent Language for Extensions, the
225 official extension language of the GNU system. It is an implementation of
226 the Scheme language which can be easily embedded in other applications to
227 provide a convenient means of extending the functionality of the application
228 without requiring the source code to be rewritten.")
229 (home-page "https://www.gnu.org/software/guile/")
230 (license license:lgpl3+)))
232 (define-public guile-2.0.13
233 ;; For testing a "minimal" Guix
235 (package (inherit guile-2.0)
240 (uri (string-append "mirror://gnu/guile/guile-" version
244 "12yqkr974y91ylgw6jnmci2v90i90s7h9vxa4zk0sai8vjnz4i1p")))))))
246 (define-public guile-2.2
247 (package (inherit guile-2.0)
253 ;; Note: we are limited to one of the compression formats
254 ;; supported by the bootstrap binaries, so no lzip here.
255 (uri (string-append "mirror://gnu/guile/guile-" version
259 "07p3g0v2ba2vlfbfidqzlgbhnzdx46wh2rgc5gszq1mjyx5bks6r"))
260 (modules '((guix build utils)))
262 ;; Remove the pre-built object files. Instead, build everything
263 ;; from source, at the expense of significantly longer build
264 ;; times (almost 3 hours on a 4-core Intel i5).
266 (for-each delete-file
267 (find-files "prebuilt" "\\.go$"))
269 (properties '((timeout . 72000) ;20 hours
270 (max-silent-time . 36000))) ;10 hours (needed on ARM
271 ; when heavily loaded)
273 (list (search-path-specification
274 (variable "GUILE_LOAD_PATH")
275 (files '("share/guile/site/2.2")))
276 (search-path-specification
277 (variable "GUILE_LOAD_COMPILED_PATH")
278 (files '("lib/guile/2.2/site-ccache")))))
281 (if (%current-target-system)
282 (substitute-keyword-arguments (package-arguments guile-2.0)
283 ((#:phases phases '%standard-phases)
284 `(modify-phases ,phases
285 (add-after 'unpack 'sacrifice-elisp-support
287 ;; Cross-compiling language/elisp/boot.el fails, so
289 ;; <https://git.savannah.gnu.org/cgit/guile.git/commit/?h=stable-2.2&id=988aa29238fca862c7e2cb55f15762a69b4c16ce>
290 ;; for the upstream fix.
291 (substitute* "module/Makefile.in"
292 (("language/elisp/boot\\.el")
296 `((add-after 'unpack 'allow-madvise-ENOSYS
298 ;; Do not warn about ENOSYS on 'madvise'. This is
300 ;; 45e4ace6603e00b297e6542362273041aebe7305 does.
301 ;; TODO: Remove for Guile >= 2.2.5.
302 (substitute* "libguile/vm.c"
303 (("perror \\(\"madvise failed\"\\)")
304 "if (errno != ENOSYS) perror (\"madvised failed\");"))
307 (package-arguments guile-2.0)))))
309 (define-public guile-2.2/fixed
310 ;; A package of Guile 2.2 that's rarely changed. It is the one used
311 ;; in the `base' module, and thus changing it entails a full rebuild.
314 (properties '((hidden? . #t) ;people should install 'guile-2.2'
315 (timeout . 72000) ;20 hours
316 (max-silent-time . 36000))))) ;10 hours (needed on ARM
317 ; when heavily loaded)
319 (define-public guile-next
320 ;; This is the upcoming Guile 3.0, with JIT support.
321 (let ((commit "6f3357b0df64c4be17e72079864c09a542f1c779")
328 (inherit (package-source guile-2.2))
329 (uri (string-append "https://alpha.gnu.org/gnu/guile/guile-"
333 "0iba93yqn6mvgid0rfsrg4amym36pg9m8cqdplxsy222blrj9gh1"))))
335 (list (search-path-specification
336 (variable "GUILE_LOAD_PATH")
337 (files '("share/guile/site/3.0")))
338 (search-path-specification
339 (variable "GUILE_LOAD_COMPILED_PATH")
340 (files '("lib/guile/3.0/site-ccache"
341 "share/guile/site/3.0")))))
342 (properties '((ftp-server . "alpha.gnu.org")
343 (upstream-name . "guile"))))))
345 (define (make-guile-readline guile)
347 (name "guile-readline")
348 (version (package-version guile))
349 (source (package-source guile))
350 (build-system gnu-build-system)
352 '(#:configure-flags '("--disable-silent-rules")
353 #:phases (modify-phases %standard-phases
354 (add-before 'build 'chdir
355 (lambda* (#:key outputs #:allow-other-keys)
356 (invoke "make" "-C" "libguile" "scmconfig.h")
357 (invoke "make" "-C" "lib")
358 (chdir "guile-readline")
360 (substitute* "Makefile"
361 (("../libguile/libguile-[[:graph:]]+\\.la")
362 ;; Remove dependency on libguile-X.Y.la.
364 (("^READLINE_LIBS = (.*)$" _ libs)
365 ;; Link against the provided libguile.
366 (string-append "READLINE_LIBS = "
367 "-lguile-$(GUILE_EFFECTIVE_VERSION) "
369 (("\\$\\(top_builddir\\)/meta/build-env")
370 ;; Use the provided Guile, not the one from
374 ;; Install modules to the 'site' directories.
376 "moddir = $(pkgdatadir)/site/$(GUILE_EFFECTIVE_VERSION)\n")
377 (("^ccachedir = .*$")
378 "ccachedir = $(pkglibdir)/$(GUILE_EFFECTIVE_VERSION)/site-ccache\n"))
380 ;; Load 'guile-readline.so' from the right place.
381 (substitute* "ice-9/readline.scm"
382 (("load-extension \"guile-readline\"")
383 (format #f "load-extension \
384 (string-append ~s \"/lib/guile/\" (effective-version) \"/extensions/guile-readline\")"
385 (assoc-ref outputs "out"))))
387 (home-page (package-home-page guile))
388 (native-inputs (package-native-inputs guile))
390 `(,@(package-inputs guile) ;to placate 'configure'
391 ,@(package-propagated-inputs guile)
393 ("readline" ,readline)))
394 (synopsis "Line editing support for GNU Guile")
396 "This module provides line editing support via the Readline library for
397 GNU@tie{}Guile. Use the @code{(ice-9 readline)} module and call its
398 @code{activate-readline} procedure to enable it.")
399 (license license:gpl3+)))
401 (define-public guile-readline
402 (make-guile-readline guile-2.2))
404 (define (guile-variant-package-name prefix)
406 "Return NAME with PREFIX instead of \"guile-\", when applicable."
407 (if (string-prefix? "guile-" name)
408 (string-append prefix "-"
410 (string-length "guile-")))
413 (define package-for-guile-2.2
414 ;; A procedure that rewrites the dependency tree of the given package to use
415 ;; GUILE-2.2 instead of GUILE-2.0.
416 (package-input-rewriting `((,guile-2.0 . ,guile-2.2))
417 (guile-variant-package-name "guile2.2")))
419 (define package-for-guile-2.0
420 ;; Likewise, but the other way around. :-)
421 (package-input-rewriting `((,guile-2.2 . ,guile-2.0))
422 (guile-variant-package-name "guile2.0")))
424 (define-public guile-for-guile-emacs
425 (package (inherit guile-2.2)
426 (name "guile-for-guile-emacs")
427 (version "20150510.d8d9a8d")
431 (url "git://git.hcoop.net/git/bpt/guile.git")
432 (commit "d8d9a8da05ec876acba81a559798eb5eeceb5a17")))
433 (file-name (string-append name "-" version "-checkout"))
436 "00sprsshy16y8pxjy126hr2adqcvvzzz96hjyjwgg8swva1qh6b0"))))
438 (substitute-keyword-arguments `(;; Tests aren't passing for now.
439 ;; Obviously we should re-enable this!
441 ,@(package-arguments guile-2.2))
443 `(modify-phases ,phases
444 (add-after 'unpack 'autogen
446 (zero? (system* "sh" "autogen.sh"))))
447 (add-before 'autogen 'patch-/bin/sh
449 (substitute* "build-aux/git-version-gen"
450 (("#!/bin/sh") (string-append "#!" (which "sh"))))
453 `(("autoconf" ,autoconf)
454 ("automake" ,automake)
458 ("gettext" ,gettext-minimal)
459 ,@(package-native-inputs guile-2.2)))
460 ;; Same as in guile-2.0
462 (list (search-path-specification
463 (variable "GUILE_LOAD_PATH")
464 (files '("share/guile/site/2.0")))
465 (search-path-specification
466 (variable "GUILE_LOAD_COMPILED_PATH")
467 (files '("lib/guile/2.0/site-ccache"
468 "share/guile/site/2.0")))))))
470 ;; There has not been any release yet.
471 (define-public guildhall
472 (let ((commit "2fe2cc539f4b811bbcd69e58738db03eb5a2b778")
476 (version (string-append "0-" revision "." (string-take commit 9)))
480 (url "https://github.com/ijp/guildhall.git")
482 (file-name (string-append name "-" version "-checkout"))
485 "115bym7bg66h3gs399yb2vkzc2ygriaqsn4zbrg8f054mgy8wzn1"))))
486 (build-system gnu-build-system)
489 (modify-phases %standard-phases
490 ;; Tests fail without this fix because they try to load the bash
491 ;; executable as a Scheme file. See bug report at
492 ;; https://github.com/ijp/guildhall/issues/22
493 (add-after 'unpack 'fix-bug-22
495 (substitute* "Makefile.am"
496 (("TESTS_ENVIRONMENT=.*")
497 "AM_TESTS_ENVIRONMENT=srcdir=$(abs_top_srcdir)/tests/
498 TEST_EXTENSIONS = .scm
499 SCM_LOG_COMPILER= $(top_builddir)/env $(GUILE)
500 AM_SCM_LOG_FLAGS = --no-auto-compile -s")
501 ;; FIXME: one of the database tests fails for unknown
502 ;; reasons. It does not fail when run outside of Guix.
503 (("tests/database.scm") ""))
506 `(("guile" ,guile-2.0)))
508 `(("zip" ,zip) ; for tests
509 ("autoconf" ,autoconf)
510 ("automake" ,automake)
511 ("texinfo" ,texinfo)))
512 (synopsis "Package manager for Guile")
514 "Guildhall is a package manager written for Guile Scheme. A guild is
515 an association of independent craftspeople. A guildhall is where they meet.
516 This Guildhall aims to make a virtual space for Guile wizards and journeyfolk
519 On a practical level, Guildhall lets you share Scheme modules and programs
520 over the internet, and install code that has been shared by others. Guildhall
521 can handle dependencies, so when a program requires several libraries, and
522 each of those has further dependencies, all of the prerequisites for the
523 program can be installed in one go.")
524 (home-page "https://github.com/ijp/guildhall")
525 (license license:gpl3+))))
532 (define-public artanis
533 (let ((release "0.2.1")
537 (version (if (zero? revision)
539 (string-append release "-"
540 (number->string revision))))
543 (uri (string-append "mirror://gnu/artanis/artanis-"
545 (file-name (string-append name "-" version ".tar.gz"))
548 "041ajcg2pz918kd9iqcj4inpzddc3impvz3r2nhlpbv8zrz011hn"))
549 (modules '((guix build utils)))
552 (delete-file-recursively "artanis/third-party/json.scm")
553 (delete-file-recursively "artanis/third-party/json")
554 (substitute* '("artanis/artanis.scm"
556 (("(#:use-module \\()artanis third-party (json\\))" _
558 (string-append use-module json)))
559 (substitute* "artanis/oht.scm"
560 (("([[:punct:][:space:]]+)(->json-string)([[:punct:][:space:]]+)"
561 _ pre json-string post)
565 (substitute* "artanis/artanis.scm"
566 (("[[:punct:][:space:]]+->json-string[[:punct:][:space:]]+")
569 (build-system gnu-build-system)
570 ;; TODO: Add guile-dbi and guile-dbd optional dependencies.
571 (inputs `(("guile" ,guile-2.2)
572 ("guile-json" ,guile-json)))
573 (native-inputs `(("bash" ,bash) ;for the `source' builtin
574 ("pkgconfig" ,pkg-config)
575 ("util-linux" ,util-linux))) ;for the `script' command
578 ;; TODO: The documentation must be built with the `docs' target.
579 (let* ((out (assoc-ref %outputs "out"))
580 (scm (string-append out "/share/guile/site/2.2"))
581 (go (string-append out "/lib/guile/2.2/site-ccache")))
582 ;; Don't use (%site-dir) for site paths.
583 (list (string-append "MOD_PATH=" scm)
584 (string-append "MOD_COMPILED_PATH=" go)))
587 (modify-phases %standard-phases
588 (add-before 'install 'substitute-root-dir
589 (lambda* (#:key outputs #:allow-other-keys)
590 (let ((out (assoc-ref outputs "out")))
591 (substitute* "Makefile" ;ignore the execution of bash.bashrc
592 ((" /etc/bash.bashrc") " /dev/null"))
593 (substitute* "Makefile" ;set the root of config files to OUT
594 ((" /etc") (string-append " " out "/etc")))
595 (mkdir-p (string-append out "/bin")) ;for the `art' executable
597 (add-after 'install 'wrap-art
598 (lambda* (#:key outputs #:allow-other-keys)
599 (let* ((out (assoc-ref outputs "out"))
600 (bin (string-append out "/bin"))
601 (scm (string-append out "/share/guile/site/2.2"))
602 (go (string-append out "/lib/guile/2.2/site-ccache")))
603 (wrap-program (string-append bin "/art")
604 `("GUILE_LOAD_PATH" ":" prefix (,scm))
605 `("GUILE_LOAD_COMPILED_PATH" ":" prefix (,go)))
607 (synopsis "Web application framework written in Guile")
608 (description "GNU Artanis is a web application framework written in Guile
609 Scheme. A web application framework (WAF) is a software framework that is
610 designed to support the development of dynamic websites, web applications, web
611 services and web resources. The framework aims to alleviate the overhead
612 associated with common activities performed in web development. Artanis
613 provides several tools for web development: database access, templating
614 frameworks, session management, URL-remapping for RESTful, page caching, and
616 (home-page "https://www.gnu.org/software/artanis/")
617 (license (list license:gpl3+ license:lgpl3+))))) ;dual license
619 (define-public guile-reader
621 (name "guile-reader")
625 (uri (string-append "mirror://savannah/guile-reader/guile-reader-"
629 "0592s2s8ampqmqwilc4fvcild6rb9gy79di6vxv5kcdmv23abkgx"))))
630 (build-system gnu-build-system)
631 (native-inputs `(("pkgconfig" ,pkg-config)
632 ("gperf" ,gperf-3.0)))
633 (inputs `(("guile" ,guile-2.2)))
634 (synopsis "Framework for building readers for GNU Guile")
636 "Guile-Reader is a simple framework for building readers for GNU Guile.
638 The idea is to make it easy to build procedures that extend Guile’s read
639 procedure. Readers supporting various syntax variants can easily be written,
640 possibly by re-using existing “token readers” of a standard Scheme
641 readers. For example, it is used to implement Skribilo’s R5RS-derived
644 Guile-Reader’s approach is similar to Common Lisp’s “read table”, but
645 hopefully more powerful and flexible (for instance, one may instantiate as
646 many readers as needed).")
647 (home-page "https://www.nongnu.org/guile-reader/")
648 (license license:gpl3+)))
650 (define-public guile2.0-reader
651 (package-for-guile-2.0 guile-reader))
652 (define-public guile2.2-reader
653 (deprecated-package "guile2.2-reader" guile-reader))
655 (define-public guile-ncurses
657 (name "guile-ncurses")
661 (uri (string-append "mirror://gnu/guile-ncurses/guile-ncurses-"
665 "1wvggbr4xv8idh1hzd8caj4xfp4pln78a7w1wqzd4zgzwmnzxr2f"))))
666 (build-system gnu-build-system)
667 (inputs `(("ncurses" ,ncurses)
668 ("guile" ,guile-2.2)))
669 (native-inputs `(("pkg-config" ,pkg-config)))
671 '(#:configure-flags (list "--with-ncursesw" ; Unicode support
672 "--with-gnu-filesystem-hierarchy")
674 (modify-phases %standard-phases
675 (add-before 'build 'fix-libguile-ncurses-file-name
676 (lambda* (#:key outputs #:allow-other-keys)
677 (and (zero? (system* "make" "install"
680 (parallel-job-count))))
681 (let* ((out (assoc-ref outputs "out"))
683 (files (find-files dir ".scm")))
685 (("\"libguile-ncurses\"")
686 (format #f "\"~a/lib/guile/2.2/libguile-ncurses\""
689 (home-page "https://www.gnu.org/software/guile-ncurses/")
690 (synopsis "Guile bindings to ncurses")
692 "guile-ncurses provides Guile language bindings for the ncurses
694 (license license:lgpl3+)))
696 (define-public guile-ncurses/gpm
698 (inherit guile-ncurses)
699 (name "guile-ncurses-with-gpm")
700 (inputs `(("ncurses" ,ncurses/gpm)
701 ("guile" ,guile-2.2)))))
709 (uri (string-append "mirror://gnu/mcron/mcron-"
713 "1i9mcp6r6my61zfiydsm3n6my41mwvl7dfala4q29qx0zn1ynlm4"))))
714 (build-system gnu-build-system)
716 '(#:phases (modify-phases %standard-phases
717 (add-before 'check 'set-timezone
718 (lambda* (#:key inputs #:allow-other-keys)
719 ;; 'tests/job-specifier.scm' expects to be running in
720 ;; UTC-2 or something.
721 ;; FIXME: This issue is being investigated upstream, for
722 ;; now we'll just skip the tests (see below):
723 ;; <https://lists.gnu.org/archive/html/bug-mcron/2018-04/msg00005.html>.
724 (let ((tzdata (assoc-ref inputs "tzdata")))
726 (string-append tzdata
728 (setenv "TZ" "UTC-2")
730 (add-before 'check 'adjust-tests
732 (substitute* "tests/job-specifier.scm"
733 ;; (getpw) fails with "entry not found" in the build
734 ;; environment, so pass an argument.
736 "(getpwnam (getuid))")
737 ;; The build environment lacks an entry for root in
740 "(getpwnam \"nobody\")")
742 ;; FIXME: Skip the 4 faulty tests (see above).
743 (("\\(test-equal \"next-year\"" all)
744 (string-append "(test-skip 4)\n" all)))
746 (native-inputs `(("pkg-config" ,pkg-config)
747 ("tzdata" ,tzdata-for-tests)))
748 (inputs `(("ed" ,ed) ("which" ,which) ("guile" ,guile-2.2)))
749 (home-page "https://www.gnu.org/software/mcron/")
750 (synopsis "Run jobs at scheduled times")
752 "GNU Mcron is a complete replacement for Vixie cron. It is used to run
753 tasks on a schedule, such as every hour or every Monday. Mcron is written in
754 Guile, so its configuration can be written in Scheme; the original cron
755 format is also supported.")
756 (license license:gpl3+)))
758 (define-public mcron2
759 ;; This was mthl's mcron development branch, and it became mcron 1.1.
760 (deprecated-package "mcron2" mcron))
762 (define-public guile-hall
770 (url "https://gitlab.com/a-sassmannshausen/guile-hall")
771 (commit "7d1094a12fe917209ce5b76c681cc8c862d4c65b")))
772 (file-name "guile-hall-0.1.1-checkout")
775 "03kb09cjca98hlbx9mj12mqinzsnnvp6ci6i975n88pjhaxigyp1"))))
776 (build-system gnu-build-system)
781 ,@%gnu-build-system-modules)
788 (lambda* (#:key outputs #:allow-other-keys)
789 (let* ((out (assoc-ref outputs "out"))
790 (bin (string-append out "/bin/"))
791 (site (string-append out "/share/guile/site")))
792 (match (scandir site)
794 (let ((modules (string-append site "/" version))
804 (string-append bin file)
805 `("GUILE_LOAD_PATH" ":" prefix (,modules))
806 `("GUILE_LOAD_COMPILED_PATH"
809 (,compiled-modules))))
810 ,(list 'list "hall"))
813 `(("autoconf" ,autoconf)
814 ("automake" ,automake)
815 ("pkg-config" ,pkg-config)
816 ("texinfo" ,texinfo)))
817 (inputs `(("guile" ,guile-2.2)))
819 `(("guile-config" ,guile-config)))
820 (synopsis "Guile project tooling")
822 "Hall is a command-line application and a set of Guile libraries that
823 allow you to quickly create and publish Guile projects. It allows you to
824 transparently support the GNU build system, manage a project hierarchy &
825 provides tight coupling to Guix.")
827 "https://gitlab.com/a-sassmannshausen/guile-hall")
828 (license license:gpl3+)))
830 (define-public guile-ics
837 (url "https://github.com/artyom-poptsov/guile-ics")
838 (commit (string-append "v" version))))
839 (file-name (string-append name "-" version "-checkout"))
842 "0qjjvadr7gibdq9jvwkmlkb4afsw9n2shfj9phpiadinxk3p4m2g"))))
843 (build-system gnu-build-system)
845 `(("autoconf" ,autoconf-wrapper)
846 ("automake" ,automake)
848 ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
849 ("gettext" ,gettext-minimal)
850 ("pkg-config" ,pkg-config)))
851 (inputs `(("guile" ,guile-2.2) ("which" ,which)))
852 (propagated-inputs `(("guile-lib" ,guile-lib)))
853 (home-page "https://github.com/artyom-poptsov/guile-ics")
854 (synopsis "Guile parser library for the iCalendar format")
856 "Guile-ICS is an iCalendar (RFC5545) format parser library written in
857 pure Scheme. The library can be used to read and write iCalendar data.
859 The library is shipped with documentation in Info format and usage examples.")
860 (license license:gpl3+)))
862 (define-public guile-lib
868 (uri (string-append "mirror://savannah/guile-lib/guile-lib-"
872 "0aizxdif5dpch9cvs8zz5g8ds5s4xhfnwza2il5ji7fv2h7ks7bd"))))
873 (build-system gnu-build-system)
876 '("GUILE_AUTO_COMPILE=0") ; to prevent guild errors
878 (modify-phases %standard-phases
879 (add-before 'configure 'patch-module-dir
881 (substitute* "src/Makefile.in"
882 (("^moddir = ([[:graph:]]+)")
883 "moddir = $(datadir)/guile/site/@GUILE_EFFECTIVE_VERSION@\n")
884 (("^godir = ([[:graph:]]+)")
886 $(libdir)/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n"))
888 (native-inputs `(("pkg-config" ,pkg-config)))
889 (inputs `(("guile" ,guile-2.2)))
890 (home-page "https://www.nongnu.org/guile-lib/")
891 (synopsis "Collection of useful Guile Scheme modules")
893 "Guile-Lib is intended as an accumulation place for pure-scheme Guile
894 modules, allowing for people to cooperate integrating their generic Guile
895 modules into a coherent library. Think \"a down-scaled, limited-scope CPAN
898 ;; The whole is under GPLv3+, but some modules are under laxer
899 ;; distribution terms such as LGPL and public domain. See `COPYING' for
901 (license license:gpl3+)))
903 (define-public guile2.0-lib
904 (package-for-guile-2.0 guile-lib))
906 (define-public guile2.2-lib
907 (deprecated-package "guile2.2-lib" guile-lib))
909 (define-public guile-json
913 (home-page "https://github.com/aconchillo/guile-json")
916 (uri (string-append "https://download.savannah.nongnu.org/releases/"
917 name "/" name "-" version ".tar.gz"))
920 "15gnb84d7hpazqhskkf3g9z4r6knw54wfj4ch5270kakz1lp70c9"))))
921 (build-system gnu-build-system)
922 (native-inputs `(("pkg-config" ,pkg-config)
923 ("guile" ,guile-2.2)))
924 (inputs `(("guile" ,guile-2.2)))
925 (synopsis "JSON module for Guile")
927 "Guile-JSON supports parsing and building JSON documents according to the
928 specification. These are the main features:
931 @item Strictly complies to @uref{http://json.org, specification}.
932 @item Build JSON documents programmatically via macros.
933 @item Unicode support for strings.
934 @item Allows JSON pretty printing.
937 ;; Version 1.2.0 switched to GPLv3+ (from LGPLv3+).
938 (license license:gpl3+)))
940 (define-public guile2.2-json
941 (deprecated-package "guile2.2-json" guile-json))
943 (define-public guile2.0-json
944 (package-for-guile-2.0 guile-json))
946 (define-public guile-json-3
947 ;; This version is incompatible with 1.x; see the 'NEWS' file.
954 (uri (string-append "https://download.savannah.nongnu.org/releases/"
955 name "/" name "-" version ".tar.gz"))
958 "1yfqscz74i4vxylabd3s9l0wbdp8bg9qxnv1ixdm3b1l7zdx00z3"))))))
960 (define-public guile-minikanren
962 (name "guile-minikanren")
963 (version "20150424.e844d85")
967 (url "https://github.com/ijp/minikanren.git")
968 (commit "e844d85512f8c055d3f96143ee506007389a25e3")))
969 (file-name (string-append name "-" version "-checkout"))
972 "0r50jlpzi940jlmxyy3ddqqwmj5r12gb4bcv0ssini9v8km13xz6"))))
973 (build-system guile-build-system)
975 `(("guile" ,guile-2.2)))
976 (home-page "https://github.com/ijp/minikanren")
977 (synopsis "MiniKanren declarative logic system, packaged for Guile")
979 "MiniKanren is a relational programming extension to the Scheme
980 programming Language, written as a smaller version of Kanren suitable for
981 pedagogical purposes. It is featured in the book, The Reasoned Schemer,
982 written by Dan Friedman, William Byrd, and Oleg Kiselyov.
984 This is Ian Price's r6rs packaged version of miniKanren, which deviates
985 slightly from miniKanren mainline.
987 See http://minikanren.org/ for more on miniKanren generally.")
988 (license license:expat)))
990 (define-public guile2.0-minikanren
991 (package-for-guile-2.0 guile-minikanren))
993 (define-public guile2.2-minikanren
994 (deprecated-package "guile2.2-minikanren" guile-minikanren))
996 (define-public guile-miniadapton
997 (let ((commit "1b5749422304567c96ac5367f2221dda9eff5880")
1000 (name "guile-miniadapton")
1001 (version (string-append "0-" revision "." (string-take commit 9)))
1005 (url "https://github.com/fisherdj/miniAdapton.git")
1007 (file-name (string-append name "-" version "-checkout"))
1010 "09q51zkw2fypad5xixskfzw2cjhjgs5cswdp3i7cpp651rb3zndh"))))
1011 (build-system guile-build-system)
1013 `(("guile" ,guile-2.2)))
1014 (home-page "https://github.com/fisherdj/miniAdapton")
1015 (synopsis "Minimal implementation of incremental computation in Guile
1017 (description "This package provides a complete Scheme implementation of
1018 miniAdapton, which implements the core functionality of the Adapton system for
1019 incremental computation (also known as self-adjusting computation). Like
1020 Adapton, miniAdapton allows programmers to safely combine mutation and
1021 memoization. miniAdapton is built on top of an even simpler system,
1022 microAdapton. Both miniAdapton and microAdapton are designed to be easy to
1023 understand, extend, and port to host languages other than Scheme.")
1024 (license license:expat))))
1026 (define-public guile-irregex
1028 (name "guile-irregex")
1033 "http://synthcode.com/scheme/irregex/irregex-"
1037 "1ia3m7dp3lcxa048q0gqbiwwsyvn99baw6xkhb4bhhzn4k7bwyqq"))))
1038 (build-system guile-build-system)
1040 '(#:phases (modify-phases %standard-phases
1041 (add-after 'unpack 'move-files-around
1043 ;; Move the relevant source files to src/ and create the
1044 ;; rx/ directory to match the expected module hierarchy.
1045 (mkdir-p "src/rx/source")
1046 (rename-file "irregex-guile.scm"
1047 "src/rx/irregex.scm")
1048 (rename-file "irregex.scm"
1049 "src/rx/source/irregex.scm")
1050 ;; Not really reachable via guile's packaging system,
1051 ;; but nice to have around.
1052 (rename-file "irregex-utils.scm"
1053 "src/rx/source/irregex-utils.scm")
1055 #:source-directory "src"))
1057 `(("guile" ,guile-2.2)))
1058 (home-page "http://synthcode.com/scheme/irregex")
1059 (synopsis "S-expression based regular expressions")
1061 "Irregex is an s-expression based alternative to your classic
1062 string-based regular expressions. It implements SRFI 115 and is deeply
1063 inspired by the SCSH regular expression system.")
1064 (license license:bsd-3)))
1066 (define-public guile2.0-irregex
1067 (package-for-guile-2.0 guile-irregex))
1069 (define-public guile2.2-irregex
1070 (deprecated-package "guile2.2-irregex" guile-irregex))
1072 ;; There are two guile-gdbm packages, one using the FFI and one with
1073 ;; direct C bindings, hence the verbose name.
1075 (define-public guile-gdbm-ffi
1077 (name "guile-gdbm-ffi")
1078 (version "20120209.fa1d5b6")
1082 (url "https://github.com/ijp/guile-gdbm.git")
1083 (commit "fa1d5b6231d0e4d096687b378c025f2148c5f246")))
1084 (file-name (string-append name "-" version "-checkout"))
1085 (patches (search-patches
1086 "guile-gdbm-ffi-support-gdbm-1.14.patch"))
1089 "1j8wrsw7v9w6qkl47xz0rdikg50v16nn6kbs3lgzcymjzpa7babj"))))
1090 (build-system guile-build-system)
1092 '(#:phases (modify-phases %standard-phases
1093 (add-after 'unpack 'move-examples
1094 (lambda* (#:key outputs #:allow-other-keys)
1095 ;; Move examples where they belong.
1096 (let* ((out (assoc-ref outputs "out"))
1097 (doc (string-append out "/share/doc/"
1098 (strip-store-file-name out)
1100 (copy-recursively "examples" doc)
1101 (delete-file-recursively "examples")
1103 (add-after 'unpack 'set-libgdbm-file-name
1104 (lambda* (#:key inputs #:allow-other-keys)
1105 (substitute* "gdbm.scm"
1106 (("\\(dynamic-link \"libgdbm\"\\)")
1107 (format #f "(dynamic-link \"~a/lib/libgdbm.so\")"
1108 (assoc-ref inputs "gdbm"))))
1111 `(("guile" ,guile-2.2)))
1114 (home-page "https://github.com/ijp/guile-gdbm")
1115 (synopsis "Guile bindings to the GDBM library via Guile's FFI")
1117 "Guile bindings to the GDBM key-value storage system, using
1118 Guile's foreign function interface.")
1119 (license license:gpl3+)))
1121 (define-public guile2.0-gdbm-ffi
1122 (package-for-guile-2.0 guile-gdbm-ffi))
1124 (define-public guile2.2-gdbm-ffi
1125 (deprecated-package "guile2.2-gdbm-ffi" guile-gdbm-ffi))
1127 (define-public guile-sqlite3
1129 (name "guile-sqlite3")
1131 (home-page "https://notabug.org/guile-sqlite3/guile-sqlite3.git")
1136 (commit (string-append "v" version))))
1139 "1nv8j7wk6b5n4p22szyi8lv8fs31rrzxhzz16gyj8r38c1fyp9qp"))
1140 (file-name (string-append name "-" version "-checkout"))))
1141 (build-system gnu-build-system)
1143 `(("autoconf" ,autoconf)
1144 ("automake" ,automake)
1145 ("pkg-config" ,pkg-config)))
1147 `(("guile" ,guile-2.2)
1148 ("sqlite" ,sqlite)))
1149 (synopsis "Access SQLite databases from Guile")
1151 "This package provides Guile bindings to the SQLite database system.")
1152 (license license:gpl3+)))
1154 (define-public guile2.0-sqlite3
1155 (package-for-guile-2.0 guile-sqlite3))
1157 (define-public haunt
1163 (uri (string-append "https://files.dthompson.us/haunt/haunt-"
1167 "056z4znikk83nr5mr0x2ac3iinqbywa2bvb37mhr566a1q50isfc"))))
1168 (build-system gnu-build-system)
1170 `(#:modules ((ice-9 match) (ice-9 ftw)
1171 ,@%gnu-build-system-modules)
1172 #:tests? #f ; test suite is non-deterministic :(
1173 #:phases (modify-phases %standard-phases
1174 (add-after 'install 'wrap-haunt
1175 (lambda* (#:key inputs outputs #:allow-other-keys)
1176 ;; Wrap the 'haunt' command to refer to the right
1178 (let* ((out (assoc-ref outputs "out"))
1179 (bin (string-append out "/bin"))
1180 (site (string-append
1181 out "/share/guile/site"))
1182 (deps (list (assoc-ref inputs "guile-reader")
1183 (assoc-ref inputs "guile-commonmark"))))
1184 (match (scandir site)
1186 (let ((modules (string-append site "/" version))
1187 (compiled-modules (string-append
1188 out "/lib/guile/" version
1190 (wrap-program (string-append bin "/haunt")
1191 `("GUILE_LOAD_PATH" ":" prefix
1193 ,@(map (lambda (dep)
1195 "/share/guile/site/"
1198 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
1200 ,@(map (lambda (dep)
1201 (string-append dep "/lib/guile/"
1207 `(("pkg-config" ,pkg-config)
1208 ("texinfo" ,texinfo)))
1210 `(("guile" ,guile-2.2)))
1212 `(("guile-reader" ,guile-reader)
1213 ("guile-commonmark" ,guile-commonmark)))
1214 (synopsis "Functional static site generator")
1215 (description "Haunt is a static site generator written in Guile
1216 Scheme. Haunt features a functional build system and an extensible
1217 interface for reading articles in any format.")
1218 (home-page "http://haunt.dthompson.us")
1219 (license license:gpl3+)))
1221 (define-public guile2.0-haunt
1222 (package-for-guile-2.0
1223 (package (inherit haunt) (name "guile2.0-haunt"))))
1224 (define-public guile2.2-haunt
1225 (deprecated-package "guile2.2-haunt" haunt))
1227 (define-public guile-config
1229 (name "guile-config")
1235 (url "https://gitlab.com/a-sassmannshausen/guile-config")
1236 (commit "ce12de3f438c6b2b59c43ee21bcd58251835fdf3")))
1237 (file-name "guile-config-0.3-checkout")
1238 (sha256 (base32 "02zbpin0r9m2vxmr7mv68v3xdn247dcck56kbzjn0gj4c2rhih85"))))
1239 (build-system gnu-build-system)
1241 `(("autoconf" ,autoconf)
1242 ("automake" ,automake)
1243 ("pkg-config" ,pkg-config)
1244 ("texinfo" ,texinfo)))
1245 (inputs `(("guile" ,guile-2.2)))
1247 "Guile application configuration parsing library.")
1249 "Guile Config is a library providing a declarative approach to
1250 application configuration specification. The library provides clean
1251 configuration declaration forms, and processors that take care of:
1252 configuration file creation; configuration file parsing; command-line
1253 parameter parsing using getopt-long; basic GNU command-line parameter
1254 generation (--help, --usage, --version); automatic output generation for the
1255 above command-line parameters.")
1257 "https://gitlab.com/a-sassmannshausen/guile-config")
1258 (license license:gpl3+)))
1260 (define-public guile-redis
1262 (name "guile-redis")
1264 (home-page "https://github.com/aconchillo/guile-redis")
1267 (uri (string-append home-page "/archive/" version ".tar.gz"))
1270 "1dp5fmqvma59pvp1nfpq6hqgbmjici8sd1y8llahl87fynw1dvr9"))))
1271 (build-system gnu-build-system)
1273 `(("autoconf" ,autoconf)
1274 ("automake" ,automake)
1275 ("pkg-config" ,pkg-config)
1276 ("guile" ,guile-2.2)))
1277 (synopsis "Redis client library for Guile")
1278 (description "Guile-redis provides a Scheme interface to the Redis
1279 key-value cache and store.")
1280 (license license:lgpl3+)))
1282 (define-public guile2.0-redis
1283 (package-for-guile-2.0 guile-redis))
1285 (define-public guile2.2-redis
1286 (deprecated-package "guile2.2-redis" guile-redis))
1288 (define-public guile-wisp
1294 (uri (string-append "https://bitbucket.org/ArneBab/"
1295 "wisp/downloads/wisp-"
1299 "1f2bbicq1rxnwmiplrm4r75wj06w385mjkyvi7g4k740bgwcrzxr"))))
1300 (build-system gnu-build-system)
1302 `(#:modules ((guix build gnu-build-system)
1308 (modify-phases %standard-phases
1309 (add-before 'configure 'substitute-before-config
1311 (lambda* (#:key inputs #:allow-other-keys)
1312 (let ((bash (assoc-ref inputs "bash")))
1313 ;; Puts together some test files with /bin/bash hardcoded
1314 (substitute* "Makefile.in"
1315 (("/usr/bin/env bash")
1316 (string-append bash "/bin/bash"))
1317 (("\\$\\(GUILE_EFFECTIVE_VERSION\\)/site")
1318 "site/$(GUILE_EFFECTIVE_VERSION)")) ;use the right order
1321 ;; auto compilation breaks, but if we set HOME to /tmp,
1324 'check 'auto-compile-hacky-workaround
1326 (setenv "HOME" "/tmp")
1328 (add-after 'install 'install-go-files
1329 (lambda* (#:key outputs inputs #:allow-other-keys)
1330 (let* ((out (assoc-ref outputs "out"))
1331 (effective (read-line
1332 (open-pipe* OPEN_READ
1334 "(display (effective-version))")))
1335 (module-dir (string-append out "/share/guile/site/"
1337 (object-dir (string-append out "/lib/guile/" effective
1339 (prefix (string-length module-dir)))
1340 ;; compile to the destination
1341 (for-each (lambda (file)
1342 (let* ((base (string-drop (string-drop-right file 4)
1344 (go (string-append object-dir base ".go")))
1345 (invoke "guild" "compile" "-L" module-dir
1347 (find-files module-dir "\\.scm$"))
1349 (home-page "http://draketo.de/english/wisp")
1351 `(("guile" ,guile-2.2)))
1353 `(("python" ,python)
1354 ("pkg-config" ,pkg-config)))
1355 (synopsis "Whitespace to lisp syntax for Guile")
1356 (description "Wisp is a syntax for Guile which provides a Python-like
1357 whitespace-significant language. It may be easier on the eyes for some
1358 users and in some situations.")
1359 (license license:gpl3+)))
1361 (define-public guile-sly
1367 (uri (string-append "https://files.dthompson.us/sly/sly-"
1371 "1svzlbz2vripmyq2kjh0rig16bsrnbkwbsm558pjln9l65mcl4qq"))
1372 (modules '((guix build utils)))
1375 (substitute* "configure"
1376 (("_guile_required_version=\"2.0.11\"")
1377 "_guile_required_version=\"2\"")
1378 (("ac_subst_vars='")
1379 "ac_subst_vars='GUILE_EFFECTIVE_VERSION\n"))
1380 (substitute* (find-files "." "Makefile.in")
1384 "$(prefix)/share/guile/site/@GUILE_EFFECTIVE_VERSION@\n"))
1388 "$(prefix)/lib/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n")))
1390 (build-system gnu-build-system)
1393 (list (string-append "--with-libfreeimage-prefix="
1394 (assoc-ref %build-inputs "freeimage"))
1395 (string-append "--with-libgslcblas-prefix="
1396 (assoc-ref %build-inputs "gsl")))))
1398 `(("pkg-config" ,pkg-config)))
1400 `(("guile-sdl" ,guile-sdl)
1401 ("guile-opengl" ,guile-opengl)))
1403 `(("guile" ,guile-2.2)
1405 ("freeimage" ,freeimage)
1407 (synopsis "2D/3D game engine for GNU Guile")
1408 (description "Sly is a 2D/3D game engine written in Guile Scheme. Sly
1409 features a functional reactive programming interface and live coding
1411 (home-page "https://dthompson.us/projects/sly.html")
1412 (license license:gpl3+)))
1414 (define-public g-wrap
1420 (uri (string-append "mirror://savannah/g-wrap/g-wrap-"
1424 "0ak0bha37dfpj9kmyw1r8fj8nva639aw5xr66wr5gd3l1rqf5xhg"))))
1425 (build-system gnu-build-system)
1427 `(("pkg-config" ,pkg-config)))
1429 `(("guile" ,guile-2.2)
1430 ("guile-lib" ,guile-lib)))
1432 `(("libffi" ,libffi)))
1434 `(#:configure-flags '("--disable-Werror")
1436 (modify-phases %standard-phases
1437 (add-before 'configure 'pre-configure
1438 (lambda* (#:key outputs #:allow-other-keys)
1439 (let ((out (assoc-ref outputs "out")))
1440 (substitute* (find-files "." "^Makefile.in$")
1441 (("guilemoduledir =.*guile/site" all)
1442 (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
1444 (synopsis "Generate C bindings for Guile")
1445 (description "G-Wrap is a tool and Guile library for generating function
1446 wrappers for inter-language calls. It currently only supports generating Guile
1447 wrappers for C functions. Given a definition of the types and prototypes for
1448 a given C interface, G-Wrap will automatically generate the C code that
1449 provides access to that interface and its types from the Scheme level.")
1450 (home-page "https://www.nongnu.org/g-wrap/index.html")
1451 (license license:lgpl2.1+)))
1453 (define-public guile-dbi
1460 "http://download.gna.org/guile-dbi/guile-dbi-"
1464 "116njrprhgrsv1qm904sp3b02rq01fx639r433d657gyhw3x159n"))))
1465 (build-system gnu-build-system)
1468 (list (string-append
1469 "--with-guile-site-dir=" %output "/share/guile/site/2.2"))
1471 (list (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib:"
1472 (assoc-ref %build-inputs "guile-dbd-sqlite3") "/lib"))
1474 (modify-phases %standard-phases
1475 (add-after 'install 'patch-extension-path
1476 (lambda* (#:key outputs #:allow-other-keys)
1477 (let* ((out (assoc-ref outputs "out"))
1478 (dbi.scm (string-append
1479 out "/share/guile/site/2.2/dbi/dbi.scm"))
1480 (ext (string-append out "/lib/libguile-dbi")))
1481 (substitute* dbi.scm (("libguile-dbi") ext))
1484 `(("guile-dbd-sqlite3" ,guile-dbd-sqlite3))) ; only shared library, no scheme files
1486 `(("guile" ,guile-2.2)))
1487 (synopsis "Guile database abstraction layer")
1488 (home-page "http://home.gna.org/guile-dbi/guile-dbi.html")
1490 "guile-dbi is a library for Guile that provides a convenient interface to
1491 SQL databases. Database programming with guile-dbi is generic in that the same
1492 programming interface is presented regardless of which database system is used.
1493 It currently supports MySQL, Postgres and SQLite3.")
1494 (license license:gpl2+)))
1496 (define guile-dbi-bootstrap
1499 (name "guile-dbi-bootstrap")
1502 (substitute-keyword-arguments (package-arguments guile-dbi)
1503 ((#:make-flags _) '(list))))))
1505 (define-public guile-dbd-sqlite3
1507 (name "guile-dbd-sqlite3")
1512 "http://download.gna.org/guile-dbi/guile-dbd-sqlite3-"
1516 "0rg71jchxd2y8x496s8zmfmikr5g8zxi8zv2ar3f7a23pph92iw2"))))
1517 (build-system gnu-build-system)
1519 `(("pkg-config" ,pkg-config)
1520 ("guile-dbi-bootstrap" ,guile-dbi-bootstrap))) ; only required for headers
1522 `(("sqlite" ,sqlite)
1523 ("zlib" ,(@ (gnu packages compression) zlib))))
1524 (synopsis "Guile DBI driver for SQLite")
1525 (home-page "https://github.com/jkalbhenn/guile-dbd-sqlite3")
1527 "guile-dbi is a library for Guile that provides a convenient interface to
1528 SQL databases. This package implements the interface for SQLite.")
1529 (license license:gpl2+)))
1531 (define-public guile-dsv
1538 (url "https://github.com/artyom-poptsov/guile-dsv")
1539 (commit "bdc5267d007478abc20ea96d7c459b7dd9560b3d")))
1540 (file-name (string-append name "-" version "-checkout"))
1543 "1irw6mz8998nwyhzrw9g94jcz60b9zljgqfmipaz1ybn8579qjx0"))))
1544 (build-system gnu-build-system)
1546 `(("autoconf" ,autoconf)
1547 ("automake" ,automake)
1548 ("pkg-config" ,pkg-config)
1549 ("texinfo" ,texinfo)))
1550 (inputs `(("guile" ,guile-2.2)))
1551 (propagated-inputs `(("guile-lib" ,guile-lib)))
1553 '(#:phases (modify-phases %standard-phases
1554 (add-before 'configure 'set-guilesitedir
1556 (substitute* "Makefile.in"
1557 (("^guilesitedir =.*$")
1559 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
1560 (substitute* "modules/Makefile.in"
1561 (("^guilesitedir =.*$")
1563 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
1564 (substitute* "modules/dsv/Makefile.in"
1565 (("^guilesitedir =.*$")
1567 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
1569 (home-page "https://github.com/artyom-poptsov/guile-dsv")
1570 (synopsis "DSV module for Guile")
1572 "Guile-DSV is a GNU Guile module for working with the
1573 delimiter-separated values (DSV) data format. Guile-DSV supports the
1574 Unix-style DSV format and RFC 4180 format.")
1575 (license license:gpl3+)))
1577 (define-public guile-xosd
1583 (uri (string-append "https://github.com/alezost/" name
1584 "/releases/download/v" version
1585 "/" name "-" version ".tar.gz"))
1588 "1ri5065c16kmgrf2pysn2ymxjqi5302lhpb07wkl1jr75ym8fn8p"))))
1589 (build-system gnu-build-system)
1591 `(("pkg-config" ,pkg-config)))
1593 `(("guile" ,guile-2.2)
1595 ("libxext" ,libxext)
1596 ("libxinerama" ,libxinerama)
1598 (home-page "https://github.com/alezost/guile-xosd")
1599 (synopsis "XOSD bindings for Guile")
1601 "Guile-XOSD provides Guile bindings for @code{libxosd},
1602 @uref{http://sourceforge.net/projects/libxosd/, the X On Screen Display
1604 (license license:gpl3+)))
1606 (define-public guile-daemon
1608 (name "guile-daemon")
1612 (uri (string-append "https://github.com/alezost/" name
1613 "/releases/download/v" version
1614 "/" name "-" version ".tar.gz"))
1617 "0hh6gq6b6phpxm0b1dkxyzj3f4sxdf7dji63609lzypa5v1ad2gv"))))
1618 (build-system gnu-build-system)
1620 `(("pkg-config" ,pkg-config)))
1622 `(("guile" ,guile-2.2)))
1623 (home-page "https://github.com/alezost/guile-daemon")
1624 (synopsis "Evaluate code in a running Guile process")
1626 "Guile-Daemon is a small Guile program that loads your initial
1627 configuration file, and then reads and evaluates Guile expressions that
1628 you send to a FIFO file.")
1629 (license license:gpl3+)))
1631 (define-public guile-commonmark
1633 (name "guile-commonmark")
1637 (uri (string-append "https://github.com/OrangeShark/" name
1638 "/releases/download/v" version
1639 "/" name "-" version ".tar.gz"))
1642 "0kzclwkfijj8xka3g9kfj53y67c34ndfy84swdbw3j7y962ndxq6"))
1643 (modules '((guix build utils)))
1645 ;; Install .scm files in the right place (see
1646 ;; <https://github.com/OrangeShark/guile-commonmark/issues/12>.)
1648 (substitute* "Makefile.in"
1649 (("^moddir = \\$\\(datadir\\)/share")
1650 "moddir = $(datadir)"))
1652 (build-system gnu-build-system)
1654 `(("guile" ,guile-2.2)))
1656 `(("pkg-config" ,pkg-config)))
1657 (synopsis "CommonMark parser for Guile")
1659 "guile-commonmark is a library for parsing CommonMark, a fully specified
1660 variant of Markdown. The library is written in Guile Scheme and is designed
1661 to transform a CommonMark document to SXML. guile-commonmark tries to closely
1662 follow the @uref{http://commonmark.org/, CommonMark spec}, the main difference
1663 is no support for parsing block and inline level HTML.")
1664 (home-page "https://github.com/OrangeShark/guile-commonmark")
1665 (license license:lgpl3+)))
1667 (define-public guile2.0-commonmark
1668 (package-for-guile-2.0 guile-commonmark))
1669 (define-public guile2.2-commonmark
1670 (deprecated-package "guile2.2-commonmark" guile-commonmark))
1672 (define-public guile-bytestructures
1674 (name "guile-bytestructures")
1678 (uri (string-append "https://github.com/TaylanUB/scheme-bytestructures"
1679 "/releases/download/v" version
1680 "/bytestructures-" version ".tar.gz"))
1683 "0xf6s8gd3656j8k2ar6y7i62r68azawyzxhsagsk8nvldnrs1r18"))))
1684 (build-system gnu-build-system)
1686 `(("pkg-config" ,pkg-config)))
1688 `(("guile" ,guile-2.2)))
1689 (home-page "https://github.com/TaylanUB/scheme-bytestructures")
1690 (synopsis "Structured access to bytevector contents for Guile")
1692 "Guile bytestructures offers a system imitating the type system
1693 of the C programming language, to be used on bytevectors. C's type
1694 system works on raw memory, and Guile works on bytevectors which are
1695 an abstraction over raw memory. It's also more powerful than the C
1696 type system, elevating types to first-class status.")
1697 (license license:gpl3+)))
1699 (define-public guile2.0-bytestructures
1700 (package-for-guile-2.0 guile-bytestructures))
1702 (define-public guile-aspell
1704 (name "guile-aspell")
1709 "http://lonelycactus.com/tarball/guile_aspell-"
1713 "0vpk5xj9m9qc702z3khmkwhgpb949qbsyz8kw2qycda6qnxk0077"))))
1714 (build-system gnu-build-system)
1716 '(#:phases (modify-phases %standard-phases
1717 (add-before 'configure 'set-guilesitedir
1719 (substitute* "Makefile.in"
1720 (("^guilesitedir =.*$")
1722 $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
1724 (add-before 'build 'set-libaspell-file-name
1725 (lambda* (#:key inputs #:allow-other-keys)
1726 (let ((aspell (assoc-ref inputs "aspell")))
1727 (substitute* "aspell.scm"
1728 (("\"libaspell\\.so\"")
1729 (string-append "\"" aspell
1730 "/lib/libaspell\"")))
1732 (native-inputs `(("pkg-config" ,pkg-config)))
1733 (inputs `(("guile" ,guile-2.2)
1734 ("aspell" ,aspell)))
1735 (home-page "https://github.com/spk121/guile-aspell")
1736 (synopsis "Spell-checking from Guile")
1738 "guile-aspell is a Guile Scheme library for comparing a string against a
1739 dictionary and suggesting spelling corrections.")
1740 (license license:gpl3+)))
1742 (define-public guile-bash
1743 ;; This project is currently retired. It was initially announced here:
1744 ;; <https://lists.gnu.org/archive/html/guile-user/2015-02/msg00003.html>.
1745 (let ((commit "1eabc563ca5692b3e08d84f1f0e6fd2283284469")
1749 (version (string-append "0.1.6-" revision "." (string-take commit 7)))
1751 "https://anonscm.debian.org/cgit/users/kaction-guest/retired/dev.guile-bash.git")
1759 "097vny990wp2qpjij6a5a5gwc6fxzg5wk56inhy18iki5v6pif1p"))
1760 (file-name (string-append name "-" version "-checkout"))))
1761 (build-system gnu-build-system)
1764 ;; Add -I to match 'bash.pc' of Bash 4.4.
1765 (list (string-append "CPPFLAGS=-I"
1766 (assoc-ref %build-inputs "bash:include")
1767 "/include/bash/include")
1769 ;; The '.a' file is useless.
1772 ;; Install 'lib/bash' as Bash 4.4 expects.
1773 (string-append "--libdir=" (assoc-ref %outputs "out")
1775 (native-inputs `(("pkg-config" ,pkg-config)
1776 ("autoconf" ,autoconf-wrapper)
1777 ("automake" ,automake)
1778 ("libtool" ,libtool)
1779 ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
1780 ("gettext" ,gettext-minimal)
1782 ;; Bash with loadable module support, for the test
1784 ("bash-full" ,bash)))
1785 (inputs `(("guile" ,guile-2.0)
1786 ("bash:include" ,bash "include")))
1787 (synopsis "Extend Bash using Guile")
1789 "Guile-Bash provides a shared library and set of Guile modules,
1790 allowing you to extend Bash in Scheme. Scheme interfaces allow you to access
1791 the following aspects of Bash:
1795 @item setting and getting Bash variables;
1796 @item creating dynamic variables;
1797 @item creating Bash functions with a Scheme implementation;
1798 @item reader macro for output capturing;
1799 @item reader macro for evaluating raw Bash commands.
1805 enable -f ~/.guix-profile/lib/bash/libguile-bash.so scm
1808 and then run @command{scm example.scm}.")
1809 (license license:gpl3+))))
1811 (define-public guile-8sync
1813 (name "guile-8sync")
1817 (uri (string-append "mirror://gnu/8sync/8sync-" version
1821 "031wm13srak3wsnll7j2mbbi29g1pcm4swdb71ds9yn567pn20qw"))))
1822 (build-system gnu-build-system)
1823 (native-inputs `(("autoconf" ,autoconf)
1824 ("automake" ,automake)
1825 ("guile" ,guile-2.2)
1826 ("pkg-config" ,pkg-config)
1827 ("texinfo" ,texinfo)))
1829 `(#:phases (modify-phases %standard-phases
1830 (add-before 'configure 'setenv
1833 (setenv "GUILE_AUTO_COMPILE" "0")
1835 (home-page "https://gnu.org/s/8sync/")
1836 (synopsis "Asynchronous actor model library for Guile")
1838 "GNU 8sync (pronounced \"eight-sync\") is an asynchronous programming
1839 library for GNU Guile based on the actor model.
1841 Note that 8sync is only available for Guile 2.2.")
1842 (license license:lgpl3+)))
1844 (define-public guile-fibers
1846 (name "guile-fibers")
1850 (uri (string-append "https://wingolog.org/pub/fibers/fibers-"
1854 "0vjkg72ghgdgphzbjz9ig8al8271rq8974viknb2r1rg4lz92ld0"))))
1855 (build-system gnu-build-system)
1857 '(#:phases (modify-phases %standard-phases
1858 (add-after 'install 'mode-guile-objects
1859 (lambda* (#:key outputs #:allow-other-keys)
1860 ;; .go files are installed to "lib/guile/X.Y/cache".
1861 ;; This phase moves them to "…/site-ccache".
1862 (let* ((out (assoc-ref outputs "out"))
1863 (lib (string-append out "/lib/guile"))
1864 (old (car (find-files lib "^ccache$"
1865 #:directories? #t)))
1866 (new (string-append (dirname old)
1868 (rename-file old new)
1871 `(("texinfo" ,texinfo)
1872 ("pkg-config" ,pkg-config)))
1874 `(("guile" ,guile-2.2)))
1875 (synopsis "Lightweight concurrency facility for Guile")
1877 "Fibers is a Guile library that implements a a lightweight concurrency
1878 facility, inspired by systems like Concurrent ML, Go, and Erlang. A fiber is
1879 like a \"goroutine\" from the Go language: a lightweight thread-like
1880 abstraction. Systems built with Fibers can scale up to millions of concurrent
1881 fibers, tens of thousands of concurrent socket connections, and many parallel
1882 cores. The Fibers library also provides Concurrent ML-like channels for
1883 communication between fibers.
1885 Note that Fibers makes use of some Guile 2.1/2.2-specific features and
1886 is not available for Guile 2.0.")
1887 (home-page "https://github.com/wingo/fibers")
1888 (license license:lgpl3+)))
1890 (define-public guile-git
1894 (home-page "https://gitlab.com/guile-git/guile-git.git")
1897 (uri (git-reference (url home-page)
1898 (commit (string-append "v" version))))
1901 "1z3awa3i5il08dl2swbnli2j7cawdpray11zx4844j27bxqddcs2"))
1902 (file-name (git-file-name name version))))
1903 (build-system gnu-build-system)
1905 `(("autoconf" ,autoconf)
1906 ("automake" ,automake)
1907 ("texinfo" ,texinfo)
1908 ("pkg-config" ,pkg-config)))
1910 `(("guile" ,guile-2.2)
1911 ("libgit2" ,libgit2)))
1913 `(("guile-bytestructures" ,guile-bytestructures)))
1914 (synopsis "Guile bindings for libgit2")
1916 "This package provides Guile bindings to libgit2, a library to
1917 manipulate repositories of the Git version control system.")
1918 (license license:gpl3+)))
1920 (define-public guile2.0-git
1921 (package-for-guile-2.0 guile-git))
1923 (define-public guile-syntax-highlight
1925 (name "guile-syntax-highlight")
1929 (uri (string-append "https://files.dthompson.us/"
1930 "guile-syntax-highlight/"
1931 "guile-syntax-highlight-"
1935 "1p771kq15x83483m23bhah1sz6vkalg3drm7x279f4j1cxligkzi"))))
1936 (build-system gnu-build-system)
1938 `(("pkg-config" ,pkg-config)))
1940 `(("guile" ,guile-2.2)))
1941 (synopsis "General-purpose syntax highlighter for GNU Guile")
1942 (description "Guile-syntax-highlight is a general-purpose syntax
1943 highlighting library for GNU Guile. It can parse code written in various
1944 programming languages into a simple s-expression that can be converted to
1945 HTML (via SXML) or any other format for rendering.")
1946 (home-page "http://dthompson.us/projects/guile-syntax-highlight.html")
1947 (license license:lgpl3+)))
1949 (define-public guile-sjson
1951 (name "guile-sjson")
1955 (uri (string-append "https://dustycloud.org/misc/sjson-" version
1959 "1mzmapln79vv10qxaggz9qwcdbag3jnrj19xx8bgkmxss8h03sv3"))))
1960 (build-system gnu-build-system)
1962 `(("autoconf" ,autoconf)
1963 ("automake" ,automake)
1964 ("pkg-config" ,pkg-config)))
1966 `(("guile" ,guile-2.2)))
1967 (home-page "https://gitlab.com/dustyweb/guile-sjson")
1968 (synopsis "S-expression based json reader/writer for Guile")
1969 (description "guile-sjson is a json reader/writer for Guile.
1970 It has a nice, simple s-expression based syntax.")
1971 (license license:lgpl3+)))
1973 (define-public guile-colorized
1975 (name "guile-colorized")
1979 (uri (string-append "https://github.com/NalaGinrut/guile-colorized/"
1980 "archive/v" version ".tar.gz"))
1981 (file-name (string-append name "-" version ".tar.gz"))
1984 "16xhc3an6aglnca8xl3mvgi8hsqzqn68vsl5ga4bz8bvbap5fn4p"))))
1985 (build-system guile-build-system)
1987 `(("guile" ,guile-2.2)))
1988 (home-page "https://github.com/NalaGinrut/guile-colorized")
1989 (synopsis "Colorized REPL for Guile")
1991 "Guile-colorized provides you with a colorized REPL for GNU Guile.")
1992 (license license:gpl3+)))
1994 (define-public guile-pfds
1998 (home-page "https://github.com/ijp/pfds")
2003 (commit (string-append "v" version))))
2006 "19y33wg94pf0n98dkfqd1zbw93fgky4sawxsxl6s3vyqwl0yi5vh"))
2007 (file-name (string-append name "-" version "-checkout"))))
2008 (build-system guile-build-system)
2010 '(#:source-directory "src"
2011 #:phases (modify-phases %standard-phases
2012 (add-after 'unpack 'move-files-around
2014 ;; Move files under a pfds/ directory to reflect the
2015 ;; module hierarchy.
2016 (mkdir-p "src/pfds")
2017 (for-each (lambda (file)
2019 (string-append "src/pfds/"
2035 ;; In Guile <= 2.2.4, there's no way to tell 'guild
2036 ;; compile' to accept the ".sls" extension. So...
2037 (for-each (lambda (file)
2040 (string-drop-right file 4)
2042 (find-files "." "\\.sls$"))
2045 `(("guile" ,guile-2.2)))
2046 (synopsis "Purely functional data structures for Guile")
2048 "This package provides purely functional data structures written in R6RS
2049 Scheme and compiled for Guile. It has been tested with Racket, Guile 2,
2050 Vicare Scheme and IronScheme. Right now it contains:
2058 @item priority search queues (PSQs)
2062 @item hash array mapped tries (HAMTs).
2064 (license license:bsd-3)))
2066 (define-public guile-aa-tree
2068 (name "guile-aa-tree")
2072 (uri (string-append "mirror://savannah/guile-aa-tree/guile-aa-tree-"
2076 "0044c105r3q9vpl17pv3phl1b79kjm1llhkakqgiasixyav01blh"))))
2077 (build-system guile-build-system)
2078 (native-inputs `(("guile" ,guile-2.2)))
2079 ;; https://savannah.nongnu.org/projects/guile-aa-tree
2080 (home-page "https://qlfiles.net/guile-aa-tree/")
2081 (synopsis "AA tree data structure for Guile")
2083 "This package provides an implementation of @dfn{AA trees}, a
2084 self-balancing binary tree data structure, for Guile. It ensure @math{O(log
2085 n)} worst case performance for core operations. The module provides
2086 non-mutating insert, delete, and search operations, with support for
2087 convenient nested tree operations.")
2088 (license license:gpl3+)))
2090 (define-public guile-simple-zmq
2091 (let ((commit "68bedb6679716214fb9d3472da57544526f7a618")
2094 (name "guile-simple-zmq")
2095 (version (git-version "0.0.0" revision commit))
2100 (url "https://github.com/jerry40/guile-simple-zmq")
2104 "1ad3xg69qqviy1f6dnlw0ysmfdbmp1jq65rfqb8nfd8dsrq2syli"))
2105 (file-name (git-file-name name version))))
2106 (build-system guile-build-system)
2108 `(#:source-directory "src"
2109 #:phases (modify-phases %standard-phases
2110 (add-after 'unpack 'set-libzmq-file-name
2111 (lambda* (#:key inputs #:allow-other-keys)
2112 (substitute* "src/simple-zmq.scm"
2113 (("\\(dynamic-link \"libzmq\"\\)")
2114 (format #f "(dynamic-link \"~a/lib/libzmq.so\")"
2115 (assoc-ref inputs "zeromq"))))
2118 `(("guile" ,guile-2.2)))
2120 `(("zeromq" ,zeromq)))
2121 (home-page "https://github.com/jerry40/guile-simple-zmq")
2122 (synopsis "Guile wrapper over ZeroMQ library")
2124 "This package provides a Guile programming interface to the ZeroMQ
2125 messaging library.")
2126 (license license:gpl3+))))
2128 (define-public jupyter-guile-kernel
2129 (let ((commit "a7db9245a886e104138474df46c3e88b95cff629")
2132 (name "jupyter-guile-kernel")
2133 (version (git-version "0.0.0" revision commit))
2138 (url "https://github.com/jerry40/guile-kernel")
2142 "0aj04853bqm47ivfcmrgpb7w3wkis847kc7qrwsa5zcn9h38qh2f"))))
2143 (build-system guile-build-system)
2145 '(#:phases (modify-phases %standard-phases
2146 (add-after 'unpack 'set-openssl-file-name
2147 (lambda* (#:key inputs #:allow-other-keys)
2148 ;; Record the absolute file name of the 'openssl'
2150 (substitute* "src/hmac.scm"
2152 (string-append (assoc-ref inputs "openssl")
2156 ;; XXX: The code uses 'include' to include its own source
2157 ;; files, and "-L src" isn't enough in this case.
2158 (add-before 'build 'chdir
2159 (lambda _ (chdir "src") #t))
2160 (add-after 'build 'chdir-back
2161 (lambda _ (chdir "..") #t))
2163 (add-after 'install 'install-kernel
2164 (lambda* (#:key inputs outputs #:allow-other-keys)
2165 (let* ((out (assoc-ref outputs "out"))
2166 (json (assoc-ref inputs "guile-json"))
2167 (zmq (assoc-ref inputs "guile-simple-zmq"))
2168 (deps (list json zmq))
2170 out "/share/jupyter/kernels/guile"))
2171 (effective (target-guile-effective-version)))
2173 (install-file "src/kernel.json" dir)
2175 ;; Fix hard-coded file name in the kernel.
2176 (substitute* (string-append dir "/kernel.json")
2177 (("/home/.*/guile-jupyter-kernel.scm")
2178 (string-append out "/share/guile/site/"
2179 (target-guile-effective-version)
2180 "/guile-jupyter-kernel.scm"))
2182 (string-append "\"" (assoc-ref inputs "guile")
2185 ;; Add '-L' and '-C' flags so that the kernel
2186 ;; finds its dependencies.
2187 (let ((-L (map (lambda (item)
2188 (string-append "\"" item
2189 "/share/guile/site/"
2192 (-C (map (lambda (item)
2193 (string-append "\"" item
2198 (string-append "--no-auto-compile\""
2199 (string-join -L ", \"-L\", "
2201 (string-join -C ", \"-C\", "
2206 `(("openssl" ,openssl)
2207 ("guile" ,guile-2.2)
2208 ("guile-json" ,guile-json)
2209 ("guile-simple-zmq" ,guile-simple-zmq)))
2210 (synopsis "Guile kernel for the Jupyter Notebook")
2212 "This package provides a Guile 2.x kernel for the Jupyter Notebook. It
2213 allows users to interact with the Guile REPL through Jupyter.")
2214 (home-page "https://github.com/jerry40/guile-kernel")
2215 (license license:gpl3+))))
2217 (define-public guile-sparql
2219 (name "guile-sparql")
2224 "https://github.com/roelj/guile-sparql/releases/download/"
2225 version "/guile-sparql-" version ".tar.gz"))
2227 (base32 "1drnvhsgl0gc5crmb16yyw1j98nkhwwcgssv9vgm36ng43nnzffd"))))
2228 (build-system gnu-build-system)
2229 (arguments `(#:tests? #f)) ; There are no tests.
2231 `(("pkg-config" ,pkg-config)))
2233 `(("guile" ,guile-2.2)))
2234 (home-page "https://github.com/roelj/guile-sparql")
2235 (synopsis "SPARQL module for Guile")
2236 (description "This package provides the functionality to query a SPARQL
2237 endpoint. Additionally, it provides an interface to write SPARQL queries
2238 using S-expressions.")
2239 (license license:gpl3+)))
2241 (define-public guile-debbugs
2243 (name "guile-debbugs")
2247 (uri (string-append "mirror://gnu/guile-debbugs/guile-debbugs-"
2251 "16l8910p57im6s3j93xhdaqvgfy6ms5n97177mrch3y961z5hy0i"))
2252 (modules '((guix build utils)))
2254 '(substitute* "Makefile.in"
2255 (("^godir = (.*)/ccache" _ prefix)
2256 (string-append "godir = " prefix "/site-ccache"))))))
2257 (build-system gnu-build-system)
2259 `(("guile" ,guile-2.2)
2260 ("pkg-config" ,pkg-config)))
2261 (home-page "https://savannah.gnu.org/projects/guile-debbugs/")
2262 (synopsis "Guile interface to the Debbugs bug tracking service")
2264 "This package provides a Guile library to communicate with a Debbugs bug
2265 tracker's SOAP service, such as @url{https://bugs.gnu.org}.")
2266 (license license:gpl3+)))
2268 (define-public guile-email
2269 (let ((commit "fa52eac55e5946db89621a6c583d2aa357864dee")
2272 (name "guile-email")
2273 (version (git-version "0.1.0" revision commit))
2278 (url "https://git.systemreboot.net/guile-email")
2280 (file-name (git-file-name name version))
2283 "1037mbz7qd9bzaqp8ysyhnl9ipd97fmj3b9jr8qfzx9179vvsj63"))))
2284 (build-system gnu-build-system)
2286 `(("pkg-config" ,pkg-config)
2287 ("autoconf" ,autoconf)
2288 ("automake" ,automake)))
2290 `(("guile" ,guile-2.2)))
2291 (home-page "https://git.systemreboot.net/guile-email")
2292 (synopsis "Guile email parser")
2293 (description "This package provides an email parser written in pure
2295 (license license:agpl3+))))
2297 (define-public guile-debbugs-next
2298 (let ((commit "75a331d561c8b6f8efcf16216dab961c17759efe")
2300 (package (inherit guile-debbugs)
2301 (name "guile-debbugs")
2302 (version (git-version "0.0.3" revision commit))
2306 (url "https://git.savannah.gnu.org/git/guile-debbugs.git")
2308 (file-name (git-file-name name version))
2311 "0br3mgbw41bpc9x57jlghl0i8dz9nl63r4wzs5l47aqszf84870y"))))
2312 (build-system gnu-build-system)
2314 `(("pkg-config" ,pkg-config)
2315 ("autoconf" ,autoconf)
2316 ("automake" ,automake)
2317 ("texinfo" ,texinfo)))
2319 `(("guile" ,guile-2.2)
2320 ("guile-email" ,guile-email))))))
2322 ;; There has not been any release yet.
2323 (define-public guile-newt
2324 (let ((commit "80c1e9e71945f833386d1632b52573e59325804f")
2328 (version (string-append "0-" revision "." (string-take commit 9)))
2332 (url "https://gitlab.com/mothacehe/guile-newt")
2334 (file-name (string-append name "-" version "-checkout"))
2337 "1w7qy4dw1f4bx622l6hw8mv49sf1ha8kch8j4nganyk8fj0wn695"))))
2338 (build-system gnu-build-system)
2341 '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
2343 `(("guile" ,guile-2.2)
2346 `(("autoconf" ,autoconf)
2347 ("automake" ,automake)
2348 ("pkg-config" ,pkg-config)))
2349 (synopsis "Guile bindings to Newt")
2351 "This package provides bindings for Newt, a programming library for
2352 color text mode, widget based user interfaces. The bindings are written in pure
2353 Scheme by using Guile’s foreign function interface.")
2354 (home-page "https://gitlab.com/mothacehe/guile-newt")
2355 (license license:gpl3+))))
2357 (define-public guile-mastodon
2359 (name "guile-mastodon")
2364 (url "https://framagit.org/prouby/guile-mastodon.git")
2365 (commit (string-append "v" version))))
2366 (file-name (git-file-name name version))
2369 "1vblf3d1bbwna3l09p2ap5y8ycvl549bz6whgk78imyfmn28ygry"))))
2370 (build-system gnu-build-system)
2372 `(("autoconf" ,autoconf)
2373 ("automake" ,automake)
2374 ("pkg-config" ,pkg-config)))
2376 `(("guile" ,guile-2.2)
2378 ("guile-json" ,guile-json)))
2379 (home-page "https://framagit.org/prouby/guile-mastodon")
2380 (synopsis "Guile Mastodon REST API module")
2381 (description "This package provides Guile modules to access the
2382 @uref{https://docs.joinmastodon.org/api/, REST API of Mastodon}, a federated
2383 microblogging service.")
2384 (license license:gpl3+)))
2386 ;; There has not been any release yet.
2387 (define-public guile-parted
2388 (let ((commit "ea3f1a1f6844775fc59d3078d2a09c62ffb341b8")
2391 (name "guile-parted")
2392 (version (string-append "0-" revision "." (string-take commit 9)))
2396 (url "https://gitlab.com/mothacehe/guile-parted")
2398 (file-name (string-append name "-" version "-checkout"))
2401 "1q7425gpjlwi2wvhzq7kw046yyx7v6j6jyzkd1cr861iz34mjwiq"))))
2402 (build-system gnu-build-system)
2405 '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
2407 `(("guile" ,guile-2.2)
2408 ("parted" ,parted)))
2410 `(("guile-bytestructures" ,guile-bytestructures)))
2412 `(("autoconf" ,autoconf)
2413 ("automake" ,automake)
2414 ("pkg-config" ,pkg-config)))
2415 (synopsis "Guile bindings to GNU Parted")
2417 "This package provides bindings for GNU Parted library, a C library
2418 allowing disk partition tables creation and manipulation. The bindings are
2419 written in pure Scheme by using Guile's foreign function interface.")
2420 (home-page "https://gitlab.com/mothacehe/guile-parted")
2421 (license license:gpl3+))))
2423 ;;; guile.scm ends here