Commit | Line | Data |
---|---|---|
2846aec2 EZ |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2020 Ekaitz Zarraga <ekaitz@elenq.tech> | |
3 | ;;; | |
4 | ;;; This file is part of GNU Guix. | |
5 | ;;; | |
6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
7 | ;;; under the terms of the GNU General Public License as published by | |
8 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
9 | ;;; your option) any later version. | |
10 | ;;; | |
11 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
12 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | ;;; GNU General Public License for more details. | |
15 | ;;; | |
16 | ;;; You should have received a copy of the GNU General Public License | |
17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
18 | ||
19 | (define-module (gnu packages chicken) | |
20 | #:use-module (gnu packages) | |
21 | #:use-module (guix packages) | |
22 | #:use-module (guix build-system gnu) | |
23 | #:use-module (guix download) | |
7f6cb6bb | 24 | #:use-module (gnu packages commencement) |
2846aec2 EZ |
25 | #:use-module ((guix licenses) |
26 | #:select (bsd-3))) | |
27 | ||
28 | (define-public chicken | |
29 | (package | |
30 | (name "chicken") | |
7f6cb6bb | 31 | (version "5.1.0") |
2846aec2 EZ |
32 | (source (origin |
33 | (method url-fetch) | |
34 | (uri (string-append "https://code.call-cc.org/releases/" | |
35 | version "/chicken-" version ".tar.gz")) | |
36 | (sha256 | |
37 | (base32 | |
7f6cb6bb | 38 | "0jsbp3kp0134f318j3wpd1n85gf8qzh034fn198gvazsv2l024aw")))) |
2846aec2 EZ |
39 | (build-system gnu-build-system) |
40 | (arguments | |
41 | `(#:modules ((guix build gnu-build-system) | |
42 | (guix build utils) | |
43 | (srfi srfi-1)) | |
44 | ||
45 | ;; No `configure' script; run "make check" after "make install" as | |
46 | ;; prescribed by README. | |
47 | #:phases | |
48 | (modify-phases %standard-phases | |
49 | (delete 'configure) | |
50 | (delete 'check) | |
51 | (add-after 'install 'check | |
52 | (assoc-ref %standard-phases 'check))) | |
53 | ||
54 | #:make-flags (let ((out (assoc-ref %outputs "out"))) | |
55 | (list "PLATFORM=linux" | |
56 | (string-append "PREFIX=" out) | |
57 | (string-append "VARDIR=" out "/var/lib"))) | |
58 | ||
59 | ;; Parallel builds are not supported, as noted in README. | |
60 | #:parallel-build? #f)) | |
7f6cb6bb | 61 | (propagated-inputs `(("gcc-toolchain", gcc-toolchain))) |
2846aec2 EZ |
62 | (home-page "http://www.call-cc.org/") |
63 | (synopsis "R5RS Scheme implementation that compiles native code via C") | |
64 | (description | |
65 | "CHICKEN is a compiler for the Scheme programming language. CHICKEN | |
66 | produces portable and efficient C, supports almost all of the R5RS Scheme | |
67 | language standard, and includes many enhancements and extensions.") | |
68 | (license bsd-3))) |