1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2020 Ekaitz Zarraga <ekaitz@elenq.tech>
3 ;;; Copyright © 2020 Evan Hanson <evhan@foldling.org>
4 ;;; Copyright © 2020 raingloom <raingloom@riseup.net>
6 ;;; This file is part of GNU Guix.
8 ;;; GNU Guix is free software; you can redistribute it and/or modify it
9 ;;; under the terms of the GNU General Public License as published by
10 ;;; the Free Software Foundation; either version 3 of the License, or (at
11 ;;; your option) any later version.
13 ;;; GNU Guix is distributed in the hope that it will be useful, but
14 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
15 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ;;; GNU General Public License for more details.
18 ;;; You should have received a copy of the GNU General Public License
19 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
21 (define-module (gnu packages chicken)
22 #:use-module (gnu packages)
23 #:use-module (guix packages)
24 #:use-module (guix build-system chicken)
25 #:use-module (guix build-system gnu)
26 #:use-module (guix download)
27 #:use-module (guix git-download)
28 #:use-module (guix svn-download)
29 #:use-module (gnu packages commencement)
30 #:use-module ((guix licenses)
33 (define-public chicken
39 (uri (string-append "https://code.call-cc.org/releases/"
40 version "/chicken-" version ".tar.gz"))
43 "1yl0hxm9cirgcp8jgxp6vv29lpswfvaw3zfkh6rsj0vkrv44k4c1"))))
44 (build-system gnu-build-system)
46 `(#:modules ((guix build gnu-build-system)
50 ;; No `configure' script; run "make check" after "make install" as
51 ;; prescribed by README.
53 (modify-phases %standard-phases
56 (add-after 'install 'check
57 (assoc-ref %standard-phases 'check)))
59 #:make-flags (let ((out (assoc-ref %outputs "out")))
60 (list "PLATFORM=linux"
61 (string-append "PREFIX=" out)
62 (string-append "VARDIR=" out "/var/lib")))
64 ;; Parallel builds are not supported, as noted in README.
65 #:parallel-build? #f))
67 (list (search-path-specification
68 (variable "CHICKEN_REPOSITORY_PATH")
69 ;; TODO extract binary version into a module level definition.
70 (files (list "var/lib/chicken/11")))))
71 (propagated-inputs `(("gcc-toolchain" ,gcc-toolchain)))
72 (home-page "https://www.call-cc.org/")
73 (synopsis "R5RS Scheme implementation that compiles native code via C")
75 "CHICKEN is a compiler for the Scheme programming language. CHICKEN
76 produces portable and efficient C, supports almost all of the R5RS Scheme
77 language standard, and includes many enhancements and extensions.")
78 (license license:bsd-3)))
80 (define-public chicken-srfi-1
82 (name "chicken-srfi-1")
89 "https://code.call-cc.org/svn/chicken-eggs/"
90 "release/5/srfi-1/tags/"
93 (user-name "anonymous")
95 (file-name (string-append "chicken-srfi-1" version "-checkout"))
98 "02940zsjrmn7c34rnp1rllm2nahh9jvszlzrw8ak4pf31q09cmq1"))))
99 (build-system chicken-build-system)
100 (arguments '(#:egg-name "srfi-1"))
102 `(("chicken-test" ,chicken-test)))
103 (home-page "https://wiki.call-cc.org/eggref/5/srfi-1")
104 (synopsis "SRFI-1 list library")
106 "The list library defined in
107 @uref{https://srfi.schemers.org/srfi-1/srfi-1.html, SRFI-1} contains a lot of
108 useful list processing procedures for construction, examining, destructuring
109 and manipulating lists and pairs.")
110 (license license:bsd-3)))
112 (define-public chicken-srfi-14
114 (name "chicken-srfi-14")
120 (url (string-append "https://code.call-cc.org/svn/chicken-eggs/"
121 "release/5/srfi-14/tags/" version))
123 (user-name "anonymous")
125 (file-name (string-append "chicken-srfi-14-" version "-checkout"))
128 "0wjsqfwawh9bx6vvii1gwag166bxkflc0ib374fbws14914g2ac1"))))
129 (build-system chicken-build-system)
130 (arguments '(#:egg-name "srfi-14"))
131 (home-page "https://wiki.call-cc.org/eggref/5/srfi-14")
132 (synopsis "Character set library")
134 "Character sets can be created, extended, tested for the membership of
135 a characters and be compared to other character sets")
136 (license (license:non-copyleft
137 "http://wiki.call-cc.org/eggref/5/srfi-14#license"))))
139 (define-public chicken-srfi-69
141 (name "chicken-srfi-69")
147 (url (string-append "https://code.call-cc.org/svn/chicken-eggs/"
148 "release/5/srfi-69/tags/"
151 (user-name "anonymous")
153 (file-name (string-append "chicken-srfi-69-" version "-checkout"))
156 "1z0m9vmg9bj9z0a941pls6igvg8nmhq4mj5psjjidbp0fac572mp"))))
157 (arguments '(#:egg-name "srfi-69"))
158 (build-system chicken-build-system)
159 (home-page "https://wiki.call-cc.org/eggref/5/srfi-69")
160 (synopsis "Implementation of SRFI 69 with SRFI 90 extensions")
162 "This package provides an implementation of
163 @uref{https://srfi.schemers.org/srfi-69/srfi-69.html, SRFI-69 hash tables} for
164 CHICKEN Scheme, along with
165 @uref{https://srfi.schemers.org/srfi-90/srfi-90.html, SRFI-90} extensions.")
166 (license license:bsd-3)))
168 (define-public chicken-agrep
170 (name "chicken-agrep")
176 (url "https://github.com/iraikov/chicken-agrep")
178 (file-name (string-append "chicken-agrep-" version "-checkout"))
181 "0z05x7f154n9bgmainrsmncf5i6dil43r9ymr3rdgwbg4wnxmz4s"))))
182 ;; TODO do we really have to make these propagated?
183 ;; I don't know Chicken's module system well enough to tell
185 `(("chicken-datatype" ,chicken-datatype)
186 ("chicken-srfi-1" ,chicken-srfi-1)
187 ("chicken-srfi-14" ,chicken-srfi-14)))
189 `(("chicken-test" ,chicken-test)))
190 (build-system chicken-build-system)
191 (arguments '(#:egg-name "agrep"))
192 (synopsis "Approximate string matching library")
193 (home-page "https://wiki.call-cc.org/eggref/5/agrep")
195 "This library implements the Wu-Manber algorithm for approximate string
196 searching with errors, popularized by the agrep Unix command and the glimpse
197 file indexing tool.")
198 (license license:gpl3+)))
200 (define-public chicken-datatype
202 (name "chicken-datatype")
208 (url (string-append "https://code.call-cc.org/svn/chicken-eggs/"
209 "release/5/datatype/tags/" version))
211 (user-name "anonymous")
213 (file-name (string-append "chicken-datatype-" version "-checkout"))
216 "1a58q8ypjkjz6wdv25247wixds4179239d36nnvsfn6gp70s9jfq"))))
217 (build-system chicken-build-system)
218 (arguments '(#:egg-name "datatype"))
220 `(("chicken-srfi-1" ,chicken-srfi-1)
221 ("chicken-test" ,chicken-test)))
222 (home-page "https://wiki.call-cc.org/eggref/5/datatype")
223 (synopsis "Facility for creating and using variant records")
225 "This CHICKEN Scheme library provides a facility for creating and using
226 variant records, as described in the book @i{Essentials of Programming
227 Languages} by Friedman, Wand, and Haynes.")
228 (license license:bsd-3)))
230 (define-public chicken-iset
232 (name "chicken-iset")
238 (url (string-append "https://code.call-cc.org/svn/chicken-eggs/"
239 "release/5/iset/tags/" version))
241 (user-name "anonymous")
243 (file-name (string-append "chicken-iset-" version "-checkout"))
246 "0gz50n5i561n5sk9prry0lrxz6bfrq9if5bclaq6a0f7lzinhnzb"))))
248 `(("chicken-test" ,chicken-test)))
249 (build-system chicken-build-system)
250 (arguments '(#:egg-name "iset"))
251 (synopsis "Integer set library")
252 (home-page "https://wiki.call-cc.org/eggref/5/iset")
254 "This ``integer set'' CHICKEN Scheme library implements bit vectors.
255 Bit-vectors provide an abstract interface to bitwise operations typically done
257 (license license:bsd-3)))
259 (define-public chicken-test
261 (name "chicken-test")
267 (url (string-append "https://code.call-cc.org/svn/chicken-eggs/"
268 "release/5/test/tags/" version))
270 (user-name "anonymous")
272 (file-name (string-append "chicken-test-" version "-checkout"))
275 "14i91cxsn6hjkx6kqf7i9syck73cw71jik61jmhg87vpxx5kfnzx"))))
276 (build-system chicken-build-system)
277 (arguments '(#:egg-name "test"))
278 (home-page "https://wiki.call-cc.org/eggref/5/test")
279 (synopsis "Yet another testing utility")
281 "This package provides a simple testing utility for CHICKEN Scheme.")
282 (license license:bsd-3)))