Commit | Line | Data |
---|---|---|
0791437f | 1 | ;;; GNU Guix --- Functional package management for GNU |
f918a8d9 | 2 | ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org> |
0791437f RW |
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> | |
195e1c1b | 6 | ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Ricardo Wurmus <rekado@elephly.net> |
0791437f | 7 | ;;; Copyright © 2016 Erik Edrosa <erik.edrosa@gmail.com> |
a52aa7fd | 8 | ;;; Copyright © 2016, 2019, 2020 Eraim Flashner <efraim@flashner.co.il> |
0791437f RW |
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> | |
f6145358 | 15 | ;;; Copyright © 2017, 2018, 2019, 2020 Mathieu Othacehe <m.othacehe@gmail.com> |
0791437f | 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> | |
69bb61f1 | 20 | ;;; Copyright © 2018, 2019, 2020 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> |
be789065 | 24 | ;;; Copyright © 2019, 2020 Amar Singh <nly@disroot.org> |
f9ec89f4 | 25 | ;;; Copyright © 2019 Timothy Sample <samplet@ngyro.com> |
b488b64a | 26 | ;;; Copyright © 2019 Martin Becze <mjbecze@riseup.net> |
8ffc20ef | 27 | ;;; Copyright © 2020 Evan Straw <evan.straw99@gmail.com> |
0791437f RW |
28 | ;;; |
29 | ;;; This file is part of GNU Guix. | |
30 | ;;; | |
31 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
32 | ;;; under the terms of the GNU General Public License as published by | |
33 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
34 | ;;; your option) any later version. | |
35 | ;;; | |
36 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
37 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
38 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
39 | ;;; GNU General Public License for more details. | |
40 | ;;; | |
41 | ;;; You should have received a copy of the GNU General Public License | |
42 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
43 | ||
44 | (define-module (gnu packages guile-xyz) | |
45 | #:use-module ((guix licenses) #:prefix license:) | |
46 | #:use-module (gnu packages) | |
7ff157c1 | 47 | #:use-module (gnu packages algebra) |
0791437f RW |
48 | #:use-module (gnu packages aspell) |
49 | #:use-module (gnu packages autotools) | |
50 | #:use-module (gnu packages base) | |
51 | #:use-module (gnu packages bash) | |
52 | #:use-module (gnu packages compression) | |
406ef442 | 53 | #:use-module (gnu packages databases) |
0791437f | 54 | #:use-module (gnu packages disk) |
15218d4e | 55 | #:use-module (gnu packages emacs) |
5531782d | 56 | #:use-module (gnu packages emacs-xyz) |
0791437f RW |
57 | #:use-module (gnu packages gawk) |
58 | #:use-module (gnu packages gettext) | |
59 | #:use-module (gnu packages gl) | |
bdf2dd79 | 60 | #:use-module (gnu packages glib) |
5531782d | 61 | #:use-module (gnu packages gnome) |
e8c2da41 | 62 | #:use-module (gnu packages gnupg) |
0791437f | 63 | #:use-module (gnu packages gperf) |
bdf2dd79 | 64 | #:use-module (gnu packages gtk) |
0791437f RW |
65 | #:use-module (gnu packages guile) |
66 | #:use-module (gnu packages hurd) | |
67 | #:use-module (gnu packages image) | |
d1a3a8e1 | 68 | #:use-module (gnu packages imagemagick) |
0791437f RW |
69 | #:use-module (gnu packages libffi) |
70 | #:use-module (gnu packages libunistring) | |
71 | #:use-module (gnu packages linux) | |
72 | #:use-module (gnu packages man) | |
73 | #:use-module (gnu packages maths) | |
74 | #:use-module (gnu packages multiprecision) | |
75 | #:use-module (gnu packages ncurses) | |
76 | #:use-module (gnu packages networking) | |
f0de9544 | 77 | #:use-module (gnu packages noweb) |
1a37fd1e | 78 | #:use-module (gnu packages nss) |
e8c2da41 | 79 | #:use-module (gnu packages password-utils) |
406ef442 | 80 | #:use-module (gnu packages perl) |
0791437f RW |
81 | #:use-module (gnu packages pkg-config) |
82 | #:use-module (gnu packages python) | |
83 | #:use-module (gnu packages readline) | |
84 | #:use-module (gnu packages sdl) | |
69bb61f1 | 85 | #:use-module (gnu packages search) |
0791437f RW |
86 | #:use-module (gnu packages slang) |
87 | #:use-module (gnu packages sqlite) | |
69bb61f1 | 88 | #:use-module (gnu packages swig) |
f0de9544 | 89 | #:use-module (gnu packages tex) |
0791437f RW |
90 | #:use-module (gnu packages texinfo) |
91 | #:use-module (gnu packages tls) | |
92 | #:use-module (gnu packages version-control) | |
bdf2dd79 | 93 | #:use-module (gnu packages webkit) |
0791437f RW |
94 | #:use-module (gnu packages xdisorg) |
95 | #:use-module (gnu packages xorg) | |
96 | #:use-module (guix packages) | |
97 | #:use-module (guix download) | |
98 | #:use-module (guix git-download) | |
dec4b3aa | 99 | #:use-module (guix hg-download) |
0791437f RW |
100 | #:use-module (guix build-system gnu) |
101 | #:use-module (guix build-system guile) | |
102 | #:use-module (guix utils) | |
103 | #:use-module (ice-9 match) | |
104 | #:use-module ((srfi srfi-1) #:select (alist-delete))) | |
105 | ||
106 | (define-public artanis | |
1a37fd1e RW |
107 | (package |
108 | (name "artanis") | |
109 | (version "0.4.1") | |
110 | (source (origin | |
111 | (method url-fetch) | |
112 | (uri (string-append "mirror://gnu/artanis/artanis-" | |
113 | version ".tar.gz")) | |
114 | (sha256 | |
115 | (base32 | |
116 | "0nnmdfx5xwcc3kck64var7msz7g3qk817d7bv9l159nkmic0v9w4")) | |
117 | (modules '((guix build utils))) | |
118 | (snippet | |
119 | '(begin | |
120 | ;; Unbundle guile-redis and guile-json | |
121 | (delete-file-recursively "artanis/third-party/json.scm") | |
122 | (delete-file-recursively "artanis/third-party/json") | |
123 | (delete-file-recursively "artanis/third-party/redis.scm") | |
124 | (delete-file-recursively "artanis/third-party/redis") | |
125 | (substitute* '("artanis/artanis.scm" | |
126 | "artanis/lpc.scm" | |
127 | "artanis/oht.scm") | |
128 | (("(#:use-module \\()artanis third-party (json\\))" _ | |
129 | use-module json) | |
130 | (string-append use-module json))) | |
131 | (substitute* '("artanis/lpc.scm" | |
132 | "artanis/session.scm") | |
133 | (("(#:use-module \\()artanis third-party (redis\\))" _ | |
134 | use-module redis) | |
135 | (string-append use-module redis))) | |
136 | (substitute* "artanis/oht.scm" | |
137 | (("([[:punct:][:space:]]+)(->json-string)([[:punct:][:space:]]+)" | |
138 | _ pre json-string post) | |
139 | (string-append pre | |
140 | "scm" json-string | |
141 | post))) | |
142 | (substitute* "artanis/artanis.scm" | |
143 | (("[[:punct:][:space:]]+->json-string[[:punct:][:space:]]+") | |
144 | "")) | |
145 | #t)))) | |
146 | (build-system gnu-build-system) | |
147 | (inputs | |
148 | `(("guile" ,guile-2.2) | |
149 | ("nss" ,nss))) | |
150 | ;; FIXME the bundled csv contains one more exported procedure | |
151 | ;; (sxml->csv-string) than guile-csv. The author is maintainer of both | |
152 | ;; projects. | |
153 | ;; TODO: Add guile-dbi and guile-dbd optional dependencies. | |
154 | (propagated-inputs | |
155 | `(("guile-json" ,guile-json-1) | |
156 | ("guile-readline" ,guile-readline) | |
157 | ("guile-redis" ,guile-redis))) | |
158 | (native-inputs | |
159 | `(("bash" ,bash) ;for the `source' builtin | |
160 | ("pkgconfig" ,pkg-config) | |
161 | ("util-linux" ,util-linux))) ;for the `script' command | |
162 | (arguments | |
163 | '(#:make-flags | |
164 | ;; TODO: The documentation must be built with the `docs' target. | |
165 | (let* ((out (assoc-ref %outputs "out")) | |
166 | (scm (string-append out "/share/guile/site/2.2")) | |
167 | (go (string-append out "/lib/guile/2.2/site-ccache"))) | |
168 | ;; Don't use (%site-dir) for site paths. | |
169 | (list (string-append "MOD_PATH=" scm) | |
170 | (string-append "MOD_COMPILED_PATH=" go))) | |
171 | #:test-target "test" | |
172 | #:phases | |
173 | (modify-phases %standard-phases | |
174 | (add-after 'unpack 'patch-site-dir | |
175 | (lambda* (#:key outputs #:allow-other-keys) | |
176 | (substitute* "artanis/commands/help.scm" | |
177 | (("\\(%site-dir\\)") | |
178 | (string-append "\"" | |
179 | (assoc-ref outputs "out") | |
180 | "/share/guile/site/2.2\""))))) | |
181 | (add-after 'unpack 'patch-reference-to-libnss | |
182 | (lambda* (#:key inputs #:allow-other-keys) | |
183 | (substitute* "artanis/security/nss.scm" | |
184 | (("ffi-binding \"libnss3\"") | |
185 | (string-append | |
186 | "ffi-binding \"" | |
187 | (assoc-ref inputs "nss") "/lib/nss/libnss3.so" | |
188 | "\""))) | |
189 | #t)) | |
190 | (add-before 'install 'substitute-root-dir | |
191 | (lambda* (#:key outputs #:allow-other-keys) | |
192 | (let ((out (assoc-ref outputs "out"))) | |
193 | (substitute* "Makefile" ;ignore the execution of bash.bashrc | |
194 | ((" /etc/bash.bashrc") " /dev/null")) | |
195 | (substitute* "Makefile" ;set the root of config files to OUT | |
196 | ((" /etc") (string-append " " out "/etc"))) | |
197 | (mkdir-p (string-append out "/bin")) ;for the `art' executable | |
198 | #t))) | |
199 | (add-after 'install 'wrap-art | |
200 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
201 | (let* ((out (assoc-ref outputs "out")) | |
202 | (bin (string-append out "/bin")) | |
203 | (scm (string-append out "/share/guile/site/2.2")) | |
204 | (go (string-append out "/lib/guile/2.2/site-ccache"))) | |
205 | (wrap-program (string-append bin "/art") | |
206 | `("GUILE_LOAD_PATH" ":" prefix | |
207 | (,scm ,(getenv "GUILE_LOAD_PATH"))) | |
208 | `("GUILE_LOAD_COMPILED_PATH" ":" prefix | |
209 | (,go ,(getenv "GUILE_LOAD_COMPILED_PATH")))) | |
210 | #t)))))) | |
211 | (synopsis "Web application framework written in Guile") | |
212 | (description "GNU Artanis is a web application framework written in Guile | |
0791437f RW |
213 | Scheme. A web application framework (WAF) is a software framework that is |
214 | designed to support the development of dynamic websites, web applications, web | |
215 | services and web resources. The framework aims to alleviate the overhead | |
216 | associated with common activities performed in web development. Artanis | |
217 | provides several tools for web development: database access, templating | |
218 | frameworks, session management, URL-remapping for RESTful, page caching, and | |
219 | more.") | |
1a37fd1e RW |
220 | (home-page "https://www.gnu.org/software/artanis/") |
221 | (license (list license:gpl3+ license:lgpl3+)))) ;dual license | |
0791437f RW |
222 | |
223 | ;; There has not been any release yet. | |
224 | (define-public guildhall | |
225 | (let ((commit "2fe2cc539f4b811bbcd69e58738db03eb5a2b778") | |
226 | (revision "1")) | |
227 | (package | |
228 | (name "guildhall") | |
229 | (version (string-append "0-" revision "." (string-take commit 9))) | |
230 | (source (origin | |
231 | (method git-fetch) | |
232 | (uri (git-reference | |
233 | (url "https://github.com/ijp/guildhall.git") | |
234 | (commit commit))) | |
235 | (file-name (string-append name "-" version "-checkout")) | |
236 | (sha256 | |
237 | (base32 | |
238 | "115bym7bg66h3gs399yb2vkzc2ygriaqsn4zbrg8f054mgy8wzn1")))) | |
239 | (build-system gnu-build-system) | |
240 | (arguments | |
241 | `(#:phases | |
242 | (modify-phases %standard-phases | |
243 | ;; Tests fail without this fix because they try to load the bash | |
244 | ;; executable as a Scheme file. See bug report at | |
245 | ;; https://github.com/ijp/guildhall/issues/22 | |
246 | (add-after 'unpack 'fix-bug-22 | |
247 | (lambda _ | |
248 | (substitute* "Makefile.am" | |
249 | (("TESTS_ENVIRONMENT=.*") | |
250 | "AM_TESTS_ENVIRONMENT=srcdir=$(abs_top_srcdir)/tests/ | |
251 | TEST_EXTENSIONS = .scm | |
252 | SCM_LOG_COMPILER= $(top_builddir)/env $(GUILE) | |
253 | AM_SCM_LOG_FLAGS = --no-auto-compile -s") | |
254 | ;; FIXME: one of the database tests fails for unknown | |
255 | ;; reasons. It does not fail when run outside of Guix. | |
256 | (("tests/database.scm") "")) | |
257 | #t))))) | |
258 | (inputs | |
259 | `(("guile" ,guile-2.0))) | |
260 | (native-inputs | |
261 | `(("zip" ,zip) ; for tests | |
262 | ("autoconf" ,autoconf) | |
263 | ("automake" ,automake) | |
264 | ("texinfo" ,texinfo))) | |
265 | (synopsis "Package manager for Guile") | |
266 | (description | |
267 | "Guildhall is a package manager written for Guile Scheme. A guild is | |
268 | an association of independent craftspeople. A guildhall is where they meet. | |
269 | This Guildhall aims to make a virtual space for Guile wizards and journeyfolk | |
270 | to share code. | |
271 | ||
272 | On a practical level, Guildhall lets you share Scheme modules and programs | |
273 | over the internet, and install code that has been shared by others. Guildhall | |
274 | can handle dependencies, so when a program requires several libraries, and | |
275 | each of those has further dependencies, all of the prerequisites for the | |
276 | program can be installed in one go.") | |
277 | (home-page "https://github.com/ijp/guildhall") | |
278 | (license license:gpl3+)))) | |
279 | ||
280 | (define-public guile-aspell | |
281 | (package | |
282 | (name "guile-aspell") | |
283 | (version "0.4") | |
284 | (source (origin | |
285 | (method url-fetch) | |
286 | (uri (string-append | |
287 | "http://lonelycactus.com/tarball/guile_aspell-" | |
288 | version ".tar.gz")) | |
289 | (sha256 | |
290 | (base32 | |
291 | "0vpk5xj9m9qc702z3khmkwhgpb949qbsyz8kw2qycda6qnxk0077")))) | |
292 | (build-system gnu-build-system) | |
293 | (arguments | |
294 | '(#:phases (modify-phases %standard-phases | |
295 | (add-before 'configure 'set-guilesitedir | |
296 | (lambda _ | |
297 | (substitute* "Makefile.in" | |
298 | (("^guilesitedir =.*$") | |
299 | "guilesitedir = \ | |
300 | $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n")) | |
301 | #t)) | |
302 | (add-before 'build 'set-libaspell-file-name | |
303 | (lambda* (#:key inputs #:allow-other-keys) | |
304 | (let ((aspell (assoc-ref inputs "aspell"))) | |
305 | (substitute* "aspell.scm" | |
306 | (("\"libaspell\\.so\"") | |
307 | (string-append "\"" aspell | |
308 | "/lib/libaspell\""))) | |
309 | #t)))))) | |
310 | (native-inputs `(("pkg-config" ,pkg-config))) | |
311 | (inputs `(("guile" ,guile-2.2) | |
312 | ("aspell" ,aspell))) | |
313 | (home-page "https://github.com/spk121/guile-aspell") | |
314 | (synopsis "Spell-checking from Guile") | |
315 | (description | |
316 | "guile-aspell is a Guile Scheme library for comparing a string against a | |
317 | dictionary and suggesting spelling corrections.") | |
318 | (license license:gpl3+))) | |
319 | ||
320 | (define-public guile-bash | |
321 | ;; This project is currently retired. It was initially announced here: | |
322 | ;; <https://lists.gnu.org/archive/html/guile-user/2015-02/msg00003.html>. | |
323 | (let ((commit "1eabc563ca5692b3e08d84f1f0e6fd2283284469") | |
324 | (revision "0")) | |
325 | (package | |
326 | (name "guile-bash") | |
327 | (version (string-append "0.1.6-" revision "." (string-take commit 7))) | |
328 | (home-page | |
329 | "https://anonscm.debian.org/cgit/users/kaction-guest/retired/dev.guile-bash.git") | |
330 | (source (origin | |
331 | (method git-fetch) | |
332 | (uri (git-reference | |
333 | (commit commit) | |
334 | (url home-page))) | |
335 | (sha256 | |
336 | (base32 | |
337 | "097vny990wp2qpjij6a5a5gwc6fxzg5wk56inhy18iki5v6pif1p")) | |
338 | (file-name (string-append name "-" version "-checkout")))) | |
339 | (build-system gnu-build-system) | |
340 | (arguments | |
341 | '(#:configure-flags | |
342 | ;; Add -I to match 'bash.pc' of Bash 4.4. | |
343 | (list (string-append "CPPFLAGS=-I" | |
344 | (assoc-ref %build-inputs "bash:include") | |
345 | "/include/bash/include") | |
346 | ||
347 | ;; The '.a' file is useless. | |
348 | "--disable-static" | |
349 | ||
350 | ;; Install 'lib/bash' as Bash 4.4 expects. | |
351 | (string-append "--libdir=" (assoc-ref %outputs "out") | |
352 | "/lib/bash")))) | |
353 | (native-inputs `(("pkg-config" ,pkg-config) | |
354 | ("autoconf" ,autoconf-wrapper) | |
355 | ("automake" ,automake) | |
356 | ("libtool" ,libtool) | |
357 | ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'. | |
358 | ("gettext" ,gettext-minimal) | |
359 | ||
360 | ;; Bash with loadable module support, for the test | |
361 | ;; suite. | |
362 | ("bash-full" ,bash))) | |
363 | (inputs `(("guile" ,guile-2.0) | |
364 | ("bash:include" ,bash "include"))) | |
365 | (synopsis "Extend Bash using Guile") | |
366 | (description | |
367 | "Guile-Bash provides a shared library and set of Guile modules, | |
368 | allowing you to extend Bash in Scheme. Scheme interfaces allow you to access | |
369 | the following aspects of Bash: | |
370 | ||
371 | @itemize | |
372 | @item aliases; | |
373 | @item setting and getting Bash variables; | |
374 | @item creating dynamic variables; | |
375 | @item creating Bash functions with a Scheme implementation; | |
376 | @item reader macro for output capturing; | |
377 | @item reader macro for evaluating raw Bash commands. | |
378 | @end itemize | |
379 | ||
380 | To enable it, run: | |
381 | ||
382 | @example | |
383 | enable -f ~/.guix-profile/lib/bash/libguile-bash.so scm | |
384 | @end example | |
385 | ||
386 | and then run @command{scm example.scm}.") | |
387 | (license license:gpl3+)))) | |
388 | ||
389 | (define-public guile-8sync | |
390 | (package | |
391 | (name "guile-8sync") | |
392 | (version "0.4.2") | |
393 | (source (origin | |
394 | (method url-fetch) | |
395 | (uri (string-append "mirror://gnu/8sync/8sync-" version | |
396 | ".tar.gz")) | |
397 | (sha256 | |
398 | (base32 | |
399 | "031wm13srak3wsnll7j2mbbi29g1pcm4swdb71ds9yn567pn20qw")))) | |
400 | (build-system gnu-build-system) | |
401 | (native-inputs `(("autoconf" ,autoconf) | |
402 | ("automake" ,automake) | |
403 | ("guile" ,guile-2.2) | |
404 | ("pkg-config" ,pkg-config) | |
405 | ("texinfo" ,texinfo))) | |
406 | (arguments | |
407 | `(#:phases (modify-phases %standard-phases | |
408 | (add-before 'configure 'setenv | |
409 | (lambda _ | |
410 | ;; quiet warnings | |
411 | (setenv "GUILE_AUTO_COMPILE" "0") | |
412 | #t))))) | |
413 | (home-page "https://gnu.org/s/8sync/") | |
414 | (synopsis "Asynchronous actor model library for Guile") | |
415 | (description | |
416 | "GNU 8sync (pronounced \"eight-sync\") is an asynchronous programming | |
417 | library for GNU Guile based on the actor model. | |
418 | ||
419 | Note that 8sync is only available for Guile 2.2.") | |
eee4173c | 420 | (properties '((upstream-name . "8sync"))) |
0791437f RW |
421 | (license license:lgpl3+))) |
422 | ||
423 | (define-public guile-daemon | |
424 | (package | |
425 | (name "guile-daemon") | |
f975f82d | 426 | (version "0.1.3") |
0791437f RW |
427 | (source (origin |
428 | (method url-fetch) | |
429 | (uri (string-append "https://github.com/alezost/" name | |
430 | "/releases/download/v" version | |
431 | "/" name "-" version ".tar.gz")) | |
432 | (sha256 | |
433 | (base32 | |
f975f82d | 434 | "08gaqrgjlly9k5si72vvpbr4xhq5v52l5ma5y6a7spid5dd057cy")))) |
0791437f RW |
435 | (build-system gnu-build-system) |
436 | (native-inputs | |
437 | `(("pkg-config" ,pkg-config))) | |
438 | (inputs | |
439 | `(("guile" ,guile-2.2))) | |
440 | (home-page "https://github.com/alezost/guile-daemon") | |
441 | (synopsis "Evaluate code in a running Guile process") | |
442 | (description | |
443 | "Guile-Daemon is a small Guile program that loads your initial | |
444 | configuration file, and then reads and evaluates Guile expressions that | |
445 | you send to a FIFO file.") | |
446 | (license license:gpl3+))) | |
447 | ||
448 | (define-public guile-dsv | |
449 | (package | |
450 | (name "guile-dsv") | |
451 | (version "0.2.1") | |
452 | (source (origin | |
453 | (method git-fetch) | |
454 | (uri (git-reference | |
455 | (url "https://github.com/artyom-poptsov/guile-dsv") | |
456 | (commit "bdc5267d007478abc20ea96d7c459b7dd9560b3d"))) | |
457 | (file-name (string-append name "-" version "-checkout")) | |
458 | (sha256 | |
459 | (base32 | |
460 | "1irw6mz8998nwyhzrw9g94jcz60b9zljgqfmipaz1ybn8579qjx0")))) | |
461 | (build-system gnu-build-system) | |
462 | (native-inputs | |
463 | `(("autoconf" ,autoconf) | |
464 | ("automake" ,automake) | |
465 | ("pkg-config" ,pkg-config) | |
466 | ("texinfo" ,texinfo))) | |
467 | (inputs `(("guile" ,guile-2.2))) | |
468 | (propagated-inputs `(("guile-lib" ,guile-lib))) | |
469 | (arguments | |
470 | '(#:phases (modify-phases %standard-phases | |
471 | (add-before 'configure 'set-guilesitedir | |
472 | (lambda _ | |
473 | (substitute* "Makefile.in" | |
474 | (("^guilesitedir =.*$") | |
475 | "guilesitedir = \ | |
476 | $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n")) | |
477 | (substitute* "modules/Makefile.in" | |
478 | (("^guilesitedir =.*$") | |
479 | "guilesitedir = \ | |
480 | $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n")) | |
481 | (substitute* "modules/dsv/Makefile.in" | |
482 | (("^guilesitedir =.*$") | |
483 | "guilesitedir = \ | |
484 | $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n")) | |
485 | #t))))) | |
486 | (home-page "https://github.com/artyom-poptsov/guile-dsv") | |
487 | (synopsis "DSV module for Guile") | |
488 | (description | |
489 | "Guile-DSV is a GNU Guile module for working with the | |
490 | delimiter-separated values (DSV) data format. Guile-DSV supports the | |
491 | Unix-style DSV format and RFC 4180 format.") | |
492 | (license license:gpl3+))) | |
493 | ||
494 | (define-public guile-fibers | |
495 | (package | |
496 | (name "guile-fibers") | |
497 | (version "1.0.0") | |
498 | (source (origin | |
499 | (method url-fetch) | |
500 | (uri (string-append "https://wingolog.org/pub/fibers/fibers-" | |
501 | version ".tar.gz")) | |
502 | (sha256 | |
503 | (base32 | |
9e016129 LC |
504 | "0vjkg72ghgdgphzbjz9ig8al8271rq8974viknb2r1rg4lz92ld0")) |
505 | (modules '((guix build utils))) | |
506 | (snippet | |
507 | '(begin | |
508 | ;; Allow builds with Guile 3.0. | |
509 | (substitute* "configure" | |
510 | (("search=\"2\\.2\"") | |
511 | "search=\"3.0 2.2\"")) | |
512 | ||
513 | ;; Explicitly include system headers rather than relying on | |
514 | ;; <libguile.h> to do it for us. | |
515 | (substitute* "epoll.c" | |
516 | (("#include.*libguile\\.h.*$" all) | |
517 | (string-append "#include <unistd.h>\n" | |
518 | "#include <string.h>\n" | |
519 | all "\n"))) | |
520 | ||
521 | ;; Import (ice-9 threads) for 'current-processor-count'. | |
522 | (substitute* "tests/channels.scm" | |
523 | (("#:use-module \\(fibers\\)") | |
524 | (string-append "#:use-module (fibers)\n" | |
525 | "#:use-module (ice-9 threads)\n"))) | |
526 | #t)))) | |
0791437f RW |
527 | (build-system gnu-build-system) |
528 | (arguments | |
b6bee63b LC |
529 | '(;; The code uses 'scm_t_uint64' et al., which are deprecated in 3.0. |
530 | #:configure-flags '("CFLAGS=-Wno-error=deprecated-declarations") | |
531 | #:phases (modify-phases %standard-phases | |
0791437f RW |
532 | (add-after 'install 'mode-guile-objects |
533 | (lambda* (#:key outputs #:allow-other-keys) | |
534 | ;; .go files are installed to "lib/guile/X.Y/cache". | |
535 | ;; This phase moves them to "…/site-ccache". | |
536 | (let* ((out (assoc-ref outputs "out")) | |
537 | (lib (string-append out "/lib/guile")) | |
538 | (old (car (find-files lib "^ccache$" | |
539 | #:directories? #t))) | |
540 | (new (string-append (dirname old) | |
541 | "/site-ccache"))) | |
542 | (rename-file old new) | |
543 | #t)))))) | |
544 | (native-inputs | |
545 | `(("texinfo" ,texinfo) | |
546 | ("pkg-config" ,pkg-config))) | |
547 | (inputs | |
b6bee63b | 548 | `(("guile" ,guile-3.0))) |
0791437f RW |
549 | (synopsis "Lightweight concurrency facility for Guile") |
550 | (description | |
551 | "Fibers is a Guile library that implements a a lightweight concurrency | |
552 | facility, inspired by systems like Concurrent ML, Go, and Erlang. A fiber is | |
553 | like a \"goroutine\" from the Go language: a lightweight thread-like | |
554 | abstraction. Systems built with Fibers can scale up to millions of concurrent | |
555 | fibers, tens of thousands of concurrent socket connections, and many parallel | |
556 | cores. The Fibers library also provides Concurrent ML-like channels for | |
557 | communication between fibers. | |
558 | ||
559 | Note that Fibers makes use of some Guile 2.1/2.2-specific features and | |
560 | is not available for Guile 2.0.") | |
561 | (home-page "https://github.com/wingo/fibers") | |
562 | (license license:lgpl3+))) | |
563 | ||
b6bee63b | 564 | (define-public guile2.0-fibers |
9e016129 LC |
565 | (package |
566 | (inherit guile-fibers) | |
b6bee63b LC |
567 | (name "guile2.2-fibers") |
568 | (inputs `(("guile" ,guile-2.2))))) | |
569 | ||
570 | (define-public guile3.0-fibers | |
571 | (deprecated-package "guile3.0-fibers" guile-fibers)) | |
9e016129 | 572 | |
0791437f RW |
573 | (define-public guile-syntax-highlight |
574 | (package | |
575 | (name "guile-syntax-highlight") | |
576 | (version "0.1") | |
577 | (source (origin | |
578 | (method url-fetch) | |
579 | (uri (string-append "https://files.dthompson.us/" | |
580 | "guile-syntax-highlight/" | |
581 | "guile-syntax-highlight-" | |
582 | version ".tar.gz")) | |
583 | (sha256 | |
584 | (base32 | |
fb8a77f4 LC |
585 | "1p771kq15x83483m23bhah1sz6vkalg3drm7x279f4j1cxligkzi")) |
586 | (modules '((guix build utils))) | |
587 | (snippet | |
588 | '(begin | |
589 | ;; Allow builds with Guile 3.0. | |
590 | (substitute* "configure" | |
591 | (("2\\.2 2\\.0") | |
592 | "3.0 2.2 2.0")) | |
593 | #t)))) | |
0791437f RW |
594 | (build-system gnu-build-system) |
595 | (native-inputs | |
596 | `(("pkg-config" ,pkg-config))) | |
597 | (inputs | |
b6bee63b | 598 | `(("guile" ,guile-3.0))) |
0791437f RW |
599 | (synopsis "General-purpose syntax highlighter for GNU Guile") |
600 | (description "Guile-syntax-highlight is a general-purpose syntax | |
601 | highlighting library for GNU Guile. It can parse code written in various | |
602 | programming languages into a simple s-expression that can be converted to | |
603 | HTML (via SXML) or any other format for rendering.") | |
02e052ba | 604 | (home-page "https://dthompson.us/projects/guile-syntax-highlight.html") |
0791437f RW |
605 | (license license:lgpl3+))) |
606 | ||
b6bee63b | 607 | (define-public guile2.2-syntax-highlight |
fb8a77f4 LC |
608 | (package |
609 | (inherit guile-syntax-highlight) | |
b6bee63b LC |
610 | (name "guile2.2-syntax-highlight") |
611 | (inputs `(("guile" ,guile-2.2))))) | |
612 | ||
613 | (define-public guile3.0-syntax-highlight | |
614 | (deprecated-package "guile3.0-syntax-highlight" guile-syntax-highlight)) | |
fb8a77f4 | 615 | |
0791437f RW |
616 | (define-public guile-sjson |
617 | (package | |
618 | (name "guile-sjson") | |
619 | (version "0.2.1") | |
620 | (source (origin | |
621 | (method url-fetch) | |
622 | (uri (string-append "https://dustycloud.org/misc/sjson-" version | |
623 | ".tar.gz")) | |
624 | (sha256 | |
625 | (base32 | |
626 | "1mzmapln79vv10qxaggz9qwcdbag3jnrj19xx8bgkmxss8h03sv3")))) | |
627 | (build-system gnu-build-system) | |
628 | (native-inputs | |
629 | `(("autoconf" ,autoconf) | |
630 | ("automake" ,automake) | |
631 | ("pkg-config" ,pkg-config))) | |
632 | (inputs | |
633 | `(("guile" ,guile-2.2))) | |
634 | (home-page "https://gitlab.com/dustyweb/guile-sjson") | |
635 | (synopsis "S-expression based json reader/writer for Guile") | |
636 | (description "guile-sjson is a json reader/writer for Guile. | |
637 | It has a nice, simple s-expression based syntax.") | |
638 | (license license:lgpl3+))) | |
639 | ||
61dafdc0 CB |
640 | (define-public guile-squee |
641 | (let ((commit "a85902a92bf6f58a1d35fd974a01ade163deda8d") | |
642 | (revision "0")) | |
643 | (package | |
644 | (name "guile-squee") | |
645 | (version (string-append "0-" revision "." (string-take commit 7))) | |
646 | (source (origin | |
647 | (method git-fetch) | |
648 | (uri (git-reference | |
649 | (url "https://notabug.org/cwebber/guile-squee.git") | |
650 | (commit commit))) | |
651 | (file-name (git-file-name name version)) | |
652 | (sha256 | |
653 | (base32 | |
654 | "0p1lpsp4kx57j3ai1dkxilm4ziavzzx8wbbc42m3hpziq0a7qz5z")))) | |
655 | (build-system guile-build-system) | |
656 | (arguments | |
657 | '(#:phases | |
658 | (modify-phases %standard-phases | |
659 | (add-after 'unpack 'patch | |
660 | (lambda* (#:key inputs #:allow-other-keys) | |
661 | (substitute* "squee.scm" | |
662 | (("dynamic-link \"libpq\"") | |
663 | (string-append | |
664 | "dynamic-link \"" | |
665 | (assoc-ref inputs "postgresql") "/lib/libpq.so" | |
666 | "\""))) | |
667 | #t))))) | |
668 | (inputs | |
669 | `(("postgresql" ,postgresql))) | |
670 | (native-inputs | |
671 | `(("guile" ,guile-2.2))) | |
672 | (home-page "https://notabug.org/cwebber/guile-squee") | |
673 | (synopsis "Connect to PostgreSQL using Guile") | |
674 | (description | |
675 | "@code{squee} is a Guile library for connecting to PostgreSQL databases | |
676 | using Guile's foreign function interface.") | |
6fd72f70 | 677 | (license license:lgpl3+)))) |
61dafdc0 | 678 | |
945a73d8 CB |
679 | (define-public guile3.0-squee |
680 | (package | |
681 | (inherit guile-squee) | |
682 | (name "guile3.0-squee") | |
cfe35814 CB |
683 | (native-inputs `(("guile" ,guile-next) |
684 | ,@(alist-delete "guile" | |
685 | (package-native-inputs guile-squee)))))) | |
945a73d8 | 686 | |
0791437f RW |
687 | (define-public guile-colorized |
688 | (package | |
689 | (name "guile-colorized") | |
690 | (version "0.1") | |
1340ce28 TGR |
691 | (source |
692 | (origin | |
693 | (method git-fetch) | |
694 | (uri (git-reference | |
55f4282e | 695 | (url "https://gitlab.com/NalaGinrut/guile-colorized.git") |
1340ce28 TGR |
696 | (commit (string-append "v" version)))) |
697 | (file-name (git-file-name name version)) | |
698 | (sha256 | |
699 | (base32 "10mv8c63159r3qvwwdvsgnsvdg7nc2ghak85zapwqpv4ywrqp9zc")))) | |
0791437f RW |
700 | (build-system guile-build-system) |
701 | (native-inputs | |
b6bee63b | 702 | `(("guile" ,guile-3.0))) |
55f4282e | 703 | (home-page "https://gitlab.com/NalaGinrut/guile-colorized") |
0791437f RW |
704 | (synopsis "Colorized REPL for Guile") |
705 | (description | |
706 | "Guile-colorized provides you with a colorized REPL for GNU Guile.") | |
707 | (license license:gpl3+))) | |
708 | ||
b6bee63b | 709 | (define-public guile2.2-colorized |
fc870a0d LC |
710 | (package |
711 | (inherit guile-colorized) | |
b6bee63b LC |
712 | (name "guile2.2-colorized") |
713 | (native-inputs `(("guile" ,guile-2.2))))) | |
714 | ||
715 | (define-public guile3.0-colorized | |
716 | (deprecated-package "guile3.0-colorized" guile-colorized)) | |
fc870a0d | 717 | |
0791437f RW |
718 | (define-public guile-pfds |
719 | (package | |
720 | (name "guile-pfds") | |
721 | (version "0.3") | |
722 | (home-page "https://github.com/ijp/pfds") | |
723 | (source (origin | |
724 | (method git-fetch) | |
725 | (uri (git-reference | |
726 | (url home-page) | |
727 | (commit (string-append "v" version)))) | |
728 | (sha256 | |
729 | (base32 | |
730 | "19y33wg94pf0n98dkfqd1zbw93fgky4sawxsxl6s3vyqwl0yi5vh")) | |
731 | (file-name (string-append name "-" version "-checkout")))) | |
732 | (build-system guile-build-system) | |
733 | (arguments | |
734 | '(#:source-directory "src" | |
735 | #:phases (modify-phases %standard-phases | |
b6bee63b LC |
736 | (add-after 'unpack 'work-around-guile-bug |
737 | (lambda _ | |
738 | ;; See bug #39210. | |
739 | (substitute* '("fingertrees.sls" | |
740 | "queues/private/condition.sls" | |
741 | "deques/private/condition.sls") | |
742 | (("&assertion") "&violation")) | |
743 | #t)) | |
0791437f RW |
744 | (add-after 'unpack 'move-files-around |
745 | (lambda _ | |
746 | ;; Move files under a pfds/ directory to reflect the | |
747 | ;; module hierarchy. | |
748 | (mkdir-p "src/pfds") | |
749 | (for-each (lambda (file) | |
750 | (rename-file file | |
751 | (string-append "src/pfds/" | |
752 | file))) | |
753 | '("bbtrees.sls" | |
754 | "deques" | |
755 | "deques.sls" | |
756 | "dlists.sls" | |
757 | "fingertrees.sls" | |
758 | "hamts.sls" | |
759 | "heaps.sls" | |
760 | "private" | |
761 | "psqs.sls" | |
762 | "queues" | |
763 | "queues.sls" | |
764 | "sequences.sls" | |
765 | "sets.sls")) | |
766 | ||
767 | ;; In Guile <= 2.2.4, there's no way to tell 'guild | |
768 | ;; compile' to accept the ".sls" extension. So... | |
769 | (for-each (lambda (file) | |
770 | (rename-file file | |
771 | (string-append | |
772 | (string-drop-right file 4) | |
773 | ".scm"))) | |
774 | (find-files "." "\\.sls$")) | |
775 | #t))))) | |
776 | (native-inputs | |
b6bee63b | 777 | `(("guile" ,guile-3.0))) |
0791437f RW |
778 | (synopsis "Purely functional data structures for Guile") |
779 | (description | |
780 | "This package provides purely functional data structures written in R6RS | |
781 | Scheme and compiled for Guile. It has been tested with Racket, Guile 2, | |
782 | Vicare Scheme and IronScheme. Right now it contains: | |
783 | ||
784 | @itemize | |
785 | @item queues | |
786 | @item deques | |
787 | @item bbtrees | |
788 | @item sets | |
789 | @item dlists | |
790 | @item priority search queues (PSQs) | |
791 | @item finger trees | |
792 | @item sequences | |
793 | @item heaps | |
794 | @item hash array mapped tries (HAMTs). | |
795 | @end itemize\n") | |
796 | (license license:bsd-3))) | |
797 | ||
b6bee63b | 798 | (define-public guile2.2-pfds |
77c95ee6 RW |
799 | (package |
800 | (inherit guile-pfds) | |
b6bee63b LC |
801 | (name "guile2.2-pfds") |
802 | (native-inputs `(("guile" ,guile-2.2))) | |
77c95ee6 | 803 | (arguments |
0dd1e277 RW |
804 | (substitute-keyword-arguments (package-arguments guile-pfds) |
805 | ((#:phases phases) | |
806 | `(modify-phases ,phases | |
b6bee63b LC |
807 | (delete 'work-around-guile-bug))))))) |
808 | ||
809 | (define-public guile3.0-pfds | |
810 | (deprecated-package "guile3.0-pfds" guile-pfds)) | |
77c95ee6 | 811 | |
0791437f RW |
812 | (define-public guile-aa-tree |
813 | (package | |
814 | (name "guile-aa-tree") | |
815 | (version "3.1.1") | |
816 | (source (origin | |
817 | (method url-fetch) | |
818 | (uri (string-append "mirror://savannah/guile-aa-tree/guile-aa-tree-" | |
819 | version ".tar.gz")) | |
820 | (sha256 | |
821 | (base32 | |
822 | "0044c105r3q9vpl17pv3phl1b79kjm1llhkakqgiasixyav01blh")))) | |
823 | (build-system guile-build-system) | |
824 | (native-inputs `(("guile" ,guile-2.2))) | |
825 | ;; https://savannah.nongnu.org/projects/guile-aa-tree | |
826 | (home-page "https://qlfiles.net/guile-aa-tree/") | |
827 | (synopsis "AA tree data structure for Guile") | |
828 | (description | |
829 | "This package provides an implementation of @dfn{AA trees}, a | |
830 | self-balancing binary tree data structure, for Guile. It ensure @math{O(log | |
831 | n)} worst case performance for core operations. The module provides | |
832 | non-mutating insert, delete, and search operations, with support for | |
833 | convenient nested tree operations.") | |
834 | (license license:gpl3+))) | |
835 | ||
836 | (define-public guile-simple-zmq | |
837 | (let ((commit "68bedb6679716214fb9d3472da57544526f7a618") | |
838 | (revision "3")) | |
839 | (package | |
840 | (name "guile-simple-zmq") | |
841 | (version (git-version "0.0.0" revision commit)) | |
842 | (source | |
843 | (origin | |
844 | (method git-fetch) | |
845 | (uri (git-reference | |
846 | (url "https://github.com/jerry40/guile-simple-zmq") | |
847 | (commit commit))) | |
848 | (sha256 | |
849 | (base32 | |
850 | "1ad3xg69qqviy1f6dnlw0ysmfdbmp1jq65rfqb8nfd8dsrq2syli")) | |
851 | (file-name (git-file-name name version)))) | |
852 | (build-system guile-build-system) | |
853 | (arguments | |
854 | `(#:source-directory "src" | |
855 | #:phases (modify-phases %standard-phases | |
856 | (add-after 'unpack 'set-libzmq-file-name | |
857 | (lambda* (#:key inputs #:allow-other-keys) | |
858 | (substitute* "src/simple-zmq.scm" | |
859 | (("\\(dynamic-link \"libzmq\"\\)") | |
860 | (format #f "(dynamic-link \"~a/lib/libzmq.so\")" | |
861 | (assoc-ref inputs "zeromq")))) | |
862 | #t))))) | |
863 | (native-inputs | |
b6bee63b | 864 | `(("guile" ,guile-3.0))) |
0791437f RW |
865 | (inputs |
866 | `(("zeromq" ,zeromq))) | |
867 | (home-page "https://github.com/jerry40/guile-simple-zmq") | |
868 | (synopsis "Guile wrapper over ZeroMQ library") | |
869 | (description | |
870 | "This package provides a Guile programming interface to the ZeroMQ | |
871 | messaging library.") | |
872 | (license license:gpl3+)))) | |
873 | ||
b6bee63b | 874 | (define-public guile2.2-simple-zmq |
015bb1c8 LC |
875 | (package |
876 | (inherit guile-simple-zmq) | |
b6bee63b LC |
877 | (name "guile2.2-simple-zmq") |
878 | (native-inputs `(("guile" ,guile-2.2))))) | |
879 | ||
880 | (define-public guile3.0-simple-zmq | |
881 | (deprecated-package "guile3.0-simple-zmq" guile-simple-zmq)) | |
015bb1c8 | 882 | |
0791437f RW |
883 | (define-public jupyter-guile-kernel |
884 | (let ((commit "a7db9245a886e104138474df46c3e88b95cff629") | |
885 | (revision "1")) | |
886 | (package | |
887 | (name "jupyter-guile-kernel") | |
888 | (version (git-version "0.0.0" revision commit)) | |
889 | (source | |
890 | (origin | |
891 | (method git-fetch) | |
892 | (uri (git-reference | |
893 | (url "https://github.com/jerry40/guile-kernel") | |
894 | (commit commit))) | |
f1d4d79f | 895 | (file-name (git-file-name name version)) |
0791437f RW |
896 | (sha256 |
897 | (base32 | |
898 | "0aj04853bqm47ivfcmrgpb7w3wkis847kc7qrwsa5zcn9h38qh2f")))) | |
899 | (build-system guile-build-system) | |
900 | (arguments | |
901 | '(#:phases (modify-phases %standard-phases | |
902 | (add-after 'unpack 'set-openssl-file-name | |
903 | (lambda* (#:key inputs #:allow-other-keys) | |
904 | ;; Record the absolute file name of the 'openssl' | |
905 | ;; command. | |
906 | (substitute* "src/hmac.scm" | |
907 | (("openssl") | |
908 | (string-append (assoc-ref inputs "openssl") | |
909 | "/bin/openssl"))) | |
910 | #t)) | |
911 | ||
912 | ;; XXX: The code uses 'include' to include its own source | |
913 | ;; files, and "-L src" isn't enough in this case. | |
914 | (add-before 'build 'chdir | |
915 | (lambda _ (chdir "src") #t)) | |
916 | (add-after 'build 'chdir-back | |
917 | (lambda _ (chdir "..") #t)) | |
918 | ||
919 | (add-after 'install 'install-kernel | |
920 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
921 | (let* ((out (assoc-ref outputs "out")) | |
922 | (json (assoc-ref inputs "guile-json")) | |
923 | (zmq (assoc-ref inputs "guile-simple-zmq")) | |
924 | (deps (list json zmq)) | |
925 | (dir (string-append | |
926 | out "/share/jupyter/kernels/guile")) | |
927 | (effective (target-guile-effective-version))) | |
928 | ;; Install kernel. | |
929 | (install-file "src/kernel.json" dir) | |
930 | ||
931 | ;; Fix hard-coded file name in the kernel. | |
932 | (substitute* (string-append dir "/kernel.json") | |
933 | (("/home/.*/guile-jupyter-kernel.scm") | |
934 | (string-append out "/share/guile/site/" | |
935 | (target-guile-effective-version) | |
936 | "/guile-jupyter-kernel.scm")) | |
937 | (("\"guile\"") | |
938 | (string-append "\"" (assoc-ref inputs "guile") | |
939 | "/bin/guile\"")) | |
940 | (("-s") | |
941 | ;; Add '-L' and '-C' flags so that the kernel | |
942 | ;; finds its dependencies. | |
943 | (let ((-L (map (lambda (item) | |
944 | (string-append "\"" item | |
945 | "/share/guile/site/" | |
946 | effective "\"")) | |
947 | deps)) | |
948 | (-C (map (lambda (item) | |
949 | (string-append "\"" item | |
950 | "/lib/guile/" | |
951 | effective | |
952 | "/site-ccache\"")) | |
953 | deps))) | |
954 | (string-append "--no-auto-compile\"" | |
955 | (string-join -L ", \"-L\", " | |
956 | 'prefix) | |
957 | (string-join -C ", \"-C\", " | |
958 | 'prefix) | |
959 | ", \"-s")))) | |
960 | #t)))))) | |
961 | (inputs | |
962 | `(("openssl" ,openssl) | |
963 | ("guile" ,guile-2.2) | |
91f55717 | 964 | ("guile-json" ,guile-json-1) |
0791437f RW |
965 | ("guile-simple-zmq" ,guile-simple-zmq))) |
966 | (synopsis "Guile kernel for the Jupyter Notebook") | |
967 | (description | |
968 | "This package provides a Guile 2.x kernel for the Jupyter Notebook. It | |
969 | allows users to interact with the Guile REPL through Jupyter.") | |
970 | (home-page "https://github.com/jerry40/guile-kernel") | |
971 | (license license:gpl3+)))) | |
972 | ||
973 | (define-public guile-sparql | |
974 | (package | |
975 | (name "guile-sparql") | |
976 | (version "0.0.7") | |
977 | (source (origin | |
978 | (method url-fetch) | |
979 | (uri (string-append | |
980 | "https://github.com/roelj/guile-sparql/releases/download/" | |
981 | version "/guile-sparql-" version ".tar.gz")) | |
982 | (sha256 | |
983 | (base32 "1drnvhsgl0gc5crmb16yyw1j98nkhwwcgssv9vgm36ng43nnzffd")))) | |
984 | (build-system gnu-build-system) | |
985 | (arguments `(#:tests? #f)) ; There are no tests. | |
986 | (native-inputs | |
987 | `(("pkg-config" ,pkg-config))) | |
988 | (inputs | |
989 | `(("guile" ,guile-2.2))) | |
990 | (home-page "https://github.com/roelj/guile-sparql") | |
991 | (synopsis "SPARQL module for Guile") | |
992 | (description "This package provides the functionality to query a SPARQL | |
993 | endpoint. Additionally, it provides an interface to write SPARQL queries | |
994 | using S-expressions.") | |
995 | (license license:gpl3+))) | |
996 | ||
997 | (define-public guile-debbugs | |
998 | (package | |
999 | (name "guile-debbugs") | |
5144f542 | 1000 | (version "0.0.3") |
0791437f RW |
1001 | (source (origin |
1002 | (method url-fetch) | |
1003 | (uri (string-append "mirror://gnu/guile-debbugs/guile-debbugs-" | |
1004 | version ".tar.gz")) | |
1005 | (sha256 | |
1006 | (base32 | |
5144f542 | 1007 | "1cc63nw3xdfjrfk8c58r6d5lidmfq5cpqcy32yd5xp81yccprvn9")))) |
0791437f | 1008 | (build-system gnu-build-system) |
5144f542 RW |
1009 | (propagated-inputs |
1010 | `(("guile-email" ,guile-email))) | |
0791437f RW |
1011 | (native-inputs |
1012 | `(("guile" ,guile-2.2) | |
1013 | ("pkg-config" ,pkg-config))) | |
1014 | (home-page "https://savannah.gnu.org/projects/guile-debbugs/") | |
1015 | (synopsis "Guile interface to the Debbugs bug tracking service") | |
1016 | (description | |
1017 | "This package provides a Guile library to communicate with a Debbugs bug | |
1018 | tracker's SOAP service, such as @url{https://bugs.gnu.org}.") | |
1019 | (license license:gpl3+))) | |
1020 | ||
1021 | (define-public guile-email | |
50771f5b AI |
1022 | (package |
1023 | (name "guile-email") | |
223cb7c6 | 1024 | (version "0.2.2") |
50771f5b AI |
1025 | (source |
1026 | (origin | |
1027 | (method url-fetch) | |
1028 | (uri (string-append | |
db18d87a AI |
1029 | "https://guile-email.systemreboot.net/releases/guile-email-" |
1030 | version ".tar.lz")) | |
50771f5b AI |
1031 | (sha256 |
1032 | (base32 | |
223cb7c6 | 1033 | "1rc8r0fgvflnyq5ckl7ii8sghpsgpkzxa8vskjr1ak2kyar6m35k")))) |
50771f5b AI |
1034 | (build-system gnu-build-system) |
1035 | (native-inputs | |
1036 | `(("pkg-config" ,pkg-config) | |
db18d87a | 1037 | ("lzip" ,lzip))) |
50771f5b AI |
1038 | (inputs |
1039 | `(("guile" ,guile-2.2))) | |
db18d87a | 1040 | (arguments |
2c33a849 | 1041 | '(#:make-flags '("GUILE_AUTO_COMPILE=0"))) ; to prevent guild warnings |
db18d87a | 1042 | (home-page "https://guile-email.systemreboot.net") |
50771f5b | 1043 | (synopsis "Guile email parser") |
db18d87a AI |
1044 | (description "guile-email is a collection of email utilities implemented |
1045 | in pure guile. It supports parsing MIME (Multipurpose Internet Mail | |
1046 | Extensions) compliant email messages and reading emails from the mbox | |
1047 | format.") | |
50771f5b | 1048 | (license license:agpl3+))) |
0791437f | 1049 | |
63a847cb CB |
1050 | (define-public guile3.0-email |
1051 | (package | |
1052 | (inherit guile-email) | |
1053 | (name "guile3.0-email") | |
1054 | (inputs `(("guile" ,guile-next) | |
1055 | ,@(alist-delete "guile" (package-inputs guile-email)))))) | |
1056 | ||
0791437f | 1057 | (define-public guile-newt |
442a11f6 MO |
1058 | (package |
1059 | (name "guile-newt") | |
f52c1f5f | 1060 | (version "0.0.2") |
442a11f6 MO |
1061 | (source (origin |
1062 | (method git-fetch) | |
1063 | (uri (git-reference | |
1064 | (url "https://gitlab.com/mothacehe/guile-newt") | |
1065 | (commit version))) | |
1066 | (file-name (git-file-name name version)) | |
1067 | (sha256 | |
1068 | (base32 | |
f52c1f5f | 1069 | "1gksd1lzgjjh1p9vczghg8jw995d22hm34kbsiv8rcryirv2xy09")))) |
442a11f6 MO |
1070 | (build-system gnu-build-system) |
1071 | (arguments | |
1072 | '(#:make-flags | |
1073 | '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings | |
1074 | (inputs | |
b6bee63b | 1075 | `(("guile" ,guile-3.0) |
442a11f6 MO |
1076 | ("newt" ,newt))) |
1077 | (native-inputs | |
1078 | `(("autoconf" ,autoconf) | |
1079 | ("automake" ,automake) | |
1080 | ("pkg-config" ,pkg-config))) | |
1081 | (synopsis "Guile bindings to Newt") | |
1082 | (description | |
1083 | "This package provides bindings for Newt, a programming library for | |
0791437f RW |
1084 | color text mode, widget based user interfaces. The bindings are written in pure |
1085 | Scheme by using Guile’s foreign function interface.") | |
442a11f6 MO |
1086 | (home-page "https://gitlab.com/mothacehe/guile-newt") |
1087 | (license license:gpl3+))) | |
0791437f | 1088 | |
b6bee63b | 1089 | (define-public guile2.2-newt |
e7fc7746 LC |
1090 | (package |
1091 | (inherit guile-newt) | |
b6bee63b | 1092 | (name "guile2.2-newt") |
e7fc7746 LC |
1093 | (inputs `(("guile" ,guile-next) |
1094 | ,@(alist-delete "guile" (package-inputs guile-newt)))))) | |
1095 | ||
b6bee63b LC |
1096 | (define-public guile3.0-newt |
1097 | (deprecated-package "guile3.0-newt" guile-newt)) | |
1098 | ||
0791437f RW |
1099 | (define-public guile-mastodon |
1100 | (package | |
1101 | (name "guile-mastodon") | |
1102 | (version "0.0.1") | |
1103 | (source (origin | |
1104 | (method git-fetch) | |
1105 | (uri (git-reference | |
1106 | (url "https://framagit.org/prouby/guile-mastodon.git") | |
1107 | (commit (string-append "v" version)))) | |
1108 | (file-name (git-file-name name version)) | |
1109 | (sha256 | |
1110 | (base32 | |
1111 | "1vblf3d1bbwna3l09p2ap5y8ycvl549bz6whgk78imyfmn28ygry")))) | |
1112 | (build-system gnu-build-system) | |
1113 | (native-inputs | |
1114 | `(("autoconf" ,autoconf) | |
1115 | ("automake" ,automake) | |
1116 | ("pkg-config" ,pkg-config))) | |
1117 | (inputs | |
1118 | `(("guile" ,guile-2.2) | |
1119 | ("gnutls" ,gnutls) | |
91f55717 | 1120 | ("guile-json" ,guile-json-1))) |
0791437f RW |
1121 | (home-page "https://framagit.org/prouby/guile-mastodon") |
1122 | (synopsis "Guile Mastodon REST API module") | |
1123 | (description "This package provides Guile modules to access the | |
1124 | @uref{https://docs.joinmastodon.org/api/, REST API of Mastodon}, a federated | |
1125 | microblogging service.") | |
1126 | (license license:gpl3+))) | |
1127 | ||
0791437f | 1128 | (define-public guile-parted |
dbcd503c MO |
1129 | (package |
1130 | (name "guile-parted") | |
575032c8 | 1131 | (version "0.0.4") |
dbcd503c MO |
1132 | (source (origin |
1133 | (method git-fetch) | |
1134 | (uri (git-reference | |
1135 | (url "https://gitlab.com/mothacehe/guile-parted") | |
1136 | (commit version))) | |
1137 | (file-name (git-file-name name version)) | |
1138 | (sha256 | |
1139 | (base32 | |
575032c8 | 1140 | "0b7h8psfm9gmmwb65pp5zwzglvwnfmw5j40g09hhf3f7kwxc0mv2")) |
f6145358 | 1141 | (modules '((guix build utils))))) |
dbcd503c MO |
1142 | (build-system gnu-build-system) |
1143 | (arguments | |
1144 | '(#:make-flags | |
1145 | '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings | |
1146 | (inputs | |
b6bee63b | 1147 | `(("guile" ,guile-3.0) |
dbcd503c MO |
1148 | ("parted" ,parted))) |
1149 | (propagated-inputs | |
1150 | `(("guile-bytestructures" ,guile-bytestructures))) | |
1151 | (native-inputs | |
1152 | `(("autoconf" ,autoconf) | |
1153 | ("automake" ,automake) | |
1154 | ("pkg-config" ,pkg-config))) | |
1155 | (synopsis "Guile bindings to GNU Parted") | |
1156 | (description | |
1157 | "This package provides bindings for GNU Parted library, a C library | |
1158 | allowing disk partition tables creation and manipulation. The bindings are | |
0791437f | 1159 | written in pure Scheme by using Guile's foreign function interface.") |
dbcd503c MO |
1160 | (home-page "https://gitlab.com/mothacehe/guile-parted") |
1161 | (license license:gpl3+))) | |
0791437f | 1162 | |
b6bee63b | 1163 | (define-public guile2.2-parted |
e5b95558 LC |
1164 | (package |
1165 | (inherit guile-parted) | |
b6bee63b | 1166 | (name "guile2.2-parted") |
e5b95558 LC |
1167 | (inputs `(("guile" ,guile-next) |
1168 | ,@(alist-delete "guile" (package-inputs guile-parted)))) | |
1169 | (propagated-inputs | |
b6bee63b LC |
1170 | `(("guile-bytestructures" ,guile2.2-bytestructures))))) |
1171 | ||
1172 | (define-public guile3.0-parted | |
1173 | (deprecated-package "guile3.0-parted" guile-parted)) | |
e5b95558 | 1174 | |
0791437f RW |
1175 | (define-public guile-xosd |
1176 | (package | |
1177 | (name "guile-xosd") | |
1178 | (version "0.2.1") | |
1179 | (source (origin | |
1180 | (method url-fetch) | |
1181 | (uri (string-append "https://github.com/alezost/" name | |
1182 | "/releases/download/v" version | |
1183 | "/" name "-" version ".tar.gz")) | |
1184 | (sha256 | |
1185 | (base32 | |
1186 | "1ri5065c16kmgrf2pysn2ymxjqi5302lhpb07wkl1jr75ym8fn8p")))) | |
1187 | (build-system gnu-build-system) | |
1188 | (native-inputs | |
1189 | `(("pkg-config" ,pkg-config))) | |
1190 | (inputs | |
1191 | `(("guile" ,guile-2.2) | |
1192 | ("libx11" ,libx11) | |
1193 | ("libxext" ,libxext) | |
1194 | ("libxinerama" ,libxinerama) | |
1195 | ("xosd" ,xosd))) | |
1196 | (home-page "https://github.com/alezost/guile-xosd") | |
1197 | (synopsis "XOSD bindings for Guile") | |
1198 | (description | |
1199 | "Guile-XOSD provides Guile bindings for @code{libxosd}, | |
1200 | @uref{http://sourceforge.net/projects/libxosd/, the X On Screen Display | |
1201 | library}.") | |
1202 | (license license:gpl3+))) | |
1203 | ||
1204 | (define-public guile-dbi | |
1205 | (package | |
1206 | (name "guile-dbi") | |
1207 | (version "2.1.6") | |
1208 | (source (origin | |
1209 | (method url-fetch) | |
1210 | (uri (string-append | |
1211 | "http://download.gna.org/guile-dbi/guile-dbi-" | |
1212 | version ".tar.gz")) | |
1213 | (sha256 | |
1214 | (base32 | |
1215 | "116njrprhgrsv1qm904sp3b02rq01fx639r433d657gyhw3x159n")))) | |
1216 | (build-system gnu-build-system) | |
1217 | (arguments | |
1218 | '(#:configure-flags | |
1219 | (list (string-append | |
1220 | "--with-guile-site-dir=" %output "/share/guile/site/2.2")) | |
1221 | #:make-flags | |
406ef442 CB |
1222 | (list (string-append |
1223 | "LDFLAGS=-Wl,-rpath=" %output "/lib:" | |
1224 | (assoc-ref %build-inputs "guile-dbd-sqlite3") "/lib" ":" | |
1225 | (assoc-ref %build-inputs "guile-dbd-postgresql") "/lib")) | |
0791437f RW |
1226 | #:phases |
1227 | (modify-phases %standard-phases | |
1228 | (add-after 'install 'patch-extension-path | |
1229 | (lambda* (#:key outputs #:allow-other-keys) | |
1230 | (let* ((out (assoc-ref outputs "out")) | |
1231 | (dbi.scm (string-append | |
1232 | out "/share/guile/site/2.2/dbi/dbi.scm")) | |
1233 | (ext (string-append out "/lib/libguile-dbi"))) | |
1234 | (substitute* dbi.scm (("libguile-dbi") ext)) | |
1235 | #t)))))) | |
1236 | (inputs | |
406ef442 CB |
1237 | `(("guile-dbd-sqlite3" ,guile-dbd-sqlite3) |
1238 | ("guile-dbd-postgresql" ,guile-dbd-postgresql))) ; only shared library, no scheme files | |
0791437f RW |
1239 | (propagated-inputs |
1240 | `(("guile" ,guile-2.2))) | |
1241 | (synopsis "Guile database abstraction layer") | |
1242 | (home-page "http://home.gna.org/guile-dbi/guile-dbi.html") | |
1243 | (description | |
1244 | "guile-dbi is a library for Guile that provides a convenient interface to | |
1245 | SQL databases. Database programming with guile-dbi is generic in that the same | |
1246 | programming interface is presented regardless of which database system is used. | |
1247 | It currently supports MySQL, Postgres and SQLite3.") | |
1248 | (license license:gpl2+))) | |
1249 | ||
1250 | (define guile-dbi-bootstrap | |
1251 | (package | |
1252 | (inherit guile-dbi) | |
1253 | (name "guile-dbi-bootstrap") | |
1254 | (inputs '()) | |
1255 | (arguments | |
1256 | (substitute-keyword-arguments (package-arguments guile-dbi) | |
1257 | ((#:make-flags _) '(list)))))) | |
1258 | ||
1259 | (define-public guile-dbd-sqlite3 | |
1260 | (package | |
1261 | (name "guile-dbd-sqlite3") | |
1262 | (version "2.1.6") | |
1263 | (source (origin | |
1264 | (method url-fetch) | |
1265 | (uri (string-append | |
1266 | "http://download.gna.org/guile-dbi/guile-dbd-sqlite3-" | |
1267 | version ".tar.gz")) | |
1268 | (sha256 | |
1269 | (base32 | |
1270 | "0rg71jchxd2y8x496s8zmfmikr5g8zxi8zv2ar3f7a23pph92iw2")))) | |
1271 | (build-system gnu-build-system) | |
1272 | (native-inputs | |
1273 | `(("pkg-config" ,pkg-config) | |
1274 | ("guile-dbi-bootstrap" ,guile-dbi-bootstrap))) ; only required for headers | |
1275 | (inputs | |
1276 | `(("sqlite" ,sqlite) | |
1277 | ("zlib" ,(@ (gnu packages compression) zlib)))) | |
1278 | (synopsis "Guile DBI driver for SQLite") | |
1279 | (home-page "https://github.com/jkalbhenn/guile-dbd-sqlite3") | |
1280 | (description | |
1281 | "guile-dbi is a library for Guile that provides a convenient interface to | |
1282 | SQL databases. This package implements the interface for SQLite.") | |
1283 | (license license:gpl2+))) | |
1284 | ||
406ef442 CB |
1285 | (define-public guile-dbd-postgresql |
1286 | (let ((commit "e97589b6b018b206c901e4cc24db463407a4036b") | |
1287 | (revision 0)) | |
1288 | (package | |
1289 | (name "guile-dbd-postgresql") | |
1290 | (version (string-append | |
1291 | "2.1.6-" (number->string revision) "." (string-take commit 7))) | |
1292 | (source | |
1293 | (origin | |
1294 | (method git-fetch) | |
1295 | (uri (git-reference | |
1296 | (url "https://github.com/opencog/guile-dbi.git") | |
1297 | (commit commit))) | |
1298 | (file-name (git-file-name name version)) | |
1299 | (sha256 | |
1300 | (base32 "0n1gv9a0kdys10a4qmnrwvg5sydwb03880asri4gqdchcj3fimni")))) | |
1301 | (build-system gnu-build-system) | |
1302 | (arguments | |
1303 | '(#:phases | |
1304 | (modify-phases %standard-phases | |
1305 | (add-after 'unpack 'chdir | |
1306 | (lambda _ | |
1307 | ;; The upstream Git repository contains all the code, so change | |
1308 | ;; to the relevant directory. | |
1309 | (chdir "guile-dbd-postgresql") | |
1310 | #t)) | |
1311 | (add-after 'chdir 'patch-src/Makefile.am | |
1312 | (lambda* (#:key inputs #:allow-other-keys) | |
1313 | (substitute* "src/Makefile.am" | |
1314 | (("/usr/include") | |
1315 | (string-append (assoc-ref inputs "postgresql") "/include"))) | |
1316 | #t)) | |
1317 | (add-after 'patch-src/Makefile.am 'patch-src | |
1318 | (lambda _ | |
1319 | (substitute* "src/guile-dbd-postgresql.c" | |
1320 | (("postgresql/libpq-fe\\.h") "libpq-fe.h")) | |
1321 | #t))))) | |
1322 | (native-inputs | |
1323 | `(("pkg-config" ,pkg-config) | |
1324 | ("automake" ,automake) | |
1325 | ("autoconf" ,autoconf) | |
1326 | ("perl" ,perl) | |
1327 | ("libtool" ,libtool) | |
1328 | ("guile-dbi-bootstrap" ,guile-dbi-bootstrap))) | |
1329 | (inputs | |
1330 | `(("postgresql" ,postgresql) | |
1331 | ("zlib" ,zlib))) | |
1332 | (synopsis "Guile DBI driver for PostgreSQL") | |
1333 | (home-page | |
1334 | "https://github.com/opencog/guile-dbi/tree/master/guile-dbd-postgresql") | |
1335 | (description | |
1336 | "@code{guile-dbi} is a library for Guile that provides a convenient | |
1337 | interface to SQL databases. This package implements the interface for | |
1338 | PostgreSQL.") | |
1339 | (license license:gpl2+)))) | |
1340 | ||
0791437f RW |
1341 | (define-public guile-config |
1342 | (package | |
1343 | (name "guile-config") | |
91e29547 | 1344 | (version "0.3.1") |
0791437f RW |
1345 | (source |
1346 | (origin | |
1347 | (method git-fetch) | |
1348 | (uri (git-reference | |
1349 | (url "https://gitlab.com/a-sassmannshausen/guile-config") | |
91e29547 AS |
1350 | (commit (string-append "v" version)))) |
1351 | (file-name (git-file-name name version)) | |
1352 | (sha256 (base32 | |
1353 | "0gglsqwpw77gvrqcny8irpqfl7qdf2v8n9ggwrswanxalj4vcbvf")))) | |
0791437f RW |
1354 | (build-system gnu-build-system) |
1355 | (native-inputs | |
1356 | `(("autoconf" ,autoconf) | |
1357 | ("automake" ,automake) | |
1358 | ("pkg-config" ,pkg-config) | |
1359 | ("texinfo" ,texinfo))) | |
b6bee63b | 1360 | (inputs `(("guile" ,guile-3.0))) |
0791437f RW |
1361 | (synopsis |
1362 | "Guile application configuration parsing library.") | |
1363 | (description | |
1364 | "Guile Config is a library providing a declarative approach to | |
1365 | application configuration specification. The library provides clean | |
1366 | configuration declaration forms, and processors that take care of: | |
1367 | configuration file creation; configuration file parsing; command-line | |
1368 | parameter parsing using getopt-long; basic GNU command-line parameter | |
1369 | generation (--help, --usage, --version); automatic output generation for the | |
1370 | above command-line parameters.") | |
1371 | (home-page | |
1372 | "https://gitlab.com/a-sassmannshausen/guile-config") | |
1373 | (license license:gpl3+))) | |
1374 | ||
b6bee63b | 1375 | (define-public guile2.2-config |
0ac6b836 AS |
1376 | (package |
1377 | (inherit guile-config) | |
b6bee63b LC |
1378 | (name "guile2.2-config") |
1379 | (inputs `(("guile" ,guile-2.2) | |
0ac6b836 AS |
1380 | ,@(alist-delete "guile" (package-inputs guile-config)))))) |
1381 | ||
b6bee63b LC |
1382 | (define-public guile3.0-config |
1383 | (deprecated-package "guile3.0-config" guile-config)) | |
1384 | ||
0791437f RW |
1385 | (define-public guile-hall |
1386 | (package | |
1387 | (name "guile-hall") | |
cfc4e498 | 1388 | (version "0.2.1") |
0791437f | 1389 | (source |
feb11b08 RW |
1390 | (origin |
1391 | (method git-fetch) | |
1392 | (uri (git-reference | |
1393 | (url "https://gitlab.com/a-sassmannshausen/guile-hall") | |
1394 | (commit (string-append "v" version)))) | |
1395 | (file-name (git-file-name name version)) | |
1396 | (sha256 (base32 | |
cfc4e498 | 1397 | "0dwx5iyg0dmdf64wq0b4w306bapr86jwnw35npgbjq4cqm8qbzqn")))) |
0791437f RW |
1398 | (build-system gnu-build-system) |
1399 | (arguments | |
63bf0afd AS |
1400 | `(#:modules |
1401 | ((ice-9 match) | |
1402 | (ice-9 ftw) | |
1403 | ,@%gnu-build-system-modules) | |
1404 | #:phases | |
1405 | (modify-phases | |
1406 | %standard-phases | |
1407 | (add-after 'install 'hall-wrap-binaries | |
1408 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
1409 | (let* ((compiled-dir | |
1410 | (lambda (out version) | |
1411 | (string-append | |
1412 | out "/lib/guile/" version "/site-ccache"))) | |
1413 | (uncompiled-dir | |
1414 | (lambda (out version) | |
1415 | (string-append | |
1416 | out "/share/guile/site" | |
1417 | (if (string-null? version) "" "/") version))) | |
1418 | (dep-path | |
1419 | (lambda (env modules path) | |
1420 | (list env ":" 'prefix | |
1421 | (cons modules | |
1422 | (map (lambda (input) | |
1423 | (string-append | |
1424 | (assoc-ref inputs input) | |
1425 | path)) | |
1426 | ,''("guile-config")))))) | |
1427 | (out (assoc-ref outputs "out")) | |
1428 | (bin (string-append out "/bin/")) | |
1429 | (site (uncompiled-dir out ""))) | |
1430 | (match (scandir site) | |
1431 | (("." ".." version) | |
1432 | (for-each | |
1433 | (lambda (file) | |
1434 | (wrap-program | |
1435 | (string-append bin file) | |
1436 | (dep-path | |
1437 | "GUILE_LOAD_PATH" | |
1438 | (uncompiled-dir out version) | |
1439 | (uncompiled-dir "" version)) | |
1440 | (dep-path | |
1441 | "GUILE_LOAD_COMPILED_PATH" | |
1442 | (compiled-dir out version) | |
1443 | (compiled-dir "" version)))) | |
1444 | ,''("hall")) | |
1445 | #t)))))))) | |
0791437f | 1446 | (native-inputs |
63bf0afd AS |
1447 | `(("autoconf" ,autoconf) |
1448 | ("automake" ,automake) | |
1449 | ("pkg-config" ,pkg-config) | |
1450 | ("texinfo" ,texinfo))) | |
b6bee63b | 1451 | (inputs `(("guile" ,guile-3.0))) |
0791437f | 1452 | (propagated-inputs |
3c3e6620 | 1453 | `(("guile-config" ,guile-config))) |
0791437f RW |
1454 | (synopsis "Guile project tooling") |
1455 | (description | |
3c3e6620 RW |
1456 | "Hall is a command-line application and a set of Guile libraries that |
1457 | allow you to quickly create and publish Guile projects. It allows you to | |
1458 | transparently support the GNU build system, manage a project hierarchy & | |
1459 | provides tight coupling to Guix.") | |
1460 | (home-page "https://gitlab.com/a-sassmannshausen/guile-hall") | |
06085fac | 1461 | (license license:gpl3+))) |
0791437f | 1462 | |
b6bee63b | 1463 | (define-public guile2.2-hall |
df18ea6f AS |
1464 | (package |
1465 | (inherit guile-hall) | |
b6bee63b LC |
1466 | (name "guile2.2-hall") |
1467 | (inputs `(("guile" ,guile-2.2) | |
df18ea6f AS |
1468 | ,@(alist-delete "guile" (package-inputs guile-hall)))) |
1469 | (propagated-inputs | |
b6bee63b | 1470 | `(("guile-config" ,guile2.2-config) |
df18ea6f AS |
1471 | ,@(alist-delete "guile-config" |
1472 | (package-propagated-inputs guile-hall)))))) | |
1473 | ||
b6bee63b LC |
1474 | (define-public guile3.0-hall |
1475 | (deprecated-package "guile3.0-hall" guile-hall)) | |
1476 | ||
0791437f RW |
1477 | (define-public guile-ics |
1478 | (package | |
1479 | (name "guile-ics") | |
1480 | (version "0.2.0") | |
1481 | (source (origin | |
1482 | (method git-fetch) | |
1483 | (uri (git-reference | |
1484 | (url "https://github.com/artyom-poptsov/guile-ics") | |
1485 | (commit (string-append "v" version)))) | |
1486 | (file-name (string-append name "-" version "-checkout")) | |
1487 | (sha256 | |
1488 | (base32 | |
6713589d LC |
1489 | "0qjjvadr7gibdq9jvwkmlkb4afsw9n2shfj9phpiadinxk3p4m2g")) |
1490 | (modules '((guix build utils))) | |
1491 | (snippet | |
1492 | '(begin | |
1493 | ;; Allow builds with Guile 3.0. | |
1494 | (substitute* "configure.ac" | |
1495 | (("^GUILE_PKG.*") | |
1496 | "GUILE_PKG([3.0 2.2 2.0])\n")) | |
1497 | #t)))) | |
0791437f RW |
1498 | (build-system gnu-build-system) |
1499 | (native-inputs | |
1500 | `(("autoconf" ,autoconf-wrapper) | |
1501 | ("automake" ,automake) | |
1502 | ("texinfo" ,texinfo) | |
1503 | ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'. | |
1504 | ("gettext" ,gettext-minimal) | |
1505 | ("pkg-config" ,pkg-config))) | |
b6bee63b | 1506 | (inputs `(("guile" ,guile-3.0) ("which" ,which))) |
0791437f RW |
1507 | (propagated-inputs `(("guile-lib" ,guile-lib))) |
1508 | (home-page "https://github.com/artyom-poptsov/guile-ics") | |
1509 | (synopsis "Guile parser library for the iCalendar format") | |
1510 | (description | |
1511 | "Guile-ICS is an iCalendar (RFC5545) format parser library written in | |
1512 | pure Scheme. The library can be used to read and write iCalendar data. | |
1513 | ||
1514 | The library is shipped with documentation in Info format and usage examples.") | |
1515 | (license license:gpl3+))) | |
1516 | ||
b6bee63b | 1517 | (define-public guile2.2-ics |
6713589d LC |
1518 | (package |
1519 | (inherit guile-ics) | |
b6bee63b LC |
1520 | (name "guile2.2-ics") |
1521 | (inputs `(("guile" ,guile-2.2) | |
6713589d | 1522 | ,@(alist-delete "guile" (package-inputs guile-ics)))) |
b6bee63b LC |
1523 | (propagated-inputs `(("guile-lib" ,guile2.2-lib))))) |
1524 | ||
1525 | (define-public guile3.0-ics | |
1526 | (deprecated-package "guile3.0-ics" guile-ics)) | |
6713589d | 1527 | |
0791437f RW |
1528 | (define-public guile-wisp |
1529 | (package | |
1530 | (name "guile-wisp") | |
65610f73 | 1531 | (version "1.0.2") |
0791437f RW |
1532 | (source (origin |
1533 | (method url-fetch) | |
1534 | (uri (string-append "https://bitbucket.org/ArneBab/" | |
1535 | "wisp/downloads/wisp-" | |
1536 | version ".tar.gz")) | |
1537 | (sha256 | |
1538 | (base32 | |
65610f73 | 1539 | "03pz7pj9jyallynhflp5s7qax8dj1fs8la434wrfgz7g1kgjnvf6")))) |
0791437f RW |
1540 | (build-system gnu-build-system) |
1541 | (arguments | |
1542 | `(#:modules ((guix build gnu-build-system) | |
15218d4e | 1543 | ((guix build emacs-build-system) #:prefix emacs:) |
0791437f | 1544 | (guix build utils) |
15218d4e | 1545 | (guix build emacs-utils) |
0791437f RW |
1546 | (ice-9 rdelim) |
1547 | (ice-9 popen)) | |
15218d4e RW |
1548 | #:imported-modules (,@%gnu-build-system-modules |
1549 | (guix build emacs-build-system) | |
1550 | (guix build emacs-utils)) | |
0791437f RW |
1551 | #:phases |
1552 | (modify-phases %standard-phases | |
b6bee63b LC |
1553 | (add-after 'unpack 'support-guile-3.0 |
1554 | (lambda _ | |
1555 | (substitute* "configure" | |
1556 | (("_guile_versions_to_search=\"2.2") | |
1557 | "_guile_versions_to_search=\"3.0 2.2")) | |
1558 | #t)) | |
0791437f RW |
1559 | (add-before 'configure 'patch-/usr/bin/env |
1560 | (lambda _ | |
1561 | (substitute* "Makefile.in" | |
65610f73 | 1562 | (("/usr/bin/env bash") (which "bash"))) |
0791437f RW |
1563 | #t)) |
1564 | ;; auto compilation breaks, but if we set HOME to /tmp, | |
1565 | ;; that works ok | |
1566 | (add-before 'check 'auto-compile-hacky-workaround | |
1567 | (lambda _ (setenv "HOME" "/tmp") #t)) | |
1568 | (add-after 'install 'install-go-files | |
1569 | (lambda* (#:key outputs inputs #:allow-other-keys) | |
1570 | (let* ((out (assoc-ref outputs "out")) | |
1571 | (effective (read-line | |
1572 | (open-pipe* OPEN_READ | |
1573 | "guile" "-c" | |
1574 | "(display (effective-version))"))) | |
1575 | (module-dir (string-append out "/share/guile/site/" | |
1576 | effective)) | |
1577 | (object-dir (string-append out "/lib/guile/" effective | |
1578 | "/site-ccache")) | |
1579 | (prefix (string-length module-dir))) | |
1580 | ;; compile to the destination | |
1581 | (for-each (lambda (file) | |
1582 | (let* ((base (string-drop (string-drop-right file 4) | |
1583 | prefix)) | |
1584 | (go (string-append object-dir base ".go"))) | |
1585 | (invoke "guild" "compile" "-L" module-dir | |
1586 | file "-o" go))) | |
1587 | (find-files module-dir "\\.scm$")) | |
15218d4e RW |
1588 | #t))) |
1589 | (add-after 'install 'install-emacs-files | |
1590 | (assoc-ref emacs:%standard-phases 'install)) | |
1591 | (add-after 'install-emacs-files 'compile-emacs-files | |
1592 | (assoc-ref emacs:%standard-phases 'build)) | |
1593 | (add-after 'compile-emacs-files 'make-autoloads | |
1594 | (assoc-ref emacs:%standard-phases 'make-autoloads))))) | |
17f90b67 | 1595 | (home-page "https://www.draketo.de/english/wisp") |
0791437f | 1596 | (inputs |
b6bee63b | 1597 | `(("guile" ,guile-3.0))) |
0791437f | 1598 | (native-inputs |
15218d4e RW |
1599 | `(("emacs" ,emacs-minimal) |
1600 | ("python" ,python) | |
0791437f RW |
1601 | ("pkg-config" ,pkg-config))) |
1602 | (synopsis "Whitespace to lisp syntax for Guile") | |
1603 | (description "Wisp is a syntax for Guile which provides a Python-like | |
1604 | whitespace-significant language. It may be easier on the eyes for some | |
1605 | users and in some situations.") | |
1606 | (license license:gpl3+))) | |
1607 | ||
b6bee63b | 1608 | (define-public guile2.2-wisp |
b0b725ed RW |
1609 | (package |
1610 | (inherit guile-wisp) | |
b6bee63b LC |
1611 | (name "guile2.2-wisp") |
1612 | (inputs `(("guile" ,guile-2.2))))) | |
1613 | ||
1614 | (define-public guile3.0-wisp | |
1615 | (deprecated-package "guile3.0-wisp" guile-wisp)) | |
b0b725ed | 1616 | |
0791437f RW |
1617 | (define-public guile-sly |
1618 | (package | |
1619 | (name "guile-sly") | |
1620 | (version "0.1") | |
1621 | (source (origin | |
1622 | (method url-fetch) | |
1623 | (uri (string-append "https://files.dthompson.us/sly/sly-" | |
1624 | version ".tar.gz")) | |
1625 | (sha256 | |
1626 | (base32 | |
1627 | "1svzlbz2vripmyq2kjh0rig16bsrnbkwbsm558pjln9l65mcl4qq")) | |
1628 | (modules '((guix build utils))) | |
1629 | (snippet | |
1630 | '(begin | |
1631 | (substitute* "configure" | |
1632 | (("_guile_required_version=\"2.0.11\"") | |
1633 | "_guile_required_version=\"2\"") | |
1634 | (("ac_subst_vars='") | |
1635 | "ac_subst_vars='GUILE_EFFECTIVE_VERSION\n")) | |
1636 | (substitute* (find-files "." "Makefile.in") | |
1637 | (("moddir = .*$") | |
1638 | (string-append | |
1639 | "moddir = " | |
1640 | "$(prefix)/share/guile/site/@GUILE_EFFECTIVE_VERSION@\n")) | |
1641 | (("godir = .*$") | |
1642 | (string-append | |
1643 | "godir = " | |
1644 | "$(prefix)/lib/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n"))) | |
1645 | #t)))) | |
1646 | (build-system gnu-build-system) | |
1647 | (arguments | |
1648 | '(#:configure-flags | |
1649 | (list (string-append "--with-libfreeimage-prefix=" | |
1650 | (assoc-ref %build-inputs "freeimage")) | |
1651 | (string-append "--with-libgslcblas-prefix=" | |
1652 | (assoc-ref %build-inputs "gsl"))))) | |
1653 | (native-inputs | |
1654 | `(("pkg-config" ,pkg-config))) | |
1655 | (propagated-inputs | |
1656 | `(("guile-sdl" ,guile-sdl) | |
1657 | ("guile-opengl" ,guile-opengl))) | |
1658 | (inputs | |
1659 | `(("guile" ,guile-2.2) | |
1660 | ("gsl" ,gsl) | |
1661 | ("freeimage" ,freeimage) | |
1662 | ("mesa" ,mesa))) | |
1663 | (synopsis "2D/3D game engine for GNU Guile") | |
1664 | (description "Sly is a 2D/3D game engine written in Guile Scheme. Sly | |
1665 | features a functional reactive programming interface and live coding | |
1666 | capabilities.") | |
1667 | (home-page "https://dthompson.us/projects/sly.html") | |
1668 | (license license:gpl3+))) | |
1669 | ||
dfe277a5 VS |
1670 | (define-public g-golf |
1671 | (let ((commit "4a4edf25e4877df9182c77843bdd98ab59e13ef7")) | |
1672 | (package | |
1673 | (name "g-golf") | |
1674 | (version (git-version "1" "683" commit)) | |
1675 | (source (origin | |
1676 | (method git-fetch) | |
1677 | (uri (git-reference | |
1678 | (url "https://git.savannah.gnu.org/git/g-golf.git") | |
1679 | (commit commit))) | |
1680 | (file-name (git-file-name name version)) | |
1681 | (sha256 | |
1682 | (base32 | |
1683 | "09p0gf71wbmlm9kri693a8fvr9hl3hhlmlidyadwjdh7853xg0h8")))) | |
1684 | (build-system gnu-build-system) | |
1685 | (native-inputs | |
1686 | `(("autoconf" ,autoconf) | |
1687 | ("automake" ,automake) | |
1688 | ("texinfo" ,texinfo) | |
1689 | ("gettext" ,gettext-minimal) | |
1690 | ("libtool" ,libtool) | |
1691 | ("pkg-config" ,pkg-config))) | |
1692 | (inputs | |
1693 | `(("guile" ,guile-2.2) | |
1694 | ("guile-lib" ,guile-lib) | |
1695 | ("clutter" ,clutter) | |
1696 | ("gtk" ,gtk+) | |
1697 | ("glib" ,glib))) | |
1698 | (propagated-inputs | |
1699 | `(("gobject-introspection" ,gobject-introspection))) | |
1700 | (arguments | |
1701 | `(#:phases | |
1702 | (modify-phases %standard-phases | |
1703 | (add-before 'configure 'tests-work-arounds | |
1704 | (lambda* (#:key inputs #:allow-other-keys) | |
1705 | ;; In build environment, There is no /dev/tty | |
1706 | (substitute* | |
1707 | "test-suite/tests/gobject.scm" | |
1708 | (("/dev/tty") "/dev/null")))) | |
1709 | (add-before 'configure 'substitute-libs | |
1710 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
1711 | (let* ((get (lambda (key lib) | |
1712 | (string-append (assoc-ref inputs key) "/lib/" lib))) | |
1713 | (libgi (get "gobject-introspection" "libgirepository-1.0")) | |
1714 | (libglib (get "glib" "libglib-2.0")) | |
1715 | (libgobject (get "glib" "libgobject-2.0")) | |
1716 | (libgdk (get "gtk" "libgdk-3"))) | |
1717 | (substitute* "configure" | |
1718 | (("SITEDIR=\"\\$datadir/g-golf\"") | |
1719 | "SITEDIR=\"$datadir/guile/site/$GUILE_EFFECTIVE_VERSION\"") | |
1720 | (("SITECCACHEDIR=\"\\$libdir/g-golf/") | |
1721 | "SITECCACHEDIR=\"$libdir/")) | |
1722 | (substitute* "g-golf/init.scm" | |
1723 | (("libgirepository-1.0") libgi) | |
1724 | (("libglib-2.0") libglib) | |
1725 | (("libgdk-3") libgdk) | |
1726 | (("libgobject-2.0") libgobject) | |
1727 | (("\\(dynamic-link \"libg-golf\"\\)") | |
1728 | (format #f "~s" | |
1729 | `(dynamic-link | |
1730 | (format #f "~alibg-golf" | |
1731 | (if (getenv "GUILE_GGOLF_UNINSTALLED") | |
1732 | "" | |
1733 | ,(format #f "~a/lib/" | |
1734 | (assoc-ref outputs "out")))))))) | |
1735 | (setenv "GUILE_AUTO_COMPILE" "0") | |
1736 | (setenv "GUILE_GGOLF_UNINSTALLED" "1") | |
1737 | #t)))))) | |
1738 | (home-page "https://www.gnu.org/software/g-golf/") | |
1739 | (synopsis "Guile bindings for GObject Introspection") | |
1740 | (description | |
1741 | "G-Golf (Gnome: (Guile Object Library for)) is a library for developing | |
1742 | modern applications in Guile Scheme. It comprises a direct binding to the | |
1743 | GObject Introspection API and higher-level functionality for importing Gnome | |
1744 | libraries and making GObject classes (and methods) available in Guile's | |
1745 | object-oriented programming system, GOOPS.") | |
1746 | (license license:lgpl3+)))) | |
1747 | ||
0791437f RW |
1748 | (define-public g-wrap |
1749 | (package | |
1750 | (name "g-wrap") | |
1751 | (version "1.9.15") | |
1752 | (source (origin | |
1753 | (method url-fetch) | |
1754 | (uri (string-append "mirror://savannah/g-wrap/g-wrap-" | |
1755 | version ".tar.gz")) | |
1756 | (sha256 | |
1757 | (base32 | |
1758 | "0ak0bha37dfpj9kmyw1r8fj8nva639aw5xr66wr5gd3l1rqf5xhg")))) | |
1759 | (build-system gnu-build-system) | |
1760 | (native-inputs | |
1761 | `(("pkg-config" ,pkg-config))) | |
1762 | (propagated-inputs | |
1763 | `(("guile" ,guile-2.2) | |
1764 | ("guile-lib" ,guile-lib))) | |
1765 | (inputs | |
1766 | `(("libffi" ,libffi))) | |
1767 | (arguments | |
1768 | `(#:configure-flags '("--disable-Werror") | |
1769 | #:phases | |
1770 | (modify-phases %standard-phases | |
1771 | (add-before 'configure 'pre-configure | |
1772 | (lambda* (#:key outputs #:allow-other-keys) | |
1773 | (let ((out (assoc-ref outputs "out"))) | |
1774 | (substitute* (find-files "." "^Makefile.in$") | |
1775 | (("guilemoduledir =.*guile/site" all) | |
1776 | (string-append all "/@GUILE_EFFECTIVE_VERSION@"))) | |
1777 | #t)))))) | |
1778 | (synopsis "Generate C bindings for Guile") | |
1779 | (description "G-Wrap is a tool and Guile library for generating function | |
1780 | wrappers for inter-language calls. It currently only supports generating Guile | |
1781 | wrappers for C functions. Given a definition of the types and prototypes for | |
1782 | a given C interface, G-Wrap will automatically generate the C code that | |
1783 | provides access to that interface and its types from the Scheme level.") | |
1784 | (home-page "https://www.nongnu.org/g-wrap/index.html") | |
1785 | (license license:lgpl2.1+))) | |
1786 | ||
1787 | (define-public guile-miniadapton | |
1788 | (let ((commit "1b5749422304567c96ac5367f2221dda9eff5880") | |
1789 | (revision "1")) | |
1790 | (package | |
1791 | (name "guile-miniadapton") | |
1792 | (version (string-append "0-" revision "." (string-take commit 9))) | |
1793 | (source (origin | |
1794 | (method git-fetch) | |
1795 | (uri (git-reference | |
1796 | (url "https://github.com/fisherdj/miniAdapton.git") | |
1797 | (commit commit))) | |
1798 | (file-name (string-append name "-" version "-checkout")) | |
1799 | (sha256 | |
1800 | (base32 | |
1801 | "09q51zkw2fypad5xixskfzw2cjhjgs5cswdp3i7cpp651rb3zndh")))) | |
1802 | (build-system guile-build-system) | |
1803 | (native-inputs | |
1804 | `(("guile" ,guile-2.2))) | |
1805 | (home-page "https://github.com/fisherdj/miniAdapton") | |
1806 | (synopsis "Minimal implementation of incremental computation in Guile | |
1807 | Scheme") | |
1808 | (description "This package provides a complete Scheme implementation of | |
1809 | miniAdapton, which implements the core functionality of the Adapton system for | |
1810 | incremental computation (also known as self-adjusting computation). Like | |
1811 | Adapton, miniAdapton allows programmers to safely combine mutation and | |
1812 | memoization. miniAdapton is built on top of an even simpler system, | |
1813 | microAdapton. Both miniAdapton and microAdapton are designed to be easy to | |
1814 | understand, extend, and port to host languages other than Scheme.") | |
1815 | (license license:expat)))) | |
1816 | ||
1817 | (define-public guile-reader | |
1818 | (package | |
1819 | (name "guile-reader") | |
1820 | (version "0.6.2") | |
1821 | (source (origin | |
1822 | (method url-fetch) | |
1823 | (uri (string-append "mirror://savannah/guile-reader/guile-reader-" | |
1824 | version ".tar.gz")) | |
1825 | (sha256 | |
1826 | (base32 | |
1827 | "0592s2s8ampqmqwilc4fvcild6rb9gy79di6vxv5kcdmv23abkgx")))) | |
1828 | (build-system gnu-build-system) | |
1829 | (native-inputs `(("pkgconfig" ,pkg-config) | |
1830 | ("gperf" ,gperf-3.0))) | |
1831 | (inputs `(("guile" ,guile-2.2))) | |
1832 | (synopsis "Framework for building readers for GNU Guile") | |
1833 | (description | |
1834 | "Guile-Reader is a simple framework for building readers for GNU Guile. | |
1835 | ||
1836 | The idea is to make it easy to build procedures that extend Guile’s read | |
1837 | procedure. Readers supporting various syntax variants can easily be written, | |
1838 | possibly by re-using existing “token readers” of a standard Scheme | |
1839 | readers. For example, it is used to implement Skribilo’s R5RS-derived | |
1840 | document syntax. | |
1841 | ||
1842 | Guile-Reader’s approach is similar to Common Lisp’s “read table”, but | |
1843 | hopefully more powerful and flexible (for instance, one may instantiate as | |
1844 | many readers as needed).") | |
1845 | (home-page "https://www.nongnu.org/guile-reader/") | |
1846 | (license license:gpl3+))) | |
1847 | ||
0791437f RW |
1848 | (define-public guile-ncurses |
1849 | (package | |
1850 | (name "guile-ncurses") | |
2b155e3a | 1851 | (version "3.0") |
0791437f RW |
1852 | (source (origin |
1853 | (method url-fetch) | |
1854 | (uri (string-append "mirror://gnu/guile-ncurses/guile-ncurses-" | |
1855 | version ".tar.gz")) | |
1856 | (sha256 | |
1857 | (base32 | |
2b155e3a | 1858 | "038xbffalhymg26lvmzgf7ljilxz2f2zmqg5r5nfzbipfbprwjhf")))) |
0791437f RW |
1859 | (build-system gnu-build-system) |
1860 | (inputs `(("ncurses" ,ncurses) | |
1861 | ("guile" ,guile-2.2))) | |
1862 | (native-inputs `(("pkg-config" ,pkg-config))) | |
1863 | (arguments | |
1864 | '(#:configure-flags (list "--with-ncursesw" ; Unicode support | |
1865 | "--with-gnu-filesystem-hierarchy") | |
1866 | #:phases | |
1867 | (modify-phases %standard-phases | |
1868 | (add-before 'build 'fix-libguile-ncurses-file-name | |
1869 | (lambda* (#:key outputs #:allow-other-keys) | |
1870 | (invoke "make" "install" | |
1871 | "-C" "src/ncurses" | |
1872 | "-j" (number->string | |
1873 | (parallel-job-count))) | |
1874 | (let* ((out (assoc-ref outputs "out")) | |
1875 | (dir "src/ncurses") | |
1876 | (files (find-files dir ".scm"))) | |
1877 | (substitute* files | |
1878 | (("\"libguile-ncurses\"") | |
1879 | (format #f "\"~a/lib/guile/2.2/libguile-ncurses\"" | |
1880 | out))) | |
1881 | #t)))))) | |
1882 | (home-page "https://www.gnu.org/software/guile-ncurses/") | |
1883 | (synopsis "Guile bindings to ncurses") | |
1884 | (description | |
1885 | "guile-ncurses provides Guile language bindings for the ncurses | |
1886 | library.") | |
1887 | (license license:lgpl3+))) | |
1888 | ||
1889 | (define-public guile-ncurses/gpm | |
1890 | (package | |
1891 | (inherit guile-ncurses) | |
1892 | (name "guile-ncurses-with-gpm") | |
1893 | (inputs `(("ncurses" ,ncurses/gpm) | |
1894 | ("guile" ,guile-2.2))))) | |
1895 | ||
1896 | (define-public guile-lib | |
1897 | (package | |
1898 | (name "guile-lib") | |
1899 | (version "0.2.6.1") | |
1900 | (source (origin | |
1901 | (method url-fetch) | |
1902 | (uri (string-append "mirror://savannah/guile-lib/guile-lib-" | |
1903 | version ".tar.gz")) | |
1904 | (sha256 | |
1905 | (base32 | |
675f1940 LC |
1906 | "0aizxdif5dpch9cvs8zz5g8ds5s4xhfnwza2il5ji7fv2h7ks7bd")) |
1907 | (modules '((guix build utils))) | |
1908 | (snippet | |
1909 | '(begin | |
1910 | ;; Work around miscompilation on Guile 3.0.0 at -O2: | |
1911 | ;; <https://bugs.gnu.org/39251>. | |
1912 | (substitute* "src/md5.scm" | |
1913 | (("\\(define f-ash ash\\)") | |
1914 | "(define f-ash (@ (guile) ash))\n") | |
1915 | (("\\(define f-add \\+\\)") | |
1916 | "(define f-add (@ (guile) +))\n")) | |
1917 | #t)))) | |
0791437f RW |
1918 | (build-system gnu-build-system) |
1919 | (arguments | |
1920 | '(#:make-flags | |
1921 | '("GUILE_AUTO_COMPILE=0") ; to prevent guild errors | |
1922 | #:phases | |
1923 | (modify-phases %standard-phases | |
1924 | (add-before 'configure 'patch-module-dir | |
1925 | (lambda _ | |
1926 | (substitute* "src/Makefile.in" | |
1927 | (("^moddir = ([[:graph:]]+)") | |
1928 | "moddir = $(datadir)/guile/site/@GUILE_EFFECTIVE_VERSION@\n") | |
1929 | (("^godir = ([[:graph:]]+)") | |
1930 | "godir = \ | |
1931 | $(libdir)/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n")) | |
1932 | #t))))) | |
1933 | (native-inputs `(("pkg-config" ,pkg-config))) | |
b6bee63b | 1934 | (inputs `(("guile" ,guile-3.0))) |
0791437f RW |
1935 | (home-page "https://www.nongnu.org/guile-lib/") |
1936 | (synopsis "Collection of useful Guile Scheme modules") | |
1937 | (description | |
1938 | "Guile-Lib is intended as an accumulation place for pure-scheme Guile | |
1939 | modules, allowing for people to cooperate integrating their generic Guile | |
1940 | modules into a coherent library. Think \"a down-scaled, limited-scope CPAN | |
1941 | for Guile\".") | |
1942 | ||
1943 | ;; The whole is under GPLv3+, but some modules are under laxer | |
1944 | ;; distribution terms such as LGPL and public domain. See `COPYING' for | |
1945 | ;; details. | |
1946 | (license license:gpl3+))) | |
1947 | ||
1948 | (define-public guile2.0-lib | |
1949 | (package | |
1950 | (inherit guile-lib) | |
1951 | (name "guile2.0-lib") | |
1952 | (inputs `(("guile" ,guile-2.0))))) | |
1953 | ||
b6bee63b | 1954 | (define-public guile2.2-lib |
675f1940 LC |
1955 | (package |
1956 | (inherit guile-lib) | |
b6bee63b LC |
1957 | (name "guile2.2-lib") |
1958 | (inputs `(("guile" ,guile-2.2))))) | |
1959 | ||
1960 | (define-public guile3.0-lib | |
1961 | (deprecated-package "guile3.0-lib" guile-lib)) | |
675f1940 | 1962 | |
0791437f RW |
1963 | (define-public guile-minikanren |
1964 | (package | |
1965 | (name "guile-minikanren") | |
1966 | (version "20150424.e844d85") | |
1967 | (source (origin | |
1968 | (method git-fetch) | |
1969 | (uri (git-reference | |
1970 | (url "https://github.com/ijp/minikanren.git") | |
1971 | (commit "e844d85512f8c055d3f96143ee506007389a25e3"))) | |
1972 | (file-name (string-append name "-" version "-checkout")) | |
1973 | (sha256 | |
1974 | (base32 | |
1975 | "0r50jlpzi940jlmxyy3ddqqwmj5r12gb4bcv0ssini9v8km13xz6")))) | |
1976 | (build-system guile-build-system) | |
1977 | (native-inputs | |
b6bee63b | 1978 | `(("guile" ,guile-3.0))) |
0791437f RW |
1979 | (home-page "https://github.com/ijp/minikanren") |
1980 | (synopsis "MiniKanren declarative logic system, packaged for Guile") | |
1981 | (description | |
1982 | "MiniKanren is a relational programming extension to the Scheme | |
1983 | programming Language, written as a smaller version of Kanren suitable for | |
1984 | pedagogical purposes. It is featured in the book, The Reasoned Schemer, | |
1985 | written by Dan Friedman, William Byrd, and Oleg Kiselyov. | |
1986 | ||
1987 | This is Ian Price's r6rs packaged version of miniKanren, which deviates | |
1988 | slightly from miniKanren mainline. | |
1989 | ||
1990 | See http://minikanren.org/ for more on miniKanren generally.") | |
1991 | (license license:expat))) | |
1992 | ||
1993 | (define-public guile2.0-minikanren | |
1994 | (package | |
1995 | (inherit guile-minikanren) | |
1996 | (name "guile2.0-minikanren") | |
1997 | (native-inputs `(("guile" ,guile-2.0))))) | |
1998 | ||
b6bee63b | 1999 | (define-public guile2.2-minikanren |
89a99d53 LC |
2000 | (package |
2001 | (inherit guile-minikanren) | |
b6bee63b LC |
2002 | (name "guile2.2-minikanren") |
2003 | (native-inputs `(("guile" ,guile-2.2))))) | |
2004 | ||
2005 | (define-public guile3.0-minikanren | |
2006 | (deprecated-package "guile3.0-minikanren" guile-minikanren)) | |
89a99d53 | 2007 | |
0791437f RW |
2008 | (define-public guile-irregex |
2009 | (package | |
2010 | (name "guile-irregex") | |
2011 | (version "0.9.6") | |
2012 | (source (origin | |
2013 | (method url-fetch) | |
2014 | (uri (string-append | |
2015 | "http://synthcode.com/scheme/irregex/irregex-" | |
2016 | version ".tar.gz")) | |
2017 | (sha256 | |
2018 | (base32 | |
2019 | "1ia3m7dp3lcxa048q0gqbiwwsyvn99baw6xkhb4bhhzn4k7bwyqq")))) | |
2020 | (build-system guile-build-system) | |
2021 | (arguments | |
2022 | '(#:phases (modify-phases %standard-phases | |
2023 | (add-after 'unpack 'move-files-around | |
2024 | (lambda _ | |
2025 | ;; Move the relevant source files to src/ and create the | |
2026 | ;; rx/ directory to match the expected module hierarchy. | |
2027 | (mkdir-p "src/rx/source") | |
2028 | (rename-file "irregex-guile.scm" | |
2029 | "src/rx/irregex.scm") | |
2030 | (rename-file "irregex.scm" | |
2031 | "src/rx/source/irregex.scm") | |
2032 | ;; Not really reachable via guile's packaging system, | |
2033 | ;; but nice to have around. | |
2034 | (rename-file "irregex-utils.scm" | |
2035 | "src/rx/source/irregex-utils.scm") | |
2036 | #t))) | |
2037 | #:source-directory "src")) | |
2038 | (native-inputs | |
b6bee63b | 2039 | `(("guile" ,guile-3.0))) |
0791437f RW |
2040 | (home-page "http://synthcode.com/scheme/irregex") |
2041 | (synopsis "S-expression based regular expressions") | |
2042 | (description | |
2043 | "Irregex is an s-expression based alternative to your classic | |
2044 | string-based regular expressions. It implements SRFI 115 and is deeply | |
2045 | inspired by the SCSH regular expression system.") | |
2046 | (license license:bsd-3))) | |
2047 | ||
2048 | (define-public guile2.0-irregex | |
2049 | (package | |
2050 | (inherit guile-irregex) | |
2051 | (name "guile2.0-irregex") | |
2052 | (native-inputs `(("guile" ,guile-2.0))))) | |
2053 | ||
b6bee63b | 2054 | (define-public guile2.2-irregex |
89a99d53 LC |
2055 | (package |
2056 | (inherit guile-irregex) | |
b6bee63b LC |
2057 | (name "guile2.2-irregex") |
2058 | (native-inputs `(("guile" ,guile-2.2))))) | |
2059 | ||
2060 | (define-public guile3.0-irregex | |
2061 | (deprecated-package "guile3.0-irregex" guile-irregex)) | |
89a99d53 | 2062 | |
0791437f RW |
2063 | (define-public haunt |
2064 | (package | |
2065 | (name "haunt") | |
2066 | (version "0.2.4") | |
2067 | (source (origin | |
2068 | (method url-fetch) | |
2069 | (uri (string-append "https://files.dthompson.us/haunt/haunt-" | |
2070 | version ".tar.gz")) | |
2071 | (sha256 | |
2072 | (base32 | |
93d94134 LC |
2073 | "056z4znikk83nr5mr0x2ac3iinqbywa2bvb37mhr566a1q50isfc")) |
2074 | (modules '((guix build utils))) | |
2075 | (snippet | |
2076 | '(begin | |
2077 | ;; Allow builds with Guile 3.0. | |
2078 | (substitute* "configure" | |
2079 | (("2\\.2 2\\.0") | |
2080 | "3.0 2.2 2.0")) | |
2081 | #t)))) | |
0791437f RW |
2082 | (build-system gnu-build-system) |
2083 | (arguments | |
2084 | `(#:modules ((ice-9 match) (ice-9 ftw) | |
2085 | ,@%gnu-build-system-modules) | |
2086 | #:tests? #f ; test suite is non-deterministic :( | |
2087 | #:phases (modify-phases %standard-phases | |
2088 | (add-after 'install 'wrap-haunt | |
2089 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
2090 | ;; Wrap the 'haunt' command to refer to the right | |
2091 | ;; modules. | |
2092 | (let* ((out (assoc-ref outputs "out")) | |
2093 | (bin (string-append out "/bin")) | |
2094 | (site (string-append | |
2095 | out "/share/guile/site")) | |
93d94134 LC |
2096 | (guile-reader (assoc-ref inputs "guile-reader")) |
2097 | (deps `(,@(if guile-reader | |
2098 | (list guile-reader) | |
2099 | '()) | |
2100 | ,(assoc-ref inputs "guile-commonmark")))) | |
0791437f RW |
2101 | (match (scandir site) |
2102 | (("." ".." version) | |
2103 | (let ((modules (string-append site "/" version)) | |
2104 | (compiled-modules (string-append | |
2105 | out "/lib/guile/" version | |
2106 | "/site-ccache"))) | |
2107 | (wrap-program (string-append bin "/haunt") | |
2108 | `("GUILE_LOAD_PATH" ":" prefix | |
2109 | (,modules | |
2110 | ,@(map (lambda (dep) | |
2111 | (string-append dep | |
2112 | "/share/guile/site/" | |
2113 | version)) | |
2114 | deps))) | |
2115 | `("GUILE_LOAD_COMPILED_PATH" ":" prefix | |
2116 | (,compiled-modules | |
2117 | ,@(map (lambda (dep) | |
2118 | (string-append dep "/lib/guile/" | |
2119 | version | |
2120 | "/site-ccache")) | |
2121 | deps)))) | |
2122 | #t))))))))) | |
2123 | (native-inputs | |
2124 | `(("pkg-config" ,pkg-config) | |
2125 | ("texinfo" ,texinfo))) | |
2126 | (inputs | |
b6bee63b | 2127 | `(("guile" ,guile-3.0))) |
0791437f | 2128 | (propagated-inputs |
b6bee63b LC |
2129 | ;; XXX: Guile-Reader is currently unavailable for Guile 2.2 so strip it. |
2130 | `(;;("guile-reader" ,guile-reader) | |
0791437f RW |
2131 | ("guile-commonmark" ,guile-commonmark))) |
2132 | (synopsis "Functional static site generator") | |
2133 | (description "Haunt is a static site generator written in Guile | |
2134 | Scheme. Haunt features a functional build system and an extensible | |
2135 | interface for reading articles in any format.") | |
2136 | (home-page "http://haunt.dthompson.us") | |
2137 | (license license:gpl3+))) | |
2138 | ||
b6bee63b | 2139 | (define-public guile2.2-haunt |
93d94134 LC |
2140 | (package |
2141 | (inherit haunt) | |
b6bee63b LC |
2142 | (name "guile2.2-haunt") |
2143 | (inputs `(("guile" ,guile-2.2))) | |
93d94134 | 2144 | (propagated-inputs |
b6bee63b LC |
2145 | `(("guile-reader" ,guile-reader) |
2146 | ("guile-commonmark" ,guile2.2-commonmark))))) | |
93d94134 | 2147 | |
0791437f RW |
2148 | (define-public guile2.0-haunt |
2149 | (package | |
2150 | (inherit haunt) | |
2151 | (name "guile2.0-haunt") | |
2152 | (inputs `(("guile" ,guile-2.0))))) | |
2153 | ||
b6bee63b LC |
2154 | (define-public guile3.0-haunt |
2155 | (deprecated-package "guile3.0-haunt" haunt)) | |
2156 | ||
0791437f RW |
2157 | (define-public guile-redis |
2158 | (package | |
2159 | (name "guile-redis") | |
f57bf15c | 2160 | (version "1.3.0") |
0791437f RW |
2161 | (home-page "https://github.com/aconchillo/guile-redis") |
2162 | (source (origin | |
29fde3bf EF |
2163 | (method git-fetch) |
2164 | (uri (git-reference | |
2165 | (url home-page) | |
2166 | (commit version))) | |
2167 | (file-name (git-file-name name version)) | |
0791437f RW |
2168 | (sha256 |
2169 | (base32 | |
29fde3bf | 2170 | "14izs8daxh7pb7vwpxi5g427qa31137jkaxrb1cy5rpjkwchy723")))) |
0791437f RW |
2171 | (build-system gnu-build-system) |
2172 | (native-inputs | |
2173 | `(("autoconf" ,autoconf) | |
2174 | ("automake" ,automake) | |
2175 | ("pkg-config" ,pkg-config) | |
2176 | ("guile" ,guile-2.2))) | |
2177 | (synopsis "Redis client library for Guile") | |
2178 | (description "Guile-redis provides a Scheme interface to the Redis | |
2179 | key-value cache and store.") | |
2180 | (license license:lgpl3+))) | |
2181 | ||
2182 | (define-public guile2.0-redis | |
2183 | (package | |
2184 | (inherit guile-redis) | |
2185 | (name "guile2.0-redis") | |
2186 | (native-inputs `(("guile" ,guile-2.0) | |
2187 | ,@(alist-delete "guile" | |
2188 | (package-native-inputs guile-redis)))))) | |
2189 | ||
0791437f RW |
2190 | (define-public guile-commonmark |
2191 | (package | |
2192 | (name "guile-commonmark") | |
b552e307 | 2193 | (version "0.1.2") |
0791437f RW |
2194 | (source (origin |
2195 | (method url-fetch) | |
2196 | (uri (string-append "https://github.com/OrangeShark/" name | |
2197 | "/releases/download/v" version | |
2198 | "/" name "-" version ".tar.gz")) | |
2199 | (sha256 | |
2200 | (base32 | |
1fa34232 LC |
2201 | "17lrsdisa3kckh24q114vfmzdc4wkqa6ccwl4hdlrng5wpn1iman")) |
2202 | (modules '((guix build utils))) | |
2203 | (snippet | |
2204 | '(begin | |
2205 | ;; Allow builds with Guile 3.0. | |
2206 | (substitute* "configure" | |
2207 | (("2\\.2 2\\.0") | |
2208 | "3.0 2.2 2.0")) | |
2209 | #t)))) | |
0791437f RW |
2210 | (build-system gnu-build-system) |
2211 | (inputs | |
b6bee63b | 2212 | `(("guile" ,guile-3.0))) |
0791437f RW |
2213 | (native-inputs |
2214 | `(("pkg-config" ,pkg-config))) | |
2215 | (synopsis "CommonMark parser for Guile") | |
2216 | (description | |
2217 | "guile-commonmark is a library for parsing CommonMark, a fully specified | |
2218 | variant of Markdown. The library is written in Guile Scheme and is designed | |
2219 | to transform a CommonMark document to SXML. guile-commonmark tries to closely | |
2220 | follow the @uref{http://commonmark.org/, CommonMark spec}, the main difference | |
2221 | is no support for parsing block and inline level HTML.") | |
2222 | (home-page "https://github.com/OrangeShark/guile-commonmark") | |
2223 | (license license:lgpl3+))) | |
2224 | ||
b6bee63b | 2225 | (define-public guile2.2-commonmark |
1fa34232 LC |
2226 | (package |
2227 | (inherit guile-commonmark) | |
b6bee63b LC |
2228 | (name "guile2.2-commonmark") |
2229 | (inputs `(("guile" ,guile-2.2))))) | |
1fa34232 | 2230 | |
0791437f RW |
2231 | (define-public guile2.0-commonmark |
2232 | (package | |
2233 | (inherit guile-commonmark) | |
2234 | (name "guile2.0-commonmark") | |
2235 | (inputs `(("guile" ,guile-2.0))))) | |
2236 | ||
b6bee63b LC |
2237 | (define-public guile3.0-commonmark |
2238 | (deprecated-package "guile3.0-commonmark" guile-commonmark)) | |
2239 | ||
0791437f RW |
2240 | (define-public mcron |
2241 | (package | |
2242 | (name "mcron") | |
a52aa7fd | 2243 | (version "1.1.4") |
0791437f RW |
2244 | (source (origin |
2245 | (method url-fetch) | |
2246 | (uri (string-append "mirror://gnu/mcron/mcron-" | |
2247 | version ".tar.gz")) | |
2248 | (sha256 | |
2249 | (base32 | |
a52aa7fd | 2250 | "1521w3h33bhdlg6qc66sq4dwv3qsx8r8x6srq4ca6kaahy6dszw8")))) |
0791437f RW |
2251 | (build-system gnu-build-system) |
2252 | (arguments | |
2253 | '(#:phases (modify-phases %standard-phases | |
0791437f RW |
2254 | (add-before 'check 'adjust-tests |
2255 | (lambda _ | |
2256 | (substitute* "tests/job-specifier.scm" | |
2257 | ;; (getpw) fails with "entry not found" in the build | |
2258 | ;; environment, so pass an argument. | |
2259 | (("\\(getpw\\)") | |
2260 | "(getpwnam (getuid))") | |
2261 | ;; The build environment lacks an entry for root in | |
2262 | ;; /etc/passwd. | |
2263 | (("\\(getpw 0\\)") | |
2264 | "(getpwnam \"nobody\")") | |
2265 | ||
2266 | ;; FIXME: Skip the 4 faulty tests (see above). | |
2267 | (("\\(test-equal \"next-year\"" all) | |
2268 | (string-append "(test-skip 4)\n" all))) | |
2269 | #t))))) | |
30ebff69 | 2270 | (native-inputs `(("pkg-config" ,pkg-config) |
0791437f | 2271 | ("tzdata" ,tzdata-for-tests))) |
b6bee63b | 2272 | (inputs `(("guile" ,guile-3.0))) |
0791437f RW |
2273 | (home-page "https://www.gnu.org/software/mcron/") |
2274 | (synopsis "Run jobs at scheduled times") | |
2275 | (description | |
2276 | "GNU Mcron is a complete replacement for Vixie cron. It is used to run | |
2277 | tasks on a schedule, such as every hour or every Monday. Mcron is written in | |
2278 | Guile, so its configuration can be written in Scheme; the original cron | |
2279 | format is also supported.") | |
2280 | (license license:gpl3+))) | |
2281 | ||
b6bee63b | 2282 | (define-public guile2.2-mcron |
3de0d20b LC |
2283 | (package |
2284 | (inherit mcron) | |
b6bee63b LC |
2285 | (name "guile2.2-mcron") |
2286 | (inputs `(("guile" ,guile-2.2))))) | |
2287 | ||
2288 | (define-public guile3.0-mcron | |
2289 | (deprecated-package "guile3.0-mcron" mcron)) | |
3de0d20b | 2290 | |
6bb5f88e | 2291 | (define-public guile-picture-language |
d1a3a8e1 RW |
2292 | (let ((commit "91d10c96708d732145006dd2802acc4de08b632e") |
2293 | (revision "1")) | |
6bb5f88e RW |
2294 | (package |
2295 | (name "guile-picture-language") | |
d1a3a8e1 | 2296 | (version (git-version "0.0.1" revision commit)) |
6bb5f88e RW |
2297 | (source (origin |
2298 | (method git-fetch) | |
2299 | (uri (git-reference | |
2300 | (url "https://git.elephly.net/software/guile-picture-language.git") | |
2301 | (commit commit))) | |
f1d4d79f | 2302 | (file-name (git-file-name name version)) |
6bb5f88e RW |
2303 | (sha256 |
2304 | (base32 | |
d1a3a8e1 RW |
2305 | "1ydvw9dvssdvlvhh1dr8inyzy2x6m41qgp8hsivca1xysr4gc23a")))) |
2306 | (build-system gnu-build-system) | |
6bb5f88e | 2307 | (inputs |
b6bee63b | 2308 | `(("guile" ,guile-3.0))) |
d1a3a8e1 RW |
2309 | (native-inputs |
2310 | `(("autoconf" ,autoconf) | |
2311 | ("automake" ,automake) | |
2312 | ("imagemagick" ,imagemagick) | |
2313 | ("pkg-config" ,pkg-config) | |
2314 | ("texinfo" ,texinfo))) | |
6bb5f88e RW |
2315 | (home-page "https://git.elephly.net/software/guile-picture-language.git") |
2316 | (synopsis "Picture language for Guile") | |
2317 | (description | |
2318 | "This package provides a simple SVG-based picture language for Guile. | |
2319 | The picture values can directly be displayed in Geiser.") | |
2320 | (license license:lgpl3+)))) | |
5531782d | 2321 | |
b6bee63b | 2322 | (define-public guile2.2-picture-language |
4f408684 LC |
2323 | (package |
2324 | (inherit guile-picture-language) | |
b6bee63b LC |
2325 | (name "guile2.2-picture-language") |
2326 | (inputs `(("guile" ,guile-2.2))))) | |
2327 | ||
2328 | (define-public guile3.0-picture-language | |
2329 | (deprecated-package "guile3.0-picture-language" | |
2330 | guile-picture-language)) | |
4f408684 | 2331 | |
5531782d | 2332 | (define-public guile-studio |
223236f6 RW |
2333 | (package |
2334 | (name "guile-studio") | |
2335 | (version "0.0.2") | |
2336 | (source (origin | |
2337 | (method git-fetch) | |
2338 | (uri (git-reference | |
2339 | (url "https://git.elephly.net/software/guile-studio.git") | |
2340 | (commit version))) | |
2341 | (file-name (git-file-name name version)) | |
2342 | (sha256 | |
2343 | (base32 | |
2344 | "10ls4ra148hd9ra7sin4kh9vv0am5pwk48p7dsjhrlg2l1hsh4hi")))) | |
2345 | (build-system gnu-build-system) | |
2346 | (arguments | |
2347 | `(#:modules | |
2348 | ((ice-9 match) | |
2349 | (srfi srfi-1) | |
2350 | ,@%gnu-build-system-modules) | |
2351 | #:tests? #f ; there are none | |
2352 | #:make-flags | |
2353 | (list (string-append "ICONS_DIR=" | |
2354 | (assoc-ref %build-inputs "adwaita-icon-theme") | |
2355 | "/share/icons/Adwaita/") | |
2356 | (string-append "PICT_DIR=" | |
2357 | (assoc-ref %build-inputs "guile-picture-language")) | |
2358 | (string-append "EMACS_DIR=" | |
2359 | (assoc-ref %build-inputs "emacs")) | |
2360 | (string-append "GUILE_DIR=" | |
2361 | (assoc-ref %build-inputs "guile")) | |
2362 | (string-join (cons "INPUTS=" | |
2363 | (filter-map | |
2364 | (lambda (input) | |
2365 | (match input | |
2366 | ((label . pkg) | |
2367 | (and (string-prefix? "emacs" label) pkg)))) | |
2368 | %build-inputs))) | |
2369 | (string-append "PREFIX=" (assoc-ref %outputs "out"))) | |
2370 | #:phases | |
2371 | (modify-phases %standard-phases | |
2372 | (delete 'configure) | |
2373 | (delete 'install)))) | |
2374 | (inputs | |
2375 | `(("guile" ,guile-2.2) | |
2376 | ("guile-picture-language" ,guile-picture-language) | |
2377 | ("emacs" ,emacs) | |
2378 | ("emacs-geiser" ,emacs-geiser) | |
2379 | ("emacs-company" ,emacs-company) | |
2380 | ("emacs-flycheck" ,emacs-flycheck) | |
2381 | ("emacs-smart-mode-line" ,emacs-smart-mode-line) | |
2382 | ("emacs-paren-face" ,emacs-paren-face) | |
2383 | ("adwaita-icon-theme" ,adwaita-icon-theme))) | |
2384 | (native-inputs | |
2385 | `(("texinfo" ,texinfo))) | |
2386 | (home-page "https://gnu.org/software/guile") | |
2387 | (synopsis "IDE for Guile") | |
2388 | (description | |
2389 | "This is Emacs with a few settings that make working with Guile easier | |
5531782d RW |
2390 | for people new to Emacs. Features include: CUA mode, Geiser, tool bar icons |
2391 | to evaluate Guile buffers, support for Guile's very own picture language, code | |
2392 | completion, a simple mode line, etc.") | |
223236f6 | 2393 | (license license:gpl3+))) |
9f8698ad RW |
2394 | |
2395 | (define-public guile-stis-parser | |
2396 | (let ((commit "6e85d37ffc333b722f4413a6c648263701eb75bd") | |
2397 | (revision "1")) | |
2398 | (package | |
2399 | (name "guile-stis-parser") | |
2400 | (version (git-version "0" revision commit)) | |
2401 | (source (origin | |
2402 | (method git-fetch) | |
2403 | (uri (git-reference | |
2404 | (url "https://gitlab.com/tampe/stis-parser") | |
2405 | (commit commit))) | |
29e76f07 | 2406 | (file-name (git-file-name name version)) |
9f8698ad RW |
2407 | (sha256 |
2408 | (base32 | |
2409 | "0v4hvq7rlpbra1ni73lf8k6sdmjlflr50yi3p1f24g85h77pc7c0")))) | |
2410 | (build-system gnu-build-system) | |
2411 | (arguments | |
2412 | `(#:parallel-build? #f ; not supported | |
2413 | #:phases | |
2414 | (modify-phases %standard-phases | |
2415 | (add-after 'unpack 'chdir | |
2416 | (lambda _ (chdir "modules") #t)) | |
8318b3ed RW |
2417 | (add-after 'chdir 'use-canonical-directory-for-go-files |
2418 | (lambda _ | |
2419 | (substitute* "Makefile.am" | |
2420 | (("/ccache") "/site-ccache")) | |
2421 | #t)) | |
9f8698ad RW |
2422 | (add-after 'chdir 'delete-broken-symlink |
2423 | (lambda _ | |
2424 | (delete-file "parser/stis-parser/lang/.#calc.scm") | |
2425 | #t))))) | |
2426 | (inputs | |
2427 | `(("guile" ,guile-2.2))) | |
2428 | (native-inputs | |
2429 | `(("autoconf" ,autoconf) | |
2430 | ("automake" ,automake) | |
2431 | ("pkg-config" ,pkg-config))) | |
2432 | (home-page "https://gitlab.com/tampe/stis-parser") | |
2433 | (synopsis "Parser combinator framework") | |
2434 | (description | |
2435 | "This package provides a functional parser combinator library that | |
2436 | supports backtracking and a small logical framework. The idea is to build up | |
2437 | chunks that are memoized and there is no clear scanner/parser separation, | |
2438 | chunks can be expressions as well as simple tokens.") | |
2439 | (license license:lgpl2.0+)))) | |
12d73f9c RW |
2440 | |
2441 | (define-public guile-persist | |
2442 | (let ((commit "b14927b0368af51c024560aee5f55724aee35233") | |
2443 | (revision "1")) | |
2444 | (package | |
2445 | (name "guile-persist") | |
2446 | (version (git-version "0" revision commit)) | |
2447 | (source (origin | |
2448 | (method git-fetch) | |
2449 | (uri (git-reference | |
2450 | (url "https://gitlab.com/tampe/guile-persist") | |
2451 | (commit commit))) | |
2452 | (file-name (git-file-name name version)) | |
2453 | (sha256 | |
2454 | (base32 | |
85a411bc LC |
2455 | "0z5nf377wh8yj6n3sx2ddn4bdx1qrqnw899dlqjhg0q69qzil522")) |
2456 | (modules '((guix build utils))) | |
2457 | (snippet | |
2458 | '(begin | |
2459 | ;; Install .go files in the right place. | |
2460 | (substitute* "Makefile.am" | |
2461 | (("/ccache") "/site-ccache")) | |
2462 | #t)))) | |
12d73f9c RW |
2463 | (build-system gnu-build-system) |
2464 | (arguments | |
2465 | `(#:phases | |
2466 | (modify-phases %standard-phases | |
2467 | (add-after 'unpack 'patch-prefix | |
2468 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
2469 | (substitute* "src/Makefile.am" | |
2470 | (("/usr/local/lib/guile") | |
2471 | (string-append (assoc-ref outputs "out") "/lib/guile")) | |
2472 | (("/usr/local/include/guile") | |
2473 | (string-append (assoc-ref inputs "guile") "/include/guile")) | |
2474 | (("-L/usr/local/lib") | |
8f052528 RW |
2475 | (string-append "-L" (assoc-ref inputs "guile") "/lib")) |
2476 | ;; Use canonical directory for go files. | |
2477 | (("/ccache") "/site-ccache")) | |
12d73f9c RW |
2478 | #t)) |
2479 | (add-after 'unpack 'patch-library-reference | |
2480 | (lambda* (#:key outputs #:allow-other-keys) | |
2481 | (let ((out (assoc-ref outputs "out"))) | |
2482 | (substitute* "persist/persistance.scm" | |
2483 | (("\"libguile-persist\"") | |
2484 | (format #f "\"~a/lib/guile/2.2/extensions/libguile-persist\"" out))) | |
2485 | #t)))))) | |
2486 | (inputs | |
2487 | `(("guile" ,guile-2.2))) | |
2488 | (native-inputs | |
2489 | `(("autoconf" ,autoconf) | |
2490 | ("automake" ,automake) | |
2491 | ("libtool" ,libtool) | |
2492 | ("pkg-config" ,pkg-config))) | |
2493 | (home-page "https://gitlab.com/tampe/guile-persist") | |
028053f2 | 2494 | (synopsis "Persistence programming framework for Guile") |
12d73f9c RW |
2495 | (description |
2496 | "This is a serialization library for serializing objects like classes | |
2497 | and objects, closures and structs. This currently does not support | |
2498 | serializing continuations or delimited continuations.") | |
2499 | (license license:lgpl2.0+)))) | |
6d37301b RW |
2500 | |
2501 | (define-public python-on-guile | |
5d5edb88 LC |
2502 | (let ((commit "00a51a23247f1edc4ae8eda72b30df5cd7d0015f") |
2503 | (revision "3")) | |
6d37301b RW |
2504 | (package |
2505 | (name "python-on-guile") | |
2506 | (version (git-version "0.1.0" revision commit)) | |
2507 | (source (origin | |
2508 | (method git-fetch) | |
2509 | (uri (git-reference | |
4088ae42 | 2510 | (url "https://git.elephly.net/software/python-on-guile.git") |
6d37301b RW |
2511 | (commit commit))) |
2512 | (file-name (git-file-name name version)) | |
2513 | (sha256 | |
2514 | (base32 | |
5d5edb88 | 2515 | "03rpnqr08rqr3gay128g564rwk8w4jbj28ss6b46z1d4vjs4nk68")))) |
6d37301b RW |
2516 | (build-system gnu-build-system) |
2517 | (arguments | |
2518 | `(#:parallel-build? #f ; not supported | |
83817158 LC |
2519 | #:make-flags '("GUILE_AUTO_COMPILE=0") ;to prevent guild warnings |
2520 | ||
6d37301b RW |
2521 | #:phases |
2522 | (modify-phases %standard-phases | |
2523 | (add-after 'unpack 'chdir | |
83817158 LC |
2524 | (lambda _ (chdir "modules") #t)) |
2525 | (add-after 'install 'wrap | |
2526 | (lambda* (#:key outputs #:allow-other-keys) | |
2527 | ;; Wrap the 'python' executable so it can find its | |
2528 | ;; dependencies. | |
2529 | (let ((out (assoc-ref outputs "out"))) | |
2530 | (wrap-program (string-append out "/bin/python") | |
2531 | `("GUILE_LOAD_PATH" ":" prefix | |
2532 | (,(getenv "GUILE_LOAD_PATH"))) | |
2533 | `("GUILE_LOAD_COMPILED_PATH" ":" prefix | |
2534 | (,(getenv "GUILE_LOAD_COMPILED_PATH")))) | |
2535 | #t)))))) | |
6d37301b RW |
2536 | (inputs |
2537 | `(("guile" ,guile-2.2))) | |
2538 | (propagated-inputs | |
2539 | `(("guile-persist" ,guile-persist) | |
2540 | ("guile-readline" ,guile-readline) | |
2541 | ("guile-stis-parser" ,guile-stis-parser))) | |
2542 | (native-inputs | |
2543 | `(("autoconf" ,autoconf) | |
2544 | ("automake" ,automake) | |
2545 | ("libtool" ,libtool) | |
2546 | ("pkg-config" ,pkg-config))) | |
2547 | (home-page "https://gitlab.com/python-on-guile/python-on-guile/") | |
2548 | (synopsis "Python implementation in Guile") | |
2549 | (description | |
2550 | "This package allows you to compile a Guile Python file to any target | |
2551 | from @code{tree-il}.") | |
2552 | (license license:lgpl2.0+)))) | |
b97b4624 RW |
2553 | |
2554 | (define-public guile-file-names | |
2555 | (package | |
2556 | (name "guile-file-names") | |
72a0706f | 2557 | (version "0.3") |
b97b4624 RW |
2558 | (source (origin |
2559 | (method url-fetch) | |
2560 | (uri (string-append "http://brandon.invergo.net/software/download/" | |
2561 | "guile-file-names/guile-file-names-" | |
2562 | version ".tar.gz")) | |
2563 | (sha256 | |
2564 | (base32 | |
72a0706f | 2565 | "01chizdxkhw6aqv629vxka9f5x3534ij7r0jqndawsg2vxm1r9sz")))) |
b97b4624 RW |
2566 | (build-system gnu-build-system) |
2567 | (arguments | |
2568 | `(#:phases | |
2569 | (modify-phases %standard-phases | |
481eca80 | 2570 | (add-after 'unpack 'fix-target-directory |
b97b4624 | 2571 | (lambda _ |
481eca80 | 2572 | (substitute* "src/Makefile.in" |
b97b4624 RW |
2573 | (("guilemoddir = \\$\\(GUILE_SITE\\)") |
2574 | "guilemoddir = $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n")) | |
2575 | #t))))) | |
2576 | (inputs | |
2577 | `(("guile" ,guile-2.2))) | |
2578 | (native-inputs | |
2579 | `(("pkg-config" ,pkg-config))) | |
2580 | (home-page "https://gitlab.com/brandoninvergo/guile-file-names") | |
2581 | (synopsis "Manipulate file names") | |
2582 | (description | |
2583 | "The @code{(file-names)} module provides tools for manipulating file | |
2584 | names. The module was built on the idea that doing anything more than a | |
2585 | non-trivial modification of a file name string is a pain (making sure all | |
2586 | slashes are present and accounted for, resolving @code{.} and @code{..}, etc). | |
2587 | Inevitably, you have to break the string up into chunks and operate on that | |
2588 | list of components. This module takes care of that for you.") | |
2589 | (license license:lgpl3+))) | |
bdf2dd79 JN |
2590 | |
2591 | (define-public guile-gi | |
bb6c8f20 RW |
2592 | (package |
2593 | (name "guile-gi") | |
195e1c1b | 2594 | (version "0.2.2") |
bb6c8f20 RW |
2595 | (source (origin |
2596 | (method url-fetch) | |
2597 | (uri (string-append "http://lonelycactus.com/tarball/guile_gi-" | |
2598 | version ".tar.gz")) | |
2599 | (sha256 | |
2600 | (base32 | |
195e1c1b | 2601 | "1v82kz8mz7wgq6w5llaz8a2wwdnl8vk2667dpjwjxscl0qyxsy6y")))) |
bb6c8f20 RW |
2602 | (build-system gnu-build-system) |
2603 | (arguments | |
b5d4d5b9 | 2604 | `(#:configure-flags '("--with-gnu-filesystem-hierarchy") |
a431a635 RW |
2605 | #:modules ((guix build gnu-build-system) |
2606 | (guix build utils) | |
2607 | (ice-9 popen) | |
2608 | (ice-9 rdelim)) | |
b5d4d5b9 RW |
2609 | #:phases |
2610 | (modify-phases %standard-phases | |
a431a635 RW |
2611 | (add-after 'unpack 'patch-references-to-extension |
2612 | (lambda* (#:key outputs #:allow-other-keys) | |
2613 | (let ((effective (read-line | |
2614 | (open-pipe* OPEN_READ | |
2615 | "guile" "-c" | |
2616 | "(display (effective-version))")))) | |
2617 | (substitute* '("module/gi.scm" | |
2618 | "module/gi/oop.scm" | |
2619 | "module/gi/documentation.scm" | |
2620 | "module/gi/types.scm" | |
2621 | "module/gi/repository.scm") | |
2622 | (("\\(load-extension \"libguile-gi\" \"(.*)\"\\)" m arg) | |
2623 | (format #f "~s" | |
2624 | `(load-extension | |
2625 | (format #f "~alibguile-gi" | |
2626 | (if (getenv "GUILE_GI_UNINSTALLED") | |
2627 | "" | |
2628 | ,(format #f "~a/lib/guile/~a/" | |
2629 | (assoc-ref outputs "out") | |
2630 | effective))) | |
2631 | ,arg))))) | |
2632 | (setenv "GUILE_GI_UNINSTALLED" "1") | |
2633 | #t)) | |
b5d4d5b9 RW |
2634 | (add-before 'check 'start-xorg-server |
2635 | (lambda* (#:key inputs #:allow-other-keys) | |
2636 | ;; The init_check test requires a running X server. | |
2637 | (system (format #f "~a/bin/Xvfb :1 &" | |
2638 | (assoc-ref inputs "xorg-server"))) | |
2639 | (setenv "DISPLAY" ":1") | |
2640 | #t))))) | |
bb6c8f20 | 2641 | (native-inputs |
f2d97d57 | 2642 | `(("gettext" ,gettext-minimal) |
6153fa0a | 2643 | ("glib:bin" ,glib "bin") ; for glib-compile-resources |
bb6c8f20 | 2644 | ("libtool" ,libtool) |
b5d4d5b9 RW |
2645 | ("pkg-config" ,pkg-config) |
2646 | ("xorg-server" ,xorg-server))) | |
bb6c8f20 RW |
2647 | (propagated-inputs |
2648 | `(("glib" ,glib) | |
2649 | ("gobject-introspection" ,gobject-introspection) | |
2650 | ("gssettings-desktop-schemas" ,gsettings-desktop-schemas) | |
2651 | ("gtk+" ,gtk+) | |
2652 | ("guile-lib" ,guile-lib) | |
2653 | ("webkitgtk" ,webkitgtk))) | |
b6bee63b | 2654 | (inputs `(("guile" ,guile-3.0))) |
bb6c8f20 RW |
2655 | (home-page "https://github.com/spk121/guile-gi") |
2656 | (synopsis "GObject bindings for Guile") | |
2657 | (description | |
2658 | "Guile-GI is a library for Guile that allows using GObject-based | |
bdf2dd79 JN |
2659 | libraries, such as GTK+3. Its README comes with the disclaimer: This is |
2660 | pre-alpha code.") | |
bb6c8f20 | 2661 | (license license:gpl3+))) |
dec4b3aa | 2662 | |
b6bee63b | 2663 | (define-public guile2.2-gi |
bfb51f5e RW |
2664 | (package |
2665 | (inherit guile-gi) | |
b6bee63b | 2666 | (name "guile2.2-gi") |
bfb51f5e | 2667 | (native-inputs |
b6bee63b | 2668 | `(("guile" ,guile-2.2) |
bfb51f5e RW |
2669 | ,@(package-native-inputs guile-gi))))) |
2670 | ||
b6bee63b LC |
2671 | (define-public guile3.0-gi |
2672 | (deprecated-package "guile3.0-gi" guile-gi)) | |
2673 | ||
dec4b3aa LC |
2674 | (define-public guile-srfi-159 |
2675 | (let ((commit "1bd98abda2ae4ef8f36761a167903e55c6bda7bb") | |
2676 | (revision "0")) | |
2677 | (package | |
2678 | (name "guile-srfi-159") | |
2679 | (version (git-version "0" revision commit)) | |
2680 | (home-page "https://bitbucket.org/bjoli/guile-srfi-159") | |
2681 | (source (origin | |
2682 | (method hg-fetch) | |
2683 | (uri (hg-reference (changeset commit) | |
2684 | (url home-page))) | |
2685 | (sha256 | |
2686 | (base32 | |
2687 | "1zw6cmcy7xdbfiz3nz9arqnn7l2daidaps6ixkcrc9b6k51fdv3p")) | |
2688 | (file-name (git-file-name name version)))) | |
2689 | (build-system guile-build-system) | |
2690 | (arguments | |
2691 | ;; The *-impl.scm files are actually included from module files; they | |
2692 | ;; should not be compiled separately, but they must be installed. | |
2693 | '(#:not-compiled-file-regexp "-impl\\.scm$")) | |
2694 | (inputs | |
2695 | `(("guile" ,guile-2.2))) | |
2696 | (synopsis "Formatting combinators for Guile") | |
2697 | (description | |
2698 | "The @code{(srfi-159)} module and its sub-modules implement the | |
2699 | formatting combinators specified by | |
2700 | @uref{https://srfi.schemers.org/srfi-159/srfi-159.html, SRFI-159}. These are | |
2701 | more expressive and flexible than the traditional @code{format} procedure.") | |
2702 | (license license:bsd-3)))) | |
f0de9544 JN |
2703 | |
2704 | (define-public emacsy | |
48eb71ae JN |
2705 | (package |
2706 | (name "emacsy") | |
2707 | (version "0.4.1") | |
2708 | (source (origin | |
2709 | (method url-fetch) | |
2710 | (uri (string-append | |
2711 | "https://download.savannah.nongnu.org/releases/" | |
2712 | name "/" name "-" version ".tar.gz")) | |
2713 | (sha256 | |
2714 | (base32 | |
2715 | "1cpb85dl1nibd34c2x2h7vfmjpkgh353p5b1w20v6cs6gmvgg4np")))) | |
2716 | (build-system gnu-build-system) | |
2717 | (native-inputs | |
2718 | `(("autoconf" ,autoconf) | |
2719 | ("automake" ,automake) | |
2720 | ("bzip2" ,bzip2) | |
2721 | ("guile" ,guile-2.2) | |
f2d97d57 | 2722 | ("gettext" ,gettext-minimal) |
48eb71ae JN |
2723 | ("libtool" ,libtool) |
2724 | ("perl" ,perl) | |
2725 | ("pkg-config" ,pkg-config) | |
2726 | ("texinfo" ,texinfo) | |
1aa026aa | 2727 | ("texlive" ,(texlive-union (list texlive-generic-epsf))))) |
114f02ba | 2728 | (inputs |
48eb71ae JN |
2729 | `(("dbus-glib" ,dbus-glib) |
2730 | ("guile" ,guile-2.2) | |
2731 | ("guile-lib" ,guile-lib) | |
2732 | ("guile-readline" ,guile-readline) | |
48eb71ae | 2733 | ("freeglut" ,freeglut) |
48eb71ae | 2734 | ("webkitgtk" ,webkitgtk))) |
114f02ba AS |
2735 | (propagated-inputs |
2736 | `(("glib-networking" ,glib-networking) | |
2737 | ("gssettings-desktop-schemas" ,gsettings-desktop-schemas))) | |
48eb71ae | 2738 | (arguments |
114f02ba AS |
2739 | `(#:modules ((guix build gnu-build-system) |
2740 | (guix build utils) | |
2741 | (ice-9 popen) | |
2742 | (ice-9 rdelim) | |
2743 | (ice-9 regex) | |
2744 | (ice-9 ftw) | |
2745 | (srfi srfi-26)) | |
2746 | #:phases | |
48eb71ae JN |
2747 | (modify-phases %standard-phases |
2748 | (add-before 'configure 'setenv | |
2749 | (lambda _ | |
2750 | (setenv "GUILE_AUTO_COMPILE" "0") | |
114f02ba AS |
2751 | #t)) |
2752 | (add-after 'install 'wrap-binaries | |
2753 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
2754 | (let* ((out (assoc-ref outputs "out")) | |
2755 | (effective (read-line | |
2756 | (open-pipe* OPEN_READ | |
2757 | "guile" "-c" | |
2758 | "(display (effective-version))"))) | |
2759 | (deps (map (cut assoc-ref inputs <>) | |
2760 | '("guile-lib" "guile-readline"))) | |
2761 | (scm-path (map (cut string-append <> "/share/guile/site/" | |
2762 | effective) `(,out ,@deps))) | |
2763 | (go-path (map (cut string-append <> "/lib/guile/" effective | |
2764 | "/site-ccache/") `(,out ,@deps))) | |
2765 | (examples (filter (cut string-match "emacsy" <>) | |
2766 | (scandir (string-append out "/bin/")))) | |
2767 | (progs (map (cut string-append out "/bin/" <>) | |
2768 | examples))) | |
2769 | (map (cut wrap-program <> | |
2770 | `("GUILE_LOAD_PATH" ":" prefix ,scm-path) | |
2771 | `("GUILE_LOAD_COMPILED_PATH" ":" prefix ,go-path)) | |
2772 | progs) | |
2773 | #t)))))) | |
48eb71ae JN |
2774 | (home-page "https://savannah.nongnu.org/projects/emacsy") |
2775 | (synopsis "Embeddable GNU Emacs-like library using Guile") | |
2776 | (description | |
2777 | "Emacsy is an embeddable Emacs-like library that uses GNU Guile | |
f0de9544 JN |
2778 | as extension language. Emacsy can give a C program an Emacsy feel with |
2779 | keymaps, minibuffer, recordable macros, history, tab completion, major | |
2780 | and minor modes, etc., and can also be used as a pure Guile library. It | |
48eb71ae JN |
2781 | comes with a simple counter example using FreeGLUT and browser examples |
2782 | in C using Gtk+-3 and WebKitGtk.") | |
2783 | (license license:gpl3+))) | |
2135610c | 2784 | |
c99f32b9 | 2785 | (define-public emacsy-minimal |
2708ae3d | 2786 | (let ((commit "d459ca1d3d09e7624e662bc4cfc3596850796fc6")) |
c99f32b9 AS |
2787 | (package |
2788 | (inherit emacsy) | |
2789 | (name "emacsy-minimal") | |
2708ae3d | 2790 | (version (git-version "v0.4.1" "28" commit)) |
c99f32b9 AS |
2791 | (source (origin |
2792 | (method git-fetch) | |
2793 | (uri (git-reference | |
2794 | (url "https://git.savannah.gnu.org/git/emacsy.git") | |
2795 | (commit commit))) | |
2796 | (file-name (git-file-name name version)) | |
2797 | (sha256 | |
2798 | (base32 | |
2708ae3d | 2799 | "1ps15w8cxj9kc18gmvys9jv9xa1qqa7m43ismv34l3cmhddrn0sr")))) |
c99f32b9 AS |
2800 | (build-system gnu-build-system) |
2801 | (inputs | |
2802 | `(("guile" ,guile-2.2) | |
2803 | ("guile-lib" ,guile-lib) | |
2804 | ("guile-readline" ,guile-readline))) | |
2805 | (propagated-inputs '()) | |
2806 | (arguments | |
2807 | `(#:configure-flags '("--without-examples") | |
2808 | #:phases | |
2809 | (modify-phases %standard-phases | |
2810 | (add-before 'configure 'setenv | |
2811 | (lambda _ | |
2812 | (setenv "GUILE_AUTO_COMPILE" "0") | |
2813 | #t)))))))) | |
2814 | ||
2135610c LC |
2815 | (define-public guile-jpeg |
2816 | (let ((commit "6a1673578b297c2c1b28e44a76bd5c49e76a5046") | |
2817 | (revision "0")) | |
2818 | (package | |
2819 | (name "guile-jpeg") | |
2820 | (version (git-version "0.0" revision commit)) | |
2821 | (home-page "https://gitlab.com/wingo/guile-jpeg") | |
2822 | (source (origin | |
2823 | (method git-fetch) | |
2824 | (uri (git-reference (url home-page) | |
2825 | (commit commit))) | |
2826 | (sha256 | |
2827 | (base32 | |
2828 | "05z9m408w3h6aqb5k3r3qa7khir0k10rxwvsrzhkcq1hr5vbmr4m")) | |
2829 | (file-name (git-file-name name version)) | |
2830 | (modules '((guix build utils))) | |
2831 | (snippet | |
2832 | '(begin | |
2833 | ;; Install .go files in the right place. | |
2834 | (substitute* "Makefile.am" | |
2835 | (("/ccache") "/site-ccache")) | |
2836 | #t)))) | |
2837 | (build-system gnu-build-system) | |
2838 | (native-inputs | |
2839 | `(("autoconf" ,autoconf) | |
2840 | ("automake" ,automake) | |
2841 | ("pkg-config" ,pkg-config) | |
2842 | ("guile" ,guile-2.2))) | |
2843 | (synopsis "JPEG file parsing library for Guile") | |
2844 | (description | |
2845 | "Guile-JPEG is a Scheme library to parse JPEG image files and to | |
2846 | perform geometrical transforms on JPEG images.") | |
2847 | (license license:gpl3+)))) | |
e8c2da41 AS |
2848 | |
2849 | (define-public nomad | |
2850 | (package | |
2851 | (name "nomad") | |
5f1553ce | 2852 | (version "0.1.2-alpha") |
e8c2da41 AS |
2853 | (source (origin |
2854 | (method git-fetch) | |
2855 | (uri (git-reference | |
2856 | (url "https://git.savannah.gnu.org/git/nomad.git") | |
2857 | (commit version))) | |
2858 | (file-name (git-file-name name version)) | |
2859 | (sha256 | |
2860 | (base32 | |
5f1553ce | 2861 | "1dnkr1hmvfkwgxd75dcf93pg39yfgawvdpzdhv991yhghv0qxc9h")))) |
e8c2da41 AS |
2862 | (build-system gnu-build-system) |
2863 | (native-inputs | |
2864 | `(("autoconf" ,autoconf) | |
2865 | ("automake" ,automake) | |
2866 | ("bash" ,bash) | |
2867 | ("pkg-config" ,pkg-config) | |
2868 | ("libtool" ,libtool) | |
2869 | ("guile" ,guile-2.2) | |
5f1553ce AS |
2870 | ("glib:bin" ,glib "bin") |
2871 | ("texinfo" ,texinfo) | |
2872 | ("perl" ,perl))) | |
e8c2da41 AS |
2873 | (inputs |
2874 | `(("guile" ,guile-2.2) | |
2875 | ("guile-lib" ,guile-lib) | |
2876 | ("guile-gcrypt" ,guile-gcrypt) | |
2877 | ("guile-readline" ,guile-readline) | |
2878 | ("gnutls" ,gnutls) | |
2879 | ("shroud" ,shroud) | |
2880 | ("emacsy" ,emacsy-minimal) | |
2881 | ("glib" ,glib) | |
2882 | ("dbus-glib" ,dbus-glib) | |
2883 | ("gtk+" ,gtk+) | |
2884 | ("gtksourceview" ,gtksourceview) | |
2885 | ("webkitgtk" ,webkitgtk) | |
2886 | ("xorg-server" ,xorg-server))) | |
2887 | (propagated-inputs | |
2888 | `(("glib" ,glib) | |
2889 | ("glib-networking" ,glib-networking) | |
2890 | ("gsettings-desktop-schemas" ,gsettings-desktop-schemas))) | |
2891 | (arguments | |
2892 | `(#:modules ((guix build gnu-build-system) | |
2893 | (guix build utils) | |
2894 | (ice-9 popen) | |
2895 | (ice-9 rdelim) | |
2896 | (srfi srfi-26)) | |
2897 | #:phases | |
2898 | (modify-phases %standard-phases | |
2899 | (add-before 'check 'start-xorg-server | |
2900 | (lambda* (#:key inputs #:allow-other-keys) | |
2901 | ;; The test suite requires a running X server. | |
2902 | (system (format #f "~a/bin/Xvfb :1 &" | |
2903 | (assoc-ref inputs "xorg-server"))) | |
2904 | (setenv "DISPLAY" ":1") | |
2905 | #t)) | |
2906 | (add-after 'install 'wrap-binaries | |
2907 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
2908 | (let* ((out (assoc-ref outputs "out")) | |
2909 | (gio-deps (map (cut assoc-ref inputs <>) '("glib-networking" | |
2910 | "glib"))) | |
2911 | (gio-mod-path (map (cut string-append <> "/lib/gio/modules") | |
2912 | gio-deps)) | |
2913 | (effective (read-line (open-pipe* | |
2914 | OPEN_READ | |
2915 | "guile" "-c" | |
2916 | "(display (effective-version))"))) | |
2917 | (deps (map (cut assoc-ref inputs <>) | |
2918 | '("emacsy" "guile-lib" "guile-readline" | |
2919 | "shroud"))) | |
2920 | (scm-path (map (cut string-append <> | |
2921 | "/share/guile/site/" effective) | |
2922 | `(,out ,@deps))) | |
2923 | (go-path (map (cut string-append <> | |
2924 | "/lib/guile/" effective "/site-ccache") | |
2925 | `(,out ,@deps))) | |
2926 | (progs (map (cut string-append out "/bin/" <>) | |
2927 | '("nomad")))) | |
2928 | (map (cut wrap-program <> | |
2929 | `("GIO_EXTRA_MODULES" ":" prefix ,gio-mod-path) | |
2930 | `("GUILE_LOAD_PATH" ":" prefix ,scm-path) | |
2931 | `("GUILE_LOAD_COMPILED_PATH" ":" | |
2932 | prefix ,go-path)) | |
2933 | progs) | |
2934 | #t)))))) | |
2935 | (home-page "https://savannah.nongnu.org/projects/nomad/") | |
2936 | (synopsis "Extensible Web Browser in Guile Scheme") | |
2937 | (description "Nomad is an Emacs-like Web Browser built using Webkitgtk and | |
2938 | Emacsy. It has a small C layer and most browser features are fully | |
2939 | programmable in Guile. It has hooks, keymaps, and self documentation | |
2940 | features.") | |
2941 | (license license:gpl3+))) | |
248965c9 RW |
2942 | |
2943 | (define-public guile-cv | |
2944 | (package | |
2945 | (name "guile-cv") | |
2946 | (version "0.2.1") | |
2947 | (source (origin | |
2948 | (method url-fetch) | |
2949 | (uri (string-append "mirror://gnu/guile-cv/guile-cv-" | |
2950 | version ".tar.gz")) | |
2951 | (sha256 | |
2952 | (base32 | |
2953 | "0qdf0s2h1xj5lbhnc1pfw69i3zg08pqy2y6869b92ydfis8r82j9")))) | |
2954 | (build-system gnu-build-system) | |
2955 | (arguments | |
2956 | `(#:phases | |
2957 | (modify-phases %standard-phases | |
2958 | (add-after 'unpack 'prepare-build | |
2959 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
2960 | (substitute* "configure" | |
2961 | (("SITEDIR=\"\\$datadir/guile-cv\"") | |
2962 | "SITEDIR=\"$datadir/guile/site/$GUILE_EFFECTIVE_VERSION\"") | |
2963 | (("SITECCACHEDIR=\"\\$libdir/guile-cv/") | |
2964 | "SITECCACHEDIR=\"$libdir/")) | |
2965 | (substitute* "cv/init.scm" | |
2966 | (("\\(dynamic-link \"libvigra_c\"\\)") | |
2967 | (string-append "(dynamic-link \"" | |
2968 | (assoc-ref inputs "vigra-c") | |
2969 | "/lib/libvigra_c\")")) | |
2970 | (("\\(dynamic-link \"libguile-cv\"\\)") | |
2971 | (format #f "~s" | |
2972 | `(dynamic-link | |
2973 | (format #f "~alibguile-cv" | |
2974 | (if (getenv "GUILE_CV_UNINSTALLED") | |
2975 | "" | |
2976 | ,(format #f "~a/lib/" | |
2977 | (assoc-ref outputs "out")))))))) | |
2978 | (setenv "GUILE_CV_UNINSTALLED" "1") | |
2979 | ;; Only needed to satisfy the configure script. | |
2980 | (setenv "LD_LIBRARY_PATH" | |
2981 | (string-append (assoc-ref inputs "vigra-c") "/lib")) | |
2982 | #t))))) | |
2983 | (inputs | |
2984 | `(("vigra" ,vigra) | |
2985 | ("vigra-c" ,vigra-c) | |
2986 | ("guile" ,guile-2.2))) | |
2987 | (native-inputs | |
2988 | `(("texlive" ,(texlive-union (list texlive-booktabs | |
2989 | texlive-lm | |
2990 | texlive-siunitx | |
2991 | texlive-standalone | |
2992 | texlive-xcolor | |
2993 | texlive-fonts-iwona))) | |
2994 | ("pkg-config" ,pkg-config))) | |
2995 | (propagated-inputs | |
2996 | `(("guile-lib" ,guile-lib))) | |
2997 | (home-page "https://www.gnu.org/software/guile-cv/") | |
2998 | (synopsis "Computer vision library for Guile") | |
2999 | (description "Guile-CV is a Computer Vision functional programming library | |
3000 | for the Guile Scheme language. It is based on Vigra (Vision with Generic | |
3001 | Algorithms), a C++ image processing and analysis library. Guile-CV contains | |
3002 | bindings to Vigra C (a C wrapper to most of the Vigra functionality) and is | |
3003 | enriched with pure Guile Scheme algorithms, all accessible through a nice, | |
3004 | clean and easy to use high level API.") | |
3005 | (license license:gpl3+))) | |
7ff157c1 RW |
3006 | |
3007 | (define-public guile-ffi-fftw | |
353fb48f RW |
3008 | (let ((commit "294ad9e7491dcb40026d2fec9be2af05263be1c0") |
3009 | (revision "2")) | |
7ff157c1 RW |
3010 | (package |
3011 | (name "guile-ffi-fftw") | |
3012 | (version (git-version "0" revision commit)) | |
3013 | (source (origin | |
3014 | (method git-fetch) | |
3015 | (uri (git-reference | |
3016 | (url "https://github.com/lloda/guile-ffi-fftw.git") | |
3017 | (commit commit))) | |
3018 | (file-name (git-file-name "guile-ffi-fftw" version)) | |
3019 | (sha256 | |
3020 | (base32 | |
353fb48f | 3021 | "08j40a5p6a8pgvhffmzb5rfdnrav2mksy3gfjkdqy93jfj1z5afg")))) |
7ff157c1 RW |
3022 | (build-system guile-build-system) |
3023 | (arguments | |
3024 | `(#:source-directory "mod" | |
3025 | #:phases | |
3026 | (modify-phases %standard-phases | |
3027 | (add-after 'unpack 'prepare-build | |
3028 | (lambda* (#:key inputs #:allow-other-keys) | |
3029 | (substitute* "mod/ffi/fftw.scm" | |
3030 | (("\\(getenv \"GUILE_FFI_FFTW_LIBFFTW3_PATH\"\\)") | |
3031 | (format #f "\"~a/lib\"" (assoc-ref inputs "fftw")))) | |
3032 | #t)) | |
3033 | (add-after 'build 'check | |
3034 | (lambda _ | |
3035 | (invoke "guile" "-L" "mod" | |
3036 | "-s" "test/test-ffi-fftw.scm")))))) | |
3037 | (inputs | |
3038 | `(("fftw" ,fftw) | |
3039 | ("guile" ,guile-2.2))) | |
3040 | (home-page "https://github.com/lloda/guile-ffi-fftw/") | |
3041 | (synopsis "Access FFTW through Guile's FFI") | |
3042 | (description "This is a minimal set of Guile FFI bindings for the FFTW | |
3043 | library's ‘guru interface’. It provides two functions: @code{fftw-dft! rank | |
3044 | sign in out} and @code{fftw-dft rank sign in}. These bindings being minimal, | |
3045 | there is no support for computing & reusing plans, or split r/i transforms, or | |
3046 | anything other than straight complex DFTs.") | |
353fb48f | 3047 | (license license:lgpl3+)))) |
f9ec89f4 TS |
3048 | |
3049 | (define-public srfi-64-driver | |
3050 | (package | |
3051 | (name "srfi-64-driver") | |
3052 | (version "0.1") | |
3053 | (source (origin | |
3054 | (method url-fetch) | |
3055 | (uri (string-append "https://files.ngyro.com/srfi-64-driver/" | |
3056 | "srfi-64-driver-" version ".tar.gz")) | |
3057 | (sha256 | |
3058 | (base32 | |
3059 | "188b6mb7sjjg0a8zldikinglf40ky8mg8rwh5768gjmch6gkk3ph")))) | |
3060 | (build-system gnu-build-system) | |
3061 | (arguments | |
3062 | `(#:tests? #f | |
3063 | #:phases | |
3064 | (modify-phases %standard-phases | |
3065 | (delete 'build)))) | |
3066 | (native-inputs | |
3067 | `(("pkg-config" ,pkg-config))) | |
3068 | (inputs | |
3069 | `(("guile" ,guile-2.2))) | |
3070 | (home-page "https://ngyro.com/software/srfi-64-driver.html") | |
3071 | (synopsis "Automake test driver for SRFI 64 test suites") | |
3072 | (description "This package provides an Automake test driver that can | |
3073 | run SRFI 64 test suites. It gives Automake insight into the individual | |
3074 | tests being run, resulting clearer and more specific output.") | |
3075 | (license license:gpl3+))) | |
f6bf4b2c TS |
3076 | |
3077 | (define-public guile-semver | |
3078 | (package | |
3079 | (name "guile-semver") | |
85ced665 | 3080 | (version "0.1.1") |
f6bf4b2c TS |
3081 | (source (origin |
3082 | (method url-fetch) | |
3083 | (uri (string-append "https://files.ngyro.com/guile-semver/" | |
3084 | "guile-semver-" version ".tar.gz")) | |
3085 | (sha256 | |
3086 | (base32 | |
85ced665 | 3087 | "109p4n39ln44cxvwdccf9kgb96qx54makvd2ir521ssz6wchjyag")))) |
f6bf4b2c TS |
3088 | (build-system gnu-build-system) |
3089 | (native-inputs | |
85ced665 | 3090 | `(("pkg-config" ,pkg-config))) |
f6bf4b2c TS |
3091 | (inputs |
3092 | `(("guile" ,guile-2.2))) | |
3093 | (home-page "https://ngyro.com/software/guile-semver.html") | |
3094 | (synopsis "Semantic Versioning (SemVer) for Guile") | |
3095 | (description "This Guile library provides tools for reading, | |
3096 | comparing, and writing Semantic Versions. It also includes ranges in | |
3097 | the style of the Node Package Manager (NPM).") | |
3098 | (license license:gpl3+))) | |
d67fa5c8 | 3099 | |
b488b64a MB |
3100 | (define-public guile3.0-semver |
3101 | (package | |
3102 | (inherit guile-semver) | |
3103 | (name "guile3.0-semver") | |
3104 | (inputs | |
3105 | `(("guile" ,guile-3.0))))) | |
3106 | ||
d67fa5c8 LC |
3107 | (define-public guile-hashing |
3108 | (package | |
3109 | (name "guile-hashing") | |
3110 | (version "1.2.0") | |
3111 | (home-page "https://github.com/weinholt/hashing") | |
3112 | (source (origin | |
3113 | (method git-fetch) | |
3114 | (uri (git-reference | |
3115 | (url home-page) | |
3116 | (commit (string-append "v" version)))) | |
3117 | (file-name (git-file-name name version)) | |
3118 | (sha256 | |
3119 | (base32 | |
3120 | "1362d3lmpv7slmv1zmr9wy8panq9sjr9787gc2hagd646mpsfpkl")))) | |
3121 | (build-system guile-build-system) | |
3122 | (arguments | |
3123 | `(#:modules ((guix build guile-build-system) | |
3124 | (guix build utils) | |
3125 | (srfi srfi-26) | |
3126 | (ice-9 ftw)) | |
3127 | #:implicit-inputs? #f ;needs nothing but Guile | |
3128 | #:phases (modify-phases %standard-phases | |
3129 | (add-before 'build 'move-sls-files | |
3130 | (lambda _ | |
3131 | ;; Move the source under hashing/ in order to match | |
3132 | ;; module names, and rename .sls files to .scm. | |
3133 | (define (target file) | |
3134 | (string-append "hashing/" file)) | |
3135 | ||
3136 | (define (sls->scm sls) | |
3137 | (string-append (string-drop-right sls 4) | |
3138 | ".scm")) | |
3139 | ||
3140 | (mkdir "hashing") | |
3141 | (for-each (lambda (file) | |
3142 | (rename-file file (sls->scm file))) | |
3143 | (find-files "." "\\.sls$")) | |
3144 | (for-each (lambda (file) | |
3145 | (rename-file file (target file))) | |
3146 | (scandir "." (cut string-suffix? ".scm" <>))) | |
3147 | (rename-file "private" "hashing/private") | |
3148 | #t))))) | |
3149 | (native-inputs | |
b6bee63b | 3150 | `(("guile" ,guile-3.0))) |
d67fa5c8 LC |
3151 | (synopsis "Cryprographic hash functions implemented in Scheme") |
3152 | (description | |
3153 | "The @code{(hashing @dots{})} modules implement cryptographic hash | |
3154 | functions in pure R6RS Scheme: CRC, HMAC, MD5, SHA-1, and SHA-2 (SHA-256, | |
3155 | SHA-512).") | |
3156 | (license license:expat))) | |
f918a8d9 | 3157 | |
b6bee63b | 3158 | (define-public guile2.2-hashing |
f918a8d9 LC |
3159 | (package |
3160 | (inherit guile-hashing) | |
b6bee63b | 3161 | (name "guile2.2-hashing") |
f918a8d9 LC |
3162 | (native-inputs |
3163 | `(("guile" ,guile-next))))) | |
ef2b1d2c | 3164 | |
b6bee63b LC |
3165 | (define-public guile3.0-hashing |
3166 | (deprecated-package "guile3.0-hashing" guile-hashing)) | |
3167 | ||
ef2b1d2c RW |
3168 | (define-public guile-webutils |
3169 | (let ((commit "8541904f761066dc9c27b1153e9a838be9a55299") | |
3170 | (revision "0")) | |
3171 | (package | |
3172 | (name "guile-webutils") | |
3173 | (version (git-version "0.1" revision commit)) | |
3174 | (source (origin | |
3175 | (method git-fetch) | |
3176 | (uri (git-reference | |
3177 | (url "https://notabug.org/cwebber/guile-webutils.git") | |
3178 | (commit commit))) | |
3179 | (file-name (git-file-name name version)) | |
3180 | (sha256 | |
3181 | (base32 | |
3182 | "1s9n3hbxd7lfpdi0x8wr0cfvlsf6g62ird9gbspxdrp5p05rbi64")))) | |
3183 | (build-system gnu-build-system) | |
3184 | (native-inputs | |
3185 | `(("autoconf" ,autoconf) | |
3186 | ("automake" ,automake) | |
3187 | ("pkg-config" ,pkg-config) | |
3188 | ("texinfo" ,texinfo))) | |
3189 | (inputs | |
3190 | `(("guile" ,guile-2.2))) | |
3191 | (propagated-inputs | |
3192 | `(("guile-irregex" ,guile-irregex) | |
3193 | ("guile-gcrypt" ,guile-gcrypt))) | |
3194 | (home-page "https://notabug.org/cwebber/guile-webutils") | |
3195 | (synopsis "Web application authoring utilities for Guile") | |
3196 | (description | |
3197 | "This package provides tooling to write web applications in Guile, such | |
3198 | as signed sessions, multipart message support, etc.") | |
3199 | (license license:gpl3+)))) | |
5479cef8 RW |
3200 | |
3201 | (define-public guile-lens | |
3202 | (let ((commit "14b15d07255f9d3f55d40a3b750d13c9ee3a154f") | |
3203 | (revision "0")) | |
3204 | (package | |
3205 | (name "guile-lens") | |
3206 | (version (git-version "0.1" revision commit)) | |
3207 | (source (origin | |
3208 | (method git-fetch) | |
3209 | (uri (git-reference | |
3210 | (url "https://gitlab.com/a-sassmannshausen/guile-lens.git") | |
3211 | (commit commit))) | |
3212 | (file-name (git-file-name name version)) | |
3213 | (sha256 | |
3214 | (base32 | |
3215 | "0w8jzqyla56yrgj7acsgd4nspyir6zgp3vgxid4xmwhg9wmf1ida")))) | |
3216 | (build-system gnu-build-system) | |
3217 | (arguments | |
3218 | '(#:phases | |
3219 | (modify-phases %standard-phases | |
3220 | (add-after 'unpack 'run-hall | |
3221 | (lambda _ | |
3222 | (setenv "HOME" "/tmp") ; for ~/.hall | |
3223 | (invoke "hall" "dist" "-x")))))) | |
3224 | (native-inputs | |
3225 | `(("autoconf" ,autoconf) | |
3226 | ("automake" ,automake) | |
3227 | ("guile" ,guile-2.2) | |
3228 | ("guile-hall" ,guile-hall) | |
3229 | ("pkg-config" ,pkg-config) | |
3230 | ("texinfo" ,texinfo))) | |
3231 | (home-page "https://gitlab.com/a-sassmannshausen/guile-lens.git") | |
3232 | (synopsis "Composable lenses for data structures in Guile") | |
3233 | (description | |
3234 | "Guile-Lens is a library implementing lenses in Guile. The library is | |
3235 | currently a re-implementation of the lentes library for Clojure. Lenses | |
3236 | provide composable procedures, which can be used to focus, apply functions | |
3237 | over, or update a value in arbitrary data structures.") | |
3238 | (license license:gpl3+)))) | |
69bb61f1 AI |
3239 | |
3240 | (define-public guile-xapian | |
d10e7a34 RW |
3241 | (package |
3242 | (name "guile-xapian") | |
3243 | (version "0.1.0") | |
3244 | (home-page "https://git.systemreboot.net/guile-xapian") | |
3245 | (source | |
3246 | (origin | |
3247 | (method git-fetch) | |
3248 | (uri (git-reference (url home-page) | |
3249 | (commit (string-append "v" version)))) | |
3250 | (file-name (git-file-name name version)) | |
3251 | (sha256 | |
3252 | (base32 | |
3253 | "16k61f1jn3g48jaf3730b9l0izr5j933jzyri73nmcnjd09gm35i")))) | |
3254 | (build-system gnu-build-system) | |
3255 | (arguments | |
3256 | '(#:make-flags '("GUILE_AUTO_COMPILE=0"))) ; to prevent guild warnings | |
3257 | (inputs | |
3258 | `(("guile" ,guile-2.2) | |
3259 | ("xapian" ,xapian) | |
3260 | ("zlib" ,zlib))) | |
3261 | (native-inputs | |
3262 | `(("autoconf" ,autoconf) | |
3263 | ("autoconf-archive" ,autoconf-archive) | |
3264 | ("automake" ,automake) | |
3265 | ("libtool" ,libtool) | |
3266 | ("pkg-config" ,pkg-config) | |
3267 | ("swig" ,swig))) | |
3268 | (synopsis "Guile bindings for Xapian") | |
3269 | (description "@code{guile-xapian} provides Guile bindings for Xapian, a | |
69bb61f1 AI |
3270 | search engine library. Xapian is a highly adaptable toolkit which allows |
3271 | developers to easily add advanced indexing and search facilities to their own | |
3272 | applications. It has built-in support for several families of weighting | |
3273 | models and also supports a rich set of boolean query operators.") | |
d10e7a34 | 3274 | (license license:gpl2+))) |
69bb61f1 AI |
3275 | |
3276 | (define-public guile3.0-xapian | |
3277 | (package | |
3278 | (inherit guile-xapian) | |
3279 | (name "guile3.0-xapian") | |
3280 | (inputs | |
3281 | `(("guile" ,guile-next) | |
3282 | ,@(alist-delete "guile" (package-inputs guile-xapian)))))) | |
be789065 AS |
3283 | |
3284 | (define-public guile-torrent | |
3285 | (package | |
3286 | (name "guile-torrent") | |
3287 | (version "0.1.3") | |
3288 | (source (origin (method git-fetch) | |
3289 | (uri (git-reference | |
3290 | (url | |
3291 | "https://github.com/o-nly/torrent.git") | |
3292 | (commit version))) | |
3293 | (file-name (git-file-name name version)) | |
3294 | (sha256 | |
3295 | (base32 | |
3296 | "1yiagi55ncq1x7s9n7salzywjm4l96y3n7y3s47a9anvz87mrmim")))) | |
3297 | (build-system gnu-build-system) | |
3298 | (native-inputs | |
3299 | `(("autoconf" ,autoconf) | |
3300 | ("automake" ,automake) | |
3301 | ("guile" ,guile-2.2) | |
3302 | ("texinfo" ,texinfo) | |
3303 | ("perl" ,perl) | |
3304 | ("pkg-config" ,pkg-config))) | |
3305 | (propagated-inputs | |
3306 | `(("guile-gcrypt" ,guile-gcrypt))) | |
3307 | (home-page "https://github.com/o-nly/torrent") | |
3308 | (synopsis "Torrent library for GNU Guile") | |
3309 | (description "This package provides facilities for working with | |
3310 | @code{.torrent} or metainfo files. Implements a bencode reader and writer | |
3311 | according to Bitorrent BEP003.") | |
3312 | (license license:gpl3+))) | |
3c0456c6 RW |
3313 | |
3314 | (define-public guile-irc | |
3315 | (let ((commit "375d3bde9c6ae7ccc9d7cc65817966b6fda8f26a") | |
3316 | (revision "0")) | |
3317 | (package | |
3318 | (name "guile-irc") | |
3319 | (version (git-version "0.3.0" revision commit)) | |
3320 | (source (origin | |
3321 | (method git-fetch) | |
3322 | (uri (git-reference | |
3323 | (url "https://github.com/rekado/guile-irc.git") | |
3324 | (commit commit))) | |
3325 | (file-name (git-file-name name version)) | |
3326 | (sha256 | |
3327 | (base32 | |
3328 | "113lcckcywrz9060w1c3fnvr8d7crdsjgsv4h47hgmr1slgadl4y")))) | |
3329 | (build-system gnu-build-system) | |
3330 | (arguments | |
3331 | `(#:configure-flags '("--enable-gnutls=yes"))) | |
3332 | (native-inputs | |
3333 | `(("autoconf" ,autoconf) | |
3334 | ("automake" ,automake) | |
3335 | ("texinfo" ,texinfo))) | |
3336 | (inputs | |
3337 | `(("gnutls" ,gnutls) | |
3338 | ("guile" ,guile-2.2))) | |
3339 | (home-page "https://github.com/rekado/guile-irc") | |
3340 | (synopsis "IRC library for Guile") | |
3341 | (description "This package provides a Guile library for @dfn{Internet | |
3342 | Relay Chat} (IRC).") | |
3343 | ;; Some file headers incorrectly say LGPLv2+. | |
3344 | (license license:lgpl2.1+)))) | |
8ffc20ef ES |
3345 | |
3346 | (define-public guile3.0-websocket | |
3347 | (let ((commit "c854e0f84a40d972cbd532bbb89c97ca0126a7cf")) | |
3348 | (package | |
3349 | (name "guile3.0-websocket") | |
3350 | (version "0.1") | |
3351 | (source | |
3352 | (origin | |
3353 | (method git-fetch) | |
3354 | (uri (git-reference | |
3355 | (url "git://dthompson.us/guile-websocket.git") | |
3356 | (commit commit))) | |
3357 | (file-name (git-file-name name version)) | |
3358 | (sha256 | |
3359 | (base32 | |
3360 | "1hymvsfrmq9qxr5cxnsgdz7y757yp1cpsgxmdp3f5wxxxpqgsmzx")))) | |
3361 | (build-system gnu-build-system) | |
3362 | (arguments | |
3363 | '(#:make-flags | |
3364 | '("GUILE_AUTO_COMPILE=0") | |
3365 | #:phases | |
3366 | (modify-phases %standard-phases | |
3367 | ;; The package was developed for Guile 2.0 and has this version | |
3368 | ;; hardcoded in the configure.ac and Makefile.am files. Substitute | |
3369 | ;; 3.0 instead so it can support Guile 3.0. | |
3370 | (add-after 'unpack 'update-guile-version | |
3371 | (lambda _ | |
3372 | (substitute* "configure.ac" | |
3373 | (("2.0.9") "3.0.0")) | |
3374 | (substitute* "Makefile.am" | |
cea91813 LC |
3375 | (("2.0") "3.0") |
3376 | ||
3377 | ;; Install .go files where they belong. | |
3378 | (("/ccache") "/site-ccache")) | |
8ffc20ef ES |
3379 | #t))))) |
3380 | (native-inputs | |
3381 | `(("autoconf" ,autoconf) | |
3382 | ("automake" ,automake))) | |
3383 | (inputs | |
3384 | `(("guile" ,guile-next))) | |
3385 | (synopsis "Websocket server/client for Guile") | |
3386 | (description "Guile-websocket provides an implementation of the | |
3387 | WebSocket protocol as defined by RFC 6455.") | |
3388 | (home-page "https://git.dthompson.us/guile-websocket.git") | |
3389 | (license license:lgpl3+)))) |