gnu: youtube-viewer: Refer to youtube-dl.
[jackhill/guix/guix.git] / gnu / packages / guile-xyz.scm
CommitLineData
0791437f
RW
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>
bdf2dd79 12;;; Copyright © 2016, 2019 Jan Nieuwenhuizen <janneke@gnu.org>
0791437f
RW
13;;; Copyright © 2017 Andy Wingo <wingo@igalia.com>
14;;; Copyright © 2017 David Thompson <davet@gnu.org>
15;;; Copyright © 2017, 2018 Mathieu Othacehe <m.othacehe@gmail.com>
16;;; Copyright © 2017 Theodoros Foradis <theodoros@foradis.org>
47956fa0 17;;; Copyright © 2017 ng0 <ng0@n0.is>
0791437f
RW
18;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
19;;; Copyright © 2018 Maxim Cournoyer <maxim.cournoyer@gmail.com>
50771f5b 20;;; Copyright © 2018, 2019 Arun Isaac <arunisaac@systemreboot.net>
0791437f
RW
21;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
22;;; Copyright © 2018 Eric Bavier <bavier@member.fsf.org>
cd81199c 23;;; Copyright © 2019 swedebugia <swedebugia@riseup.net>
0791437f
RW
24;;;
25;;; This file is part of GNU Guix.
26;;;
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.
31;;;
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.
36;;;
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/>.
39
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)
406ef442 48 #:use-module (gnu packages databases)
0791437f
RW
49 #:use-module (gnu packages disk)
50 #:use-module (gnu packages ed)
15218d4e 51 #:use-module (gnu packages emacs)
5531782d 52 #:use-module (gnu packages emacs-xyz)
0791437f
RW
53 #:use-module (gnu packages gawk)
54 #:use-module (gnu packages gettext)
55 #:use-module (gnu packages gl)
bdf2dd79 56 #:use-module (gnu packages glib)
5531782d 57 #:use-module (gnu packages gnome)
0791437f 58 #:use-module (gnu packages gperf)
bdf2dd79 59 #:use-module (gnu packages gtk)
0791437f
RW
60 #:use-module (gnu packages guile)
61 #:use-module (gnu packages hurd)
62 #:use-module (gnu packages image)
63 #:use-module (gnu packages libffi)
64 #:use-module (gnu packages libunistring)
65 #:use-module (gnu packages linux)
66 #:use-module (gnu packages man)
67 #:use-module (gnu packages maths)
68 #:use-module (gnu packages multiprecision)
69 #:use-module (gnu packages ncurses)
70 #:use-module (gnu packages networking)
f0de9544 71 #:use-module (gnu packages noweb)
406ef442 72 #:use-module (gnu packages perl)
0791437f
RW
73 #:use-module (gnu packages pkg-config)
74 #:use-module (gnu packages python)
75 #:use-module (gnu packages readline)
76 #:use-module (gnu packages sdl)
77 #:use-module (gnu packages slang)
78 #:use-module (gnu packages sqlite)
f0de9544 79 #:use-module (gnu packages tex)
0791437f
RW
80 #:use-module (gnu packages texinfo)
81 #:use-module (gnu packages tls)
82 #:use-module (gnu packages version-control)
bdf2dd79 83 #:use-module (gnu packages webkit)
0791437f
RW
84 #:use-module (gnu packages xdisorg)
85 #:use-module (gnu packages xorg)
86 #:use-module (guix packages)
87 #:use-module (guix download)
88 #:use-module (guix git-download)
dec4b3aa 89 #:use-module (guix hg-download)
0791437f
RW
90 #:use-module (guix build-system gnu)
91 #:use-module (guix build-system guile)
92 #:use-module (guix utils)
93 #:use-module (ice-9 match)
94 #:use-module ((srfi srfi-1) #:select (alist-delete)))
95
96(define-public artanis
cd81199c 97 (let ((release "0.3.1")
fd9a6d83 98 (revision 0))
0791437f
RW
99 (package
100 (name "artanis")
101 (version (if (zero? revision)
102 release
103 (string-append release "-"
104 (number->string revision))))
105 (source (origin
106 (method url-fetch)
107 (uri (string-append "mirror://gnu/artanis/artanis-"
108 release ".tar.gz"))
109 (file-name (string-append name "-" version ".tar.gz"))
110 (sha256
111 (base32
cd81199c 112 "0hqr5m3mb558bdhkc2sadmd9cbrhp3y525wx7cwirgy6i0zmay68"))
0791437f
RW
113 (modules '((guix build utils)))
114 (snippet
115 '(begin
cd81199c 116 ;; Unbundle guile-redis and guile-json
0791437f
RW
117 (delete-file-recursively "artanis/third-party/json.scm")
118 (delete-file-recursively "artanis/third-party/json")
cd81199c 119 (delete-file-recursively "artanis/third-party/redis.scm")
120 (delete-file-recursively "artanis/third-party/redis")
0791437f 121 (substitute* '("artanis/artanis.scm"
cd81199c 122 "artanis/lpc.scm"
0791437f
RW
123 "artanis/oht.scm")
124 (("(#:use-module \\()artanis third-party (json\\))" _
125 use-module json)
126 (string-append use-module json)))
cd81199c 127 (substitute* '("artanis/lpc.scm"
128 "artanis/session.scm")
129 (("(#:use-module \\()artanis third-party (redis\\))" _
130 use-module redis)
131 (string-append use-module redis)))
0791437f
RW
132 (substitute* "artanis/oht.scm"
133 (("([[:punct:][:space:]]+)(->json-string)([[:punct:][:space:]]+)"
134 _ pre json-string post)
135 (string-append pre
136 "scm" json-string
137 post)))
138 (substitute* "artanis/artanis.scm"
139 (("[[:punct:][:space:]]+->json-string[[:punct:][:space:]]+")
140 ""))
141 #t))))
142 (build-system gnu-build-system)
cd81199c 143 ;; FIXME the bundled csv contains one more exported procedure
144 ;; (sxml->csv-string) than guile-csv. The author is maintainer of both
145 ;; projects.
0791437f
RW
146 ;; TODO: Add guile-dbi and guile-dbd optional dependencies.
147 (inputs `(("guile" ,guile-2.2)
cd81199c 148 ("guile-json" ,guile-json)
149 ("guile-redis" ,guile-redis)))
0791437f
RW
150 (native-inputs `(("bash" ,bash) ;for the `source' builtin
151 ("pkgconfig" ,pkg-config)
152 ("util-linux" ,util-linux))) ;for the `script' command
153 (arguments
154 '(#:make-flags
155 ;; TODO: The documentation must be built with the `docs' target.
156 (let* ((out (assoc-ref %outputs "out"))
157 (scm (string-append out "/share/guile/site/2.2"))
158 (go (string-append out "/lib/guile/2.2/site-ccache")))
159 ;; Don't use (%site-dir) for site paths.
160 (list (string-append "MOD_PATH=" scm)
161 (string-append "MOD_COMPILED_PATH=" go)))
162 #:test-target "test"
163 #:phases
164 (modify-phases %standard-phases
fd9a6d83
CB
165 (add-after 'unpack 'patch-site-dir
166 (lambda* (#:key outputs #:allow-other-keys)
167 (substitute* "artanis/commands/help.scm"
168 (("\\(%site-dir\\)")
169 (string-append "\""
170 (assoc-ref outputs "out")
171 "/share/guile/site/2.2\"")))))
0791437f
RW
172 (add-before 'install 'substitute-root-dir
173 (lambda* (#:key outputs #:allow-other-keys)
174 (let ((out (assoc-ref outputs "out")))
175 (substitute* "Makefile" ;ignore the execution of bash.bashrc
176 ((" /etc/bash.bashrc") " /dev/null"))
177 (substitute* "Makefile" ;set the root of config files to OUT
178 ((" /etc") (string-append " " out "/etc")))
179 (mkdir-p (string-append out "/bin")) ;for the `art' executable
180 #t)))
181 (add-after 'install 'wrap-art
fd9a6d83 182 (lambda* (#:key inputs outputs #:allow-other-keys)
0791437f
RW
183 (let* ((out (assoc-ref outputs "out"))
184 (bin (string-append out "/bin"))
185 (scm (string-append out "/share/guile/site/2.2"))
186 (go (string-append out "/lib/guile/2.2/site-ccache")))
187 (wrap-program (string-append bin "/art")
fd9a6d83
CB
188 `("GUILE_LOAD_PATH" ":" prefix
189 (,scm ,(getenv "GUILE_LOAD_PATH")))
190 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
191 (,go ,(getenv "GUILE_LOAD_COMPILED_PATH"))))
0791437f
RW
192 #t))))))
193 (synopsis "Web application framework written in Guile")
194 (description "GNU Artanis is a web application framework written in Guile
195Scheme. A web application framework (WAF) is a software framework that is
196designed to support the development of dynamic websites, web applications, web
197services and web resources. The framework aims to alleviate the overhead
198associated with common activities performed in web development. Artanis
199provides several tools for web development: database access, templating
200frameworks, session management, URL-remapping for RESTful, page caching, and
201more.")
202 (home-page "https://www.gnu.org/software/artanis/")
203 (license (list license:gpl3+ license:lgpl3+))))) ;dual license
204
205;; There has not been any release yet.
206(define-public guildhall
207 (let ((commit "2fe2cc539f4b811bbcd69e58738db03eb5a2b778")
208 (revision "1"))
209 (package
210 (name "guildhall")
211 (version (string-append "0-" revision "." (string-take commit 9)))
212 (source (origin
213 (method git-fetch)
214 (uri (git-reference
215 (url "https://github.com/ijp/guildhall.git")
216 (commit commit)))
217 (file-name (string-append name "-" version "-checkout"))
218 (sha256
219 (base32
220 "115bym7bg66h3gs399yb2vkzc2ygriaqsn4zbrg8f054mgy8wzn1"))))
221 (build-system gnu-build-system)
222 (arguments
223 `(#:phases
224 (modify-phases %standard-phases
225 ;; Tests fail without this fix because they try to load the bash
226 ;; executable as a Scheme file. See bug report at
227 ;; https://github.com/ijp/guildhall/issues/22
228 (add-after 'unpack 'fix-bug-22
229 (lambda _
230 (substitute* "Makefile.am"
231 (("TESTS_ENVIRONMENT=.*")
232 "AM_TESTS_ENVIRONMENT=srcdir=$(abs_top_srcdir)/tests/
233TEST_EXTENSIONS = .scm
234SCM_LOG_COMPILER= $(top_builddir)/env $(GUILE)
235AM_SCM_LOG_FLAGS = --no-auto-compile -s")
236 ;; FIXME: one of the database tests fails for unknown
237 ;; reasons. It does not fail when run outside of Guix.
238 (("tests/database.scm") ""))
239 #t)))))
240 (inputs
241 `(("guile" ,guile-2.0)))
242 (native-inputs
243 `(("zip" ,zip) ; for tests
244 ("autoconf" ,autoconf)
245 ("automake" ,automake)
246 ("texinfo" ,texinfo)))
247 (synopsis "Package manager for Guile")
248 (description
249 "Guildhall is a package manager written for Guile Scheme. A guild is
250an association of independent craftspeople. A guildhall is where they meet.
251This Guildhall aims to make a virtual space for Guile wizards and journeyfolk
252to share code.
253
254On a practical level, Guildhall lets you share Scheme modules and programs
255over the internet, and install code that has been shared by others. Guildhall
256can handle dependencies, so when a program requires several libraries, and
257each of those has further dependencies, all of the prerequisites for the
258program can be installed in one go.")
259 (home-page "https://github.com/ijp/guildhall")
260 (license license:gpl3+))))
261
262(define-public guile-aspell
263 (package
264 (name "guile-aspell")
265 (version "0.4")
266 (source (origin
267 (method url-fetch)
268 (uri (string-append
269 "http://lonelycactus.com/tarball/guile_aspell-"
270 version ".tar.gz"))
271 (sha256
272 (base32
273 "0vpk5xj9m9qc702z3khmkwhgpb949qbsyz8kw2qycda6qnxk0077"))))
274 (build-system gnu-build-system)
275 (arguments
276 '(#:phases (modify-phases %standard-phases
277 (add-before 'configure 'set-guilesitedir
278 (lambda _
279 (substitute* "Makefile.in"
280 (("^guilesitedir =.*$")
281 "guilesitedir = \
282$(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
283 #t))
284 (add-before 'build 'set-libaspell-file-name
285 (lambda* (#:key inputs #:allow-other-keys)
286 (let ((aspell (assoc-ref inputs "aspell")))
287 (substitute* "aspell.scm"
288 (("\"libaspell\\.so\"")
289 (string-append "\"" aspell
290 "/lib/libaspell\"")))
291 #t))))))
292 (native-inputs `(("pkg-config" ,pkg-config)))
293 (inputs `(("guile" ,guile-2.2)
294 ("aspell" ,aspell)))
295 (home-page "https://github.com/spk121/guile-aspell")
296 (synopsis "Spell-checking from Guile")
297 (description
298 "guile-aspell is a Guile Scheme library for comparing a string against a
299dictionary and suggesting spelling corrections.")
300 (license license:gpl3+)))
301
302(define-public guile-bash
303 ;; This project is currently retired. It was initially announced here:
304 ;; <https://lists.gnu.org/archive/html/guile-user/2015-02/msg00003.html>.
305 (let ((commit "1eabc563ca5692b3e08d84f1f0e6fd2283284469")
306 (revision "0"))
307 (package
308 (name "guile-bash")
309 (version (string-append "0.1.6-" revision "." (string-take commit 7)))
310 (home-page
311 "https://anonscm.debian.org/cgit/users/kaction-guest/retired/dev.guile-bash.git")
312 (source (origin
313 (method git-fetch)
314 (uri (git-reference
315 (commit commit)
316 (url home-page)))
317 (sha256
318 (base32
319 "097vny990wp2qpjij6a5a5gwc6fxzg5wk56inhy18iki5v6pif1p"))
320 (file-name (string-append name "-" version "-checkout"))))
321 (build-system gnu-build-system)
322 (arguments
323 '(#:configure-flags
324 ;; Add -I to match 'bash.pc' of Bash 4.4.
325 (list (string-append "CPPFLAGS=-I"
326 (assoc-ref %build-inputs "bash:include")
327 "/include/bash/include")
328
329 ;; The '.a' file is useless.
330 "--disable-static"
331
332 ;; Install 'lib/bash' as Bash 4.4 expects.
333 (string-append "--libdir=" (assoc-ref %outputs "out")
334 "/lib/bash"))))
335 (native-inputs `(("pkg-config" ,pkg-config)
336 ("autoconf" ,autoconf-wrapper)
337 ("automake" ,automake)
338 ("libtool" ,libtool)
339 ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
340 ("gettext" ,gettext-minimal)
341
342 ;; Bash with loadable module support, for the test
343 ;; suite.
344 ("bash-full" ,bash)))
345 (inputs `(("guile" ,guile-2.0)
346 ("bash:include" ,bash "include")))
347 (synopsis "Extend Bash using Guile")
348 (description
349 "Guile-Bash provides a shared library and set of Guile modules,
350allowing you to extend Bash in Scheme. Scheme interfaces allow you to access
351the following aspects of Bash:
352
353@itemize
354@item aliases;
355@item setting and getting Bash variables;
356@item creating dynamic variables;
357@item creating Bash functions with a Scheme implementation;
358@item reader macro for output capturing;
359@item reader macro for evaluating raw Bash commands.
360@end itemize
361
362To enable it, run:
363
364@example
365enable -f ~/.guix-profile/lib/bash/libguile-bash.so scm
366@end example
367
368and then run @command{scm example.scm}.")
369 (license license:gpl3+))))
370
371(define-public guile-8sync
372 (package
373 (name "guile-8sync")
374 (version "0.4.2")
375 (source (origin
376 (method url-fetch)
377 (uri (string-append "mirror://gnu/8sync/8sync-" version
378 ".tar.gz"))
379 (sha256
380 (base32
381 "031wm13srak3wsnll7j2mbbi29g1pcm4swdb71ds9yn567pn20qw"))))
382 (build-system gnu-build-system)
383 (native-inputs `(("autoconf" ,autoconf)
384 ("automake" ,automake)
385 ("guile" ,guile-2.2)
386 ("pkg-config" ,pkg-config)
387 ("texinfo" ,texinfo)))
388 (arguments
389 `(#:phases (modify-phases %standard-phases
390 (add-before 'configure 'setenv
391 (lambda _
392 ;; quiet warnings
393 (setenv "GUILE_AUTO_COMPILE" "0")
394 #t)))))
395 (home-page "https://gnu.org/s/8sync/")
396 (synopsis "Asynchronous actor model library for Guile")
397 (description
398 "GNU 8sync (pronounced \"eight-sync\") is an asynchronous programming
399library for GNU Guile based on the actor model.
400
401Note that 8sync is only available for Guile 2.2.")
402 (license license:lgpl3+)))
403
404(define-public guile-daemon
405 (package
406 (name "guile-daemon")
407 (version "0.1.2")
408 (source (origin
409 (method url-fetch)
410 (uri (string-append "https://github.com/alezost/" name
411 "/releases/download/v" version
412 "/" name "-" version ".tar.gz"))
413 (sha256
414 (base32
415 "0hh6gq6b6phpxm0b1dkxyzj3f4sxdf7dji63609lzypa5v1ad2gv"))))
416 (build-system gnu-build-system)
417 (native-inputs
418 `(("pkg-config" ,pkg-config)))
419 (inputs
420 `(("guile" ,guile-2.2)))
421 (home-page "https://github.com/alezost/guile-daemon")
422 (synopsis "Evaluate code in a running Guile process")
423 (description
424 "Guile-Daemon is a small Guile program that loads your initial
425configuration file, and then reads and evaluates Guile expressions that
426you send to a FIFO file.")
427 (license license:gpl3+)))
428
429(define-public guile-dsv
430 (package
431 (name "guile-dsv")
432 (version "0.2.1")
433 (source (origin
434 (method git-fetch)
435 (uri (git-reference
436 (url "https://github.com/artyom-poptsov/guile-dsv")
437 (commit "bdc5267d007478abc20ea96d7c459b7dd9560b3d")))
438 (file-name (string-append name "-" version "-checkout"))
439 (sha256
440 (base32
441 "1irw6mz8998nwyhzrw9g94jcz60b9zljgqfmipaz1ybn8579qjx0"))))
442 (build-system gnu-build-system)
443 (native-inputs
444 `(("autoconf" ,autoconf)
445 ("automake" ,automake)
446 ("pkg-config" ,pkg-config)
447 ("texinfo" ,texinfo)))
448 (inputs `(("guile" ,guile-2.2)))
449 (propagated-inputs `(("guile-lib" ,guile-lib)))
450 (arguments
451 '(#:phases (modify-phases %standard-phases
452 (add-before 'configure 'set-guilesitedir
453 (lambda _
454 (substitute* "Makefile.in"
455 (("^guilesitedir =.*$")
456 "guilesitedir = \
457$(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
458 (substitute* "modules/Makefile.in"
459 (("^guilesitedir =.*$")
460 "guilesitedir = \
461$(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
462 (substitute* "modules/dsv/Makefile.in"
463 (("^guilesitedir =.*$")
464 "guilesitedir = \
465$(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
466 #t)))))
467 (home-page "https://github.com/artyom-poptsov/guile-dsv")
468 (synopsis "DSV module for Guile")
469 (description
470 "Guile-DSV is a GNU Guile module for working with the
471delimiter-separated values (DSV) data format. Guile-DSV supports the
472Unix-style DSV format and RFC 4180 format.")
473 (license license:gpl3+)))
474
475(define-public guile-fibers
476 (package
477 (name "guile-fibers")
478 (version "1.0.0")
479 (source (origin
480 (method url-fetch)
481 (uri (string-append "https://wingolog.org/pub/fibers/fibers-"
482 version ".tar.gz"))
483 (sha256
484 (base32
485 "0vjkg72ghgdgphzbjz9ig8al8271rq8974viknb2r1rg4lz92ld0"))))
486 (build-system gnu-build-system)
487 (arguments
488 '(#:phases (modify-phases %standard-phases
489 (add-after 'install 'mode-guile-objects
490 (lambda* (#:key outputs #:allow-other-keys)
491 ;; .go files are installed to "lib/guile/X.Y/cache".
492 ;; This phase moves them to "…/site-ccache".
493 (let* ((out (assoc-ref outputs "out"))
494 (lib (string-append out "/lib/guile"))
495 (old (car (find-files lib "^ccache$"
496 #:directories? #t)))
497 (new (string-append (dirname old)
498 "/site-ccache")))
499 (rename-file old new)
500 #t))))))
501 (native-inputs
502 `(("texinfo" ,texinfo)
503 ("pkg-config" ,pkg-config)))
504 (inputs
505 `(("guile" ,guile-2.2)))
506 (synopsis "Lightweight concurrency facility for Guile")
507 (description
508 "Fibers is a Guile library that implements a a lightweight concurrency
509facility, inspired by systems like Concurrent ML, Go, and Erlang. A fiber is
510like a \"goroutine\" from the Go language: a lightweight thread-like
511abstraction. Systems built with Fibers can scale up to millions of concurrent
512fibers, tens of thousands of concurrent socket connections, and many parallel
513cores. The Fibers library also provides Concurrent ML-like channels for
514communication between fibers.
515
516Note that Fibers makes use of some Guile 2.1/2.2-specific features and
517is not available for Guile 2.0.")
518 (home-page "https://github.com/wingo/fibers")
519 (license license:lgpl3+)))
520
521(define-public guile-syntax-highlight
522 (package
523 (name "guile-syntax-highlight")
524 (version "0.1")
525 (source (origin
526 (method url-fetch)
527 (uri (string-append "https://files.dthompson.us/"
528 "guile-syntax-highlight/"
529 "guile-syntax-highlight-"
530 version ".tar.gz"))
531 (sha256
532 (base32
533 "1p771kq15x83483m23bhah1sz6vkalg3drm7x279f4j1cxligkzi"))))
534 (build-system gnu-build-system)
535 (native-inputs
536 `(("pkg-config" ,pkg-config)))
537 (inputs
538 `(("guile" ,guile-2.2)))
539 (synopsis "General-purpose syntax highlighter for GNU Guile")
540 (description "Guile-syntax-highlight is a general-purpose syntax
541highlighting library for GNU Guile. It can parse code written in various
542programming languages into a simple s-expression that can be converted to
543HTML (via SXML) or any other format for rendering.")
544 (home-page "http://dthompson.us/projects/guile-syntax-highlight.html")
545 (license license:lgpl3+)))
546
547(define-public guile-sjson
548 (package
549 (name "guile-sjson")
550 (version "0.2.1")
551 (source (origin
552 (method url-fetch)
553 (uri (string-append "https://dustycloud.org/misc/sjson-" version
554 ".tar.gz"))
555 (sha256
556 (base32
557 "1mzmapln79vv10qxaggz9qwcdbag3jnrj19xx8bgkmxss8h03sv3"))))
558 (build-system gnu-build-system)
559 (native-inputs
560 `(("autoconf" ,autoconf)
561 ("automake" ,automake)
562 ("pkg-config" ,pkg-config)))
563 (inputs
564 `(("guile" ,guile-2.2)))
565 (home-page "https://gitlab.com/dustyweb/guile-sjson")
566 (synopsis "S-expression based json reader/writer for Guile")
567 (description "guile-sjson is a json reader/writer for Guile.
568It has a nice, simple s-expression based syntax.")
569 (license license:lgpl3+)))
570
61dafdc0
CB
571(define-public guile-squee
572 (let ((commit "a85902a92bf6f58a1d35fd974a01ade163deda8d")
573 (revision "0"))
574 (package
575 (name "guile-squee")
576 (version (string-append "0-" revision "." (string-take commit 7)))
577 (source (origin
578 (method git-fetch)
579 (uri (git-reference
580 (url "https://notabug.org/cwebber/guile-squee.git")
581 (commit commit)))
582 (file-name (git-file-name name version))
583 (sha256
584 (base32
585 "0p1lpsp4kx57j3ai1dkxilm4ziavzzx8wbbc42m3hpziq0a7qz5z"))))
586 (build-system guile-build-system)
587 (arguments
588 '(#:phases
589 (modify-phases %standard-phases
590 (add-after 'unpack 'patch
591 (lambda* (#:key inputs #:allow-other-keys)
592 (substitute* "squee.scm"
593 (("dynamic-link \"libpq\"")
594 (string-append
595 "dynamic-link \""
596 (assoc-ref inputs "postgresql") "/lib/libpq.so"
597 "\"")))
598 #t)))))
599 (inputs
600 `(("postgresql" ,postgresql)))
601 (native-inputs
602 `(("guile" ,guile-2.2)))
603 (home-page "https://notabug.org/cwebber/guile-squee")
604 (synopsis "Connect to PostgreSQL using Guile")
605 (description
606 "@code{squee} is a Guile library for connecting to PostgreSQL databases
607using Guile's foreign function interface.")
6fd72f70 608 (license license:lgpl3+))))
61dafdc0 609
0791437f
RW
610(define-public guile-colorized
611 (package
612 (name "guile-colorized")
613 (version "0.1")
1340ce28
TGR
614 (source
615 (origin
616 (method git-fetch)
617 (uri (git-reference
55f4282e 618 (url "https://gitlab.com/NalaGinrut/guile-colorized.git")
1340ce28
TGR
619 (commit (string-append "v" version))))
620 (file-name (git-file-name name version))
621 (sha256
622 (base32 "10mv8c63159r3qvwwdvsgnsvdg7nc2ghak85zapwqpv4ywrqp9zc"))))
0791437f
RW
623 (build-system guile-build-system)
624 (native-inputs
625 `(("guile" ,guile-2.2)))
55f4282e 626 (home-page "https://gitlab.com/NalaGinrut/guile-colorized")
0791437f
RW
627 (synopsis "Colorized REPL for Guile")
628 (description
629 "Guile-colorized provides you with a colorized REPL for GNU Guile.")
630 (license license:gpl3+)))
631
632(define-public guile-pfds
633 (package
634 (name "guile-pfds")
635 (version "0.3")
636 (home-page "https://github.com/ijp/pfds")
637 (source (origin
638 (method git-fetch)
639 (uri (git-reference
640 (url home-page)
641 (commit (string-append "v" version))))
642 (sha256
643 (base32
644 "19y33wg94pf0n98dkfqd1zbw93fgky4sawxsxl6s3vyqwl0yi5vh"))
645 (file-name (string-append name "-" version "-checkout"))))
646 (build-system guile-build-system)
647 (arguments
648 '(#:source-directory "src"
649 #:phases (modify-phases %standard-phases
650 (add-after 'unpack 'move-files-around
651 (lambda _
652 ;; Move files under a pfds/ directory to reflect the
653 ;; module hierarchy.
654 (mkdir-p "src/pfds")
655 (for-each (lambda (file)
656 (rename-file file
657 (string-append "src/pfds/"
658 file)))
659 '("bbtrees.sls"
660 "deques"
661 "deques.sls"
662 "dlists.sls"
663 "fingertrees.sls"
664 "hamts.sls"
665 "heaps.sls"
666 "private"
667 "psqs.sls"
668 "queues"
669 "queues.sls"
670 "sequences.sls"
671 "sets.sls"))
672
673 ;; In Guile <= 2.2.4, there's no way to tell 'guild
674 ;; compile' to accept the ".sls" extension. So...
675 (for-each (lambda (file)
676 (rename-file file
677 (string-append
678 (string-drop-right file 4)
679 ".scm")))
680 (find-files "." "\\.sls$"))
681 #t)))))
682 (native-inputs
683 `(("guile" ,guile-2.2)))
684 (synopsis "Purely functional data structures for Guile")
685 (description
686 "This package provides purely functional data structures written in R6RS
687Scheme and compiled for Guile. It has been tested with Racket, Guile 2,
688Vicare Scheme and IronScheme. Right now it contains:
689
690@itemize
691@item queues
692@item deques
693@item bbtrees
694@item sets
695@item dlists
696@item priority search queues (PSQs)
697@item finger trees
698@item sequences
699@item heaps
700@item hash array mapped tries (HAMTs).
701@end itemize\n")
702 (license license:bsd-3)))
703
704(define-public guile-aa-tree
705 (package
706 (name "guile-aa-tree")
707 (version "3.1.1")
708 (source (origin
709 (method url-fetch)
710 (uri (string-append "mirror://savannah/guile-aa-tree/guile-aa-tree-"
711 version ".tar.gz"))
712 (sha256
713 (base32
714 "0044c105r3q9vpl17pv3phl1b79kjm1llhkakqgiasixyav01blh"))))
715 (build-system guile-build-system)
716 (native-inputs `(("guile" ,guile-2.2)))
717 ;; https://savannah.nongnu.org/projects/guile-aa-tree
718 (home-page "https://qlfiles.net/guile-aa-tree/")
719 (synopsis "AA tree data structure for Guile")
720 (description
721 "This package provides an implementation of @dfn{AA trees}, a
722self-balancing binary tree data structure, for Guile. It ensure @math{O(log
723n)} worst case performance for core operations. The module provides
724non-mutating insert, delete, and search operations, with support for
725convenient nested tree operations.")
726 (license license:gpl3+)))
727
728(define-public guile-simple-zmq
729 (let ((commit "68bedb6679716214fb9d3472da57544526f7a618")
730 (revision "3"))
731 (package
732 (name "guile-simple-zmq")
733 (version (git-version "0.0.0" revision commit))
734 (source
735 (origin
736 (method git-fetch)
737 (uri (git-reference
738 (url "https://github.com/jerry40/guile-simple-zmq")
739 (commit commit)))
740 (sha256
741 (base32
742 "1ad3xg69qqviy1f6dnlw0ysmfdbmp1jq65rfqb8nfd8dsrq2syli"))
743 (file-name (git-file-name name version))))
744 (build-system guile-build-system)
745 (arguments
746 `(#:source-directory "src"
747 #:phases (modify-phases %standard-phases
748 (add-after 'unpack 'set-libzmq-file-name
749 (lambda* (#:key inputs #:allow-other-keys)
750 (substitute* "src/simple-zmq.scm"
751 (("\\(dynamic-link \"libzmq\"\\)")
752 (format #f "(dynamic-link \"~a/lib/libzmq.so\")"
753 (assoc-ref inputs "zeromq"))))
754 #t)))))
755 (native-inputs
756 `(("guile" ,guile-2.2)))
757 (inputs
758 `(("zeromq" ,zeromq)))
759 (home-page "https://github.com/jerry40/guile-simple-zmq")
760 (synopsis "Guile wrapper over ZeroMQ library")
761 (description
762 "This package provides a Guile programming interface to the ZeroMQ
763messaging library.")
764 (license license:gpl3+))))
765
766(define-public jupyter-guile-kernel
767 (let ((commit "a7db9245a886e104138474df46c3e88b95cff629")
768 (revision "1"))
769 (package
770 (name "jupyter-guile-kernel")
771 (version (git-version "0.0.0" revision commit))
772 (source
773 (origin
774 (method git-fetch)
775 (uri (git-reference
776 (url "https://github.com/jerry40/guile-kernel")
777 (commit commit)))
778 (sha256
779 (base32
780 "0aj04853bqm47ivfcmrgpb7w3wkis847kc7qrwsa5zcn9h38qh2f"))))
781 (build-system guile-build-system)
782 (arguments
783 '(#:phases (modify-phases %standard-phases
784 (add-after 'unpack 'set-openssl-file-name
785 (lambda* (#:key inputs #:allow-other-keys)
786 ;; Record the absolute file name of the 'openssl'
787 ;; command.
788 (substitute* "src/hmac.scm"
789 (("openssl")
790 (string-append (assoc-ref inputs "openssl")
791 "/bin/openssl")))
792 #t))
793
794 ;; XXX: The code uses 'include' to include its own source
795 ;; files, and "-L src" isn't enough in this case.
796 (add-before 'build 'chdir
797 (lambda _ (chdir "src") #t))
798 (add-after 'build 'chdir-back
799 (lambda _ (chdir "..") #t))
800
801 (add-after 'install 'install-kernel
802 (lambda* (#:key inputs outputs #:allow-other-keys)
803 (let* ((out (assoc-ref outputs "out"))
804 (json (assoc-ref inputs "guile-json"))
805 (zmq (assoc-ref inputs "guile-simple-zmq"))
806 (deps (list json zmq))
807 (dir (string-append
808 out "/share/jupyter/kernels/guile"))
809 (effective (target-guile-effective-version)))
810 ;; Install kernel.
811 (install-file "src/kernel.json" dir)
812
813 ;; Fix hard-coded file name in the kernel.
814 (substitute* (string-append dir "/kernel.json")
815 (("/home/.*/guile-jupyter-kernel.scm")
816 (string-append out "/share/guile/site/"
817 (target-guile-effective-version)
818 "/guile-jupyter-kernel.scm"))
819 (("\"guile\"")
820 (string-append "\"" (assoc-ref inputs "guile")
821 "/bin/guile\""))
822 (("-s")
823 ;; Add '-L' and '-C' flags so that the kernel
824 ;; finds its dependencies.
825 (let ((-L (map (lambda (item)
826 (string-append "\"" item
827 "/share/guile/site/"
828 effective "\""))
829 deps))
830 (-C (map (lambda (item)
831 (string-append "\"" item
832 "/lib/guile/"
833 effective
834 "/site-ccache\""))
835 deps)))
836 (string-append "--no-auto-compile\""
837 (string-join -L ", \"-L\", "
838 'prefix)
839 (string-join -C ", \"-C\", "
840 'prefix)
841 ", \"-s"))))
842 #t))))))
843 (inputs
844 `(("openssl" ,openssl)
845 ("guile" ,guile-2.2)
846 ("guile-json" ,guile-json)
847 ("guile-simple-zmq" ,guile-simple-zmq)))
848 (synopsis "Guile kernel for the Jupyter Notebook")
849 (description
850 "This package provides a Guile 2.x kernel for the Jupyter Notebook. It
851allows users to interact with the Guile REPL through Jupyter.")
852 (home-page "https://github.com/jerry40/guile-kernel")
853 (license license:gpl3+))))
854
855(define-public guile-sparql
856 (package
857 (name "guile-sparql")
858 (version "0.0.7")
859 (source (origin
860 (method url-fetch)
861 (uri (string-append
862 "https://github.com/roelj/guile-sparql/releases/download/"
863 version "/guile-sparql-" version ".tar.gz"))
864 (sha256
865 (base32 "1drnvhsgl0gc5crmb16yyw1j98nkhwwcgssv9vgm36ng43nnzffd"))))
866 (build-system gnu-build-system)
867 (arguments `(#:tests? #f)) ; There are no tests.
868 (native-inputs
869 `(("pkg-config" ,pkg-config)))
870 (inputs
871 `(("guile" ,guile-2.2)))
872 (home-page "https://github.com/roelj/guile-sparql")
873 (synopsis "SPARQL module for Guile")
874 (description "This package provides the functionality to query a SPARQL
875endpoint. Additionally, it provides an interface to write SPARQL queries
876using S-expressions.")
877 (license license:gpl3+)))
878
879(define-public guile-debbugs
880 (package
881 (name "guile-debbugs")
882 (version "0.0.2")
883 (source (origin
884 (method url-fetch)
885 (uri (string-append "mirror://gnu/guile-debbugs/guile-debbugs-"
886 version ".tar.gz"))
887 (sha256
888 (base32
889 "16l8910p57im6s3j93xhdaqvgfy6ms5n97177mrch3y961z5hy0i"))
890 (modules '((guix build utils)))
891 (snippet
892 '(substitute* "Makefile.in"
893 (("^godir = (.*)/ccache" _ prefix)
894 (string-append "godir = " prefix "/site-ccache"))))))
895 (build-system gnu-build-system)
896 (native-inputs
897 `(("guile" ,guile-2.2)
898 ("pkg-config" ,pkg-config)))
899 (home-page "https://savannah.gnu.org/projects/guile-debbugs/")
900 (synopsis "Guile interface to the Debbugs bug tracking service")
901 (description
902 "This package provides a Guile library to communicate with a Debbugs bug
903tracker's SOAP service, such as @url{https://bugs.gnu.org}.")
904 (license license:gpl3+)))
905
906(define-public guile-email
50771f5b
AI
907 (package
908 (name "guile-email")
909 (version "0.1.0")
910 (source
911 (origin
912 (method url-fetch)
913 (uri (string-append
914 "https://git.systemreboot.net/guile-email/snapshot/guile-email-"
915 version ".tar.xz"))
916 (sha256
917 (base32
918 "0p2v8q2kkz8m6vf2rsjvz3dj1mvnx7dxakjf72dwkndbgk3rp79f"))))
919 (build-system gnu-build-system)
920 (native-inputs
921 `(("pkg-config" ,pkg-config)
922 ("autoconf" ,autoconf)
923 ("automake" ,automake)))
924 (inputs
925 `(("guile" ,guile-2.2)))
926 (home-page "https://git.systemreboot.net/guile-email")
927 (synopsis "Guile email parser")
928 (description "This package provides an email parser written in pure
0791437f 929Guile.")
50771f5b 930 (license license:agpl3+)))
0791437f
RW
931
932(define-public guile-debbugs-next
933 (let ((commit "75a331d561c8b6f8efcf16216dab961c17759efe")
934 (revision "1"))
935 (package (inherit guile-debbugs)
936 (name "guile-debbugs")
937 (version (git-version "0.0.3" revision commit))
938 (source (origin
939 (method git-fetch)
940 (uri (git-reference
941 (url "https://git.savannah.gnu.org/git/guile-debbugs.git")
942 (commit commit)))
943 (file-name (git-file-name name version))
944 (sha256
945 (base32
946 "0br3mgbw41bpc9x57jlghl0i8dz9nl63r4wzs5l47aqszf84870y"))))
947 (build-system gnu-build-system)
948 (native-inputs
949 `(("pkg-config" ,pkg-config)
950 ("autoconf" ,autoconf)
951 ("automake" ,automake)
952 ("texinfo" ,texinfo)))
953 (inputs
954 `(("guile" ,guile-2.2)
955 ("guile-email" ,guile-email))))))
956
0791437f 957(define-public guile-newt
442a11f6
MO
958 (package
959 (name "guile-newt")
960 (version "0.0.1")
961 (source (origin
962 (method git-fetch)
963 (uri (git-reference
964 (url "https://gitlab.com/mothacehe/guile-newt")
965 (commit version)))
966 (file-name (git-file-name name version))
967 (sha256
968 (base32
969 "1w7qy4dw1f4bx622l6hw8mv49sf1ha8kch8j4nganyk8fj0wn695"))))
970 (build-system gnu-build-system)
971 (arguments
972 '(#:make-flags
973 '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
974 (inputs
975 `(("guile" ,guile-2.2)
976 ("newt" ,newt)))
977 (native-inputs
978 `(("autoconf" ,autoconf)
979 ("automake" ,automake)
980 ("pkg-config" ,pkg-config)))
981 (synopsis "Guile bindings to Newt")
982 (description
983 "This package provides bindings for Newt, a programming library for
0791437f
RW
984color text mode, widget based user interfaces. The bindings are written in pure
985Scheme by using Guile’s foreign function interface.")
442a11f6
MO
986 (home-page "https://gitlab.com/mothacehe/guile-newt")
987 (license license:gpl3+)))
0791437f
RW
988
989(define-public guile-mastodon
990 (package
991 (name "guile-mastodon")
992 (version "0.0.1")
993 (source (origin
994 (method git-fetch)
995 (uri (git-reference
996 (url "https://framagit.org/prouby/guile-mastodon.git")
997 (commit (string-append "v" version))))
998 (file-name (git-file-name name version))
999 (sha256
1000 (base32
1001 "1vblf3d1bbwna3l09p2ap5y8ycvl549bz6whgk78imyfmn28ygry"))))
1002 (build-system gnu-build-system)
1003 (native-inputs
1004 `(("autoconf" ,autoconf)
1005 ("automake" ,automake)
1006 ("pkg-config" ,pkg-config)))
1007 (inputs
1008 `(("guile" ,guile-2.2)
1009 ("gnutls" ,gnutls)
1010 ("guile-json" ,guile-json)))
1011 (home-page "https://framagit.org/prouby/guile-mastodon")
1012 (synopsis "Guile Mastodon REST API module")
1013 (description "This package provides Guile modules to access the
1014@uref{https://docs.joinmastodon.org/api/, REST API of Mastodon}, a federated
1015microblogging service.")
1016 (license license:gpl3+)))
1017
0791437f 1018(define-public guile-parted
dbcd503c
MO
1019 (package
1020 (name "guile-parted")
1021 (version "0.0.1")
1022 (source (origin
1023 (method git-fetch)
1024 (uri (git-reference
1025 (url "https://gitlab.com/mothacehe/guile-parted")
1026 (commit version)))
1027 (file-name (git-file-name name version))
1028 (sha256
1029 (base32
1030 "1q7425gpjlwi2wvhzq7kw046yyx7v6j6jyzkd1cr861iz34mjwiq"))))
1031 (build-system gnu-build-system)
1032 (arguments
1033 '(#:make-flags
1034 '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
1035 (inputs
1036 `(("guile" ,guile-2.2)
1037 ("parted" ,parted)))
1038 (propagated-inputs
1039 `(("guile-bytestructures" ,guile-bytestructures)))
1040 (native-inputs
1041 `(("autoconf" ,autoconf)
1042 ("automake" ,automake)
1043 ("pkg-config" ,pkg-config)))
1044 (synopsis "Guile bindings to GNU Parted")
1045 (description
1046 "This package provides bindings for GNU Parted library, a C library
1047allowing disk partition tables creation and manipulation. The bindings are
0791437f 1048written in pure Scheme by using Guile's foreign function interface.")
dbcd503c
MO
1049 (home-page "https://gitlab.com/mothacehe/guile-parted")
1050 (license license:gpl3+)))
0791437f
RW
1051
1052(define-public guile-xosd
1053 (package
1054 (name "guile-xosd")
1055 (version "0.2.1")
1056 (source (origin
1057 (method url-fetch)
1058 (uri (string-append "https://github.com/alezost/" name
1059 "/releases/download/v" version
1060 "/" name "-" version ".tar.gz"))
1061 (sha256
1062 (base32
1063 "1ri5065c16kmgrf2pysn2ymxjqi5302lhpb07wkl1jr75ym8fn8p"))))
1064 (build-system gnu-build-system)
1065 (native-inputs
1066 `(("pkg-config" ,pkg-config)))
1067 (inputs
1068 `(("guile" ,guile-2.2)
1069 ("libx11" ,libx11)
1070 ("libxext" ,libxext)
1071 ("libxinerama" ,libxinerama)
1072 ("xosd" ,xosd)))
1073 (home-page "https://github.com/alezost/guile-xosd")
1074 (synopsis "XOSD bindings for Guile")
1075 (description
1076 "Guile-XOSD provides Guile bindings for @code{libxosd},
1077@uref{http://sourceforge.net/projects/libxosd/, the X On Screen Display
1078library}.")
1079 (license license:gpl3+)))
1080
1081(define-public guile-dbi
1082 (package
1083 (name "guile-dbi")
1084 (version "2.1.6")
1085 (source (origin
1086 (method url-fetch)
1087 (uri (string-append
1088 "http://download.gna.org/guile-dbi/guile-dbi-"
1089 version ".tar.gz"))
1090 (sha256
1091 (base32
1092 "116njrprhgrsv1qm904sp3b02rq01fx639r433d657gyhw3x159n"))))
1093 (build-system gnu-build-system)
1094 (arguments
1095 '(#:configure-flags
1096 (list (string-append
1097 "--with-guile-site-dir=" %output "/share/guile/site/2.2"))
1098 #:make-flags
406ef442
CB
1099 (list (string-append
1100 "LDFLAGS=-Wl,-rpath=" %output "/lib:"
1101 (assoc-ref %build-inputs "guile-dbd-sqlite3") "/lib" ":"
1102 (assoc-ref %build-inputs "guile-dbd-postgresql") "/lib"))
0791437f
RW
1103 #:phases
1104 (modify-phases %standard-phases
1105 (add-after 'install 'patch-extension-path
1106 (lambda* (#:key outputs #:allow-other-keys)
1107 (let* ((out (assoc-ref outputs "out"))
1108 (dbi.scm (string-append
1109 out "/share/guile/site/2.2/dbi/dbi.scm"))
1110 (ext (string-append out "/lib/libguile-dbi")))
1111 (substitute* dbi.scm (("libguile-dbi") ext))
1112 #t))))))
1113 (inputs
406ef442
CB
1114 `(("guile-dbd-sqlite3" ,guile-dbd-sqlite3)
1115 ("guile-dbd-postgresql" ,guile-dbd-postgresql))) ; only shared library, no scheme files
0791437f
RW
1116 (propagated-inputs
1117 `(("guile" ,guile-2.2)))
1118 (synopsis "Guile database abstraction layer")
1119 (home-page "http://home.gna.org/guile-dbi/guile-dbi.html")
1120 (description
1121 "guile-dbi is a library for Guile that provides a convenient interface to
1122SQL databases. Database programming with guile-dbi is generic in that the same
1123programming interface is presented regardless of which database system is used.
1124It currently supports MySQL, Postgres and SQLite3.")
1125 (license license:gpl2+)))
1126
1127(define guile-dbi-bootstrap
1128 (package
1129 (inherit guile-dbi)
1130 (name "guile-dbi-bootstrap")
1131 (inputs '())
1132 (arguments
1133 (substitute-keyword-arguments (package-arguments guile-dbi)
1134 ((#:make-flags _) '(list))))))
1135
1136(define-public guile-dbd-sqlite3
1137 (package
1138 (name "guile-dbd-sqlite3")
1139 (version "2.1.6")
1140 (source (origin
1141 (method url-fetch)
1142 (uri (string-append
1143 "http://download.gna.org/guile-dbi/guile-dbd-sqlite3-"
1144 version ".tar.gz"))
1145 (sha256
1146 (base32
1147 "0rg71jchxd2y8x496s8zmfmikr5g8zxi8zv2ar3f7a23pph92iw2"))))
1148 (build-system gnu-build-system)
1149 (native-inputs
1150 `(("pkg-config" ,pkg-config)
1151 ("guile-dbi-bootstrap" ,guile-dbi-bootstrap))) ; only required for headers
1152 (inputs
1153 `(("sqlite" ,sqlite)
1154 ("zlib" ,(@ (gnu packages compression) zlib))))
1155 (synopsis "Guile DBI driver for SQLite")
1156 (home-page "https://github.com/jkalbhenn/guile-dbd-sqlite3")
1157 (description
1158 "guile-dbi is a library for Guile that provides a convenient interface to
1159SQL databases. This package implements the interface for SQLite.")
1160 (license license:gpl2+)))
1161
406ef442
CB
1162(define-public guile-dbd-postgresql
1163 (let ((commit "e97589b6b018b206c901e4cc24db463407a4036b")
1164 (revision 0))
1165 (package
1166 (name "guile-dbd-postgresql")
1167 (version (string-append
1168 "2.1.6-" (number->string revision) "." (string-take commit 7)))
1169 (source
1170 (origin
1171 (method git-fetch)
1172 (uri (git-reference
1173 (url "https://github.com/opencog/guile-dbi.git")
1174 (commit commit)))
1175 (file-name (git-file-name name version))
1176 (sha256
1177 (base32 "0n1gv9a0kdys10a4qmnrwvg5sydwb03880asri4gqdchcj3fimni"))))
1178 (build-system gnu-build-system)
1179 (arguments
1180 '(#:phases
1181 (modify-phases %standard-phases
1182 (add-after 'unpack 'chdir
1183 (lambda _
1184 ;; The upstream Git repository contains all the code, so change
1185 ;; to the relevant directory.
1186 (chdir "guile-dbd-postgresql")
1187 #t))
1188 (add-after 'chdir 'patch-src/Makefile.am
1189 (lambda* (#:key inputs #:allow-other-keys)
1190 (substitute* "src/Makefile.am"
1191 (("/usr/include")
1192 (string-append (assoc-ref inputs "postgresql") "/include")))
1193 #t))
1194 (add-after 'patch-src/Makefile.am 'patch-src
1195 (lambda _
1196 (substitute* "src/guile-dbd-postgresql.c"
1197 (("postgresql/libpq-fe\\.h") "libpq-fe.h"))
1198 #t)))))
1199 (native-inputs
1200 `(("pkg-config" ,pkg-config)
1201 ("automake" ,automake)
1202 ("autoconf" ,autoconf)
1203 ("perl" ,perl)
1204 ("libtool" ,libtool)
1205 ("guile-dbi-bootstrap" ,guile-dbi-bootstrap)))
1206 (inputs
1207 `(("postgresql" ,postgresql)
1208 ("zlib" ,zlib)))
1209 (synopsis "Guile DBI driver for PostgreSQL")
1210 (home-page
1211 "https://github.com/opencog/guile-dbi/tree/master/guile-dbd-postgresql")
1212 (description
1213 "@code{guile-dbi} is a library for Guile that provides a convenient
1214interface to SQL databases. This package implements the interface for
1215PostgreSQL.")
1216 (license license:gpl2+))))
1217
0791437f
RW
1218(define-public guile-config
1219 (package
1220 (name "guile-config")
1221 (version "0.3")
1222 (source
1223 (origin
1224 (method git-fetch)
1225 (uri (git-reference
1226 (url "https://gitlab.com/a-sassmannshausen/guile-config")
1227 (commit "ce12de3f438c6b2b59c43ee21bcd58251835fdf3")))
1228 (file-name "guile-config-0.3-checkout")
1229 (sha256 (base32 "02zbpin0r9m2vxmr7mv68v3xdn247dcck56kbzjn0gj4c2rhih85"))))
1230 (build-system gnu-build-system)
1231 (native-inputs
1232 `(("autoconf" ,autoconf)
1233 ("automake" ,automake)
1234 ("pkg-config" ,pkg-config)
1235 ("texinfo" ,texinfo)))
1236 (inputs `(("guile" ,guile-2.2)))
1237 (synopsis
1238 "Guile application configuration parsing library.")
1239 (description
1240 "Guile Config is a library providing a declarative approach to
1241application configuration specification. The library provides clean
1242configuration declaration forms, and processors that take care of:
1243configuration file creation; configuration file parsing; command-line
1244parameter parsing using getopt-long; basic GNU command-line parameter
1245generation (--help, --usage, --version); automatic output generation for the
1246above command-line parameters.")
1247 (home-page
1248 "https://gitlab.com/a-sassmannshausen/guile-config")
1249 (license license:gpl3+)))
1250
1251(define-public guile-hall
1252 (package
1253 (name "guile-hall")
63bf0afd 1254 (version "0.2")
0791437f 1255 (source
feb11b08
RW
1256 (origin
1257 (method git-fetch)
1258 (uri (git-reference
1259 (url "https://gitlab.com/a-sassmannshausen/guile-hall")
1260 (commit (string-append "v" version))))
1261 (file-name (git-file-name name version))
1262 (sha256 (base32
1263 "1bkbqgj24xh5b65sw2m98iggpi67b72szx1dsiq3cpzlcxplmgaz"))))
0791437f
RW
1264 (build-system gnu-build-system)
1265 (arguments
63bf0afd
AS
1266 `(#:modules
1267 ((ice-9 match)
1268 (ice-9 ftw)
1269 ,@%gnu-build-system-modules)
1270 #:phases
1271 (modify-phases
1272 %standard-phases
1273 (add-after 'install 'hall-wrap-binaries
1274 (lambda* (#:key inputs outputs #:allow-other-keys)
1275 (let* ((compiled-dir
1276 (lambda (out version)
1277 (string-append
1278 out "/lib/guile/" version "/site-ccache")))
1279 (uncompiled-dir
1280 (lambda (out version)
1281 (string-append
1282 out "/share/guile/site"
1283 (if (string-null? version) "" "/") version)))
1284 (dep-path
1285 (lambda (env modules path)
1286 (list env ":" 'prefix
1287 (cons modules
1288 (map (lambda (input)
1289 (string-append
1290 (assoc-ref inputs input)
1291 path))
1292 ,''("guile-config"))))))
1293 (out (assoc-ref outputs "out"))
1294 (bin (string-append out "/bin/"))
1295 (site (uncompiled-dir out "")))
1296 (match (scandir site)
1297 (("." ".." version)
1298 (for-each
1299 (lambda (file)
1300 (wrap-program
1301 (string-append bin file)
1302 (dep-path
1303 "GUILE_LOAD_PATH"
1304 (uncompiled-dir out version)
1305 (uncompiled-dir "" version))
1306 (dep-path
1307 "GUILE_LOAD_COMPILED_PATH"
1308 (compiled-dir out version)
1309 (compiled-dir "" version))))
1310 ,''("hall"))
1311 #t))))))))
0791437f 1312 (native-inputs
63bf0afd
AS
1313 `(("autoconf" ,autoconf)
1314 ("automake" ,automake)
1315 ("pkg-config" ,pkg-config)
1316 ("texinfo" ,texinfo)))
0791437f
RW
1317 (inputs `(("guile" ,guile-2.2)))
1318 (propagated-inputs
3c3e6620 1319 `(("guile-config" ,guile-config)))
0791437f
RW
1320 (synopsis "Guile project tooling")
1321 (description
3c3e6620
RW
1322 "Hall is a command-line application and a set of Guile libraries that
1323allow you to quickly create and publish Guile projects. It allows you to
1324transparently support the GNU build system, manage a project hierarchy &
1325provides tight coupling to Guix.")
1326 (home-page "https://gitlab.com/a-sassmannshausen/guile-hall")
06085fac 1327 (license license:gpl3+)))
0791437f
RW
1328
1329(define-public guile-ics
1330 (package
1331 (name "guile-ics")
1332 (version "0.2.0")
1333 (source (origin
1334 (method git-fetch)
1335 (uri (git-reference
1336 (url "https://github.com/artyom-poptsov/guile-ics")
1337 (commit (string-append "v" version))))
1338 (file-name (string-append name "-" version "-checkout"))
1339 (sha256
1340 (base32
1341 "0qjjvadr7gibdq9jvwkmlkb4afsw9n2shfj9phpiadinxk3p4m2g"))))
1342 (build-system gnu-build-system)
1343 (native-inputs
1344 `(("autoconf" ,autoconf-wrapper)
1345 ("automake" ,automake)
1346 ("texinfo" ,texinfo)
1347 ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
1348 ("gettext" ,gettext-minimal)
1349 ("pkg-config" ,pkg-config)))
1350 (inputs `(("guile" ,guile-2.2) ("which" ,which)))
1351 (propagated-inputs `(("guile-lib" ,guile-lib)))
1352 (home-page "https://github.com/artyom-poptsov/guile-ics")
1353 (synopsis "Guile parser library for the iCalendar format")
1354 (description
1355 "Guile-ICS is an iCalendar (RFC5545) format parser library written in
1356pure Scheme. The library can be used to read and write iCalendar data.
1357
1358The library is shipped with documentation in Info format and usage examples.")
1359 (license license:gpl3+)))
1360
1361(define-public guile-wisp
1362 (package
1363 (name "guile-wisp")
15218d4e 1364 (version "0.9.9.1")
0791437f
RW
1365 (source (origin
1366 (method url-fetch)
1367 (uri (string-append "https://bitbucket.org/ArneBab/"
1368 "wisp/downloads/wisp-"
1369 version ".tar.gz"))
1370 (sha256
1371 (base32
15218d4e 1372 "1ii14qz1lx7ffhb8i9q7dgaiwbif8g2q182skx17j11skp65c8r3"))))
0791437f
RW
1373 (build-system gnu-build-system)
1374 (arguments
1375 `(#:modules ((guix build gnu-build-system)
15218d4e 1376 ((guix build emacs-build-system) #:prefix emacs:)
0791437f 1377 (guix build utils)
15218d4e 1378 (guix build emacs-utils)
0791437f
RW
1379 (ice-9 rdelim)
1380 (ice-9 popen))
15218d4e
RW
1381 #:imported-modules (,@%gnu-build-system-modules
1382 (guix build emacs-build-system)
1383 (guix build emacs-utils))
0791437f
RW
1384 #:phases
1385 (modify-phases %standard-phases
1386 (add-before 'configure 'patch-/usr/bin/env
1387 (lambda _
1388 (substitute* "Makefile.in"
1389 (("/usr/bin/env bash") (which "bash"))
1390 (("\\$\\(GUILE_EFFECTIVE_VERSION\\)/site")
1391 "site/$(GUILE_EFFECTIVE_VERSION)")) ;use the right order
1392 #t))
1393 ;; auto compilation breaks, but if we set HOME to /tmp,
1394 ;; that works ok
1395 (add-before 'check 'auto-compile-hacky-workaround
1396 (lambda _ (setenv "HOME" "/tmp") #t))
1397 (add-after 'install 'install-go-files
1398 (lambda* (#:key outputs inputs #:allow-other-keys)
1399 (let* ((out (assoc-ref outputs "out"))
1400 (effective (read-line
1401 (open-pipe* OPEN_READ
1402 "guile" "-c"
1403 "(display (effective-version))")))
1404 (module-dir (string-append out "/share/guile/site/"
1405 effective))
1406 (object-dir (string-append out "/lib/guile/" effective
1407 "/site-ccache"))
1408 (prefix (string-length module-dir)))
1409 ;; compile to the destination
1410 (for-each (lambda (file)
1411 (let* ((base (string-drop (string-drop-right file 4)
1412 prefix))
1413 (go (string-append object-dir base ".go")))
1414 (invoke "guild" "compile" "-L" module-dir
1415 file "-o" go)))
1416 (find-files module-dir "\\.scm$"))
15218d4e
RW
1417 #t)))
1418 (add-after 'install 'install-emacs-files
1419 (assoc-ref emacs:%standard-phases 'install))
1420 (add-after 'install-emacs-files 'compile-emacs-files
1421 (assoc-ref emacs:%standard-phases 'build))
1422 (add-after 'compile-emacs-files 'make-autoloads
1423 (assoc-ref emacs:%standard-phases 'make-autoloads)))))
0791437f
RW
1424 (home-page "https://draketo.de/english/wisp")
1425 (inputs
1426 `(("guile" ,guile-2.2)))
1427 (native-inputs
15218d4e
RW
1428 `(("emacs" ,emacs-minimal)
1429 ("python" ,python)
0791437f
RW
1430 ("pkg-config" ,pkg-config)))
1431 (synopsis "Whitespace to lisp syntax for Guile")
1432 (description "Wisp is a syntax for Guile which provides a Python-like
1433whitespace-significant language. It may be easier on the eyes for some
1434users and in some situations.")
1435 (license license:gpl3+)))
1436
1437(define-public guile-sly
1438 (package
1439 (name "guile-sly")
1440 (version "0.1")
1441 (source (origin
1442 (method url-fetch)
1443 (uri (string-append "https://files.dthompson.us/sly/sly-"
1444 version ".tar.gz"))
1445 (sha256
1446 (base32
1447 "1svzlbz2vripmyq2kjh0rig16bsrnbkwbsm558pjln9l65mcl4qq"))
1448 (modules '((guix build utils)))
1449 (snippet
1450 '(begin
1451 (substitute* "configure"
1452 (("_guile_required_version=\"2.0.11\"")
1453 "_guile_required_version=\"2\"")
1454 (("ac_subst_vars='")
1455 "ac_subst_vars='GUILE_EFFECTIVE_VERSION\n"))
1456 (substitute* (find-files "." "Makefile.in")
1457 (("moddir = .*$")
1458 (string-append
1459 "moddir = "
1460 "$(prefix)/share/guile/site/@GUILE_EFFECTIVE_VERSION@\n"))
1461 (("godir = .*$")
1462 (string-append
1463 "godir = "
1464 "$(prefix)/lib/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n")))
1465 #t))))
1466 (build-system gnu-build-system)
1467 (arguments
1468 '(#:configure-flags
1469 (list (string-append "--with-libfreeimage-prefix="
1470 (assoc-ref %build-inputs "freeimage"))
1471 (string-append "--with-libgslcblas-prefix="
1472 (assoc-ref %build-inputs "gsl")))))
1473 (native-inputs
1474 `(("pkg-config" ,pkg-config)))
1475 (propagated-inputs
1476 `(("guile-sdl" ,guile-sdl)
1477 ("guile-opengl" ,guile-opengl)))
1478 (inputs
1479 `(("guile" ,guile-2.2)
1480 ("gsl" ,gsl)
1481 ("freeimage" ,freeimage)
1482 ("mesa" ,mesa)))
1483 (synopsis "2D/3D game engine for GNU Guile")
1484 (description "Sly is a 2D/3D game engine written in Guile Scheme. Sly
1485features a functional reactive programming interface and live coding
1486capabilities.")
1487 (home-page "https://dthompson.us/projects/sly.html")
1488 (license license:gpl3+)))
1489
1490(define-public g-wrap
1491 (package
1492 (name "g-wrap")
1493 (version "1.9.15")
1494 (source (origin
1495 (method url-fetch)
1496 (uri (string-append "mirror://savannah/g-wrap/g-wrap-"
1497 version ".tar.gz"))
1498 (sha256
1499 (base32
1500 "0ak0bha37dfpj9kmyw1r8fj8nva639aw5xr66wr5gd3l1rqf5xhg"))))
1501 (build-system gnu-build-system)
1502 (native-inputs
1503 `(("pkg-config" ,pkg-config)))
1504 (propagated-inputs
1505 `(("guile" ,guile-2.2)
1506 ("guile-lib" ,guile-lib)))
1507 (inputs
1508 `(("libffi" ,libffi)))
1509 (arguments
1510 `(#:configure-flags '("--disable-Werror")
1511 #:phases
1512 (modify-phases %standard-phases
1513 (add-before 'configure 'pre-configure
1514 (lambda* (#:key outputs #:allow-other-keys)
1515 (let ((out (assoc-ref outputs "out")))
1516 (substitute* (find-files "." "^Makefile.in$")
1517 (("guilemoduledir =.*guile/site" all)
1518 (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
1519 #t))))))
1520 (synopsis "Generate C bindings for Guile")
1521 (description "G-Wrap is a tool and Guile library for generating function
1522wrappers for inter-language calls. It currently only supports generating Guile
1523wrappers for C functions. Given a definition of the types and prototypes for
1524a given C interface, G-Wrap will automatically generate the C code that
1525provides access to that interface and its types from the Scheme level.")
1526 (home-page "https://www.nongnu.org/g-wrap/index.html")
1527 (license license:lgpl2.1+)))
1528
1529(define-public guile-miniadapton
1530 (let ((commit "1b5749422304567c96ac5367f2221dda9eff5880")
1531 (revision "1"))
1532 (package
1533 (name "guile-miniadapton")
1534 (version (string-append "0-" revision "." (string-take commit 9)))
1535 (source (origin
1536 (method git-fetch)
1537 (uri (git-reference
1538 (url "https://github.com/fisherdj/miniAdapton.git")
1539 (commit commit)))
1540 (file-name (string-append name "-" version "-checkout"))
1541 (sha256
1542 (base32
1543 "09q51zkw2fypad5xixskfzw2cjhjgs5cswdp3i7cpp651rb3zndh"))))
1544 (build-system guile-build-system)
1545 (native-inputs
1546 `(("guile" ,guile-2.2)))
1547 (home-page "https://github.com/fisherdj/miniAdapton")
1548 (synopsis "Minimal implementation of incremental computation in Guile
1549Scheme")
1550 (description "This package provides a complete Scheme implementation of
1551miniAdapton, which implements the core functionality of the Adapton system for
1552incremental computation (also known as self-adjusting computation). Like
1553Adapton, miniAdapton allows programmers to safely combine mutation and
1554memoization. miniAdapton is built on top of an even simpler system,
1555microAdapton. Both miniAdapton and microAdapton are designed to be easy to
1556understand, extend, and port to host languages other than Scheme.")
1557 (license license:expat))))
1558
1559(define-public guile-reader
1560 (package
1561 (name "guile-reader")
1562 (version "0.6.2")
1563 (source (origin
1564 (method url-fetch)
1565 (uri (string-append "mirror://savannah/guile-reader/guile-reader-"
1566 version ".tar.gz"))
1567 (sha256
1568 (base32
1569 "0592s2s8ampqmqwilc4fvcild6rb9gy79di6vxv5kcdmv23abkgx"))))
1570 (build-system gnu-build-system)
1571 (native-inputs `(("pkgconfig" ,pkg-config)
1572 ("gperf" ,gperf-3.0)))
1573 (inputs `(("guile" ,guile-2.2)))
1574 (synopsis "Framework for building readers for GNU Guile")
1575 (description
1576 "Guile-Reader is a simple framework for building readers for GNU Guile.
1577
1578The idea is to make it easy to build procedures that extend Guile’s read
1579procedure. Readers supporting various syntax variants can easily be written,
1580possibly by re-using existing “token readers” of a standard Scheme
1581readers. For example, it is used to implement Skribilo’s R5RS-derived
1582document syntax.
1583
1584Guile-Reader’s approach is similar to Common Lisp’s “read table”, but
1585hopefully more powerful and flexible (for instance, one may instantiate as
1586many readers as needed).")
1587 (home-page "https://www.nongnu.org/guile-reader/")
1588 (license license:gpl3+)))
1589
1590(define-public guile2.2-reader
1591 (deprecated-package "guile2.2-reader" guile-reader))
1592
1593(define-public guile-ncurses
1594 (package
1595 (name "guile-ncurses")
1596 (version "2.2")
1597 (source (origin
1598 (method url-fetch)
1599 (uri (string-append "mirror://gnu/guile-ncurses/guile-ncurses-"
1600 version ".tar.gz"))
1601 (sha256
1602 (base32
1603 "1wvggbr4xv8idh1hzd8caj4xfp4pln78a7w1wqzd4zgzwmnzxr2f"))))
1604 (build-system gnu-build-system)
1605 (inputs `(("ncurses" ,ncurses)
1606 ("guile" ,guile-2.2)))
1607 (native-inputs `(("pkg-config" ,pkg-config)))
1608 (arguments
1609 '(#:configure-flags (list "--with-ncursesw" ; Unicode support
1610 "--with-gnu-filesystem-hierarchy")
1611 #:phases
1612 (modify-phases %standard-phases
1613 (add-before 'build 'fix-libguile-ncurses-file-name
1614 (lambda* (#:key outputs #:allow-other-keys)
1615 (invoke "make" "install"
1616 "-C" "src/ncurses"
1617 "-j" (number->string
1618 (parallel-job-count)))
1619 (let* ((out (assoc-ref outputs "out"))
1620 (dir "src/ncurses")
1621 (files (find-files dir ".scm")))
1622 (substitute* files
1623 (("\"libguile-ncurses\"")
1624 (format #f "\"~a/lib/guile/2.2/libguile-ncurses\""
1625 out)))
1626 #t))))))
1627 (home-page "https://www.gnu.org/software/guile-ncurses/")
1628 (synopsis "Guile bindings to ncurses")
1629 (description
1630 "guile-ncurses provides Guile language bindings for the ncurses
1631library.")
1632 (license license:lgpl3+)))
1633
1634(define-public guile-ncurses/gpm
1635 (package
1636 (inherit guile-ncurses)
1637 (name "guile-ncurses-with-gpm")
1638 (inputs `(("ncurses" ,ncurses/gpm)
1639 ("guile" ,guile-2.2)))))
1640
1641(define-public guile-lib
1642 (package
1643 (name "guile-lib")
1644 (version "0.2.6.1")
1645 (source (origin
1646 (method url-fetch)
1647 (uri (string-append "mirror://savannah/guile-lib/guile-lib-"
1648 version ".tar.gz"))
1649 (sha256
1650 (base32
1651 "0aizxdif5dpch9cvs8zz5g8ds5s4xhfnwza2il5ji7fv2h7ks7bd"))))
1652 (build-system gnu-build-system)
1653 (arguments
1654 '(#:make-flags
1655 '("GUILE_AUTO_COMPILE=0") ; to prevent guild errors
1656 #:phases
1657 (modify-phases %standard-phases
1658 (add-before 'configure 'patch-module-dir
1659 (lambda _
1660 (substitute* "src/Makefile.in"
1661 (("^moddir = ([[:graph:]]+)")
1662 "moddir = $(datadir)/guile/site/@GUILE_EFFECTIVE_VERSION@\n")
1663 (("^godir = ([[:graph:]]+)")
1664 "godir = \
1665$(libdir)/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n"))
1666 #t)))))
1667 (native-inputs `(("pkg-config" ,pkg-config)))
1668 (inputs `(("guile" ,guile-2.2)))
1669 (home-page "https://www.nongnu.org/guile-lib/")
1670 (synopsis "Collection of useful Guile Scheme modules")
1671 (description
1672 "Guile-Lib is intended as an accumulation place for pure-scheme Guile
1673modules, allowing for people to cooperate integrating their generic Guile
1674modules into a coherent library. Think \"a down-scaled, limited-scope CPAN
1675for Guile\".")
1676
1677 ;; The whole is under GPLv3+, but some modules are under laxer
1678 ;; distribution terms such as LGPL and public domain. See `COPYING' for
1679 ;; details.
1680 (license license:gpl3+)))
1681
1682(define-public guile2.0-lib
1683 (package
1684 (inherit guile-lib)
1685 (name "guile2.0-lib")
1686 (inputs `(("guile" ,guile-2.0)))))
1687
1688(define-public guile2.2-lib
1689 (deprecated-package "guile2.2-lib" guile-lib))
1690
1691(define-public guile-minikanren
1692 (package
1693 (name "guile-minikanren")
1694 (version "20150424.e844d85")
1695 (source (origin
1696 (method git-fetch)
1697 (uri (git-reference
1698 (url "https://github.com/ijp/minikanren.git")
1699 (commit "e844d85512f8c055d3f96143ee506007389a25e3")))
1700 (file-name (string-append name "-" version "-checkout"))
1701 (sha256
1702 (base32
1703 "0r50jlpzi940jlmxyy3ddqqwmj5r12gb4bcv0ssini9v8km13xz6"))))
1704 (build-system guile-build-system)
1705 (native-inputs
1706 `(("guile" ,guile-2.2)))
1707 (home-page "https://github.com/ijp/minikanren")
1708 (synopsis "MiniKanren declarative logic system, packaged for Guile")
1709 (description
1710 "MiniKanren is a relational programming extension to the Scheme
1711programming Language, written as a smaller version of Kanren suitable for
1712pedagogical purposes. It is featured in the book, The Reasoned Schemer,
1713written by Dan Friedman, William Byrd, and Oleg Kiselyov.
1714
1715This is Ian Price's r6rs packaged version of miniKanren, which deviates
1716slightly from miniKanren mainline.
1717
1718See http://minikanren.org/ for more on miniKanren generally.")
1719 (license license:expat)))
1720
1721(define-public guile2.0-minikanren
1722 (package
1723 (inherit guile-minikanren)
1724 (name "guile2.0-minikanren")
1725 (native-inputs `(("guile" ,guile-2.0)))))
1726
1727(define-public guile2.2-minikanren
1728 (deprecated-package "guile2.2-minikanren" guile-minikanren))
1729
1730(define-public guile-irregex
1731 (package
1732 (name "guile-irregex")
1733 (version "0.9.6")
1734 (source (origin
1735 (method url-fetch)
1736 (uri (string-append
1737 "http://synthcode.com/scheme/irregex/irregex-"
1738 version ".tar.gz"))
1739 (sha256
1740 (base32
1741 "1ia3m7dp3lcxa048q0gqbiwwsyvn99baw6xkhb4bhhzn4k7bwyqq"))))
1742 (build-system guile-build-system)
1743 (arguments
1744 '(#:phases (modify-phases %standard-phases
1745 (add-after 'unpack 'move-files-around
1746 (lambda _
1747 ;; Move the relevant source files to src/ and create the
1748 ;; rx/ directory to match the expected module hierarchy.
1749 (mkdir-p "src/rx/source")
1750 (rename-file "irregex-guile.scm"
1751 "src/rx/irregex.scm")
1752 (rename-file "irregex.scm"
1753 "src/rx/source/irregex.scm")
1754 ;; Not really reachable via guile's packaging system,
1755 ;; but nice to have around.
1756 (rename-file "irregex-utils.scm"
1757 "src/rx/source/irregex-utils.scm")
1758 #t)))
1759 #:source-directory "src"))
1760 (native-inputs
1761 `(("guile" ,guile-2.2)))
1762 (home-page "http://synthcode.com/scheme/irregex")
1763 (synopsis "S-expression based regular expressions")
1764 (description
1765 "Irregex is an s-expression based alternative to your classic
1766string-based regular expressions. It implements SRFI 115 and is deeply
1767inspired by the SCSH regular expression system.")
1768 (license license:bsd-3)))
1769
1770(define-public guile2.0-irregex
1771 (package
1772 (inherit guile-irregex)
1773 (name "guile2.0-irregex")
1774 (native-inputs `(("guile" ,guile-2.0)))))
1775
1776(define-public guile2.2-irregex
1777 (deprecated-package "guile2.2-irregex" guile-irregex))
1778
1779(define-public haunt
1780 (package
1781 (name "haunt")
1782 (version "0.2.4")
1783 (source (origin
1784 (method url-fetch)
1785 (uri (string-append "https://files.dthompson.us/haunt/haunt-"
1786 version ".tar.gz"))
1787 (sha256
1788 (base32
1789 "056z4znikk83nr5mr0x2ac3iinqbywa2bvb37mhr566a1q50isfc"))))
1790 (build-system gnu-build-system)
1791 (arguments
1792 `(#:modules ((ice-9 match) (ice-9 ftw)
1793 ,@%gnu-build-system-modules)
1794 #:tests? #f ; test suite is non-deterministic :(
1795 #:phases (modify-phases %standard-phases
1796 (add-after 'install 'wrap-haunt
1797 (lambda* (#:key inputs outputs #:allow-other-keys)
1798 ;; Wrap the 'haunt' command to refer to the right
1799 ;; modules.
1800 (let* ((out (assoc-ref outputs "out"))
1801 (bin (string-append out "/bin"))
1802 (site (string-append
1803 out "/share/guile/site"))
1804 (deps (list (assoc-ref inputs "guile-reader")
1805 (assoc-ref inputs "guile-commonmark"))))
1806 (match (scandir site)
1807 (("." ".." version)
1808 (let ((modules (string-append site "/" version))
1809 (compiled-modules (string-append
1810 out "/lib/guile/" version
1811 "/site-ccache")))
1812 (wrap-program (string-append bin "/haunt")
1813 `("GUILE_LOAD_PATH" ":" prefix
1814 (,modules
1815 ,@(map (lambda (dep)
1816 (string-append dep
1817 "/share/guile/site/"
1818 version))
1819 deps)))
1820 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
1821 (,compiled-modules
1822 ,@(map (lambda (dep)
1823 (string-append dep "/lib/guile/"
1824 version
1825 "/site-ccache"))
1826 deps))))
1827 #t)))))))))
1828 (native-inputs
1829 `(("pkg-config" ,pkg-config)
1830 ("texinfo" ,texinfo)))
1831 (inputs
1832 `(("guile" ,guile-2.2)))
1833 (propagated-inputs
1834 `(("guile-reader" ,guile-reader)
1835 ("guile-commonmark" ,guile-commonmark)))
1836 (synopsis "Functional static site generator")
1837 (description "Haunt is a static site generator written in Guile
1838Scheme. Haunt features a functional build system and an extensible
1839interface for reading articles in any format.")
1840 (home-page "http://haunt.dthompson.us")
1841 (license license:gpl3+)))
1842
1843(define-public guile2.0-haunt
1844 (package
1845 (inherit haunt)
1846 (name "guile2.0-haunt")
1847 (inputs `(("guile" ,guile-2.0)))))
1848
1849(define-public guile2.2-haunt
1850 (deprecated-package "guile2.2-haunt" haunt))
1851
1852(define-public guile-redis
1853 (package
1854 (name "guile-redis")
f57bf15c 1855 (version "1.3.0")
0791437f
RW
1856 (home-page "https://github.com/aconchillo/guile-redis")
1857 (source (origin
1858 (method url-fetch)
1859 (uri (string-append home-page "/archive/" version ".tar.gz"))
1860 (sha256
1861 (base32
f57bf15c 1862 "1li70a2716my9q9zfq0qn2x5d1cir9k2vx0jm9glm464yaf1vj39"))))
0791437f
RW
1863 (build-system gnu-build-system)
1864 (native-inputs
1865 `(("autoconf" ,autoconf)
1866 ("automake" ,automake)
1867 ("pkg-config" ,pkg-config)
1868 ("guile" ,guile-2.2)))
1869 (synopsis "Redis client library for Guile")
1870 (description "Guile-redis provides a Scheme interface to the Redis
1871key-value cache and store.")
1872 (license license:lgpl3+)))
1873
1874(define-public guile2.0-redis
1875 (package
1876 (inherit guile-redis)
1877 (name "guile2.0-redis")
1878 (native-inputs `(("guile" ,guile-2.0)
1879 ,@(alist-delete "guile"
1880 (package-native-inputs guile-redis))))))
1881
1882(define-public guile2.2-redis
1883 (deprecated-package "guile2.2-redis" guile-redis))
1884
1885(define-public guile-commonmark
1886 (package
1887 (name "guile-commonmark")
b552e307 1888 (version "0.1.2")
0791437f
RW
1889 (source (origin
1890 (method url-fetch)
1891 (uri (string-append "https://github.com/OrangeShark/" name
1892 "/releases/download/v" version
1893 "/" name "-" version ".tar.gz"))
1894 (sha256
1895 (base32
b552e307 1896 "17lrsdisa3kckh24q114vfmzdc4wkqa6ccwl4hdlrng5wpn1iman"))))
0791437f
RW
1897 (build-system gnu-build-system)
1898 (inputs
1899 `(("guile" ,guile-2.2)))
1900 (native-inputs
1901 `(("pkg-config" ,pkg-config)))
1902 (synopsis "CommonMark parser for Guile")
1903 (description
1904 "guile-commonmark is a library for parsing CommonMark, a fully specified
1905variant of Markdown. The library is written in Guile Scheme and is designed
1906to transform a CommonMark document to SXML. guile-commonmark tries to closely
1907follow the @uref{http://commonmark.org/, CommonMark spec}, the main difference
1908is no support for parsing block and inline level HTML.")
1909 (home-page "https://github.com/OrangeShark/guile-commonmark")
1910 (license license:lgpl3+)))
1911
1912(define-public guile2.0-commonmark
1913 (package
1914 (inherit guile-commonmark)
1915 (name "guile2.0-commonmark")
1916 (inputs `(("guile" ,guile-2.0)))))
1917
1918(define-public guile2.2-commonmark
1919 (deprecated-package "guile2.2-commonmark" guile-commonmark))
1920
1921(define-public mcron
1922 (package
1923 (name "mcron")
1924 (version "1.1.1")
1925 (source (origin
1926 (method url-fetch)
1927 (uri (string-append "mirror://gnu/mcron/mcron-"
1928 version ".tar.gz"))
1929 (sha256
1930 (base32
1931 "1i9mcp6r6my61zfiydsm3n6my41mwvl7dfala4q29qx0zn1ynlm4"))))
1932 (build-system gnu-build-system)
1933 (arguments
1934 '(#:phases (modify-phases %standard-phases
1935 (add-before 'check 'set-timezone
1936 (lambda* (#:key inputs #:allow-other-keys)
1937 ;; 'tests/job-specifier.scm' expects to be running in
1938 ;; UTC-2 or something.
1939 ;; FIXME: This issue is being investigated upstream, for
1940 ;; now we'll just skip the tests (see below):
1941 ;; <https://lists.gnu.org/archive/html/bug-mcron/2018-04/msg00005.html>.
1942 (let ((tzdata (assoc-ref inputs "tzdata")))
1943 (setenv "TZDIR"
1944 (string-append tzdata
1945 "/share/zoneinfo"))
1946 (setenv "TZ" "UTC-2")
1947 #t)))
1948 (add-before 'check 'adjust-tests
1949 (lambda _
1950 (substitute* "tests/job-specifier.scm"
1951 ;; (getpw) fails with "entry not found" in the build
1952 ;; environment, so pass an argument.
1953 (("\\(getpw\\)")
1954 "(getpwnam (getuid))")
1955 ;; The build environment lacks an entry for root in
1956 ;; /etc/passwd.
1957 (("\\(getpw 0\\)")
1958 "(getpwnam \"nobody\")")
1959
1960 ;; FIXME: Skip the 4 faulty tests (see above).
1961 (("\\(test-equal \"next-year\"" all)
1962 (string-append "(test-skip 4)\n" all)))
1963 #t)))))
1964 (native-inputs `(("pkg-config" ,pkg-config)
1965 ("tzdata" ,tzdata-for-tests)))
1966 (inputs `(("ed" ,ed) ("which" ,which) ("guile" ,guile-2.2)))
1967 (home-page "https://www.gnu.org/software/mcron/")
1968 (synopsis "Run jobs at scheduled times")
1969 (description
1970 "GNU Mcron is a complete replacement for Vixie cron. It is used to run
1971tasks on a schedule, such as every hour or every Monday. Mcron is written in
1972Guile, so its configuration can be written in Scheme; the original cron
1973format is also supported.")
1974 (license license:gpl3+)))
1975
1976(define-public mcron2
1977 ;; This was mthl's mcron development branch, and it became mcron 1.1.
1978 (deprecated-package "mcron2" mcron))
6bb5f88e
RW
1979
1980(define-public guile-picture-language
8d11b6dd
RW
1981 (let ((commit "1ea8b78a8bceb4f7e5eaeb3e76987072267f99bb")
1982 (revision "2"))
6bb5f88e
RW
1983 (package
1984 (name "guile-picture-language")
1985 (version (git-version "0" revision commit))
1986 (source (origin
1987 (method git-fetch)
1988 (uri (git-reference
1989 (url "https://git.elephly.net/software/guile-picture-language.git")
1990 (commit commit)))
1991 (sha256
1992 (base32
8d11b6dd 1993 "1rvq6q2zq21x7dx0qq1hn568wglsl4bkd8gacbarcx1fs0rrxcqw"))))
6bb5f88e
RW
1994 (build-system guile-build-system)
1995 (inputs
1996 `(("guile" ,guile-2.2)))
1997 (home-page "https://git.elephly.net/software/guile-picture-language.git")
1998 (synopsis "Picture language for Guile")
1999 (description
2000 "This package provides a simple SVG-based picture language for Guile.
2001The picture values can directly be displayed in Geiser.")
2002 (license license:lgpl3+))))
5531782d
RW
2003
2004(define-public guile-studio
2005 (let ((commit "e2da64f014942a73996286c4abe3c3b1f8bd220c")
2006 (revision "1"))
2007 (package
2008 (name "guile-studio")
2009 (version (git-version "0" revision commit))
2010 (source (origin
2011 (method git-fetch)
2012 (uri (git-reference
2013 (url "https://git.elephly.net/software/guile-studio.git")
2014 (commit commit)))
2015 (sha256
2016 (base32
2017 "10v3kw41bzd8c2a6vxgrwbvl216d0k8f5s9h6pm8hahpd03jl7lm"))))
2018 (build-system gnu-build-system)
2019 (arguments
2020 `(#:tests? #f ; there are none
2021 #:phases
2022 (modify-phases %standard-phases
2023 (delete 'configure)
2024 (replace 'build
2025 (lambda* (#:key source inputs outputs #:allow-other-keys)
2026 (let* ((out (assoc-ref outputs "out"))
2027 (bin (string-append out "/bin/"))
2028 (share (string-append out "/share/")))
2029 (mkdir-p share)
2030 (mkdir-p bin)
2031 (apply invoke "guile" "-s" "guile-studio-configure.scm"
2032 out
2033 (assoc-ref inputs "emacs")
2034 (assoc-ref inputs "guile-picture-language")
2035 (string-append (assoc-ref inputs "adwaita-icon-theme")
2036 "/share/icons/Adwaita/")
2037 (map cdr inputs))
2038 #t)))
2039 (delete 'install))))
2040 (inputs
2041 `(("guile" ,guile-2.2)
2042 ("guile-picture-language" ,guile-picture-language)
2043 ("emacs" ,emacs)
2044 ("emacs-geiser" ,emacs-geiser)
2045 ("emacs-company" ,emacs-company)
2046 ("emacs-flycheck" ,emacs-flycheck)
2047 ("emacs-smart-mode-line" ,emacs-smart-mode-line)
2048 ("emacs-paren-face" ,emacs-paren-face)
2049 ("adwaita-icon-theme" ,adwaita-icon-theme)))
2050 (home-page "https://gnu.org/software/guile")
2051 (synopsis "IDE for Guile")
2052 (description
2053 "This is Emacs with a few settings that make working with Guile easier
2054for people new to Emacs. Features include: CUA mode, Geiser, tool bar icons
2055to evaluate Guile buffers, support for Guile's very own picture language, code
2056completion, a simple mode line, etc.")
2057 (license license:gpl3+))))
9f8698ad
RW
2058
2059(define-public guile-stis-parser
2060 (let ((commit "6e85d37ffc333b722f4413a6c648263701eb75bd")
2061 (revision "1"))
2062 (package
2063 (name "guile-stis-parser")
2064 (version (git-version "0" revision commit))
2065 (source (origin
2066 (method git-fetch)
2067 (uri (git-reference
2068 (url "https://gitlab.com/tampe/stis-parser")
2069 (commit commit)))
29e76f07 2070 (file-name (git-file-name name version))
9f8698ad
RW
2071 (sha256
2072 (base32
2073 "0v4hvq7rlpbra1ni73lf8k6sdmjlflr50yi3p1f24g85h77pc7c0"))))
2074 (build-system gnu-build-system)
2075 (arguments
2076 `(#:parallel-build? #f ; not supported
2077 #:phases
2078 (modify-phases %standard-phases
2079 (add-after 'unpack 'chdir
2080 (lambda _ (chdir "modules") #t))
8318b3ed
RW
2081 (add-after 'chdir 'use-canonical-directory-for-go-files
2082 (lambda _
2083 (substitute* "Makefile.am"
2084 (("/ccache") "/site-ccache"))
2085 #t))
9f8698ad
RW
2086 (add-after 'chdir 'delete-broken-symlink
2087 (lambda _
2088 (delete-file "parser/stis-parser/lang/.#calc.scm")
2089 #t)))))
2090 (inputs
2091 `(("guile" ,guile-2.2)))
2092 (native-inputs
2093 `(("autoconf" ,autoconf)
2094 ("automake" ,automake)
2095 ("pkg-config" ,pkg-config)))
2096 (home-page "https://gitlab.com/tampe/stis-parser")
2097 (synopsis "Parser combinator framework")
2098 (description
2099 "This package provides a functional parser combinator library that
2100supports backtracking and a small logical framework. The idea is to build up
2101chunks that are memoized and there is no clear scanner/parser separation,
2102chunks can be expressions as well as simple tokens.")
2103 (license license:lgpl2.0+))))
12d73f9c
RW
2104
2105(define-public guile-persist
2106 (let ((commit "b14927b0368af51c024560aee5f55724aee35233")
2107 (revision "1"))
2108 (package
2109 (name "guile-persist")
2110 (version (git-version "0" revision commit))
2111 (source (origin
2112 (method git-fetch)
2113 (uri (git-reference
2114 (url "https://gitlab.com/tampe/guile-persist")
2115 (commit commit)))
2116 (file-name (git-file-name name version))
2117 (sha256
2118 (base32
2119 "0z5nf377wh8yj6n3sx2ddn4bdx1qrqnw899dlqjhg0q69qzil522"))))
2120 (build-system gnu-build-system)
2121 (arguments
2122 `(#:phases
2123 (modify-phases %standard-phases
2124 (add-after 'unpack 'patch-prefix
2125 (lambda* (#:key inputs outputs #:allow-other-keys)
2126 (substitute* "src/Makefile.am"
2127 (("/usr/local/lib/guile")
2128 (string-append (assoc-ref outputs "out") "/lib/guile"))
2129 (("/usr/local/include/guile")
2130 (string-append (assoc-ref inputs "guile") "/include/guile"))
2131 (("-L/usr/local/lib")
8f052528
RW
2132 (string-append "-L" (assoc-ref inputs "guile") "/lib"))
2133 ;; Use canonical directory for go files.
2134 (("/ccache") "/site-ccache"))
12d73f9c
RW
2135 #t))
2136 (add-after 'unpack 'patch-library-reference
2137 (lambda* (#:key outputs #:allow-other-keys)
2138 (let ((out (assoc-ref outputs "out")))
2139 (substitute* "persist/persistance.scm"
2140 (("\"libguile-persist\"")
2141 (format #f "\"~a/lib/guile/2.2/extensions/libguile-persist\"" out)))
2142 #t))))))
2143 (inputs
2144 `(("guile" ,guile-2.2)))
2145 (native-inputs
2146 `(("autoconf" ,autoconf)
2147 ("automake" ,automake)
2148 ("libtool" ,libtool)
2149 ("pkg-config" ,pkg-config)))
2150 (home-page "https://gitlab.com/tampe/guile-persist")
2151 (synopsis "Persistance programming framework for Guile")
2152 (description
2153 "This is a serialization library for serializing objects like classes
2154and objects, closures and structs. This currently does not support
2155serializing continuations or delimited continuations.")
2156 (license license:lgpl2.0+))))
6d37301b
RW
2157
2158(define-public python-on-guile
2159 (let ((commit "0cb7c2b2fff4338ca6153473f3f5c409a818f293")
2160 (revision "1"))
2161 (package
2162 (name "python-on-guile")
2163 (version (git-version "0.1.0" revision commit))
2164 (source (origin
2165 (method git-fetch)
2166 (uri (git-reference
2167 (url "https://gitlab.com/python-on-guile/python-on-guile.git")
2168 (commit commit)))
2169 (file-name (git-file-name name version))
2170 (sha256
2171 (base32
2172 "0kpz08rrp5mwcf5ksc4flgrw992syham9x49dn9wq9w31bpcpnby"))))
2173 (build-system gnu-build-system)
2174 (arguments
2175 `(#:parallel-build? #f ; not supported
2176 #:make-flags
2177 '("GUILE_AUTO_COMPILE=0") ; to prevent guild errors
2178 #:phases
2179 (modify-phases %standard-phases
2180 (add-after 'unpack 'chdir
2181 (lambda _ (chdir "modules") #t))
2182 (add-after 'chdir 'use-canonical-directory-for-go-files
2183 (lambda _
2184 (substitute* "Makefile.am"
2185 (("/ccache") "/site-ccache"))
2186 #t)))))
2187 (inputs
2188 `(("guile" ,guile-2.2)))
2189 (propagated-inputs
2190 `(("guile-persist" ,guile-persist)
2191 ("guile-readline" ,guile-readline)
2192 ("guile-stis-parser" ,guile-stis-parser)))
2193 (native-inputs
2194 `(("autoconf" ,autoconf)
2195 ("automake" ,automake)
2196 ("libtool" ,libtool)
2197 ("pkg-config" ,pkg-config)))
2198 (home-page "https://gitlab.com/python-on-guile/python-on-guile/")
2199 (synopsis "Python implementation in Guile")
2200 (description
2201 "This package allows you to compile a Guile Python file to any target
2202from @code{tree-il}.")
2203 (license license:lgpl2.0+))))
b97b4624
RW
2204
2205(define-public guile-file-names
2206 (package
2207 (name "guile-file-names")
481eca80 2208 (version "0.2")
b97b4624
RW
2209 (source (origin
2210 (method url-fetch)
2211 (uri (string-append "http://brandon.invergo.net/software/download/"
2212 "guile-file-names/guile-file-names-"
2213 version ".tar.gz"))
2214 (sha256
2215 (base32
481eca80 2216 "1kwx5hanl40960w2nhyga7ry4l6c3c57zdrihk4yajj87vn3pmi8"))))
b97b4624
RW
2217 (build-system gnu-build-system)
2218 (arguments
2219 `(#:phases
2220 (modify-phases %standard-phases
481eca80 2221 (add-after 'unpack 'fix-target-directory
b97b4624 2222 (lambda _
481eca80 2223 (substitute* "src/Makefile.in"
b97b4624
RW
2224 (("guilemoddir = \\$\\(GUILE_SITE\\)")
2225 "guilemoddir = $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
2226 #t)))))
2227 (inputs
2228 `(("guile" ,guile-2.2)))
2229 (native-inputs
2230 `(("pkg-config" ,pkg-config)))
2231 (home-page "https://gitlab.com/brandoninvergo/guile-file-names")
2232 (synopsis "Manipulate file names")
2233 (description
2234 "The @code{(file-names)} module provides tools for manipulating file
2235names. The module was built on the idea that doing anything more than a
2236non-trivial modification of a file name string is a pain (making sure all
2237slashes are present and accounted for, resolving @code{.} and @code{..}, etc).
2238Inevitably, you have to break the string up into chunks and operate on that
2239list of components. This module takes care of that for you.")
2240 (license license:lgpl3+)))
bdf2dd79
JN
2241
2242(define-public guile-gi
898b705d
JN
2243 (let ((commit "26e885219ae6b31a83766564a2ecfe8c4532346f")
2244 (revision "1"))
bdf2dd79
JN
2245 (package
2246 (name "guile-gi")
2247 (version (string-append "0.0.1-" revision "." (string-take commit 7)))
2248 (source (origin
2249 (method git-fetch)
2250 (uri (git-reference
898b705d 2251 (url "https://github.com/spk121/guile-gi.git")
bdf2dd79
JN
2252 (commit commit)))
2253 (file-name (string-append name "-" version))
2254 (sha256
2255 (base32
898b705d 2256 "1prbzhr4sqqihb34l6yfrz6sd8nghwd3q9wvbm36jnl2n3z2nxj8"))))
bdf2dd79
JN
2257 (build-system gnu-build-system)
2258 (native-inputs `(("autoconf" ,autoconf)
2259 ("automake" ,automake)
2260 ("gettext" ,gnu-gettext)
2261 ("libtool" ,libtool)
2262 ("pkg-config" ,pkg-config)
2263 ("texinfo" ,texinfo)))
2264 (propagated-inputs `(("glib" ,glib)
2265 ("gobject-introspection" ,gobject-introspection)
2266 ("gssettings-desktop-schemas" ,gsettings-desktop-schemas)
2267 ("gtk+" ,gtk+)
2268 ("guile-lib" ,guile-lib)
2269 ("webkitgtk" ,webkitgtk)))
2270 (inputs `(("guile" ,guile-2.2)))
2271 (arguments
2272 `(#:configure-flags '("--with-gnu-filesystem-hierarchy")))
2273 (home-page "https://github.com/spk121/guile-gi")
2274 (synopsis "GObject bindings for Guile")
2275 (description
2276 "Guile-GI is a library for Guile that allows using GObject-based
2277libraries, such as GTK+3. Its README comes with the disclaimer: This is
2278pre-alpha code.")
2279 (license license:gpl3+))))
dec4b3aa
LC
2280
2281(define-public guile-srfi-159
2282 (let ((commit "1bd98abda2ae4ef8f36761a167903e55c6bda7bb")
2283 (revision "0"))
2284 (package
2285 (name "guile-srfi-159")
2286 (version (git-version "0" revision commit))
2287 (home-page "https://bitbucket.org/bjoli/guile-srfi-159")
2288 (source (origin
2289 (method hg-fetch)
2290 (uri (hg-reference (changeset commit)
2291 (url home-page)))
2292 (sha256
2293 (base32
2294 "1zw6cmcy7xdbfiz3nz9arqnn7l2daidaps6ixkcrc9b6k51fdv3p"))
2295 (file-name (git-file-name name version))))
2296 (build-system guile-build-system)
2297 (arguments
2298 ;; The *-impl.scm files are actually included from module files; they
2299 ;; should not be compiled separately, but they must be installed.
2300 '(#:not-compiled-file-regexp "-impl\\.scm$"))
2301 (inputs
2302 `(("guile" ,guile-2.2)))
2303 (synopsis "Formatting combinators for Guile")
2304 (description
2305 "The @code{(srfi-159)} module and its sub-modules implement the
2306formatting combinators specified by
2307@uref{https://srfi.schemers.org/srfi-159/srfi-159.html, SRFI-159}. These are
2308more expressive and flexible than the traditional @code{format} procedure.")
2309 (license license:bsd-3))))
f0de9544
JN
2310
2311(define-public emacsy
2312 (let ((commit "7d49cc1425d5d209bdb82cac0d8ea0694b8b3784")
2313 (revision "4"))
2314 (package
2315 (name "emacsy")
2316 (version (string-append "0.1.2-" revision "." (string-take commit 7)))
2317 (source (origin
2318 (method git-fetch)
2319 (uri (git-reference
2320 (url "https://gitlab.com/janneke/emacsy.git")
2321 (commit commit)))
2322 (file-name (string-append name "-" version))
2323 (sha256
2324 (base32
2325 "0k9yns1v8zn135w60sx96nqs2bm2p2dvcvlm987hkw4lbff9ii6i"))))
2326 (build-system gnu-build-system)
2327 (native-inputs
2328 `(("emacsy-webkit-gtk"
2329 ,(origin
2330 (method git-fetch)
2331 (uri (git-reference
2332 (url "https://gitlab.com/janneke/emacsy-webkit-gtk.git")
2333 (commit "35ded1b3e997fd779a17e0c4a2c73741718562d9")))
2334 (file-name (string-append "emacsy-webkit-gtk" "-" version))
2335 (sha256
2336 (base32
2337 "1gp0li2rbp6in926r3hrww6cnh864pp46v1din2pgmd7vzzl7kg0"))))
2338 ("hello-emacsy"
2339 ,(origin
2340 (method git-fetch)
2341 (uri (git-reference
2342 (url "https://gitlab.com/janneke/hello-emacsy.git")
2343 (commit "2c117e5286a261be4ff24938f3ae1d348396c538")))
2344 (file-name (string-append "hello-emacsy" "-" version))
2345 (sha256
2346 (base32
2347 "15ykd7s8axcy8ym4v71fgal4x28fxnim0pv0jmpi3dnhizr63zqn"))))
2348 ("autoconf" ,autoconf)
2349 ("automake" ,automake)
2350 ("bzip2" ,bzip2)
2351 ("guile" ,guile-2.2)
2352 ("gettext" ,gnu-gettext)
2353 ("libtool" ,libtool)
2354 ("noweb" ,noweb)
2355 ("perl" ,perl)
2356 ("pkg-config" ,pkg-config)
2357 ("texinfo" ,texinfo)
2358 ("texlive" ,texlive)))
2359 (propagated-inputs
2360 `(("guile-lib" ,guile-lib)
2361 ("guile-readline" ,guile-readline)
2362 ("freeglut" ,freeglut)
2363 ("gssettings-desktop-schemas" ,gsettings-desktop-schemas)
2364 ("webkitgtk" ,webkitgtk)))
2365 (inputs `(("guile" ,guile-2.2)))
2366 (arguments
2367 `(#:phases
2368 (modify-phases %standard-phases
2369 (add-after 'unpack 'unpack-examples
2370 (lambda _
2371 (copy-recursively (assoc-ref %build-inputs "emacsy-webkit-gtk")
2372 "example/emacsy-webkit-gtk")
2373 (copy-recursively (assoc-ref %build-inputs "hello-emacsy")
2374 "example/hello-emacsy")))
2375 (add-before 'configure 'setenv
2376 (lambda _
2377 (setenv "GUILE_AUTO_COMPILE" "0"))))))
2378 (home-page "https://github.com/shanecelis/emacsy/")
2379 (synopsis "Embeddable GNU Emacs-like library using Guile")
2380 (description
2381 "Emacsy is an embeddable GNU Emacs-like library that uses GNU Guile
2382as extension language. Emacsy can give a C program an Emacsy feel with
2383keymaps, minibuffer, recordable macros, history, tab completion, major
2384and minor modes, etc., and can also be used as a pure Guile library. It
2385comes with a simple counter example using GLUT and browser examples in C
2386using gtk+-3 and webkitgtk.")
2387 (license license:gpl3+))))