Commit | Line | Data |
---|---|---|
233e7676 | 1 | ;;; GNU Guix --- Functional package management for GNU |
189be331 | 2 | ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018 Ludovic Courtès <ludo@gnu.org> |
6cbee49d | 3 | ;;; Copyright © 2014, 2015, 2018 Mark H Weaver <mhw@netris.org> |
c5793e7e | 4 | ;;; Copyright © 2015, 2017 Christopher Allan Webber <cwebber@dustycloud.org> |
44a2bdf8 | 5 | ;;; Copyright © 2016 Alex Sassmannshausen <alex@pompo.co> |
71311e4e | 6 | ;;; Copyright © 2016, 2017 Ricardo Wurmus <rekado@elephly.net> |
76e6e663 | 7 | ;;; Copyright © 2016 Erik Edrosa <erik.edrosa@gmail.com> |
4176eb19 | 8 | ;;; Copyright © 2016 Eraim Flashner <efraim@flashner.co.il> |
5245399f | 9 | ;;; Copyright © 2016, 2017 Alex Kost <alezost@gmail.com> |
12235a12 | 10 | ;;; Copyright © 2016, 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@openmailbox.org> |
3b5783fc | 11 | ;;; Copyright © 2016 Amirouche <amirouche@hypermove.net> |
c5793e7e | 12 | ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org> |
aaf1bdc3 | 13 | ;;; Copyright © 2017 Andy Wingo <wingo@igalia.com> |
f252d6df | 14 | ;;; Copyright © 2017 David Thompson <davet@gnu.org> |
b3542d77 | 15 | ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com> |
d109b1e8 | 16 | ;;; Copyright © 2017 Theodoros Foradis <theodoros@foradis.org> |
4a78fd46 | 17 | ;;; Copyright © 2017 Nils Gillmann <ng0@n0.is> |
20897536 | 18 | ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr> |
d4660a54 | 19 | ;;; Copyright © 2018 Maxim Cournoyer <maxim.cournoyer@gmail.com> |
34e00c7b | 20 | ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net> |
f858e58f | 21 | ;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr> |
1722d680 | 22 | ;;; |
233e7676 | 23 | ;;; This file is part of GNU Guix. |
1722d680 | 24 | ;;; |
233e7676 | 25 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
1722d680 LC |
26 | ;;; under the terms of the GNU General Public License as published by |
27 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
28 | ;;; your option) any later version. | |
29 | ;;; | |
233e7676 | 30 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
1722d680 LC |
31 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
32 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
33 | ;;; GNU General Public License for more details. | |
34 | ;;; | |
35 | ;;; You should have received a copy of the GNU General Public License | |
233e7676 | 36 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
1722d680 | 37 | |
1ffa7090 | 38 | (define-module (gnu packages guile) |
71e0f217 | 39 | #:use-module ((guix licenses) #:prefix license:) |
59a43334 | 40 | #:use-module (gnu packages) |
472fc855 | 41 | #:use-module (gnu packages aspell) |
9c782445 | 42 | #:use-module (gnu packages bash) |
1ffa7090 | 43 | #:use-module (gnu packages bdw-gc) |
148585c2 | 44 | #:use-module (gnu packages compression) |
1ffa7090 LC |
45 | #:use-module (gnu packages gawk) |
46 | #:use-module (gnu packages gperf) | |
47 | #:use-module (gnu packages libffi) | |
48 | #:use-module (gnu packages autotools) | |
f906d30c | 49 | #:use-module (gnu packages flex) |
1ffa7090 | 50 | #:use-module (gnu packages libunistring) |
7119cca8 | 51 | #:use-module (gnu packages linux) |
1ffa7090 LC |
52 | #:use-module (gnu packages m4) |
53 | #:use-module (gnu packages multiprecision) | |
54 | #:use-module (gnu packages pkg-config) | |
55 | #:use-module (gnu packages readline) | |
ef02e1e9 | 56 | #:use-module (gnu packages ncurses) |
87d836b2 | 57 | #:use-module (gnu packages ed) |
ce0614dd | 58 | #:use-module (gnu packages base) |
f906d30c | 59 | #:use-module (gnu packages texinfo) |
01497dfe | 60 | #:use-module (gnu packages man) |
f906d30c | 61 | #:use-module (gnu packages gettext) |
b416aadf | 62 | #:use-module (gnu packages databases) |
9d373377 | 63 | #:use-module (gnu packages python) |
fa6a3bb7 | 64 | #:use-module (gnu packages tls) |
5649c8cd DT |
65 | #:use-module (gnu packages gl) |
66 | #:use-module (gnu packages sdl) | |
67 | #:use-module (gnu packages maths) | |
68 | #:use-module (gnu packages image) | |
bd233722 | 69 | #:use-module (gnu packages version-control) |
bd9af610 AK |
70 | #:use-module (gnu packages xdisorg) |
71 | #:use-module (gnu packages xorg) | |
f858e58f | 72 | #:use-module (gnu packages networking) |
1722d680 | 73 | #:use-module (guix packages) |
87f5d366 | 74 | #:use-module (guix download) |
6bc24063 | 75 | #:use-module (guix git-download) |
32795fcf | 76 | #:use-module (guix build-system gnu) |
977d8666 | 77 | #:use-module (guix build-system guile) |
6bc24063 | 78 | #:use-module (guix build-system trivial) |
32795fcf | 79 | #:use-module (guix utils) |
d4660a54 MC |
80 | #:use-module (ice-9 match) |
81 | #:use-module ((srfi srfi-1) #:prefix srfi-1:)) | |
1722d680 LC |
82 | |
83 | ;;; Commentary: | |
84 | ;;; | |
c44899a2 | 85 | ;;; GNU Guile, and modules and extensions. |
1722d680 LC |
86 | ;;; |
87 | ;;; Code: | |
88 | ||
c44899a2 LC |
89 | (define-public guile-1.8 |
90 | (package | |
91 | (name "guile") | |
92 | (version "1.8.8") | |
93 | (source (origin | |
87f5d366 | 94 | (method url-fetch) |
0db342a5 | 95 | (uri (string-append "mirror://gnu/guile/guile-" version |
c44899a2 LC |
96 | ".tar.gz")) |
97 | (sha256 | |
98 | (base32 | |
01eafd38 | 99 | "0l200a0v7h8bh0cwz6v7hc13ds39cgqsmfrks55b1rbj5vniyiy3")) |
fc1adab1 | 100 | (patches (search-patches "guile-1.8-cpp-4.5.patch")))) |
c44899a2 LC |
101 | (build-system gnu-build-system) |
102 | (arguments '(#:configure-flags '("--disable-error-on-warning") | |
c44899a2 LC |
103 | |
104 | ;; Insert a phase before `configure' to patch things up. | |
dc1d3cde KK |
105 | #:phases |
106 | (modify-phases %standard-phases | |
107 | (add-before 'configure 'patch-stuff | |
108 | (lambda* (#:key outputs #:allow-other-keys) | |
109 | ;; Add a call to `lt_dladdsearchdir' so that | |
110 | ;; `libguile-readline.so' & co. are in the | |
111 | ;; loader's search path. | |
112 | (substitute* "libguile/dynl.c" | |
113 | (("lt_dlinit.*$" match) | |
114 | (format #f | |
115 | " ~a~% lt_dladdsearchdir(\"~a/lib\");~%" | |
116 | match | |
117 | (assoc-ref outputs "out")))) | |
2f4fbe1c | 118 | |
dc1d3cde KK |
119 | ;; The usual /bin/sh... |
120 | (substitute* "ice-9/popen.scm" | |
121 | (("/bin/sh") (which "sh"))) | |
122 | #t))))) | |
01eafd38 | 123 | (inputs `(("gawk" ,gawk) |
c44899a2 LC |
124 | ("readline" ,readline))) |
125 | ||
126 | ;; Since `guile-1.8.pc' has "Libs: ... -lgmp -lltdl", these must be | |
127 | ;; propagated. | |
128 | (propagated-inputs `(("gmp" ,gmp) | |
be11b102 | 129 | ("libltdl" ,libltdl))) |
c44899a2 LC |
130 | |
131 | ;; When cross-compiling, a native version of Guile itself is needed. | |
132 | (self-native-input? #t) | |
133 | ||
9be8d7c8 LC |
134 | (native-search-paths |
135 | (list (search-path-specification | |
136 | (variable "GUILE_LOAD_PATH") | |
af070955 | 137 | (files '("share/guile/site"))))) |
9be8d7c8 | 138 | |
f50d2669 | 139 | (synopsis "Scheme implementation intended especially for extensions") |
c44899a2 | 140 | (description |
a22dc0c4 LC |
141 | "Guile is the GNU Ubiquitous Intelligent Language for Extensions, the |
142 | official extension language of the GNU system. It is an implementation of | |
143 | the Scheme language which can be easily embedded in other applications to | |
144 | provide a convenient means of extending the functionality of the application | |
145 | without requiring the source code to be rewritten.") | |
6fd52309 | 146 | (home-page "https://www.gnu.org/software/guile/") |
71e0f217 | 147 | (license license:lgpl2.0+))) |
c44899a2 LC |
148 | |
149 | (define-public guile-2.0 | |
150 | (package | |
151 | (name "guile") | |
b5efd14a | 152 | (version "2.0.14") |
c44899a2 | 153 | (source (origin |
87f5d366 | 154 | (method url-fetch) |
0db342a5 | 155 | (uri (string-append "mirror://gnu/guile/guile-" version |
c44899a2 LC |
156 | ".tar.xz")) |
157 | (sha256 | |
158 | (base32 | |
b5efd14a | 159 | "10lxc6l5alf3lzbs3ihnbfy6dfcrsyf8667wa57f26vf4mk2ai78")))) |
c44899a2 LC |
160 | (build-system gnu-build-system) |
161 | (native-inputs `(("pkgconfig" ,pkg-config))) | |
162 | (inputs `(("libffi" ,libffi) | |
88da729f | 163 | ,@(libiconv-if-needed) |
baf549df LC |
164 | |
165 | ;; We need Bash when cross-compiling because some of the scripts | |
166 | ;; in bin/ refer to it. Use 'bash-minimal' because we don't need | |
167 | ;; an interactive Bash with Readline and all. | |
168 | ,@(if (target-mingw?) '() `(("bash" ,bash-minimal))))) | |
c44899a2 LC |
169 | (propagated-inputs |
170 | `( ;; These ones aren't normally needed here, but since `libguile-2.0.la' | |
171 | ;; reads `-lltdl -lunistring', adding them here will add the needed | |
172 | ;; `-L' flags. As for why the `.la' file lacks the `-L' flags, see | |
173 | ;; <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/18903>. | |
174 | ("libunistring" ,libunistring) | |
be11b102 LC |
175 | |
176 | ;; Depend on LIBLTDL, not LIBTOOL. That way, we avoid some the extra | |
177 | ;; dependencies that LIBTOOL has, which is helpful during bootstrap. | |
178 | ("libltdl" ,libltdl) | |
c44899a2 LC |
179 | |
180 | ;; The headers and/or `guile-2.0.pc' refer to these packages, so they | |
181 | ;; must be propagated. | |
bda1bc6c | 182 | ("bdw-gc" ,libgc) |
c44899a2 LC |
183 | ("gmp" ,gmp))) |
184 | ||
185 | (self-native-input? #t) | |
186 | ||
9bf62d9b LC |
187 | (outputs '("out" "debug")) |
188 | ||
8ffaa93b | 189 | (arguments |
20897536 TGR |
190 | `(#:configure-flags '("--disable-static") ; saves 3 MiB |
191 | #:phases | |
192 | (modify-phases %standard-phases | |
193 | (add-before 'configure 'pre-configure | |
194 | (lambda* (#:key inputs #:allow-other-keys) | |
195 | ;; Tell (ice-9 popen) the file name of Bash. | |
196 | (let ((bash (assoc-ref inputs "bash"))) | |
197 | (substitute* "module/ice-9/popen.scm" | |
198 | ;; If bash is #f allow fallback for user to provide | |
199 | ;; "bash" in PATH. This happens when cross-building to | |
200 | ;; MinGW for which we do not have Bash yet. | |
201 | (("/bin/sh") | |
202 | ,@(if (target-mingw?) | |
203 | '((if bash | |
204 | (string-append bash "/bin/bash") | |
205 | "bash")) | |
206 | '((string-append bash "/bin/bash"))))) | |
207 | #t)))))) | |
8ffaa93b | 208 | |
9be8d7c8 LC |
209 | (native-search-paths |
210 | (list (search-path-specification | |
211 | (variable "GUILE_LOAD_PATH") | |
af070955 | 212 | (files '("share/guile/site/2.0"))) |
9be8d7c8 LC |
213 | (search-path-specification |
214 | (variable "GUILE_LOAD_COMPILED_PATH") | |
ca408580 | 215 | (files '("lib/guile/2.0/site-ccache" |
05f1e956 | 216 | "share/guile/site/2.0"))))) |
9be8d7c8 | 217 | |
f50d2669 | 218 | (synopsis "Scheme implementation intended especially for extensions") |
c44899a2 | 219 | (description |
a22dc0c4 LC |
220 | "Guile is the GNU Ubiquitous Intelligent Language for Extensions, the |
221 | official extension language of the GNU system. It is an implementation of | |
222 | the Scheme language which can be easily embedded in other applications to | |
223 | provide a convenient means of extending the functionality of the application | |
224 | without requiring the source code to be rewritten.") | |
6fd52309 | 225 | (home-page "https://www.gnu.org/software/guile/") |
71e0f217 | 226 | (license license:lgpl3+))) |
c44899a2 | 227 | |
f6396d86 | 228 | (define-public guile-2.2 |
f906d30c | 229 | (package (inherit guile-2.0) |
f6396d86 | 230 | (name "guile") |
2664e0f6 | 231 | (version "2.2.3") |
4eae7980 LC |
232 | (source (origin |
233 | (method url-fetch) | |
34d624ce LC |
234 | |
235 | ;; Note: we are limited to one of the compression formats | |
236 | ;; supported by the bootstrap binaries, so no lzip here. | |
80a72572 | 237 | (uri (string-append "mirror://gnu/guile/guile-" version |
34d624ce | 238 | ".tar.xz")) |
4eae7980 LC |
239 | (sha256 |
240 | (base32 | |
2664e0f6 | 241 | "11j01agvnci2cx32wwpqs9078856yxmvs15gcsz7ganpkj2ahlw3")) |
d9f0788a LC |
242 | (modules '((guix build utils))) |
243 | ||
244 | ;; Remove the pre-built object files. Instead, build everything | |
245 | ;; from source, at the expense of significantly longer build | |
246 | ;; times (almost 3 hours on a 4-core Intel i5). | |
6cbee49d MW |
247 | (snippet '(begin |
248 | (for-each delete-file | |
249 | (find-files "prebuilt" "\\.go$")) | |
250 | #t)))) | |
4fbd0f4f | 251 | (properties '((timeout . 72000) ;20 hours |
16b0f205 | 252 | (max-silent-time . 36000))) ;10 hours (needed on ARM |
1577a658 | 253 | ; when heavily loaded) |
dd90ed89 DT |
254 | (native-search-paths |
255 | (list (search-path-specification | |
256 | (variable "GUILE_LOAD_PATH") | |
257 | (files '("share/guile/site/2.2"))) | |
258 | (search-path-specification | |
259 | (variable "GUILE_LOAD_COMPILED_PATH") | |
31769b9f | 260 | (files '("lib/guile/2.2/site-ccache" |
33c3a214 LC |
261 | "share/guile/site/2.2"))))) |
262 | ||
263 | (arguments | |
264 | (if (%current-target-system) | |
265 | (substitute-keyword-arguments (package-arguments guile-2.0) | |
266 | ((#:phases phases '%standard-phases) | |
267 | `(modify-phases ,phases | |
268 | (add-after 'unpack 'sacrifice-elisp-support | |
269 | (lambda _ | |
270 | ;; Cross-compiling language/elisp/boot.el fails, so | |
271 | ;; sacrifice it. See | |
272 | ;; <https://git.savannah.gnu.org/cgit/guile.git/commit/?h=stable-2.2&id=988aa29238fca862c7e2cb55f15762a69b4c16ce> | |
273 | ;; for the upstream fix. | |
274 | (substitute* "module/Makefile.in" | |
275 | (("language/elisp/boot\\.el") | |
276 | "\n")) | |
277 | #t))))) | |
278 | (package-arguments guile-2.0))))) | |
4eae7980 | 279 | |
34d624ce LC |
280 | (define-public guile-2.2/fixed |
281 | ;; A package of Guile 2.2 that's rarely changed. It is the one used | |
282 | ;; in the `base' module, and thus changing it entails a full rebuild. | |
283 | (package | |
284 | (inherit guile-2.2) | |
a9308efe | 285 | (properties '((hidden? . #t) ;people should install 'guile-2.2' |
5a5b3632 MW |
286 | (timeout . 72000) ;20 hours |
287 | (max-silent-time . 36000))))) ;10 hours (needed on ARM | |
288 | ; when heavily loaded) | |
34d624ce | 289 | |
3aab8851 LC |
290 | (define-public guile-2.2.2 |
291 | ;; Keep it so that, when 'guix' runs on 2.2.2, 'guix pull' compiles objects | |
292 | ;; with 2.2.2, thereby avoiding the ABI incompatibility issues described in | |
293 | ;; <https://bugs.gnu.org/29570>. | |
294 | (package | |
295 | (inherit guile-2.2) | |
296 | (version "2.2.2") | |
297 | (source (origin | |
298 | (inherit (package-source guile-2.2)) | |
299 | (uri (string-append "mirror://gnu/guile/guile-" version | |
300 | ".tar.xz")) | |
301 | (sha256 | |
302 | (base32 | |
303 | "1azm25zcmxif0skxfrp11d2wc89nrzpjaann9yxdw6pvjxhs948w")))))) | |
304 | ||
96b2b0dd LC |
305 | (define-public guile-2.2.4 |
306 | ;; This version contains important bug fixes, in particular wrt. to crashes | |
307 | ;; of multi-threaded code as used by 'guix pull' and grafting. | |
308 | (package | |
309 | (inherit guile-2.2) | |
310 | (version "2.2.4") | |
311 | (source (origin | |
312 | (inherit (package-source guile-2.2)) | |
313 | (uri (string-append "mirror://gnu/guile/guile-" version | |
314 | ".tar.xz")) | |
315 | (sha256 | |
316 | (base32 | |
317 | "07p3g0v2ba2vlfbfidqzlgbhnzdx46wh2rgc5gszq1mjyx5bks6r")))))) | |
318 | ||
5cd074ea | 319 | (define-public guile-next |
35f90377 | 320 | ;; This is the upcoming Guile 3.0, with JIT support. |
55b616fd DT |
321 | (let ((commit "6f3357b0df64c4be17e72079864c09a542f1c779") |
322 | (revision "1")) | |
35f90377 LC |
323 | (package |
324 | (inherit guile-2.2) | |
325 | (name "guile-next") | |
121f32a1 | 326 | (version "2.9.1") |
35f90377 | 327 | (source (origin |
121f32a1 LC |
328 | (inherit (package-source guile-2.2)) |
329 | (uri (string-append "https://alpha.gnu.org/gnu/guile/guile-" | |
330 | version ".tar.xz")) | |
35f90377 LC |
331 | (sha256 |
332 | (base32 | |
121f32a1 | 333 | "0iba93yqn6mvgid0rfsrg4amym36pg9m8cqdplxsy222blrj9gh1")))) |
e14b3067 DT |
334 | (native-search-paths |
335 | (list (search-path-specification | |
336 | (variable "GUILE_LOAD_PATH") | |
337 | (files '("share/guile/site/3.0"))) | |
338 | (search-path-specification | |
339 | (variable "GUILE_LOAD_COMPILED_PATH") | |
340 | (files '("lib/guile/3.0/site-ccache" | |
121f32a1 LC |
341 | "share/guile/site/3.0"))))) |
342 | (properties '((ftp-server . "alpha.gnu.org") | |
343 | (upstream-name . "guile")))))) | |
5cd074ea | 344 | |
2ba2c98d LC |
345 | (define (make-guile-readline guile) |
346 | (package | |
347 | (name "guile-readline") | |
348 | (version (package-version guile)) | |
349 | (source (package-source guile)) | |
350 | (build-system gnu-build-system) | |
351 | (arguments | |
352 | '(#:configure-flags '("--disable-silent-rules") | |
353 | #:phases (modify-phases %standard-phases | |
354 | (add-before 'build 'chdir | |
355 | (lambda* (#:key outputs #:allow-other-keys) | |
356 | (invoke "make" "-C" "libguile" "scmconfig.h") | |
357 | (invoke "make" "-C" "lib") | |
358 | (chdir "guile-readline") | |
359 | ||
360 | (substitute* "Makefile" | |
361 | (("../libguile/libguile-[[:graph:]]+\\.la") | |
362 | ;; Remove dependency on libguile-X.Y.la. | |
363 | "") | |
364 | (("^READLINE_LIBS = (.*)$" _ libs) | |
365 | ;; Link against the provided libguile. | |
366 | (string-append "READLINE_LIBS = " | |
367 | "-lguile-$(GUILE_EFFECTIVE_VERSION) " | |
368 | libs "\n")) | |
369 | (("\\$\\(top_builddir\\)/meta/build-env") | |
370 | ;; Use the provided Guile, not the one from | |
371 | ;; $(builddir). | |
372 | "") | |
373 | ||
374 | ;; Install modules to the 'site' directories. | |
375 | (("^moddir = .*$") | |
376 | "moddir = $(pkgdatadir)/site/$(GUILE_EFFECTIVE_VERSION)\n") | |
377 | (("^ccachedir = .*$") | |
378 | "ccachedir = $(pkglibdir)/$(GUILE_EFFECTIVE_VERSION)/site-ccache\n")) | |
379 | ||
380 | ;; Load 'guile-readline.so' from the right place. | |
381 | (substitute* "ice-9/readline.scm" | |
382 | (("load-extension \"guile-readline\"") | |
383 | (format #f "load-extension \ | |
384 | (string-append ~s \"/lib/guile/\" (effective-version) \"/extensions/guile-readline\")" | |
385 | (assoc-ref outputs "out")))) | |
386 | #t))))) | |
387 | (home-page (package-home-page guile)) | |
388 | (native-inputs (package-native-inputs guile)) | |
389 | (inputs | |
390 | `(,@(package-inputs guile) ;to placate 'configure' | |
391 | ,@(package-propagated-inputs guile) | |
392 | ("guile" ,guile) | |
393 | ("readline" ,readline))) | |
394 | (synopsis "Line editing support for GNU Guile") | |
395 | (description | |
396 | "This module provides line editing support via the Readline library for | |
397 | GNU@tie{}Guile. Use the @code{(ice-9 readline)} module and call its | |
398 | @code{activate-readline} procedure to enable it.") | |
399 | (license license:gpl3+))) | |
400 | ||
401 | (define-public guile-readline | |
402 | (make-guile-readline guile-2.2)) | |
403 | ||
8f4acad7 LC |
404 | (define (guile-variant-package-name prefix) |
405 | (lambda (name) | |
406 | "Return NAME with PREFIX instead of \"guile-\", when applicable." | |
407 | (if (string-prefix? "guile-" name) | |
408 | (string-append prefix "-" | |
409 | (string-drop name | |
410 | (string-length "guile-"))) | |
411 | name))) | |
947a5d47 LC |
412 | |
413 | (define package-for-guile-2.2 | |
414 | ;; A procedure that rewrites the dependency tree of the given package to use | |
f6396d86 LC |
415 | ;; GUILE-2.2 instead of GUILE-2.0. |
416 | (package-input-rewriting `((,guile-2.0 . ,guile-2.2)) | |
8f4acad7 LC |
417 | (guile-variant-package-name "guile2.2"))) |
418 | ||
419 | (define package-for-guile-2.0 | |
420 | ;; Likewise, but the other way around. :-) | |
421 | (package-input-rewriting `((,guile-2.2 . ,guile-2.0)) | |
422 | (guile-variant-package-name "guile2.0"))) | |
947a5d47 | 423 | |
4eae7980 | 424 | (define-public guile-for-guile-emacs |
f6396d86 | 425 | (package (inherit guile-2.2) |
4eae7980 LC |
426 | (name "guile-for-guile-emacs") |
427 | (version "20150510.d8d9a8d") | |
f906d30c CAW |
428 | (source (origin |
429 | (method git-fetch) | |
430 | (uri (git-reference | |
4eae7980 LC |
431 | (url "git://git.hcoop.net/git/bpt/guile.git") |
432 | (commit "d8d9a8da05ec876acba81a559798eb5eeceb5a17"))) | |
51988e3a | 433 | (file-name (string-append name "-" version "-checkout")) |
f906d30c CAW |
434 | (sha256 |
435 | (base32 | |
4eae7980 | 436 | "00sprsshy16y8pxjy126hr2adqcvvzzz96hjyjwgg8swva1qh6b0")))) |
f906d30c CAW |
437 | (arguments |
438 | (substitute-keyword-arguments `(;; Tests aren't passing for now. | |
439 | ;; Obviously we should re-enable this! | |
440 | #:tests? #f | |
f6396d86 | 441 | ,@(package-arguments guile-2.2)) |
f906d30c CAW |
442 | ((#:phases phases) |
443 | `(modify-phases ,phases | |
444 | (add-after 'unpack 'autogen | |
445 | (lambda _ | |
446 | (zero? (system* "sh" "autogen.sh")))) | |
447 | (add-before 'autogen 'patch-/bin/sh | |
448 | (lambda _ | |
449 | (substitute* "build-aux/git-version-gen" | |
450 | (("#!/bin/sh") (string-append "#!" (which "sh")))) | |
451 | #t)))))) | |
452 | (native-inputs | |
453 | `(("autoconf" ,autoconf) | |
454 | ("automake" ,automake) | |
455 | ("libtool" ,libtool) | |
456 | ("flex" ,flex) | |
457 | ("texinfo" ,texinfo) | |
b94a6ca0 | 458 | ("gettext" ,gettext-minimal) |
f6396d86 | 459 | ,@(package-native-inputs guile-2.2))) |
daeb61f7 RW |
460 | ;; Same as in guile-2.0 |
461 | (native-search-paths | |
462 | (list (search-path-specification | |
463 | (variable "GUILE_LOAD_PATH") | |
464 | (files '("share/guile/site/2.0"))) | |
465 | (search-path-specification | |
466 | (variable "GUILE_LOAD_COMPILED_PATH") | |
31769b9f | 467 | (files '("lib/guile/2.0/site-ccache" |
daeb61f7 | 468 | "share/guile/site/2.0"))))))) |
be3feafe | 469 | |
71311e4e RW |
470 | ;; There has not been any release yet. |
471 | (define-public guildhall | |
472 | (let ((commit "2fe2cc539f4b811bbcd69e58738db03eb5a2b778") | |
473 | (revision "1")) | |
474 | (package | |
475 | (name "guildhall") | |
476 | (version (string-append "0-" revision "." (string-take commit 9))) | |
477 | (source (origin | |
478 | (method git-fetch) | |
479 | (uri (git-reference | |
480 | (url "https://github.com/ijp/guildhall.git") | |
481 | (commit commit))) | |
482 | (file-name (string-append name "-" version "-checkout")) | |
483 | (sha256 | |
484 | (base32 | |
485 | "115bym7bg66h3gs399yb2vkzc2ygriaqsn4zbrg8f054mgy8wzn1")))) | |
486 | (build-system gnu-build-system) | |
487 | (arguments | |
488 | `(#:phases | |
489 | (modify-phases %standard-phases | |
490 | ;; Tests fail without this fix because they try to load the bash | |
491 | ;; executable as a Scheme file. See bug report at | |
492 | ;; https://github.com/ijp/guildhall/issues/22 | |
493 | (add-after 'unpack 'fix-bug-22 | |
494 | (lambda _ | |
495 | (substitute* "Makefile.am" | |
496 | (("TESTS_ENVIRONMENT=.*") | |
497 | "AM_TESTS_ENVIRONMENT=srcdir=$(abs_top_srcdir)/tests/ | |
498 | TEST_EXTENSIONS = .scm | |
499 | SCM_LOG_COMPILER= $(top_builddir)/env $(GUILE) | |
500 | AM_SCM_LOG_FLAGS = --no-auto-compile -s") | |
501 | ;; FIXME: one of the database tests fails for unknown | |
502 | ;; reasons. It does not fail when run outside of Guix. | |
503 | (("tests/database.scm") "")) | |
504 | #t)) | |
d10092b8 | 505 | (add-after 'fix-bug-22 'autogen |
71311e4e RW |
506 | (lambda _ |
507 | (zero? (system* "sh" "autogen.sh"))))))) | |
508 | (inputs | |
509 | `(("guile" ,guile-2.0))) | |
510 | (native-inputs | |
511 | `(("zip" ,zip) ; for tests | |
512 | ("autoconf" ,autoconf) | |
513 | ("automake" ,automake) | |
514 | ("texinfo" ,texinfo))) | |
515 | (synopsis "Package manager for Guile") | |
516 | (description | |
517 | "Guildhall is a package manager written for Guile Scheme. A guild is | |
518 | an association of independent craftspeople. A guildhall is where they meet. | |
519 | This Guildhall aims to make a virtual space for Guile wizards and journeyfolk | |
520 | to share code. | |
521 | ||
522 | On a practical level, Guildhall lets you share Scheme modules and programs | |
523 | over the internet, and install code that has been shared by others. Guildhall | |
524 | can handle dependencies, so when a program requires several libraries, and | |
525 | each of those has further dependencies, all of the prerequisites for the | |
526 | program can be installed in one go.") | |
527 | (home-page "https://github.com/ijp/guildhall") | |
528 | (license license:gpl3+)))) | |
529 | ||
c44899a2 LC |
530 | \f |
531 | ;;; | |
532 | ;;; Extensions. | |
533 | ;;; | |
534 | ||
7119cca8 | 535 | (define-public artanis |
12235a12 AFN |
536 | (let ((release "0.2.1") |
537 | (revision 3)) | |
538 | (package | |
539 | (name "artanis") | |
540 | (version (if (zero? revision) | |
541 | release | |
542 | (string-append release "-" | |
543 | (number->string revision)))) | |
544 | (source (origin | |
545 | (method url-fetch) | |
546 | (uri (string-append "mirror://gnu/artanis/artanis-" | |
547 | release ".tar.gz")) | |
548 | (file-name (string-append name "-" version ".tar.gz")) | |
549 | (sha256 | |
550 | (base32 | |
551 | "041ajcg2pz918kd9iqcj4inpzddc3impvz3r2nhlpbv8zrz011hn")) | |
552 | (modules '((guix build utils))) | |
553 | (snippet | |
554 | '(begin | |
555 | (delete-file-recursively "artanis/third-party/json.scm") | |
556 | (delete-file-recursively "artanis/third-party/json") | |
557 | (substitute* '("artanis/artanis.scm" | |
558 | "artanis/oht.scm") | |
559 | (("(#:use-module \\()artanis third-party (json\\))" _ | |
560 | use-module json) | |
561 | (string-append use-module json))) | |
562 | (substitute* "artanis/oht.scm" | |
563 | (("([[:punct:][:space:]]+)(->json-string)([[:punct:][:space:]]+)" | |
564 | _ pre json-string post) | |
565 | (string-append pre | |
566 | "scm" json-string | |
567 | post))) | |
568 | (substitute* "artanis/artanis.scm" | |
569 | (("[[:punct:][:space:]]+->json-string[[:punct:][:space:]]+") | |
6cbee49d MW |
570 | "")) |
571 | #t)))) | |
12235a12 AFN |
572 | (build-system gnu-build-system) |
573 | ;; TODO: Add guile-dbi and guile-dbd optional dependencies. | |
574 | (inputs `(("guile" ,guile-2.2) | |
575 | ("guile-json" ,guile-json))) | |
576 | (native-inputs `(("bash" ,bash) ;for the `source' builtin | |
577 | ("pkgconfig" ,pkg-config) | |
578 | ("util-linux" ,util-linux))) ;for the `script' command | |
579 | (arguments | |
580 | '(#:make-flags | |
581 | ;; TODO: The documentation must be built with the `docs' target. | |
582 | (let* ((out (assoc-ref %outputs "out")) | |
583 | (scm (string-append out "/share/guile/site/2.2")) | |
584 | (go (string-append out "/lib/guile/2.2/site-ccache"))) | |
585 | ;; Don't use (%site-dir) for site paths. | |
586 | (list (string-append "MOD_PATH=" scm) | |
587 | (string-append "MOD_COMPILED_PATH=" go))) | |
588 | #:test-target "test" | |
589 | #:phases | |
590 | (modify-phases %standard-phases | |
591 | (add-before 'install 'substitute-root-dir | |
592 | (lambda* (#:key outputs #:allow-other-keys) | |
593 | (let ((out (assoc-ref outputs "out"))) | |
594 | (substitute* "Makefile" ;ignore the execution of bash.bashrc | |
595 | ((" /etc/bash.bashrc") " /dev/null")) | |
596 | (substitute* "Makefile" ;set the root of config files to OUT | |
597 | ((" /etc") (string-append " " out "/etc"))) | |
598 | (mkdir-p (string-append out "/bin")) ;for the `art' executable | |
599 | #t))) | |
600 | (add-after 'install 'wrap-art | |
601 | (lambda* (#:key outputs #:allow-other-keys) | |
602 | (let* ((out (assoc-ref outputs "out")) | |
603 | (bin (string-append out "/bin")) | |
604 | (scm (string-append out "/share/guile/site/2.2")) | |
605 | (go (string-append out "/lib/guile/2.2/site-ccache"))) | |
606 | (wrap-program (string-append bin "/art") | |
607 | `("GUILE_LOAD_PATH" ":" prefix (,scm)) | |
608 | `("GUILE_LOAD_COMPILED_PATH" ":" prefix (,go))) | |
609 | #t)))))) | |
610 | (synopsis "Web application framework written in Guile") | |
611 | (description "GNU Artanis is a web application framework written in Guile | |
7119cca8 ML |
612 | Scheme. A web application framework (WAF) is a software framework that is |
613 | designed to support the development of dynamic websites, web applications, web | |
614 | services and web resources. The framework aims to alleviate the overhead | |
615 | associated with common activities performed in web development. Artanis | |
616 | provides several tools for web development: database access, templating | |
617 | frameworks, session management, URL-remapping for RESTful, page caching, and | |
618 | more.") | |
12235a12 AFN |
619 | (home-page "https://www.gnu.org/software/artanis/") |
620 | (license (list license:gpl3+ license:lgpl3+))))) ;dual license | |
7119cca8 | 621 | |
d6d9f1f7 | 622 | (define-public guile-reader |
1722d680 | 623 | (package |
d6d9f1f7 | 624 | (name "guile-reader") |
77aa0887 | 625 | (version "0.6.2") |
d6d9f1f7 LC |
626 | (source (origin |
627 | (method url-fetch) | |
628 | (uri (string-append "mirror://savannah/guile-reader/guile-reader-" | |
629 | version ".tar.gz")) | |
630 | (sha256 | |
631 | (base32 | |
77aa0887 | 632 | "0592s2s8ampqmqwilc4fvcild6rb9gy79di6vxv5kcdmv23abkgx")))) |
d6d9f1f7 LC |
633 | (build-system gnu-build-system) |
634 | (native-inputs `(("pkgconfig" ,pkg-config) | |
2fa077f3 | 635 | ("gperf" ,gperf-3.0))) |
bdf1022d | 636 | (inputs `(("guile" ,guile-2.2))) |
d6d9f1f7 LC |
637 | (synopsis "Framework for building readers for GNU Guile") |
638 | (description | |
639 | "Guile-Reader is a simple framework for building readers for GNU Guile. | |
1722d680 LC |
640 | |
641 | The idea is to make it easy to build procedures that extend Guile’s read | |
35b9e423 | 642 | procedure. Readers supporting various syntax variants can easily be written, |
1722d680 | 643 | possibly by re-using existing “token readers” of a standard Scheme |
35b9e423 | 644 | readers. For example, it is used to implement Skribilo’s R5RS-derived |
1722d680 LC |
645 | document syntax. |
646 | ||
647 | Guile-Reader’s approach is similar to Common Lisp’s “read table”, but | |
648 | hopefully more powerful and flexible (for instance, one may instantiate as | |
649 | many readers as needed).") | |
340978d7 | 650 | (home-page "https://www.nongnu.org/guile-reader/") |
71e0f217 | 651 | (license license:gpl3+))) |
1722d680 | 652 | |
bdf1022d LC |
653 | (define-public guile2.0-reader |
654 | (package-for-guile-2.0 guile-reader)) | |
517fce63 | 655 | (define-public guile2.2-reader |
bdf1022d | 656 | (deprecated-package "guile2.2-reader" guile-reader)) |
517fce63 | 657 | |
ef02e1e9 LC |
658 | (define-public guile-ncurses |
659 | (package | |
660 | (name "guile-ncurses") | |
958d357a | 661 | (version "2.2") |
ef02e1e9 LC |
662 | (source (origin |
663 | (method url-fetch) | |
664 | (uri (string-append "mirror://gnu/guile-ncurses/guile-ncurses-" | |
665 | version ".tar.gz")) | |
666 | (sha256 | |
667 | (base32 | |
958d357a | 668 | "1wvggbr4xv8idh1hzd8caj4xfp4pln78a7w1wqzd4zgzwmnzxr2f")))) |
ef02e1e9 LC |
669 | (build-system gnu-build-system) |
670 | (inputs `(("ncurses" ,ncurses) | |
81eaa3f8 | 671 | ("guile" ,guile-2.2))) |
0881b616 | 672 | (native-inputs `(("pkg-config" ,pkg-config))) |
ef02e1e9 | 673 | (arguments |
2c6b7c7d | 674 | '(#:configure-flags (list "--with-ncursesw" ; Unicode support |
0881b616 | 675 | "--with-gnu-filesystem-hierarchy") |
fa37f21b EF |
676 | #:phases |
677 | (modify-phases %standard-phases | |
8c4e99cc | 678 | (add-before 'build 'fix-libguile-ncurses-file-name |
fa37f21b | 679 | (lambda* (#:key outputs #:allow-other-keys) |
8c4e99cc JD |
680 | (and (zero? (system* "make" "install" |
681 | "-C" "src/ncurses" | |
682 | "-j" (number->string | |
683 | (parallel-job-count)))) | |
684 | (let* ((out (assoc-ref outputs "out")) | |
685 | (dir "src/ncurses") | |
686 | (files (find-files dir ".scm"))) | |
687 | (substitute* files | |
688 | (("\"libguile-ncurses\"") | |
81eaa3f8 | 689 | (format #f "\"~a/lib/guile/2.2/libguile-ncurses\"" |
8c4e99cc JD |
690 | out))) |
691 | #t))))))) | |
d81850d4 | 692 | (home-page "https://www.gnu.org/software/guile-ncurses/") |
f50d2669 | 693 | (synopsis "Guile bindings to ncurses") |
ef02e1e9 | 694 | (description |
12bcf94a | 695 | "guile-ncurses provides Guile language bindings for the ncurses |
79c311b8 | 696 | library.") |
71e0f217 | 697 | (license license:lgpl3+))) |
ef02e1e9 | 698 | |
4d02e9ff DM |
699 | (define-public guile-ncurses/gpm |
700 | (package | |
701 | (inherit guile-ncurses) | |
702 | (name "guile-ncurses-with-gpm") | |
703 | (inputs `(("ncurses" ,ncurses/gpm) | |
704 | ("guile" ,guile-2.2))))) | |
705 | ||
87d836b2 LC |
706 | (define-public mcron |
707 | (package | |
708 | (name "mcron") | |
67a51b67 | 709 | (version "1.1.1") |
87d836b2 | 710 | (source (origin |
cfbf6de1 LC |
711 | (method url-fetch) |
712 | (uri (string-append "mirror://gnu/mcron/mcron-" | |
713 | version ".tar.gz")) | |
714 | (sha256 | |
715 | (base32 | |
67a51b67 | 716 | "1i9mcp6r6my61zfiydsm3n6my41mwvl7dfala4q29qx0zn1ynlm4")))) |
87d836b2 | 717 | (build-system gnu-build-system) |
cfbf6de1 LC |
718 | (arguments |
719 | '(#:phases (modify-phases %standard-phases | |
720 | (add-before 'check 'set-timezone | |
721 | (lambda* (#:key inputs #:allow-other-keys) | |
67a51b67 LC |
722 | ;; 'tests/job-specifier.scm' expects to be running in |
723 | ;; UTC-2 or something. | |
724 | ;; FIXME: This issue is being investigated upstream, for | |
725 | ;; now we'll just skip the tests (see below): | |
726 | ;; <https://lists.gnu.org/archive/html/bug-mcron/2018-04/msg00005.html>. | |
cfbf6de1 LC |
727 | (let ((tzdata (assoc-ref inputs "tzdata"))) |
728 | (setenv "TZDIR" | |
729 | (string-append tzdata | |
730 | "/share/zoneinfo")) | |
67a51b67 | 731 | (setenv "TZ" "UTC-2") |
cfbf6de1 | 732 | #t))) |
67a51b67 | 733 | (add-before 'check 'adjust-tests |
cfbf6de1 | 734 | (lambda _ |
67a51b67 LC |
735 | (substitute* "tests/job-specifier.scm" |
736 | ;; (getpw) fails with "entry not found" in the build | |
737 | ;; environment, so pass an argument. | |
738 | (("\\(getpw\\)") | |
739 | "(getpwnam (getuid))") | |
740 | ;; The build environment lacks an entry for root in | |
741 | ;; /etc/passwd. | |
742 | (("\\(getpw 0\\)") | |
743 | "(getpwnam \"nobody\")") | |
744 | ||
745 | ;; FIXME: Skip the 4 faulty tests (see above). | |
746 | (("\\(test-equal \"next-year\"" all) | |
747 | (string-append "(test-skip 4)\n" all))) | |
748 | #t))))) | |
cfbf6de1 LC |
749 | (native-inputs `(("pkg-config" ,pkg-config) |
750 | ("tzdata" ,tzdata-for-tests))) | |
751 | (inputs `(("ed" ,ed) ("which" ,which) ("guile" ,guile-2.2))) | |
6fd52309 | 752 | (home-page "https://www.gnu.org/software/mcron/") |
f50d2669 | 753 | (synopsis "Run jobs at scheduled times") |
87d836b2 | 754 | (description |
79c311b8 | 755 | "GNU Mcron is a complete replacement for Vixie cron. It is used to run |
a22dc0c4 | 756 | tasks on a schedule, such as every hour or every Monday. Mcron is written in |
79c311b8 LC |
757 | Guile, so its configuration can be written in Scheme; the original cron |
758 | format is also supported.") | |
71e0f217 | 759 | (license license:gpl3+))) |
87d836b2 | 760 | |
01497dfe | 761 | (define-public mcron2 |
cfbf6de1 LC |
762 | ;; This was mthl's mcron development branch, and it became mcron 1.1. |
763 | (deprecated-package "mcron2" mcron)) | |
01497dfe | 764 | |
dfee30c7 AS |
765 | (define-public guile-hall |
766 | (package | |
767 | (name "guile-hall") | |
768 | (version "0.1.1") | |
769 | (source | |
770 | (origin | |
771 | (method git-fetch) | |
772 | (uri (git-reference | |
773 | (url "https://gitlab.com/a-sassmannshausen/guile-hall") | |
774 | (commit "7d1094a12fe917209ce5b76c681cc8c862d4c65b"))) | |
775 | (file-name "guile-hall-0.1.1-checkout") | |
776 | (sha256 | |
777 | (base32 | |
778 | "03kb09cjca98hlbx9mj12mqinzsnnvp6ci6i975n88pjhaxigyp1")))) | |
779 | (build-system gnu-build-system) | |
780 | (arguments | |
781 | `(#:modules | |
782 | ((ice-9 match) | |
783 | (ice-9 ftw) | |
784 | ,@%gnu-build-system-modules) | |
785 | #:phases | |
786 | (modify-phases | |
787 | %standard-phases | |
788 | (add-after | |
789 | 'install | |
790 | 'hall-wrap-binaries | |
791 | (lambda* (#:key outputs #:allow-other-keys) | |
792 | (let* ((out (assoc-ref outputs "out")) | |
793 | (bin (string-append out "/bin/")) | |
794 | (site (string-append out "/share/guile/site"))) | |
795 | (match (scandir site) | |
796 | (("." ".." version) | |
797 | (let ((modules (string-append site "/" version)) | |
798 | (compiled-modules | |
799 | (string-append | |
800 | out | |
801 | "/lib/guile/" | |
802 | version | |
803 | "/site-ccache"))) | |
804 | (for-each | |
805 | (lambda (file) | |
806 | (wrap-program | |
807 | (string-append bin file) | |
808 | `("GUILE_LOAD_PATH" ":" prefix (,modules)) | |
809 | `("GUILE_LOAD_COMPILED_PATH" | |
810 | ":" | |
811 | prefix | |
812 | (,compiled-modules)))) | |
813 | ,(list 'list "hall")) | |
814 | #t))))))))) | |
815 | (native-inputs | |
816 | `(("autoconf" ,autoconf) | |
817 | ("automake" ,automake) | |
818 | ("pkg-config" ,pkg-config) | |
819 | ("texinfo" ,texinfo))) | |
820 | (inputs `(("guile" ,guile-2.2))) | |
821 | (propagated-inputs | |
822 | `(("guile-config" ,guile-config))) | |
823 | (synopsis "Guile project tooling") | |
824 | (description | |
825 | "Hall is a command-line application and a set of Guile libraries that | |
826 | allow you to quickly create and publish Guile projects. It allows you to | |
827 | transparently support the GNU build system, manage a project hierarchy & | |
828 | provides tight coupling to Guix.") | |
829 | (home-page | |
830 | "https://gitlab.com/a-sassmannshausen/guile-hall") | |
831 | (license license:gpl3+))) | |
832 | ||
814b18e5 AS |
833 | (define-public guile-ics |
834 | (package | |
835 | (name "guile-ics") | |
291c2d57 | 836 | (version "0.2.0") |
814b18e5 AS |
837 | (source (origin |
838 | (method git-fetch) | |
839 | (uri (git-reference | |
840 | (url "https://github.com/artyom-poptsov/guile-ics") | |
291c2d57 | 841 | (commit (string-append "v" version)))) |
814b18e5 AS |
842 | (file-name (string-append name "-" version "-checkout")) |
843 | (sha256 | |
844 | (base32 | |
291c2d57 | 845 | "0qjjvadr7gibdq9jvwkmlkb4afsw9n2shfj9phpiadinxk3p4m2g")))) |
814b18e5 AS |
846 | (build-system gnu-build-system) |
847 | (arguments | |
848 | '(#:phases (modify-phases %standard-phases | |
d10092b8 KK |
849 | (add-after 'unpack 'autoreconf |
850 | (lambda _ | |
851 | ;; Repository comes with a broken symlink | |
852 | (delete-file "README") | |
853 | (symlink "README.org" "README") | |
854 | (zero? (system* "autoreconf" "-fi"))))))) | |
814b18e5 | 855 | (native-inputs |
464f5447 | 856 | `(("autoconf" ,autoconf-wrapper) |
814b18e5 AS |
857 | ("automake" ,automake) |
858 | ("texinfo" ,texinfo) | |
859 | ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'. | |
860 | ("gettext" ,gettext-minimal) | |
861 | ("pkg-config" ,pkg-config))) | |
d573d892 LC |
862 | (inputs `(("guile" ,guile-2.2) ("which" ,which))) |
863 | (propagated-inputs `(("guile-lib" ,guile-lib))) | |
814b18e5 AS |
864 | (home-page "https://github.com/artyom-poptsov/guile-ics") |
865 | (synopsis "Guile parser library for the iCalendar format") | |
866 | (description | |
867 | "Guile-ICS is an iCalendar (RFC5545) format parser library written in | |
868 | pure Scheme. The library can be used to read and write iCalendar data. | |
869 | ||
870 | The library is shipped with documentation in Info format and usage examples.") | |
71e0f217 | 871 | (license license:gpl3+))) |
814b18e5 | 872 | |
3e9066fc LC |
873 | (define-public guile-lib |
874 | (package | |
875 | (name "guile-lib") | |
6a9a50fd | 876 | (version "0.2.6.1") |
3e9066fc | 877 | (source (origin |
af126875 MC |
878 | (method url-fetch) |
879 | (uri (string-append "mirror://savannah/guile-lib/guile-lib-" | |
880 | version ".tar.gz")) | |
881 | (sha256 | |
882 | (base32 | |
6a9a50fd | 883 | "0aizxdif5dpch9cvs8zz5g8ds5s4xhfnwza2il5ji7fv2h7ks7bd")))) |
3e9066fc LC |
884 | (build-system gnu-build-system) |
885 | (arguments | |
af126875 | 886 | '(#:make-flags |
6a9a50fd | 887 | '("GUILE_AUTO_COMPILE=0") ; to prevent guild errors |
af126875 MC |
888 | #:phases |
889 | (modify-phases %standard-phases | |
890 | (add-before 'configure 'patch-module-dir | |
891 | (lambda _ | |
892 | (substitute* "src/Makefile.in" | |
893 | (("^moddir = ([[:graph:]]+)") | |
894 | "moddir = $(datadir)/guile/site/@GUILE_EFFECTIVE_VERSION@\n") | |
895 | (("^godir = ([[:graph:]]+)") | |
896 | "godir = \ | |
bf62b8ff | 897 | $(libdir)/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n")) |
af126875 | 898 | #t))))) |
bf62b8ff | 899 | (native-inputs `(("pkg-config" ,pkg-config))) |
1b0f266e | 900 | (inputs `(("guile" ,guile-2.2))) |
340978d7 | 901 | (home-page "https://www.nongnu.org/guile-lib/") |
3e9066fc LC |
902 | (synopsis "Collection of useful Guile Scheme modules") |
903 | (description | |
35b9e423 | 904 | "Guile-Lib is intended as an accumulation place for pure-scheme Guile |
3e9066fc LC |
905 | modules, allowing for people to cooperate integrating their generic Guile |
906 | modules into a coherent library. Think \"a down-scaled, limited-scope CPAN | |
907 | for Guile\".") | |
908 | ||
909 | ;; The whole is under GPLv3+, but some modules are under laxer | |
910 | ;; distribution terms such as LGPL and public domain. See `COPYING' for | |
911 | ;; details. | |
71e0f217 | 912 | (license license:gpl3+))) |
3e9066fc | 913 | |
1b0f266e LC |
914 | (define-public guile2.0-lib |
915 | (package-for-guile-2.0 guile-lib)) | |
916 | ||
12773de3 | 917 | (define-public guile2.2-lib |
1b0f266e | 918 | (deprecated-package "guile2.2-lib" guile-lib)) |
12773de3 | 919 | |
6050a1fb CR |
920 | (define-public guile-json |
921 | (package | |
922 | (name "guile-json") | |
15214828 | 923 | (version "1.2.0") |
f52ef55e | 924 | (home-page "https://github.com/aconchillo/guile-json") |
6050a1fb | 925 | (source (origin |
ffc72ec6 | 926 | (method url-fetch) |
f52ef55e | 927 | (uri (string-append home-page "/archive/" |
ffc72ec6 | 928 | version ".tar.gz")) |
f52ef55e | 929 | (file-name (string-append name "-" version ".tar.gz")) |
ffc72ec6 LC |
930 | (sha256 |
931 | (base32 | |
15214828 | 932 | "02kqv0q98fmchn7i4y7ycmrjlh4b2c93ij0z7k036qwpp204w4gh")))) |
6050a1fb | 933 | (build-system gnu-build-system) |
f52ef55e LC |
934 | (native-inputs `(("autoconf" ,autoconf) |
935 | ("automake" ,automake) | |
0ec38002 | 936 | ("pkg-config" ,pkg-config) |
f52ef55e LC |
937 | ("guile" ,guile-2.2))) |
938 | (inputs `(("guile" ,guile-2.2))) | |
6050a1fb CR |
939 | (synopsis "JSON module for Guile") |
940 | (description | |
0f31d4f0 LC |
941 | "Guile-JSON supports parsing and building JSON documents according to the |
942 | specification. These are the main features: | |
943 | ||
944 | @itemize | |
945 | @item Strictly complies to @uref{http://json.org, specification}. | |
946 | @item Build JSON documents programmatically via macros. | |
947 | @item Unicode support for strings. | |
948 | @item Allows JSON pretty printing. | |
949 | @end itemize\n") | |
15214828 LC |
950 | |
951 | ;; Version 1.2.0 switched to GPLv3+ (from LGPLv3+). | |
952 | (license license:gpl3+))) | |
6050a1fb | 953 | |
947a5d47 | 954 | (define-public guile2.2-json |
2252f087 LC |
955 | (deprecated-package "guile2.2-json" guile-json)) |
956 | ||
957 | (define-public guile2.0-json | |
958 | (package-for-guile-2.0 guile-json)) | |
947a5d47 | 959 | |
6bc24063 CAW |
960 | (define-public guile-minikanren |
961 | (package | |
962 | (name "guile-minikanren") | |
963 | (version "20150424.e844d85") | |
964 | (source (origin | |
965 | (method git-fetch) | |
966 | (uri (git-reference | |
967 | (url "https://github.com/ijp/minikanren.git") | |
968 | (commit "e844d85512f8c055d3f96143ee506007389a25e3"))) | |
821f4dc2 | 969 | (file-name (string-append name "-" version "-checkout")) |
6bc24063 CAW |
970 | (sha256 |
971 | (base32 | |
972 | "0r50jlpzi940jlmxyy3ddqqwmj5r12gb4bcv0ssini9v8km13xz6")))) | |
977d8666 LC |
973 | (build-system guile-build-system) |
974 | (native-inputs | |
d58ee08d | 975 | `(("guile" ,guile-2.2))) |
6bc24063 | 976 | (home-page "https://github.com/ijp/minikanren") |
e881752c | 977 | (synopsis "MiniKanren declarative logic system, packaged for Guile") |
6bc24063 CAW |
978 | (description |
979 | "MiniKanren is a relational programming extension to the Scheme | |
980 | programming Language, written as a smaller version of Kanren suitable for | |
981 | pedagogical purposes. It is featured in the book, The Reasoned Schemer, | |
982 | written by Dan Friedman, William Byrd, and Oleg Kiselyov. | |
983 | ||
e881752c | 984 | This is Ian Price's r6rs packaged version of miniKanren, which deviates |
6bc24063 CAW |
985 | slightly from miniKanren mainline. |
986 | ||
987 | See http://minikanren.org/ for more on miniKanren generally.") | |
71e0f217 | 988 | (license license:expat))) |
6bc24063 | 989 | |
d58ee08d LC |
990 | (define-public guile2.0-minikanren |
991 | (package-for-guile-2.0 guile-minikanren)) | |
992 | ||
947a5d47 | 993 | (define-public guile2.2-minikanren |
d58ee08d | 994 | (deprecated-package "guile2.2-minikanren" guile-minikanren)) |
947a5d47 | 995 | |
28a1041f AP |
996 | (define-public guile-miniadapton |
997 | (let ((commit "1b5749422304567c96ac5367f2221dda9eff5880") | |
998 | (revision "1")) | |
999 | (package | |
1000 | (name "guile-miniadapton") | |
1001 | (version (string-append "0-" revision "." (string-take commit 9))) | |
1002 | (source (origin | |
1003 | (method git-fetch) | |
1004 | (uri (git-reference | |
1005 | (url "https://github.com/fisherdj/miniAdapton.git") | |
1006 | (commit commit))) | |
1007 | (file-name (string-append name "-" version "-checkout")) | |
1008 | (sha256 | |
1009 | (base32 | |
1010 | "09q51zkw2fypad5xixskfzw2cjhjgs5cswdp3i7cpp651rb3zndh")))) | |
977d8666 LC |
1011 | (build-system guile-build-system) |
1012 | (native-inputs | |
28a1041f AP |
1013 | `(("guile" ,guile-2.2))) |
1014 | (home-page "https://github.com/fisherdj/miniAdapton") | |
1015 | (synopsis "Minimal implementation of incremental computation in Guile | |
1016 | Scheme") | |
1017 | (description "This package provides a complete Scheme implementation of | |
1018 | miniAdapton, which implements the core functionality of the Adapton system for | |
1019 | incremental computation (also known as self-adjusting computation). Like | |
1020 | Adapton, miniAdapton allows programmers to safely combine mutation and | |
1021 | memoization. miniAdapton is built on top of an even simpler system, | |
1022 | microAdapton. Both miniAdapton and microAdapton are designed to be easy to | |
1023 | understand, extend, and port to host languages other than Scheme.") | |
1024 | (license license:expat)))) | |
1025 | ||
32e14fc1 CAW |
1026 | (define-public guile-irregex |
1027 | (package | |
1028 | (name "guile-irregex") | |
fb73f07a | 1029 | (version "0.9.6") |
32e14fc1 CAW |
1030 | (source (origin |
1031 | (method url-fetch) | |
1032 | (uri (string-append | |
1033 | "http://synthcode.com/scheme/irregex/irregex-" | |
d03f9446 | 1034 | version ".tar.gz")) |
32e14fc1 CAW |
1035 | (sha256 |
1036 | (base32 | |
fb73f07a | 1037 | "1ia3m7dp3lcxa048q0gqbiwwsyvn99baw6xkhb4bhhzn4k7bwyqq")))) |
977d8666 | 1038 | (build-system guile-build-system) |
32e14fc1 | 1039 | (arguments |
977d8666 LC |
1040 | '(#:phases (modify-phases %standard-phases |
1041 | (add-after 'unpack 'move-files-around | |
1042 | (lambda _ | |
1043 | ;; Move the relevant source files to src/ and create the | |
1044 | ;; rx/ directory to match the expected module hierarchy. | |
1045 | (mkdir-p "src/rx/source") | |
1046 | (rename-file "irregex-guile.scm" | |
1047 | "src/rx/irregex.scm") | |
1048 | (rename-file "irregex.scm" | |
1049 | "src/rx/source/irregex.scm") | |
1050 | ;; Not really reachable via guile's packaging system, | |
1051 | ;; but nice to have around. | |
1052 | (rename-file "irregex-utils.scm" | |
1053 | "src/rx/source/irregex-utils.scm") | |
1054 | #t))) | |
1055 | #:source-directory "src")) | |
1056 | (native-inputs | |
2863860b | 1057 | `(("guile" ,guile-2.2))) |
32e14fc1 CAW |
1058 | (home-page "http://synthcode.com/scheme/irregex") |
1059 | (synopsis "S-expression based regular expressions") | |
1060 | (description | |
1061 | "Irregex is an s-expression based alternative to your classic | |
1062 | string-based regular expressions. It implements SRFI 115 and is deeply | |
1063 | inspired by the SCSH regular expression system.") | |
71e0f217 | 1064 | (license license:bsd-3))) |
93e7199b | 1065 | |
2863860b LC |
1066 | (define-public guile2.0-irregex |
1067 | (package-for-guile-2.0 guile-irregex)) | |
1068 | ||
947a5d47 | 1069 | (define-public guile2.2-irregex |
2863860b | 1070 | (deprecated-package "guile2.2-irregex" guile-irregex)) |
947a5d47 | 1071 | |
93e7199b CAW |
1072 | ;; There are two guile-gdbm packages, one using the FFI and one with |
1073 | ;; direct C bindings, hence the verbose name. | |
1074 | ||
1075 | (define-public guile-gdbm-ffi | |
1076 | (package | |
1077 | (name "guile-gdbm-ffi") | |
1078 | (version "20120209.fa1d5b6") | |
1079 | (source (origin | |
1080 | (method git-fetch) | |
1081 | (uri (git-reference | |
1082 | (url "https://github.com/ijp/guile-gdbm.git") | |
1083 | (commit "fa1d5b6231d0e4d096687b378c025f2148c5f246"))) | |
821f4dc2 | 1084 | (file-name (string-append name "-" version "-checkout")) |
977d8666 LC |
1085 | (patches (search-patches |
1086 | "guile-gdbm-ffi-support-gdbm-1.14.patch")) | |
93e7199b CAW |
1087 | (sha256 |
1088 | (base32 | |
1089 | "1j8wrsw7v9w6qkl47xz0rdikg50v16nn6kbs3lgzcymjzpa7babj")))) | |
977d8666 LC |
1090 | (build-system guile-build-system) |
1091 | (arguments | |
1092 | '(#:phases (modify-phases %standard-phases | |
1093 | (add-after 'unpack 'move-examples | |
1094 | (lambda* (#:key outputs #:allow-other-keys) | |
1095 | ;; Move examples where they belong. | |
1096 | (let* ((out (assoc-ref outputs "out")) | |
1097 | (doc (string-append out "/share/doc/" | |
1098 | (strip-store-file-name out) | |
1099 | "/examples"))) | |
1100 | (copy-recursively "examples" doc) | |
1101 | (delete-file-recursively "examples") | |
1102 | #t))) | |
1103 | (add-after 'unpack 'set-libgdbm-file-name | |
1104 | (lambda* (#:key inputs #:allow-other-keys) | |
1105 | (substitute* "gdbm.scm" | |
1106 | (("\\(dynamic-link \"libgdbm\"\\)") | |
1107 | (format #f "(dynamic-link \"~a/lib/libgdbm.so\")" | |
1108 | (assoc-ref inputs "gdbm")))) | |
1109 | #t))))) | |
1110 | (native-inputs | |
1111 | `(("guile" ,guile-2.2))) | |
56f31a9f | 1112 | (inputs |
56f31a9f | 1113 | `(("gdbm" ,gdbm))) |
93e7199b CAW |
1114 | (home-page "https://github.com/ijp/guile-gdbm") |
1115 | (synopsis "Guile bindings to the GDBM library via Guile's FFI") | |
1116 | (description | |
1117 | "Guile bindings to the GDBM key-value storage system, using | |
1118 | Guile's foreign function interface.") | |
71e0f217 | 1119 | (license license:gpl3+))) |
93e7199b | 1120 | |
5bd3a841 LC |
1121 | (define-public guile2.0-gdbm-ffi |
1122 | (package-for-guile-2.0 guile-gdbm-ffi)) | |
1123 | ||
2737bcff | 1124 | (define-public guile2.2-gdbm-ffi |
5bd3a841 | 1125 | (deprecated-package "guile2.2-gdbm-ffi" guile-gdbm-ffi)) |
93e7199b | 1126 | |
e8ac1f8f | 1127 | (define-public guile-sqlite3 |
319e26e4 LC |
1128 | (package |
1129 | (name "guile-sqlite3") | |
1130 | (version "0.1.0") | |
1131 | (home-page "https://notabug.org/civodul/guile-sqlite3.git") | |
1132 | (source (origin | |
1133 | (method git-fetch) | |
1134 | (uri (git-reference | |
1135 | (url home-page) | |
1136 | (commit (string-append "v" version)))) | |
1137 | (sha256 | |
1138 | (base32 | |
1139 | "1nv8j7wk6b5n4p22szyi8lv8fs31rrzxhzz16gyj8r38c1fyp9qp")) | |
1140 | (file-name (string-append name "-" version "-checkout")))) | |
1141 | (build-system gnu-build-system) | |
1142 | (native-inputs | |
1143 | `(("autoconf" ,autoconf) | |
1144 | ("automake" ,automake) | |
1145 | ("pkg-config" ,pkg-config))) | |
1146 | (inputs | |
1147 | `(("guile" ,guile-2.2) | |
1148 | ("sqlite" ,sqlite))) | |
1149 | (synopsis "Access SQLite databases from Guile") | |
1150 | (description | |
1151 | "This package provides Guile bindings to the SQLite database system.") | |
1152 | (license license:gpl3+))) | |
e8ac1f8f | 1153 | |
27f5e13e DT |
1154 | (define-public haunt |
1155 | (package | |
1156 | (name "haunt") | |
907254e5 | 1157 | (version "0.2.2") |
27f5e13e DT |
1158 | (source (origin |
1159 | (method url-fetch) | |
4960beaa | 1160 | (uri (string-append "https://files.dthompson.us/haunt/haunt-" |
27f5e13e DT |
1161 | version ".tar.gz")) |
1162 | (sha256 | |
1163 | (base32 | |
907254e5 | 1164 | "0nm00krmqq4zmqi2irh35dbf2cn6al58s620hijmhfvhgvdqznlp")))) |
27f5e13e | 1165 | (build-system gnu-build-system) |
4ecbf6d2 LC |
1166 | (arguments |
1167 | `(#:modules ((ice-9 match) (ice-9 ftw) | |
1168 | ,@%gnu-build-system-modules) | |
1e406301 | 1169 | #:tests? #f ; test suite is non-deterministic :( |
4ecbf6d2 LC |
1170 | #:phases (modify-phases %standard-phases |
1171 | (add-after 'install 'wrap-haunt | |
296ad592 | 1172 | (lambda* (#:key inputs outputs #:allow-other-keys) |
4ecbf6d2 LC |
1173 | ;; Wrap the 'haunt' command to refer to the right |
1174 | ;; modules. | |
1175 | (let* ((out (assoc-ref outputs "out")) | |
1176 | (bin (string-append out "/bin")) | |
1177 | (site (string-append | |
296ad592 LC |
1178 | out "/share/guile/site")) |
1179 | (deps (list (assoc-ref inputs "guile-reader") | |
1180 | (assoc-ref inputs "guile-commonmark")))) | |
4ecbf6d2 LC |
1181 | (match (scandir site) |
1182 | (("." ".." version) | |
907254e5 DT |
1183 | (let ((modules (string-append site "/" version)) |
1184 | (compiled-modules (string-append | |
1185 | out "/lib/guile/" version | |
1186 | "/site-ccache"))) | |
4ecbf6d2 LC |
1187 | (wrap-program (string-append bin "/haunt") |
1188 | `("GUILE_LOAD_PATH" ":" prefix | |
296ad592 LC |
1189 | (,modules |
1190 | ,@(map (lambda (dep) | |
1191 | (string-append dep | |
1192 | "/share/guile/site/" | |
1193 | version)) | |
1194 | deps))) | |
4ecbf6d2 | 1195 | `("GUILE_LOAD_COMPILED_PATH" ":" prefix |
296ad592 LC |
1196 | (,compiled-modules |
1197 | ,@(map (lambda (dep) | |
1198 | (string-append dep "/lib/guile/" | |
1199 | version | |
1200 | "/site-ccache")) | |
1201 | deps)))) | |
4ecbf6d2 | 1202 | #t))))))))) |
4960beaa DT |
1203 | (native-inputs |
1204 | `(("pkg-config" ,pkg-config) | |
1205 | ("texinfo" ,texinfo))) | |
27f5e13e | 1206 | (inputs |
bd19f65a | 1207 | `(("guile" ,guile-2.2))) |
4960beaa | 1208 | (propagated-inputs |
9b1a497e AP |
1209 | `(("guile-reader" ,guile-reader) |
1210 | ("guile-commonmark" ,guile-commonmark))) | |
27f5e13e DT |
1211 | (synopsis "Functional static site generator") |
1212 | (description "Haunt is a static site generator written in Guile | |
1213 | Scheme. Haunt features a functional build system and an extensible | |
1214 | interface for reading articles in any format.") | |
1215 | (home-page "http://haunt.dthompson.us") | |
71e0f217 | 1216 | (license license:gpl3+))) |
27f5e13e | 1217 | |
bd19f65a LC |
1218 | (define-public guile2.0-haunt |
1219 | (package-for-guile-2.0 | |
1220 | (package (inherit haunt) (name "guile2.0-haunt")))) | |
64f34aef | 1221 | (define-public guile2.2-haunt |
bd19f65a | 1222 | (deprecated-package "guile2.2-haunt" haunt)) |
64f34aef | 1223 | |
44a2bdf8 AS |
1224 | (define-public guile-config |
1225 | (package | |
1226 | (name "guile-config") | |
7c6468c9 AS |
1227 | (version "0.3") |
1228 | (source | |
1229 | (origin | |
1230 | (method git-fetch) | |
1231 | (uri (git-reference | |
1232 | (url "https://gitlab.com/a-sassmannshausen/guile-config") | |
1233 | (commit "ce12de3f438c6b2b59c43ee21bcd58251835fdf3"))) | |
1234 | (file-name "guile-config-0.3-checkout") | |
1235 | (sha256 (base32 "02zbpin0r9m2vxmr7mv68v3xdn247dcck56kbzjn0gj4c2rhih85")))) | |
44a2bdf8 | 1236 | (build-system gnu-build-system) |
43d5df98 AS |
1237 | (native-inputs |
1238 | `(("autoconf" ,autoconf) | |
1239 | ("automake" ,automake) | |
1240 | ("pkg-config" ,pkg-config) | |
1241 | ("texinfo" ,texinfo))) | |
7c6468c9 AS |
1242 | (inputs `(("guile" ,guile-2.2))) |
1243 | (synopsis | |
1244 | "Guile application configuration parsing library.") | |
44a2bdf8 AS |
1245 | (description |
1246 | "Guile Config is a library providing a declarative approach to | |
1247 | application configuration specification. The library provides clean | |
1248 | configuration declaration forms, and processors that take care of: | |
1249 | configuration file creation; configuration file parsing; command-line | |
1250 | parameter parsing using getopt-long; basic GNU command-line parameter | |
1251 | generation (--help, --usage, --version); automatic output generation for the | |
1252 | above command-line parameters.") | |
7c6468c9 AS |
1253 | (home-page |
1254 | "https://gitlab.com/a-sassmannshausen/guile-config") | |
43d5df98 | 1255 | (license license:gpl3+))) |
44a2bdf8 | 1256 | |
36548111 DT |
1257 | (define-public guile-redis |
1258 | (package | |
1259 | (name "guile-redis") | |
a50eed20 LC |
1260 | (version "1.0.0") |
1261 | (home-page "https://github.com/aconchillo/guile-redis") | |
36548111 DT |
1262 | (source (origin |
1263 | (method url-fetch) | |
a50eed20 | 1264 | (uri (string-append home-page "/archive/" version ".tar.gz")) |
36548111 DT |
1265 | (sha256 |
1266 | (base32 | |
a50eed20 | 1267 | "1dp5fmqvma59pvp1nfpq6hqgbmjici8sd1y8llahl87fynw1dvr9")))) |
36548111 DT |
1268 | (build-system gnu-build-system) |
1269 | (native-inputs | |
a50eed20 LC |
1270 | `(("autoconf" ,autoconf) |
1271 | ("automake" ,automake) | |
1272 | ("pkg-config" ,pkg-config) | |
1273 | ("guile" ,guile-2.2))) | |
36548111 DT |
1274 | (synopsis "Redis client library for Guile") |
1275 | (description "Guile-redis provides a Scheme interface to the Redis | |
1276 | key-value cache and store.") | |
71e0f217 | 1277 | (license license:lgpl3+))) |
36548111 | 1278 | |
d5eacecc LC |
1279 | (define-public guile2.0-redis |
1280 | (package-for-guile-2.0 guile-redis)) | |
1281 | ||
85313be8 | 1282 | (define-public guile2.2-redis |
d5eacecc | 1283 | (deprecated-package "guile2.2-redis" guile-redis)) |
85313be8 | 1284 | |
9d373377 CAW |
1285 | (define-public guile-wisp |
1286 | (package | |
1287 | (name "guile-wisp") | |
e0840905 | 1288 | (version "0.9.8") |
9d373377 CAW |
1289 | (source (origin |
1290 | (method url-fetch) | |
1291 | (uri (string-append "https://bitbucket.org/ArneBab/" | |
1292 | "wisp/downloads/wisp-" | |
1293 | version ".tar.gz")) | |
1294 | (sha256 | |
1295 | (base32 | |
e0840905 | 1296 | "1f2bbicq1rxnwmiplrm4r75wj06w385mjkyvi7g4k740bgwcrzxr")))) |
9d373377 CAW |
1297 | (build-system gnu-build-system) |
1298 | (arguments | |
e8374e69 LC |
1299 | `(#:modules ((guix build gnu-build-system) |
1300 | (guix build utils) | |
1301 | (ice-9 rdelim) | |
1302 | (ice-9 popen)) | |
1303 | ||
9d373377 CAW |
1304 | #:phases |
1305 | (modify-phases %standard-phases | |
e0840905 | 1306 | (add-before 'configure 'substitute-before-config |
9d373377 CAW |
1307 | |
1308 | (lambda* (#:key inputs #:allow-other-keys) | |
1309 | (let ((bash (assoc-ref inputs "bash"))) | |
9d373377 CAW |
1310 | ;; Puts together some test files with /bin/bash hardcoded |
1311 | (substitute* "Makefile.in" | |
e0840905 LC |
1312 | (("/usr/bin/env bash") |
1313 | (string-append bash "/bin/bash")) | |
1314 | (("\\$\\(GUILE_EFFECTIVE_VERSION\\)/site") | |
1315 | "site/$(GUILE_EFFECTIVE_VERSION)")) ;use the right order | |
9d373377 CAW |
1316 | #t))) |
1317 | ||
1318 | ;; auto compilation breaks, but if we set HOME to /tmp, | |
1319 | ;; that works ok | |
1320 | (add-before | |
1321 | 'check 'auto-compile-hacky-workaround | |
1322 | (lambda _ | |
1323 | (setenv "HOME" "/tmp") | |
1324 | #t)) | |
e0840905 | 1325 | (add-after 'install 'install-go-files |
9d373377 CAW |
1326 | (lambda* (#:key outputs inputs #:allow-other-keys) |
1327 | (let* ((out (assoc-ref outputs "out")) | |
e8374e69 LC |
1328 | (effective (read-line |
1329 | (open-pipe* OPEN_READ | |
1330 | "guile" "-c" | |
1331 | "(display (effective-version))"))) | |
1332 | (module-dir (string-append out "/share/guile/site/" | |
1333 | effective)) | |
1334 | (object-dir (string-append out "/lib/guile/" effective | |
1335 | "/site-ccache")) | |
1336 | (prefix (string-length module-dir))) | |
9d373377 | 1337 | ;; compile to the destination |
e0840905 | 1338 | (for-each (lambda (file) |
e8374e69 LC |
1339 | (let* ((base (string-drop (string-drop-right file 4) |
1340 | prefix)) | |
1341 | (go (string-append object-dir base ".go"))) | |
1342 | (invoke "guild" "compile" "-L" module-dir | |
1343 | file "-o" go))) | |
e0840905 | 1344 | (find-files module-dir "\\.scm$")) |
9d373377 CAW |
1345 | #t)))))) |
1346 | (home-page "http://draketo.de/english/wisp") | |
1347 | (inputs | |
89c4bfe7 | 1348 | `(("guile" ,guile-2.2))) |
e0840905 LC |
1349 | (native-inputs |
1350 | `(("python" ,python) | |
1351 | ("pkg-config" ,pkg-config))) | |
a124bbd2 SB |
1352 | (synopsis "Whitespace to lisp syntax for Guile") |
1353 | (description "Wisp is a syntax for Guile which provides a Python-like | |
9d373377 CAW |
1354 | whitespace-significant language. It may be easier on the eyes for some |
1355 | users and in some situations.") | |
71e0f217 | 1356 | (license license:gpl3+))) |
9d373377 | 1357 | |
5649c8cd DT |
1358 | (define-public guile-sly |
1359 | (package | |
1360 | (name "guile-sly") | |
1361 | (version "0.1") | |
1362 | (source (origin | |
1363 | (method url-fetch) | |
8d5e7ad2 | 1364 | (uri (string-append "https://files.dthompson.us/sly/sly-" |
5649c8cd DT |
1365 | version ".tar.gz")) |
1366 | (sha256 | |
1367 | (base32 | |
44394ef9 LC |
1368 | "1svzlbz2vripmyq2kjh0rig16bsrnbkwbsm558pjln9l65mcl4qq")) |
1369 | (modules '((guix build utils))) | |
1370 | (snippet | |
1371 | '(begin | |
1372 | (substitute* "configure" | |
1373 | (("_guile_required_version=\"2.0.11\"") | |
1374 | "_guile_required_version=\"2\"") | |
1375 | (("ac_subst_vars='") | |
1376 | "ac_subst_vars='GUILE_EFFECTIVE_VERSION\n")) | |
1377 | (substitute* (find-files "." "Makefile.in") | |
1378 | (("moddir = .*$") | |
1379 | (string-append | |
1380 | "moddir = " | |
1381 | "$(prefix)/share/guile/site/@GUILE_EFFECTIVE_VERSION@\n")) | |
1382 | (("godir = .*$") | |
1383 | (string-append | |
1384 | "godir = " | |
6cbee49d MW |
1385 | "$(prefix)/lib/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n"))) |
1386 | #t)))) | |
5649c8cd DT |
1387 | (build-system gnu-build-system) |
1388 | (arguments | |
1389 | '(#:configure-flags | |
1390 | (list (string-append "--with-libfreeimage-prefix=" | |
1391 | (assoc-ref %build-inputs "freeimage")) | |
1392 | (string-append "--with-libgslcblas-prefix=" | |
1393 | (assoc-ref %build-inputs "gsl"))))) | |
1394 | (native-inputs | |
1395 | `(("pkg-config" ,pkg-config))) | |
1396 | (propagated-inputs | |
2e7825bc | 1397 | `(("guile-sdl" ,guile-sdl) |
5649c8cd DT |
1398 | ("guile-opengl" ,guile-opengl))) |
1399 | (inputs | |
2e7825bc LC |
1400 | `(("guile" ,guile-2.2) |
1401 | ("gsl" ,gsl) | |
5649c8cd DT |
1402 | ("freeimage" ,freeimage) |
1403 | ("mesa" ,mesa))) | |
1404 | (synopsis "2D/3D game engine for GNU Guile") | |
1405 | (description "Sly is a 2D/3D game engine written in Guile Scheme. Sly | |
1406 | features a functional reactive programming interface and live coding | |
1407 | capabilities.") | |
0eb3b8c0 | 1408 | (home-page "https://dthompson.us/projects/sly.html") |
71e0f217 | 1409 | (license license:gpl3+))) |
5649c8cd | 1410 | |
dec1e2b3 AB |
1411 | (define-public g-wrap |
1412 | (package | |
1413 | (name "g-wrap") | |
1414 | (version "1.9.15") | |
1415 | (source (origin | |
1416 | (method url-fetch) | |
1417 | (uri (string-append "mirror://savannah/g-wrap/g-wrap-" | |
1418 | version ".tar.gz")) | |
1419 | (sha256 | |
1420 | (base32 | |
1421 | "0ak0bha37dfpj9kmyw1r8fj8nva639aw5xr66wr5gd3l1rqf5xhg")))) | |
1422 | (build-system gnu-build-system) | |
1423 | (native-inputs | |
1424 | `(("pkg-config" ,pkg-config))) | |
1425 | (propagated-inputs | |
61583094 | 1426 | `(("guile" ,guile-2.2) |
dec1e2b3 AB |
1427 | ("guile-lib" ,guile-lib))) |
1428 | (inputs | |
1429 | `(("libffi" ,libffi))) | |
9e8599a3 | 1430 | (arguments |
61583094 TF |
1431 | `(#:configure-flags '("--disable-Werror") |
1432 | #:phases | |
1433 | (modify-phases %standard-phases | |
1434 | (add-before 'configure 'pre-configure | |
1435 | (lambda* (#:key outputs #:allow-other-keys) | |
1436 | (let ((out (assoc-ref outputs "out"))) | |
1437 | (substitute* (find-files "." "^Makefile.in$") | |
1438 | (("guilemoduledir =.*guile/site" all) | |
1439 | (string-append all "/@GUILE_EFFECTIVE_VERSION@"))) | |
1440 | #t)))))) | |
dec1e2b3 AB |
1441 | (synopsis "Generate C bindings for Guile") |
1442 | (description "G-Wrap is a tool and Guile library for generating function | |
1443 | wrappers for inter-language calls. It currently only supports generating Guile | |
1444 | wrappers for C functions. Given a definition of the types and prototypes for | |
1445 | a given C interface, G-Wrap will automatically generate the C code that | |
1446 | provides access to that interface and its types from the Scheme level.") | |
340978d7 | 1447 | (home-page "https://www.nongnu.org/g-wrap/index.html") |
71e0f217 | 1448 | (license license:lgpl2.1+))) |
dec1e2b3 | 1449 | |
01497dfe LC |
1450 | (define-public guile-dbi |
1451 | (package | |
1452 | (name "guile-dbi") | |
1453 | (version "2.1.6") | |
1454 | (source (origin | |
1455 | (method url-fetch) | |
1456 | (uri (string-append | |
1457 | "http://download.gna.org/guile-dbi/guile-dbi-" | |
1458 | version ".tar.gz")) | |
1459 | (sha256 | |
1460 | (base32 | |
1461 | "116njrprhgrsv1qm904sp3b02rq01fx639r433d657gyhw3x159n")))) | |
1462 | (build-system gnu-build-system) | |
1463 | (arguments | |
1464 | '(#:configure-flags | |
1465 | (list (string-append | |
b989c3e3 | 1466 | "--with-guile-site-dir=" %output "/share/guile/site/2.2")) |
34e00c7b AI |
1467 | #:make-flags |
1468 | (list (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib:" | |
1469 | (assoc-ref %build-inputs "guile-dbd-sqlite3") "/lib")) | |
01497dfe LC |
1470 | #:phases |
1471 | (modify-phases %standard-phases | |
1472 | (add-after 'install 'patch-extension-path | |
1473 | (lambda* (#:key outputs #:allow-other-keys) | |
1474 | (let* ((out (assoc-ref outputs "out")) | |
1475 | (dbi.scm (string-append | |
b989c3e3 | 1476 | out "/share/guile/site/2.2/dbi/dbi.scm")) |
01497dfe LC |
1477 | (ext (string-append out "/lib/libguile-dbi"))) |
1478 | (substitute* dbi.scm (("libguile-dbi") ext)) | |
1479 | #t)))))) | |
34e00c7b AI |
1480 | (inputs |
1481 | `(("guile-dbd-sqlite3" ,guile-dbd-sqlite3))) ; only shared library, no scheme files | |
01497dfe | 1482 | (propagated-inputs |
b989c3e3 | 1483 | `(("guile" ,guile-2.2))) |
01497dfe LC |
1484 | (synopsis "Guile database abstraction layer") |
1485 | (home-page "http://home.gna.org/guile-dbi/guile-dbi.html") | |
1486 | (description | |
1487 | "guile-dbi is a library for Guile that provides a convenient interface to | |
1488 | SQL databases. Database programming with guile-dbi is generic in that the same | |
1489 | programming interface is presented regardless of which database system is used. | |
1490 | It currently supports MySQL, Postgres and SQLite3.") | |
71e0f217 | 1491 | (license license:gpl2+))) |
01497dfe | 1492 | |
34e00c7b AI |
1493 | (define guile-dbi-bootstrap |
1494 | (package | |
1495 | (inherit guile-dbi) | |
1496 | (name "guile-dbi-bootstrap") | |
1497 | (inputs '()) | |
1498 | (arguments | |
1499 | (substitute-keyword-arguments (package-arguments guile-dbi) | |
1500 | ((#:make-flags _) '(list)))))) | |
1501 | ||
01497dfe LC |
1502 | (define-public guile-dbd-sqlite3 |
1503 | (package | |
1504 | (name "guile-dbd-sqlite3") | |
1505 | (version "2.1.6") | |
1506 | (source (origin | |
1507 | (method url-fetch) | |
1508 | (uri (string-append | |
1509 | "http://download.gna.org/guile-dbi/guile-dbd-sqlite3-" | |
1510 | version ".tar.gz")) | |
1511 | (sha256 | |
1512 | (base32 | |
1513 | "0rg71jchxd2y8x496s8zmfmikr5g8zxi8zv2ar3f7a23pph92iw2")))) | |
1514 | (build-system gnu-build-system) | |
1515 | (native-inputs | |
34e00c7b AI |
1516 | `(("pkg-config" ,pkg-config) |
1517 | ("guile-dbi-bootstrap" ,guile-dbi-bootstrap))) ; only required for headers | |
01497dfe LC |
1518 | (inputs |
1519 | `(("sqlite" ,sqlite) | |
1520 | ("zlib" ,(@ (gnu packages compression) zlib)))) | |
01497dfe LC |
1521 | (synopsis "Guile DBI driver for SQLite") |
1522 | (home-page "https://github.com/jkalbhenn/guile-dbd-sqlite3") | |
1523 | (description | |
1524 | "guile-dbi is a library for Guile that provides a convenient interface to | |
1525 | SQL databases. This package implements the interface for SQLite.") | |
71e0f217 | 1526 | (license license:gpl2+))) |
01497dfe | 1527 | |
e9291eaa AS |
1528 | (define-public guile-dsv |
1529 | (package | |
1530 | (name "guile-dsv") | |
8c80f8ef | 1531 | (version "0.2.1") |
e9291eaa AS |
1532 | (source (origin |
1533 | (method git-fetch) | |
1534 | (uri (git-reference | |
1535 | (url "https://github.com/artyom-poptsov/guile-dsv") | |
8c80f8ef | 1536 | (commit "bdc5267d007478abc20ea96d7c459b7dd9560b3d"))) |
e9291eaa AS |
1537 | (file-name (string-append name "-" version "-checkout")) |
1538 | (sha256 | |
1539 | (base32 | |
8c80f8ef | 1540 | "1irw6mz8998nwyhzrw9g94jcz60b9zljgqfmipaz1ybn8579qjx0")))) |
e9291eaa AS |
1541 | (build-system gnu-build-system) |
1542 | (native-inputs | |
1543 | `(("autoconf" ,autoconf) | |
1544 | ("automake" ,automake) | |
1545 | ("pkg-config" ,pkg-config) | |
1546 | ("texinfo" ,texinfo))) | |
1547 | (inputs `(("guile" ,guile-2.2))) | |
1548 | (propagated-inputs `(("guile-lib" ,guile-lib))) | |
1549 | (arguments | |
1550 | '(#:phases (modify-phases %standard-phases | |
1551 | (add-before 'configure 'set-guilesitedir | |
1552 | (lambda _ | |
1553 | (substitute* "Makefile.in" | |
1554 | (("^guilesitedir =.*$") | |
1555 | "guilesitedir = \ | |
1556 | $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n")) | |
1557 | (substitute* "modules/Makefile.in" | |
1558 | (("^guilesitedir =.*$") | |
1559 | "guilesitedir = \ | |
1560 | $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n")) | |
1561 | (substitute* "modules/dsv/Makefile.in" | |
1562 | (("^guilesitedir =.*$") | |
1563 | "guilesitedir = \ | |
1564 | $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n")) | |
1565 | #t)) | |
1566 | (add-after 'unpack 'autoreconf | |
1567 | (lambda _ | |
1568 | (zero? (system* "autoreconf" "-vfi"))))))) | |
1569 | (home-page "https://github.com/artyom-poptsov/guile-dsv") | |
1570 | (synopsis "DSV module for Guile") | |
1571 | (description | |
1572 | "Guile-DSV is a GNU Guile module for working with the | |
1573 | delimiter-separated values (DSV) data format. Guile-DSV supports the | |
1574 | Unix-style DSV format and RFC 4180 format.") | |
1575 | (license license:gpl3+))) | |
1576 | ||
bd9af610 AK |
1577 | (define-public guile-xosd |
1578 | (package | |
1579 | (name "guile-xosd") | |
4b2b7135 | 1580 | (version "0.2.1") |
bd9af610 AK |
1581 | (source (origin |
1582 | (method url-fetch) | |
1583 | (uri (string-append "https://github.com/alezost/" name | |
1584 | "/releases/download/v" version | |
1585 | "/" name "-" version ".tar.gz")) | |
1586 | (sha256 | |
1587 | (base32 | |
4b2b7135 | 1588 | "1ri5065c16kmgrf2pysn2ymxjqi5302lhpb07wkl1jr75ym8fn8p")))) |
bd9af610 AK |
1589 | (build-system gnu-build-system) |
1590 | (native-inputs | |
1591 | `(("pkg-config" ,pkg-config))) | |
1592 | (inputs | |
c6726a5f | 1593 | `(("guile" ,guile-2.2) |
bd9af610 AK |
1594 | ("libx11" ,libx11) |
1595 | ("libxext" ,libxext) | |
1596 | ("libxinerama" ,libxinerama) | |
1597 | ("xosd" ,xosd))) | |
1598 | (home-page "https://github.com/alezost/guile-xosd") | |
1599 | (synopsis "XOSD bindings for Guile") | |
1600 | (description | |
1601 | "Guile-XOSD provides Guile bindings for @code{libxosd}, | |
1602 | @uref{http://sourceforge.net/projects/libxosd/, the X On Screen Display | |
1603 | library}.") | |
71e0f217 | 1604 | (license license:gpl3+))) |
bd9af610 | 1605 | |
07f7cc03 AK |
1606 | (define-public guile-daemon |
1607 | (package | |
1608 | (name "guile-daemon") | |
5245399f | 1609 | (version "0.1.2") |
07f7cc03 AK |
1610 | (source (origin |
1611 | (method url-fetch) | |
1612 | (uri (string-append "https://github.com/alezost/" name | |
1613 | "/releases/download/v" version | |
1614 | "/" name "-" version ".tar.gz")) | |
1615 | (sha256 | |
1616 | (base32 | |
5245399f | 1617 | "0hh6gq6b6phpxm0b1dkxyzj3f4sxdf7dji63609lzypa5v1ad2gv")))) |
07f7cc03 AK |
1618 | (build-system gnu-build-system) |
1619 | (native-inputs | |
1620 | `(("pkg-config" ,pkg-config))) | |
1621 | (inputs | |
c6726a5f | 1622 | `(("guile" ,guile-2.2))) |
07f7cc03 AK |
1623 | (home-page "https://github.com/alezost/guile-daemon") |
1624 | (synopsis "Evaluate code in a running Guile process") | |
1625 | (description | |
1626 | "Guile-Daemon is a small Guile program that loads your initial | |
1627 | configuration file, and then reads and evaluates Guile expressions that | |
1628 | you send to a FIFO file.") | |
71e0f217 | 1629 | (license license:gpl3+))) |
07f7cc03 | 1630 | |
e28e74a5 EE |
1631 | (define-public guile-commonmark |
1632 | (package | |
1633 | (name "guile-commonmark") | |
1634 | (version "0.1") | |
1635 | (source (origin | |
1636 | (method url-fetch) | |
1637 | (uri (string-append "https://github.com/OrangeShark/" name | |
1638 | "/releases/download/v" version | |
1639 | "/" name "-" version ".tar.gz")) | |
1640 | (sha256 | |
1641 | (base32 | |
757ce0f9 LC |
1642 | "12cb5fqvvgc87f5xp0ih5az305wnjia89l5jba83d0r2p8bfy0b0")) |
1643 | (modules '((guix build utils))) | |
1644 | (snippet | |
1645 | ;; Use the real effective version of Guile in directory names | |
1646 | ;; instead of a hard-coded "/2.0". | |
1647 | '(begin | |
1648 | (substitute* "configure" | |
1649 | (("ac_subst_vars='") | |
1650 | "ac_subst_vars='GUILE_EFFECTIVE_VERSION\n")) | |
1651 | (substitute* "Makefile.in" | |
96d6c41d LC |
1652 | (("moddir =.*") |
1653 | "moddir = $(datadir)/guile/site/@GUILE_EFFECTIVE_VERSION@\n") | |
1654 | (("godir =.*") | |
1655 | "godir = $(libdir)/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n")) | |
6cbee49d | 1656 | #t)))) |
e28e74a5 EE |
1657 | (build-system gnu-build-system) |
1658 | (inputs | |
7c86c031 | 1659 | `(("guile" ,guile-2.2))) |
e28e74a5 EE |
1660 | (synopsis "CommonMark parser for Guile") |
1661 | (description | |
1662 | "guile-commonmark is a library for parsing CommonMark, a fully specified | |
1663 | variant of Markdown. The library is written in Guile Scheme and is designed | |
1664 | to transform a CommonMark document to SXML. guile-commonmark tries to closely | |
1665 | follow the @uref{http://commonmark.org/, CommonMark spec}, the main difference | |
1666 | is no support for parsing block and inline level HTML.") | |
1667 | (home-page "https://github.com/OrangeShark/guile-commonmark") | |
71e0f217 | 1668 | (license license:lgpl3+))) |
e28e74a5 | 1669 | |
7c86c031 LC |
1670 | (define-public guile2.0-commonmark |
1671 | (package-for-guile-2.0 guile-commonmark)) | |
947a5d47 | 1672 | (define-public guile2.2-commonmark |
7c86c031 | 1673 | (deprecated-package "guile2.2-commonmark" guile-commonmark)) |
947a5d47 | 1674 | |
3b5783fc AB |
1675 | (define-public guile-bytestructures |
1676 | (package | |
1677 | (name "guile-bytestructures") | |
90977eb5 | 1678 | (version "1.0.3") |
3b5783fc | 1679 | (source (origin |
4f85f7f7 | 1680 | (method url-fetch) |
1681 | (uri (string-append "https://github.com/TaylanUB/scheme-bytestructures" | |
1682 | "/releases/download/v" version | |
1683 | "/bytestructures-" version ".tar.gz")) | |
3b5783fc AB |
1684 | (sha256 |
1685 | (base32 | |
90977eb5 | 1686 | "0xf6s8gd3656j8k2ar6y7i62r68azawyzxhsagsk8nvldnrs1r18")))) |
4f85f7f7 | 1687 | (build-system gnu-build-system) |
726ecfeb | 1688 | (native-inputs |
4f85f7f7 | 1689 | `(("pkg-config" ,pkg-config))) |
3b5783fc | 1690 | (inputs |
aabece2e | 1691 | `(("guile" ,guile-2.2))) |
3b5783fc AB |
1692 | (home-page "https://github.com/TaylanUB/scheme-bytestructures") |
1693 | (synopsis "Structured access to bytevector contents for Guile") | |
1694 | (description | |
1695 | "Guile bytestructures offers a system imitating the type system | |
1696 | of the C programming language, to be used on bytevectors. C's type | |
1697 | system works on raw memory, and Guile works on bytevectors which are | |
1698 | an abstraction over raw memory. It's also more powerful than the C | |
1699 | type system, elevating types to first-class status.") | |
71e0f217 | 1700 | (license license:gpl3+))) |
3b5783fc | 1701 | |
726ecfeb LC |
1702 | (define-public guile2.0-bytestructures |
1703 | (package-for-guile-2.0 guile-bytestructures)) | |
1704 | ||
472fc855 LC |
1705 | (define-public guile-aspell |
1706 | (package | |
1707 | (name "guile-aspell") | |
234ea3d6 | 1708 | (version "0.4") |
472fc855 LC |
1709 | (source (origin |
1710 | (method url-fetch) | |
1711 | (uri (string-append | |
1712 | "http://lonelycactus.com/tarball/guile_aspell-" | |
1713 | version ".tar.gz")) | |
1714 | (sha256 | |
1715 | (base32 | |
234ea3d6 | 1716 | "0vpk5xj9m9qc702z3khmkwhgpb949qbsyz8kw2qycda6qnxk0077")))) |
472fc855 LC |
1717 | (build-system gnu-build-system) |
1718 | (arguments | |
7295087e LC |
1719 | '(#:phases (modify-phases %standard-phases |
1720 | (add-before 'configure 'set-guilesitedir | |
1721 | (lambda _ | |
1722 | (substitute* "Makefile.in" | |
1723 | (("^guilesitedir =.*$") | |
1724 | "guilesitedir = \ | |
1725 | $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n")) | |
1726 | #t)) | |
472fc855 LC |
1727 | (add-before 'build 'set-libaspell-file-name |
1728 | (lambda* (#:key inputs #:allow-other-keys) | |
1729 | (let ((aspell (assoc-ref inputs "aspell"))) | |
234ea3d6 | 1730 | (substitute* "aspell.scm" |
472fc855 LC |
1731 | (("\"libaspell\\.so\"") |
1732 | (string-append "\"" aspell | |
1733 | "/lib/libaspell\""))) | |
1734 | #t)))))) | |
1735 | (native-inputs `(("pkg-config" ,pkg-config))) | |
cb5be6df | 1736 | (inputs `(("guile" ,guile-2.2) |
472fc855 LC |
1737 | ("aspell" ,aspell))) |
1738 | (home-page "https://github.com/spk121/guile-aspell") | |
1739 | (synopsis "Spell-checking from Guile") | |
1740 | (description | |
1741 | "guile-aspell is a Guile Scheme library for comparing a string against a | |
1742 | dictionary and suggesting spelling corrections.") | |
71e0f217 | 1743 | (license license:gpl3+))) |
472fc855 | 1744 | |
a614ce38 LC |
1745 | (define-public guile-bash |
1746 | ;; This project is currently retired. It was initially announced here: | |
1747 | ;; <https://lists.gnu.org/archive/html/guile-user/2015-02/msg00003.html>. | |
1748 | (let ((commit "1eabc563ca5692b3e08d84f1f0e6fd2283284469") | |
1749 | (revision "0")) | |
1750 | (package | |
1751 | (name "guile-bash") | |
1752 | (version (string-append "0.1.6-" revision "." (string-take commit 7))) | |
1753 | (home-page | |
1754 | "https://anonscm.debian.org/cgit/users/kaction-guest/retired/dev.guile-bash.git") | |
1755 | (source (origin | |
1756 | (method git-fetch) | |
1757 | (uri (git-reference | |
1758 | (commit commit) | |
1759 | (url home-page))) | |
1760 | (sha256 | |
1761 | (base32 | |
1762 | "097vny990wp2qpjij6a5a5gwc6fxzg5wk56inhy18iki5v6pif1p")) | |
1763 | (file-name (string-append name "-" version "-checkout")))) | |
1764 | (build-system gnu-build-system) | |
1765 | (arguments | |
189be331 | 1766 | '(#:configure-flags |
a614ce38 LC |
1767 | ;; Add -I to match 'bash.pc' of Bash 4.4. |
1768 | (list (string-append "CPPFLAGS=-I" | |
1769 | (assoc-ref %build-inputs "bash:include") | |
1770 | "/include/bash/include") | |
1771 | ||
1772 | ;; The '.a' file is useless. | |
1773 | "--disable-static" | |
1774 | ||
1775 | ;; Install 'lib/bash' as Bash 4.4 expects. | |
1776 | (string-append "--libdir=" (assoc-ref %outputs "out") | |
1777 | "/lib/bash")))) | |
1778 | (native-inputs `(("pkg-config" ,pkg-config) | |
464f5447 | 1779 | ("autoconf" ,autoconf-wrapper) |
a614ce38 LC |
1780 | ("automake" ,automake) |
1781 | ("libtool" ,libtool) | |
1782 | ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'. | |
b7158b76 LC |
1783 | ("gettext" ,gettext-minimal) |
1784 | ||
1785 | ;; Bash with loadable module support, for the test | |
1786 | ;; suite. | |
1787 | ("bash-full" ,bash))) | |
a614ce38 LC |
1788 | (inputs `(("guile" ,guile-2.0) |
1789 | ("bash:include" ,bash "include"))) | |
1790 | (synopsis "Extend Bash using Guile") | |
1791 | (description | |
1792 | "Guile-Bash provides a shared library and set of Guile modules, | |
1793 | allowing you to extend Bash in Scheme. Scheme interfaces allow you to access | |
1794 | the following aspects of Bash: | |
1795 | ||
1796 | @itemize | |
1797 | @item aliases; | |
1798 | @item setting and getting Bash variables; | |
1799 | @item creating dynamic variables; | |
1800 | @item creating Bash functions with a Scheme implementation; | |
1801 | @item reader macro for output capturing; | |
1802 | @item reader macro for evaluating raw Bash commands. | |
1803 | @end itemize | |
1804 | ||
1805 | To enable it, run: | |
1806 | ||
1807 | @example | |
1808 | enable -f ~/.guix-profile/lib/bash/libguile-bash.so scm | |
1809 | @end example | |
1810 | ||
1811 | and then run @command{scm example.scm}.") | |
71e0f217 | 1812 | (license license:gpl3+)))) |
a614ce38 | 1813 | |
c5793e7e CAW |
1814 | (define-public guile-8sync |
1815 | (package | |
1816 | (name "guile-8sync") | |
525acb6e | 1817 | (version "0.4.2") |
c5793e7e CAW |
1818 | (source (origin |
1819 | (method url-fetch) | |
1820 | (uri (string-append "mirror://gnu/8sync/8sync-" version | |
1821 | ".tar.gz")) | |
1822 | (sha256 | |
1823 | (base32 | |
525acb6e | 1824 | "031wm13srak3wsnll7j2mbbi29g1pcm4swdb71ds9yn567pn20qw")))) |
c5793e7e CAW |
1825 | (build-system gnu-build-system) |
1826 | (native-inputs `(("autoconf" ,autoconf) | |
1827 | ("automake" ,automake) | |
f6396d86 | 1828 | ("guile" ,guile-2.2) |
c5793e7e CAW |
1829 | ("pkg-config" ,pkg-config) |
1830 | ("texinfo" ,texinfo))) | |
1831 | (arguments | |
1832 | `(#:phases (modify-phases %standard-phases | |
1833 | (add-before 'configure 'setenv | |
1834 | (lambda _ | |
1835 | ;; quiet warnings | |
ab4a1731 CAW |
1836 | (setenv "GUILE_AUTO_COMPILE" "0") |
1837 | #t))))) | |
c5793e7e CAW |
1838 | (home-page "https://gnu.org/s/8sync/") |
1839 | (synopsis "Asynchronous actor model library for Guile") | |
1840 | (description | |
1841 | "GNU 8sync (pronounced \"eight-sync\") is an asynchronous programming | |
1842 | library for GNU Guile based on the actor model. | |
1843 | ||
f6396d86 | 1844 | Note that 8sync is only available for Guile 2.2.") |
71e0f217 | 1845 | (license license:lgpl3+))) |
c5793e7e | 1846 | |
aaf1bdc3 CAW |
1847 | (define-public guile-fibers |
1848 | (package | |
1849 | (name "guile-fibers") | |
1850 | (version "1.0.0") | |
1851 | (source (origin | |
1852 | (method url-fetch) | |
1853 | (uri (string-append "https://wingolog.org/pub/fibers/fibers-" | |
1854 | version ".tar.gz")) | |
1855 | (sha256 | |
1856 | (base32 | |
1857 | "0vjkg72ghgdgphzbjz9ig8al8271rq8974viknb2r1rg4lz92ld0")))) | |
1858 | (build-system gnu-build-system) | |
5e3082df LC |
1859 | (arguments |
1860 | '(#:phases (modify-phases %standard-phases | |
1861 | (add-after 'install 'mode-guile-objects | |
1862 | (lambda* (#:key outputs #:allow-other-keys) | |
1863 | ;; .go files are installed to "lib/guile/X.Y/cache". | |
1864 | ;; This phase moves them to "…/site-ccache". | |
1865 | (let* ((out (assoc-ref outputs "out")) | |
1866 | (lib (string-append out "/lib/guile")) | |
1867 | (old (car (find-files lib "^ccache$" | |
1868 | #:directories? #t))) | |
1869 | (new (string-append (dirname old) | |
1870 | "/site-ccache"))) | |
1871 | (rename-file old new) | |
1872 | #t)))))) | |
aaf1bdc3 CAW |
1873 | (native-inputs |
1874 | `(("texinfo" ,texinfo) | |
1875 | ("pkg-config" ,pkg-config))) | |
1876 | (inputs | |
f6396d86 | 1877 | `(("guile" ,guile-2.2))) |
aaf1bdc3 CAW |
1878 | (synopsis "Lightweight concurrency facility for Guile") |
1879 | (description | |
1880 | "Fibers is a Guile library that implements a a lightweight concurrency | |
1881 | facility, inspired by systems like Concurrent ML, Go, and Erlang. A fiber is | |
1882 | like a \"goroutine\" from the Go language: a lightweight thread-like | |
1883 | abstraction. Systems built with Fibers can scale up to millions of concurrent | |
1884 | fibers, tens of thousands of concurrent socket connections, and many parallel | |
1885 | cores. The Fibers library also provides Concurrent ML-like channels for | |
1886 | communication between fibers. | |
1887 | ||
1888 | Note that Fibers makes use of some Guile 2.1/2.2-specific features and | |
1889 | is not available for Guile 2.0.") | |
1890 | (home-page "https://github.com/wingo/fibers") | |
1891 | (license license:lgpl3+))) | |
1892 | ||
bd233722 | 1893 | (define-public guile-git |
e85035c9 LC |
1894 | (package |
1895 | (name "guile-git") | |
1896 | (version "0.1.0") | |
1897 | (home-page "https://gitlab.com/guile-git/guile-git.git") | |
1898 | (source (origin | |
1899 | (method git-fetch) | |
1900 | (uri (git-reference (url home-page) | |
1901 | (commit (string-append "v" version)))) | |
1902 | (sha256 | |
1903 | (base32 | |
1904 | "1z3awa3i5il08dl2swbnli2j7cawdpray11zx4844j27bxqddcs2")) | |
1905 | (file-name (git-file-name name version)))) | |
1906 | (build-system gnu-build-system) | |
1907 | (native-inputs | |
1908 | `(("autoconf" ,autoconf) | |
1909 | ("automake" ,automake) | |
1910 | ("texinfo" ,texinfo) | |
1911 | ("pkg-config" ,pkg-config))) | |
1912 | (inputs | |
1913 | `(("guile" ,guile-2.2) | |
1914 | ("libgit2" ,libgit2))) | |
1915 | (propagated-inputs | |
1916 | `(("guile-bytestructures" ,guile-bytestructures))) | |
1917 | (synopsis "Guile bindings for libgit2") | |
1918 | (description | |
1919 | "This package provides Guile bindings to libgit2, a library to | |
bd233722 | 1920 | manipulate repositories of the Git version control system.") |
e85035c9 | 1921 | (license license:gpl3+))) |
c5793e7e | 1922 | |
70bc6085 LC |
1923 | (define-public guile2.0-git |
1924 | (package-for-guile-2.0 guile-git)) | |
1925 | ||
f252d6df | 1926 | (define-public guile-syntax-highlight |
3c90c7ae DT |
1927 | (package |
1928 | (name "guile-syntax-highlight") | |
1929 | (version "0.1") | |
1930 | (source (origin | |
1931 | (method url-fetch) | |
1932 | (uri (string-append "https://files.dthompson.us/" | |
1933 | "guile-syntax-highlight/" | |
1934 | "guile-syntax-highlight-" | |
1935 | version ".tar.gz")) | |
1936 | (sha256 | |
1937 | (base32 | |
1938 | "1p771kq15x83483m23bhah1sz6vkalg3drm7x279f4j1cxligkzi")))) | |
1939 | (build-system gnu-build-system) | |
1940 | (native-inputs | |
1941 | `(("pkg-config" ,pkg-config))) | |
1942 | (inputs | |
1943 | `(("guile" ,guile-2.2))) | |
8c72ed92 RW |
1944 | (synopsis "General-purpose syntax highlighter for GNU Guile") |
1945 | (description "Guile-syntax-highlight is a general-purpose syntax | |
f252d6df DT |
1946 | highlighting library for GNU Guile. It can parse code written in various |
1947 | programming languages into a simple s-expression that can be converted to | |
1948 | HTML (via SXML) or any other format for rendering.") | |
3c90c7ae DT |
1949 | (home-page "http://dthompson.us/projects/guile-syntax-highlight.html") |
1950 | (license license:lgpl3+))) | |
f252d6df | 1951 | |
d26ae96c CAW |
1952 | (define-public guile-sjson |
1953 | (package | |
1954 | (name "guile-sjson") | |
a62a16a4 | 1955 | (version "0.2.1") |
d26ae96c CAW |
1956 | (source (origin |
1957 | (method url-fetch) | |
1958 | (uri (string-append "https://dustycloud.org/misc/sjson-" version | |
1959 | ".tar.gz")) | |
1960 | (sha256 | |
1961 | (base32 | |
a62a16a4 | 1962 | "1mzmapln79vv10qxaggz9qwcdbag3jnrj19xx8bgkmxss8h03sv3")))) |
d26ae96c | 1963 | (build-system gnu-build-system) |
d26ae96c CAW |
1964 | (native-inputs |
1965 | `(("autoconf" ,autoconf) | |
1966 | ("automake" ,automake) | |
1967 | ("pkg-config" ,pkg-config))) | |
1968 | (inputs | |
1969 | `(("guile" ,guile-2.2))) | |
1970 | (home-page "https://gitlab.com/dustyweb/guile-sjson") | |
1971 | (synopsis "S-expression based json reader/writer for Guile") | |
1972 | (description "guile-sjson is a json reader/writer for Guile. | |
1973 | It has a nice, simple s-expression based syntax.") | |
1974 | (license license:lgpl3+))) | |
1975 | ||
e076d56a | 1976 | (define-public guile-colorized |
1977 | (package | |
1978 | (name "guile-colorized") | |
1979 | (version "0.1") | |
1980 | (source (origin | |
1981 | (method url-fetch) | |
1982 | (uri (string-append "https://github.com/NalaGinrut/guile-colorized/" | |
1983 | "archive/v" version ".tar.gz")) | |
1984 | (file-name (string-append name "-" version ".tar.gz")) | |
1985 | (sha256 | |
1986 | (base32 | |
1987 | "16xhc3an6aglnca8xl3mvgi8hsqzqn68vsl5ga4bz8bvbap5fn4p")))) | |
977d8666 LC |
1988 | (build-system guile-build-system) |
1989 | (native-inputs | |
e076d56a | 1990 | `(("guile" ,guile-2.2))) |
1991 | (home-page "https://github.com/NalaGinrut/guile-colorized") | |
1992 | (synopsis "Colorized REPL for Guile") | |
1993 | (description | |
1994 | "Guile-colorized provides you with a colorized REPL for GNU Guile.") | |
1995 | (license license:gpl3+))) | |
1996 | ||
fef7baba LC |
1997 | (define-public guile-pfds |
1998 | (package | |
1999 | (name "guile-pfds") | |
2000 | (version "0.3") | |
2001 | (home-page "https://github.com/ijp/pfds") | |
2002 | (source (origin | |
2003 | (method git-fetch) | |
2004 | (uri (git-reference | |
2005 | (url home-page) | |
2006 | (commit (string-append "v" version)))) | |
2007 | (sha256 | |
2008 | (base32 | |
2009 | "19y33wg94pf0n98dkfqd1zbw93fgky4sawxsxl6s3vyqwl0yi5vh")) | |
2010 | (file-name (string-append name "-" version "-checkout")))) | |
2011 | (build-system guile-build-system) | |
2012 | (arguments | |
2013 | '(#:source-directory "src" | |
2014 | #:phases (modify-phases %standard-phases | |
2015 | (add-after 'unpack 'move-files-around | |
2016 | (lambda _ | |
2017 | ;; Move files under a pfds/ directory to reflect the | |
2018 | ;; module hierarchy. | |
2019 | (mkdir-p "src/pfds") | |
2020 | (for-each (lambda (file) | |
2021 | (rename-file file | |
2022 | (string-append "src/pfds/" | |
2023 | file))) | |
2024 | '("bbtrees.sls" | |
2025 | "deques" | |
2026 | "deques.sls" | |
2027 | "dlists.sls" | |
2028 | "fingertrees.sls" | |
2029 | "hamts.sls" | |
2030 | "heaps.sls" | |
2031 | "private" | |
2032 | "psqs.sls" | |
2033 | "queues" | |
2034 | "queues.sls" | |
2035 | "sequences.sls" | |
2036 | "sets.sls")) | |
2037 | ||
2038 | ;; In Guile <= 2.2.4, there's no way to tell 'guild | |
2039 | ;; compile' to accept the ".sls" extension. So... | |
2040 | (for-each (lambda (file) | |
2041 | (rename-file file | |
2042 | (string-append | |
2043 | (string-drop-right file 4) | |
2044 | ".scm"))) | |
2045 | (find-files "." "\\.sls$")) | |
2046 | #t))))) | |
2047 | (native-inputs | |
2048 | `(("guile" ,guile-2.2))) | |
2049 | (synopsis "Purely functional data structures for Guile") | |
2050 | (description | |
2051 | "This package provides purely functional data structures written in R6RS | |
2052 | Scheme and compiled for Guile. It has been tested with Racket, Guile 2, | |
2053 | Vicare Scheme and IronScheme. Right now it contains: | |
2054 | ||
2055 | @itemize | |
2056 | @item queues | |
2057 | @item deques | |
2058 | @item bbtrees | |
2059 | @item sets | |
2060 | @item dlists | |
2061 | @item priority search queues (PSQs) | |
2062 | @item finger trees | |
2063 | @item sequences | |
2064 | @item heaps | |
2065 | @item hash array mapped tries (HAMTs). | |
2066 | @end itemize\n") | |
2067 | (license license:bsd-3))) | |
2068 | ||
69502b5e LC |
2069 | (define-public guile-aa-tree |
2070 | (package | |
2071 | (name "guile-aa-tree") | |
2072 | (version "3.1.1") | |
2073 | (source (origin | |
2074 | (method url-fetch) | |
2075 | (uri (string-append "mirror://savannah/guile-aa-tree/guile-aa-tree-" | |
2076 | version ".tar.gz")) | |
2077 | (sha256 | |
2078 | (base32 | |
2079 | "0044c105r3q9vpl17pv3phl1b79kjm1llhkakqgiasixyav01blh")))) | |
2080 | (build-system guile-build-system) | |
2081 | (native-inputs `(("guile" ,guile-2.2))) | |
2082 | ;; https://savannah.nongnu.org/projects/guile-aa-tree | |
2083 | (home-page "https://qlfiles.net/guile-aa-tree/") | |
2084 | (synopsis "AA tree data structure for Guile") | |
2085 | (description | |
2086 | "This package provides an implementation of @dfn{AA trees}, a | |
2087 | self-balancing binary tree data structure, for Guile. It ensure @math{O(log | |
2088 | n)} worst case performance for core operations. The module provides | |
2089 | non-mutating insert, delete, and search operations, with support for | |
2090 | convenient nested tree operations.") | |
2091 | (license license:gpl3+))) | |
2092 | ||
f858e58f | 2093 | (define-public guile-simple-zmq |
828fa94d LC |
2094 | (let ((commit "5bb66a0499f94006cfd18b58e80ad6623f911c31") |
2095 | (revision "2")) | |
f858e58f PAR |
2096 | (package |
2097 | (name "guile-simple-zmq") | |
2098 | (version (git-version "0.0.0" revision commit)) | |
2099 | (source | |
2100 | (origin | |
2101 | (method git-fetch) | |
2102 | (uri (git-reference | |
2103 | (url "https://github.com/jerry40/guile-simple-zmq") | |
2104 | (commit commit))) | |
2105 | (sha256 | |
2106 | (base32 | |
828fa94d | 2107 | "0dj1brjqa7m4k71sf94aq26ca0la3nr894kfmjnqkpawqfp4dyaz")) |
f858e58f | 2108 | (file-name (git-file-name name version)))) |
977d8666 | 2109 | (build-system guile-build-system) |
f858e58f | 2110 | (arguments |
977d8666 LC |
2111 | `(#:source-directory "src" |
2112 | #:phases (modify-phases %standard-phases | |
2113 | (add-after 'unpack 'set-libzmq-file-name | |
2114 | (lambda* (#:key inputs #:allow-other-keys) | |
2115 | (substitute* "src/simple-zmq.scm" | |
2116 | (("\\(dynamic-link \"libzmq\"\\)") | |
2117 | (format #f "(dynamic-link \"~a/lib/libzmq.so\")" | |
2118 | (assoc-ref inputs "zeromq")))) | |
2119 | #t))))) | |
2120 | (native-inputs | |
e46b84e3 | 2121 | `(("guile" ,guile-2.2))) |
977d8666 | 2122 | (inputs |
e46b84e3 | 2123 | `(("zeromq" ,zeromq))) |
f858e58f PAR |
2124 | (home-page "https://github.com/jerry40/guile-simple-zmq") |
2125 | (synopsis "Guile wrapper over ZeroMQ library") | |
2126 | (description | |
2127 | "This package provides a Guile programming interface to the ZeroMQ | |
2128 | messaging library.") | |
2129 | (license license:gpl3+)))) | |
2130 | ||
fa6a3bb7 | 2131 | (define-public jupyter-guile-kernel |
828fa94d LC |
2132 | (let ((commit "a7db9245a886e104138474df46c3e88b95cff629") |
2133 | (revision "1")) | |
fa6a3bb7 PAR |
2134 | (package |
2135 | (name "jupyter-guile-kernel") | |
2136 | (version (git-version "0.0.0" revision commit)) | |
2137 | (source | |
2138 | (origin | |
2139 | (method git-fetch) | |
2140 | (uri (git-reference | |
2141 | (url "https://github.com/jerry40/guile-kernel") | |
2142 | (commit commit))) | |
2143 | (sha256 | |
2144 | (base32 | |
828fa94d | 2145 | "0aj04853bqm47ivfcmrgpb7w3wkis847kc7qrwsa5zcn9h38qh2f")))) |
977d8666 | 2146 | (build-system guile-build-system) |
fa6a3bb7 | 2147 | (arguments |
977d8666 LC |
2148 | '(#:phases (modify-phases %standard-phases |
2149 | (add-after 'unpack 'set-openssl-file-name | |
2150 | (lambda* (#:key inputs #:allow-other-keys) | |
2151 | ;; Record the absolute file name of the 'openssl' | |
2152 | ;; command. | |
2153 | (substitute* "src/hmac.scm" | |
2154 | (("openssl") | |
2155 | (string-append (assoc-ref inputs "openssl") | |
2156 | "/bin/openssl"))) | |
2157 | #t)) | |
2158 | ||
2159 | ;; XXX: The code uses 'include' to include its own source | |
2160 | ;; files, and "-L src" isn't enough in this case. | |
2161 | (add-before 'build 'chdir | |
2162 | (lambda _ (chdir "src") #t)) | |
2163 | (add-after 'build 'chdir-back | |
2164 | (lambda _ (chdir "..") #t)) | |
2165 | ||
2166 | (add-after 'install 'install-kernel | |
2167 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
8539eb5c LC |
2168 | (let* ((out (assoc-ref outputs "out")) |
2169 | (json (assoc-ref inputs "guile-json")) | |
2170 | (zmq (assoc-ref inputs "guile-simple-zmq")) | |
2171 | (deps (list json zmq)) | |
2172 | (dir (string-append | |
2173 | out "/share/jupyter/kernels/guile")) | |
2174 | (effective (target-guile-effective-version))) | |
977d8666 LC |
2175 | ;; Install kernel. |
2176 | (install-file "src/kernel.json" dir) | |
2177 | ||
2178 | ;; Fix hard-coded file name in the kernel. | |
2179 | (substitute* (string-append dir "/kernel.json") | |
2180 | (("/home/.*/guile-jupyter-kernel.scm") | |
2181 | (string-append out "/share/guile/site/" | |
2182 | (target-guile-effective-version) | |
2183 | "/guile-jupyter-kernel.scm")) | |
2184 | (("\"guile\"") | |
2185 | (string-append "\"" (assoc-ref inputs "guile") | |
2186 | "/bin/guile\"")) | |
2187 | (("-s") | |
8539eb5c LC |
2188 | ;; Add '-L' and '-C' flags so that the kernel |
2189 | ;; finds its dependencies. | |
2190 | (let ((-L (map (lambda (item) | |
2191 | (string-append "\"" item | |
2192 | "/share/guile/site/" | |
2193 | effective "\"")) | |
2194 | deps)) | |
2195 | (-C (map (lambda (item) | |
2196 | (string-append "\"" item | |
2197 | "/lib/guile/" | |
2198 | effective | |
2199 | "/site-ccache\"")) | |
2200 | deps))) | |
2201 | (string-append "--no-auto-compile\"" | |
2202 | (string-join -L ", \"-L\", " | |
2203 | 'prefix) | |
2204 | (string-join -C ", \"-C\", " | |
2205 | 'prefix) | |
2206 | ", \"-s")))) | |
977d8666 | 2207 | #t)))))) |
fa6a3bb7 PAR |
2208 | (inputs |
2209 | `(("openssl" ,openssl) | |
8539eb5c LC |
2210 | ("guile" ,guile-2.2) |
2211 | ("guile-json" ,guile-json) | |
fa6a3bb7 PAR |
2212 | ("guile-simple-zmq" ,guile-simple-zmq))) |
2213 | (synopsis "Guile kernel for the Jupyter Notebook") | |
2214 | (description | |
2215 | "This package provides a Guile 2.x kernel for the Jupyter Notebook. It | |
2216 | allows users to interact with the Guile REPL through Jupyter.") | |
2217 | (home-page "https://github.com/jerry40/guile-kernel") | |
2218 | (license license:gpl3+)))) | |
2219 | ||
89f8c2ac RJ |
2220 | (define-public guile-sparql |
2221 | (package | |
2222 | (name "guile-sparql") | |
2223 | (version "0.0.7") | |
2224 | (source (origin | |
2225 | (method url-fetch) | |
2226 | (uri (string-append | |
2227 | "https://github.com/roelj/guile-sparql/releases/download/" | |
2228 | version "/guile-sparql-" version ".tar.gz")) | |
2229 | (sha256 | |
2230 | (base32 "1drnvhsgl0gc5crmb16yyw1j98nkhwwcgssv9vgm36ng43nnzffd")))) | |
2231 | (build-system gnu-build-system) | |
2232 | (arguments `(#:tests? #f)) ; There are no tests. | |
2233 | (native-inputs | |
2234 | `(("pkg-config" ,pkg-config))) | |
2235 | (inputs | |
2236 | `(("guile" ,guile-2.2))) | |
2237 | (home-page "https://github.com/roelj/guile-sparql") | |
2238 | (synopsis "SPARQL module for Guile") | |
2239 | (description "This package provides the functionality to query a SPARQL | |
2240 | endpoint. Additionally, it provides an interface to write SPARQL queries | |
2241 | using S-expressions.") | |
2242 | (license license:gpl3+))) | |
2243 | ||
0058888c LC |
2244 | (define-public guile-debbugs |
2245 | (package | |
2246 | (name "guile-debbugs") | |
2247 | (version "0.0.2") | |
2248 | (source (origin | |
2249 | (method url-fetch) | |
2250 | (uri (string-append "mirror://gnu/guile-debbugs/guile-debbugs-" | |
2251 | version ".tar.gz")) | |
2252 | (sha256 | |
2253 | (base32 | |
2254 | "16l8910p57im6s3j93xhdaqvgfy6ms5n97177mrch3y961z5hy0i")) | |
2255 | (modules '((guix build utils))) | |
2256 | (snippet | |
2257 | '(substitute* "Makefile.in" | |
2258 | (("^godir = (.*)/ccache" _ prefix) | |
2259 | (string-append "godir = " prefix "/site-ccache")))))) | |
2260 | (build-system gnu-build-system) | |
2261 | (native-inputs | |
2262 | `(("guile" ,guile-2.2) | |
2263 | ("pkg-config" ,pkg-config))) | |
2264 | (home-page "https://savannah.gnu.org/projects/guile-debbugs/") | |
2265 | (synopsis "Guile interface to the Debbugs bug tracking service") | |
2266 | (description | |
2267 | "This package provides a Guile library to communicate with a Debbugs bug | |
2268 | tracker's SOAP service, such as @url{https://bugs.gnu.org}.") | |
2269 | (license license:gpl3+))) | |
2270 | ||
1722d680 | 2271 | ;;; guile.scm ends here |