1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
4 ;;; Copyright © 2015 Christopher Allan Webber <cwebber@dustycloud.org>
5 ;;; Copyright © 2016 Alex Sassmannshausen <alex@pompo.co>
6 ;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2016 Erik Edrosa <erik.edrosa@gmail.com>
8 ;;; Copyright © 2016 Eraim Flashner <efraim@flashner.co.il>
10 ;;; This file is part of GNU Guix.
12 ;;; GNU Guix is free software; you can redistribute it and/or modify it
13 ;;; under the terms of the GNU General Public License as published by
14 ;;; the Free Software Foundation; either version 3 of the License, or (at
15 ;;; your option) any later version.
17 ;;; GNU Guix is distributed in the hope that it will be useful, but
18 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;;; GNU General Public License for more details.
22 ;;; You should have received a copy of the GNU General Public License
23 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
25 (define-module (gnu packages guile)
26 #:use-module (guix licenses)
27 #:use-module (gnu packages)
28 #:use-module (gnu packages bash)
29 #:use-module (gnu packages bdw-gc)
30 #:use-module (gnu packages gawk)
31 #:use-module (gnu packages gperf)
32 #:use-module (gnu packages libffi)
33 #:use-module (gnu packages autotools)
34 #:use-module (gnu packages flex)
35 #:use-module (gnu packages libunistring)
36 #:use-module (gnu packages linux)
37 #:use-module (gnu packages m4)
38 #:use-module (gnu packages multiprecision)
39 #:use-module (gnu packages pkg-config)
40 #:use-module (gnu packages readline)
41 #:use-module (gnu packages ncurses)
42 #:use-module (gnu packages ed)
43 #:use-module (gnu packages base)
44 #:use-module (gnu packages texinfo)
45 #:use-module (gnu packages gettext)
46 #:use-module (gnu packages databases)
47 #:use-module (gnu packages python)
48 #:use-module (gnu packages gl)
49 #:use-module (gnu packages sdl)
50 #:use-module (gnu packages maths)
51 #:use-module (gnu packages image)
52 #:use-module (guix packages)
53 #:use-module (guix download)
54 #:use-module (guix git-download)
55 #:use-module (guix build-system gnu)
56 #:use-module (guix build-system trivial)
57 #:use-module (guix utils)
58 #:use-module (ice-9 match))
62 ;;; GNU Guile, and modules and extensions.
66 (define-public guile-1.8
72 (uri (string-append "mirror://gnu/guile/guile-" version
76 "0l200a0v7h8bh0cwz6v7hc13ds39cgqsmfrks55b1rbj5vniyiy3"))
77 (patches (search-patches "guile-1.8-cpp-4.5.patch"))))
78 (build-system gnu-build-system)
79 (arguments '(#:configure-flags '("--disable-error-on-warning")
81 ;; Insert a phase before `configure' to patch things up.
82 #:phases (alist-cons-before
85 (lambda* (#:key outputs #:allow-other-keys)
86 ;; Add a call to `lt_dladdsearchdir' so that
87 ;; `libguile-readline.so' & co. are in the
88 ;; loader's search path.
89 (substitute* "libguile/dynl.c"
90 (("lt_dlinit.*$" match)
92 " ~a~% lt_dladdsearchdir(\"~a/lib\");~%"
94 (assoc-ref outputs "out"))))
96 ;; The usual /bin/sh...
97 (substitute* "ice-9/popen.scm"
98 (("/bin/sh") (which "sh"))))
100 (inputs `(("gawk" ,gawk)
101 ("readline" ,readline)))
103 ;; Since `guile-1.8.pc' has "Libs: ... -lgmp -lltdl", these must be
105 (propagated-inputs `(("gmp" ,gmp)
106 ("libltdl" ,libltdl)))
108 ;; When cross-compiling, a native version of Guile itself is needed.
109 (self-native-input? #t)
112 (list (search-path-specification
113 (variable "GUILE_LOAD_PATH")
114 (files '("share/guile/site")))))
116 (synopsis "Scheme implementation intended especially for extensions")
118 "Guile is the GNU Ubiquitous Intelligent Language for Extensions, the
119 official extension language of the GNU system. It is an implementation of
120 the Scheme language which can be easily embedded in other applications to
121 provide a convenient means of extending the functionality of the application
122 without requiring the source code to be rewritten.")
123 (home-page "http://www.gnu.org/software/guile/")
126 (define-public guile-2.0
132 (uri (string-append "mirror://gnu/guile/guile-" version
136 "1qh3j7308qvsjgwf7h94yqgckpbgz2k3yqdkzsyhqcafvfka9l5f"))
137 (patches (search-patches "guile-arm-fixes.patch"))))
138 (build-system gnu-build-system)
139 (native-inputs `(("pkgconfig" ,pkg-config)))
140 (inputs `(("libffi" ,libffi)
141 ("readline" ,readline)
145 `( ;; These ones aren't normally needed here, but since `libguile-2.0.la'
146 ;; reads `-lltdl -lunistring', adding them here will add the needed
147 ;; `-L' flags. As for why the `.la' file lacks the `-L' flags, see
148 ;; <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/18903>.
149 ("libunistring" ,libunistring)
151 ;; Depend on LIBLTDL, not LIBTOOL. That way, we avoid some the extra
152 ;; dependencies that LIBTOOL has, which is helpful during bootstrap.
155 ;; The headers and/or `guile-2.0.pc' refer to these packages, so they
156 ;; must be propagated.
160 (self-native-input? #t)
162 (outputs '("out" "debug"))
165 `(#:configure-flags '("--disable-static") ;saves 3MiB
166 #:phases (alist-cons-before
167 'configure 'pre-configure
168 (lambda* (#:key inputs #:allow-other-keys)
169 ;; Tell (ice-9 popen) the file name of Bash.
170 (let ((bash (assoc-ref inputs "bash")))
171 (substitute* "module/ice-9/popen.scm"
173 (string-append bash "/bin/bash")))))
177 (list (search-path-specification
178 (variable "GUILE_LOAD_PATH")
179 (files '("share/guile/site/2.0")))
180 (search-path-specification
181 (variable "GUILE_LOAD_COMPILED_PATH")
182 (files '("lib/guile/2.0/ccache"
183 "share/guile/site/2.0")))))
185 (synopsis "Scheme implementation intended especially for extensions")
187 "Guile is the GNU Ubiquitous Intelligent Language for Extensions, the
188 official extension language of the GNU system. It is an implementation of
189 the Scheme language which can be easily embedded in other applications to
190 provide a convenient means of extending the functionality of the application
191 without requiring the source code to be rewritten.")
192 (home-page "http://www.gnu.org/software/guile/")
195 (define-public guile-2.0/fixed
196 ;; A package of Guile 2.0 that's rarely changed. It is the one used
197 ;; in the `base' module, and thus changing it entails a full rebuild.
200 (define-public guile-next
201 (package (inherit guile-2.0)
206 (uri (string-append "ftp://alpha.gnu.org/gnu/guile/guile-"
210 "0p971k3v04jj5klnv145g4172cpcp90arf0wvxxj2aqkg16j9m9c"))
211 (modules '((guix build utils)))
213 ;; Remove the pre-built object files. Instead, build everything
214 ;; from source, at the expense of significantly longer build
215 ;; times (almost 3 hours on a 4-core Intel i5).
216 (snippet '(for-each delete-file
217 (find-files "prebuilt" "\\.go$")))))
218 (synopsis "Snapshot of what will become version 2.2 of GNU Guile")
220 (list (search-path-specification
221 (variable "GUILE_LOAD_PATH")
222 (files '("share/guile/site/2.2")))
223 (search-path-specification
224 (variable "GUILE_LOAD_COMPILED_PATH")
225 (files '("lib/guile/2.2/ccache"
226 "share/guile/site/2.2")))))))
228 (define-public guile-for-guile-emacs
229 (package (inherit guile-next)
230 (name "guile-for-guile-emacs")
231 (version "20150510.d8d9a8d")
235 (url "git://git.hcoop.net/git/bpt/guile.git")
236 (commit "d8d9a8da05ec876acba81a559798eb5eeceb5a17")))
239 "00sprsshy16y8pxjy126hr2adqcvvzzz96hjyjwgg8swva1qh6b0"))))
241 (substitute-keyword-arguments `(;; Tests aren't passing for now.
242 ;; Obviously we should re-enable this!
244 ,@(package-arguments guile-next))
246 `(modify-phases ,phases
247 (add-after 'unpack 'autogen
249 (zero? (system* "sh" "autogen.sh"))))
250 (add-before 'autogen 'patch-/bin/sh
252 (substitute* "build-aux/git-version-gen"
253 (("#!/bin/sh") (string-append "#!" (which "sh"))))
256 `(("autoconf" ,autoconf)
257 ("automake" ,automake)
261 ("gettext" ,gnu-gettext)
262 ,@(package-native-inputs guile-next)))
263 ;; Same as in guile-2.0
265 (list (search-path-specification
266 (variable "GUILE_LOAD_PATH")
267 (files '("share/guile/site/2.0")))
268 (search-path-specification
269 (variable "GUILE_LOAD_COMPILED_PATH")
270 (files '("lib/guile/2.0/ccache"
271 "share/guile/site/2.0")))))))
278 (define-public artanis
284 (uri (string-append "ftp://alpha.gnu.org/gnu/artanis/artanis-"
288 "19m3ak12cqk8js9d2mdg11kh4fjsq8frfpd10qw75h0zpr5cywpp"))))
289 (build-system gnu-build-system)
290 ;; TODO: Add guile-dbi and guile-dbd optional dependencies.
291 (inputs `(("guile" ,guile-2.0)))
292 (native-inputs `(("bash" ,bash) ;for the `source' builtin
293 ("pkgconfig" ,pkg-config)
294 ("util-linux" ,util-linux))) ;for the `script' command
297 ;; TODO: The documentation must be built with the `docs' target.
298 (let* ((out (assoc-ref %outputs "out"))
299 (dir (string-append out "/share/guile/site/2.0")))
300 ;; Don't use (%site-dir) for site paths.
301 (list (string-append "MOD_PATH=" dir)
302 (string-append "MOD_COMPILED_PATH=" dir)
303 (string-append "DESTDIR=" out)))
306 (modify-phases %standard-phases
308 'install 'substitute-root-dir
309 (lambda* (#:key outputs #:allow-other-keys)
310 (let ((out (assoc-ref outputs "out")))
311 (substitute* "Makefile" ;ignore the execution of bash.bashrc
312 ((" /etc/bash.bashrc") " /dev/null"))
313 (substitute* "Makefile" ;set the root of config files to OUT
314 ((" /etc") (string-append " " out "/etc")))
315 (mkdir-p (string-append out "/bin")) ;for the `art' executable
317 (synopsis "Web application framework written in Guile")
318 (description "GNU Artanis is a web application framework written in Guile
319 Scheme. A web application framework (WAF) is a software framework that is
320 designed to support the development of dynamic websites, web applications, web
321 services and web resources. The framework aims to alleviate the overhead
322 associated with common activities performed in web development. Artanis
323 provides several tools for web development: database access, templating
324 frameworks, session management, URL-remapping for RESTful, page caching, and
326 (home-page "https://www.gnu.org/software/artanis/")
327 (license (list gpl3+ lgpl3+)))) ;dual license
329 (define-public guile-reader
331 (name "guile-reader")
335 (uri (string-append "mirror://savannah/guile-reader/guile-reader-"
339 "020wz5w8z6g79nbqifg2n496wxwkcjzh8xizpv6mz0hczpl155ma"))))
340 (build-system gnu-build-system)
341 (native-inputs `(("pkgconfig" ,pkg-config)
343 (inputs `(("guile" ,guile-2.0)))
344 (arguments `(#:configure-flags
345 (let ((out (assoc-ref %outputs "out")))
346 (list (string-append "--with-guilemoduledir="
347 out "/share/guile/site/2.0")))))
348 (synopsis "Framework for building readers for GNU Guile")
350 "Guile-Reader is a simple framework for building readers for GNU Guile.
352 The idea is to make it easy to build procedures that extend Guile’s read
353 procedure. Readers supporting various syntax variants can easily be written,
354 possibly by re-using existing “token readers” of a standard Scheme
355 readers. For example, it is used to implement Skribilo’s R5RS-derived
358 Guile-Reader’s approach is similar to Common Lisp’s “read table”, but
359 hopefully more powerful and flexible (for instance, one may instantiate as
360 many readers as needed).")
361 (home-page "http://www.nongnu.org/guile-reader/")
364 (define-public guile-ncurses
366 (name "guile-ncurses")
370 (uri (string-append "mirror://gnu/guile-ncurses/guile-ncurses-"
374 "153vv75gb7l62sp3666rc97i63rnaqbx2rjar7d9b5w81fhwv4r5"))))
375 (build-system gnu-build-system)
376 (inputs `(("ncurses" ,ncurses)
377 ("guile" ,guile-2.0)))
379 '(#:configure-flags (list "--with-ncursesw" ; Unicode support
380 (string-append "--with-guilesitedir="
381 (assoc-ref %outputs "out")
382 "/share/guile/site/2.0"))
384 (modify-phases %standard-phases
385 (add-after 'install 'post-install
386 (lambda* (#:key outputs #:allow-other-keys)
387 (let* ((out (assoc-ref outputs "out"))
388 (dir (string-append out "/share/guile/site/"))
389 (files (find-files dir ".scm")))
391 (("\"libguile-ncurses\"")
392 (format #f "\"~a/lib/libguile-ncurses\""
394 (home-page "http://www.gnu.org/software/guile-ncurses/")
395 (synopsis "Guile bindings to ncurses")
397 "guile-ncurses provides Guile language bindings for the ncurses
407 (uri (string-append "mirror://gnu/mcron/mcron-"
411 "0zparwgf01jgl1x53ik71ghabldq6zz18ha4dscps1i0qrzgap1b"))
412 (patches (search-patches "mcron-install.patch"))))
413 (build-system gnu-build-system)
414 (native-inputs `(("pkg-config" ,pkg-config)))
415 (inputs `(("ed" ,ed) ("which" ,which) ("guile" ,guile-2.0)))
416 (home-page "http://www.gnu.org/software/mcron/")
417 (synopsis "Run jobs at scheduled times")
419 "GNU Mcron is a complete replacement for Vixie cron. It is used to run
420 tasks on a schedule, such as every hour or every Monday. Mcron is written in
421 Guile, so its configuration can be written in Scheme; the original cron
422 format is also supported.")
425 (define-public guile-lib
431 (uri (string-append "mirror://savannah/guile-lib/guile-lib-"
435 "1f9n2b5b5r75lzjinyk6zp6g20g60msa0jpfrk5hhg4j8cy0ih4b"))))
436 (build-system gnu-build-system)
438 '(#:phases (alist-cons-before
439 'configure 'patch-module-dir
441 (substitute* "src/Makefile.in"
442 (("^moddir[[:blank:]]*=[[:blank:]]*([[:graph:]]+)" _ rhs)
443 (string-append "moddir = " rhs "/2.0\n"))))
445 (inputs `(("guile" ,guile-2.0)))
446 (home-page "http://www.nongnu.org/guile-lib/")
447 (synopsis "Collection of useful Guile Scheme modules")
449 "Guile-Lib is intended as an accumulation place for pure-scheme Guile
450 modules, allowing for people to cooperate integrating their generic Guile
451 modules into a coherent library. Think \"a down-scaled, limited-scope CPAN
454 ;; The whole is under GPLv3+, but some modules are under laxer
455 ;; distribution terms such as LGPL and public domain. See `COPYING' for
459 (define-public guile-json
465 (uri (string-append "mirror://savannah/guile-json/guile-json-"
469 "0l8a34l92nrdszy7ykycfvr8y0n0yi5qb3ccliycvpvf9mzk5n8d"))
470 (modules '((guix build utils)))
472 ;; Make sure everything goes under .../site/2.0, like Guile's
473 ;; search paths expects.
474 '(substitute* '("Makefile.in" "json/Makefile.in")
475 (("moddir =.*/share/guile/site" all)
476 (string-append all "/2.0"))))))
477 (build-system gnu-build-system)
478 (native-inputs `(("guile" ,guile-2.0)))
479 (home-page "http://savannah.nongnu.org/projects/guile-json/")
480 (synopsis "JSON module for Guile")
482 "Guile-json supports parsing and building JSON documents according to the
483 http:://json.org specification. These are the main features:
484 - Strictly complies to http://json.org specification.
485 - Build JSON documents programmatically via macros.
486 - Unicode support for strings.
487 - Allows JSON pretty printing.")
490 (define-public guile-minikanren
492 (name "guile-minikanren")
493 (version "20150424.e844d85")
497 (url "https://github.com/ijp/minikanren.git")
498 (commit "e844d85512f8c055d3f96143ee506007389a25e3")))
499 (file-name (string-append name "-" version "-checkout"))
502 "0r50jlpzi940jlmxyy3ddqqwmj5r12gb4bcv0ssini9v8km13xz6"))))
503 (build-system trivial-build-system)
510 (use-modules (guix build utils)
512 (let* ((out (assoc-ref %outputs "out"))
513 (module-dir (string-append out "/share/guile/site/2.0"))
514 (source (assoc-ref %build-inputs "source"))
515 (doc (string-append out "/share/doc/guile-minikanren"))
516 (scm-files '("minikanren.scm"
517 "minikanren/mkextraforms.scm"
518 "minikanren/mkprelude.scm"
519 "minikanren/mk.scm"))
520 (guild (string-append (assoc-ref %build-inputs "guile")
522 ;; Make installation directories.
523 (mkdir-p (string-append module-dir "/minikanren"))
526 ;; Compile .scm files and install.
528 (setenv "GUILE_AUTO_COMPILE" "0")
529 (for-each (lambda (file)
530 (let* ((dest-file (string-append module-dir "/"
532 (go-file (match (string-split file #\.)
534 (string-append module-dir "/"
536 ;; Install source module.
537 (copy-file file dest-file)
538 ;; Install compiled module.
539 (unless (zero? (system* guild "compile"
543 (error (format #f "Failed to compile ~s to ~s!"
547 ;; Also copy over the README.
548 (install-file "README.org" doc)
551 `(("guile" ,guile-2.0)))
552 (home-page "https://github.com/ijp/minikanren")
553 (synopsis "MiniKanren declarative logic system, packaged for Guile")
555 "MiniKanren is a relational programming extension to the Scheme
556 programming Language, written as a smaller version of Kanren suitable for
557 pedagogical purposes. It is featured in the book, The Reasoned Schemer,
558 written by Dan Friedman, William Byrd, and Oleg Kiselyov.
560 This is Ian Price's r6rs packaged version of miniKanren, which deviates
561 slightly from miniKanren mainline.
563 See http://minikanren.org/ for more on miniKanren generally.")
566 (define-public guile-irregex
568 (name "guile-irregex")
573 "http://synthcode.com/scheme/irregex/irregex-"
578 "1b8jl7bycyl2ssp6sb1j24pp9hvqyxm85ki9bmwd50glyyjs5zay"))))
579 (build-system gnu-build-system)
581 `(#:modules ((guix build utils)
583 (guix build gnu-build-system))
585 (modify-phases %standard-phases
590 (lambda* (#:key inputs outputs #:allow-other-keys)
592 (use-modules (guix build utils)
594 (let* ((out (assoc-ref outputs "out"))
595 (module-dir (string-append out "/share/guile/site/2.0"))
596 (source (assoc-ref inputs "source"))
597 (doc (string-append out "/share/doc/guile-irregex/"))
598 (guild (string-append (assoc-ref %build-inputs "guile")
600 ;; Make installation directories.
601 (mkdir-p (string-append module-dir "/rx/source"))
604 ;; Compile .scm files and install.
605 (setenv "GUILE_AUTO_COMPILE" "0")
607 (for-each (lambda (copy-info)
609 ((src-file dest-file-basis)
610 (let* ((dest-file (string-append
611 module-dir dest-file-basis
613 (go-file (string-append
614 module-dir dest-file-basis
616 ;; Install source module.
619 ;; Install compiled module.
620 (unless (zero? (system* guild "compile"
624 (error (format #f "Failed to compile ~s to ~s!"
625 src-file dest-file)))))))
626 '(("irregex-guile.scm" "/rx/irregex")
627 ("irregex.scm" "/rx/source/irregex")
628 ;; Not really reachable via guile's packaging system,
629 ;; but nice to have around
630 ("irregex-utils.scm" "/rx/source/irregex-utils")))
632 ;; Also copy over the README.
633 (install-file "irregex.html" doc)
636 `(("guile" ,guile-2.0)))
637 (home-page "http://synthcode.com/scheme/irregex")
638 (synopsis "S-expression based regular expressions")
640 "Irregex is an s-expression based alternative to your classic
641 string-based regular expressions. It implements SRFI 115 and is deeply
642 inspired by the SCSH regular expression system.")
645 ;; There are two guile-gdbm packages, one using the FFI and one with
646 ;; direct C bindings, hence the verbose name.
648 (define-public guile-gdbm-ffi
650 (name "guile-gdbm-ffi")
651 (version "20120209.fa1d5b6")
655 (url "https://github.com/ijp/guile-gdbm.git")
656 (commit "fa1d5b6231d0e4d096687b378c025f2148c5f246")))
657 (file-name (string-append name "-" version "-checkout"))
660 "1j8wrsw7v9w6qkl47xz0rdikg50v16nn6kbs3lgzcymjzpa7babj"))))
661 (build-system trivial-build-system)
667 (use-modules (guix build utils)
668 (system base compile))
670 (let* ((out (assoc-ref %outputs "out"))
671 (module-dir (string-append out "/share/guile/site/2.0"))
672 (source (assoc-ref %build-inputs "source"))
673 (doc (string-append out "/share/doc"))
674 (guild (string-append (assoc-ref %build-inputs "guile")
677 (string-append module-dir "/gdbm.scm"))
679 (string-append module-dir "/gdbm.go")))
680 ;; Make installation directories.
684 ;; Switch directory for compiling and installing
688 (copy-file "gdbm.scm" gdbm.scm-dest)
691 (substitute* gdbm.scm-dest
692 (("\\(dynamic-link \"libgdbm\"\\)")
693 (format #f "(dynamic-link \"~a/lib/libgdbm.so\")"
694 (assoc-ref %build-inputs "gdbm"))))
696 ;; compile to the destination
697 (compile-file gdbm.scm-dest
698 #:output-file gdbm.go-dest)))))
700 `(("guile" ,guile-2.0)))
703 (home-page "https://github.com/ijp/guile-gdbm")
704 (synopsis "Guile bindings to the GDBM library via Guile's FFI")
706 "Guile bindings to the GDBM key-value storage system, using
707 Guile's foreign function interface.")
716 (uri (string-append "https://files.dthompson.us/haunt/haunt-"
720 "1id83n8fs7jxys1d8jy70vylg8gzcvlw1y7hb41y3qxv5zi4671m"))))
721 (build-system gnu-build-system)
723 `(#:modules ((ice-9 match) (ice-9 ftw)
724 ,@%gnu-build-system-modules)
726 #:phases (modify-phases %standard-phases
727 (add-after 'install 'wrap-haunt
728 (lambda* (#:key outputs #:allow-other-keys)
729 ;; Wrap the 'haunt' command to refer to the right
731 (let* ((out (assoc-ref outputs "out"))
732 (bin (string-append out "/bin"))
734 out "/share/guile/site")))
735 (match (scandir site)
737 (let ((modules (string-append site "/" version)))
738 (wrap-program (string-append bin "/haunt")
739 `("GUILE_LOAD_PATH" ":" prefix
741 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
745 `(("pkg-config" ,pkg-config)
746 ("texinfo" ,texinfo)))
748 `(("guile" ,guile-2.0)))
750 `(("guile-reader" ,guile-reader)))
751 (synopsis "Functional static site generator")
752 (description "Haunt is a static site generator written in Guile
753 Scheme. Haunt features a functional build system and an extensible
754 interface for reading articles in any format.")
755 (home-page "http://haunt.dthompson.us")
758 (define-public guile-config
760 (name "guile-config")
765 "http://alex.pompo.co/software/" name "-" version
769 "1b719bn192f9wg24rr0zx8jpmygsvyhfi35iy778pb5p392snrn8"))))
770 (build-system gnu-build-system)
772 `(("guile" ,guile-2.0)))
773 (synopsis "Guile application configuration parsing library")
775 "Guile Config is a library providing a declarative approach to
776 application configuration specification. The library provides clean
777 configuration declaration forms, and processors that take care of:
778 configuration file creation; configuration file parsing; command-line
779 parameter parsing using getopt-long; basic GNU command-line parameter
780 generation (--help, --usage, --version); automatic output generation for the
781 above command-line parameters.")
782 (home-page "https://github.com/a-sassmannshausen/guile-config")
785 (define-public guile-redis
791 (uri (string-append "mirror://savannah/guile-redis/guile-redis-"
795 "0vx6if6b4r3kwx64vzbs6vpc0cpcr85x11w9vkzq27gw8n7isv56"))
796 (modules '((guix build utils)))
798 ;; Make sure everything goes under .../site/2.0, like Guile's
799 ;; search paths expects.
800 '(substitute* '("Makefile.in"
802 "redis/commands/Makefile.in")
803 (("moddir =.*/share/guile/site" all)
804 (string-append all "/2.0"))))))
805 (build-system gnu-build-system)
807 `(("guile" ,guile-2.0)))
808 (home-page "http://savannah.nongnu.org/projects/guile-redis/")
809 (synopsis "Redis client library for Guile")
810 (description "Guile-redis provides a Scheme interface to the Redis
811 key-value cache and store.")
814 (define-public guile-wisp
820 (uri (string-append "https://bitbucket.org/ArneBab/"
821 "wisp/downloads/wisp-"
825 "0y5fxacalkgbv9s71h58vdvm2h2ln3rk024dd0vszwcf953as5fq"))))
826 (build-system gnu-build-system)
828 `(#:modules ((system base compile)
829 ,@%gnu-build-system-modules)
831 (modify-phases %standard-phases
833 'configure 'substitute-before-config
835 (lambda* (#:key inputs #:allow-other-keys)
836 (let ((bash (assoc-ref inputs "bash")))
837 ;; configure checks for guile-2.0, but ours is just named "guile" :)
838 (substitute* "configure"
839 (("guile-2.0") "guile"))
840 ;; Puts together some test files with /bin/bash hardcoded
841 (substitute* "Makefile.in"
843 (string-append bash "/bin/bash") ))
846 ;; auto compilation breaks, but if we set HOME to /tmp,
849 'check 'auto-compile-hacky-workaround
851 (setenv "HOME" "/tmp")
855 (lambda* (#:key outputs inputs #:allow-other-keys)
856 (let* ((out (assoc-ref outputs "out"))
857 (module-dir (string-append out "/share/guile/site/2.0"))
859 (string-append module-dir "/language/wisp"))
860 (guild (string-append (assoc-ref inputs "guile")
862 ;; Make installation directories.
864 (mkdir-p language-dir)
867 (copy-file "wisp-scheme.scm"
868 (string-append module-dir "/wisp-scheme.scm"))
869 (copy-file "language/wisp/spec.scm"
870 (string-append language-dir "/spec.scm"))
872 ;; compile to the destination
873 (compile-file "wisp-scheme.scm"
874 #:output-file (string-append
875 module-dir "/wisp-scheme.go"))
876 (compile-file "language/wisp/spec.scm"
877 #:output-file (string-append
878 language-dir "/spec.go"))
880 (home-page "http://draketo.de/english/wisp")
882 `(("guile" ,guile-2.0)
884 (synopsis "Whitespace to lisp syntax for Guile")
885 (description "Wisp is a syntax for Guile which provides a Python-like
886 whitespace-significant language. It may be easier on the eyes for some
887 users and in some situations.")
890 (define-public guile-sly
896 (uri (string-append "https://files.dthompson.us/sly/sly-"
900 "1svzlbz2vripmyq2kjh0rig16bsrnbkwbsm558pjln9l65mcl4qq"))))
901 (build-system gnu-build-system)
904 (list (string-append "--with-libfreeimage-prefix="
905 (assoc-ref %build-inputs "freeimage"))
906 (string-append "--with-libgslcblas-prefix="
907 (assoc-ref %build-inputs "gsl")))))
909 `(("pkg-config" ,pkg-config)))
911 `(("guile" ,guile-2.0)
912 ("guile-sdl" ,guile-sdl)
913 ("guile-opengl" ,guile-opengl)))
916 ("freeimage" ,freeimage)
918 (synopsis "2D/3D game engine for GNU Guile")
919 (description "Sly is a 2D/3D game engine written in Guile Scheme. Sly
920 features a functional reactive programming interface and live coding
922 (home-page "http://dthompson.us/pages/software/sly.html")
925 (define-public g-wrap
931 (uri (string-append "mirror://savannah/g-wrap/g-wrap-"
935 "0ak0bha37dfpj9kmyw1r8fj8nva639aw5xr66wr5gd3l1rqf5xhg"))))
936 (build-system gnu-build-system)
938 `(("pkg-config" ,pkg-config)))
940 `(("guile" ,guile-2.0)
941 ("guile-lib" ,guile-lib)))
943 `(("libffi" ,libffi)))
944 (synopsis "Generate C bindings for Guile")
945 (description "G-Wrap is a tool and Guile library for generating function
946 wrappers for inter-language calls. It currently only supports generating Guile
947 wrappers for C functions. Given a definition of the types and prototypes for
948 a given C interface, G-Wrap will automatically generate the C code that
949 provides access to that interface and its types from the Scheme level.")
950 (home-page "http://www.nongnu.org/g-wrap/index.html")
953 ;;; guile.scm ends here