gnu: chicken: Move to a separate module.
[jackhill/guix/guix.git] / gnu / packages / chicken.scm
CommitLineData
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)
24 #:use-module ((guix licenses)
25 #:select (bsd-3)))
26
27(define-public chicken
28 (package
29 (name "chicken")
30 (version "5.0.0")
31 (source (origin
32 (method url-fetch)
33 (uri (string-append "https://code.call-cc.org/releases/"
34 version "/chicken-" version ".tar.gz"))
35 (sha256
36 (base32
37 "15b5yrzfa8aimzba79x7v6y282f898rxqxfxrr446sjx9jwlpfd8"))))
38 (build-system gnu-build-system)
39 (arguments
40 `(#:modules ((guix build gnu-build-system)
41 (guix build utils)
42 (srfi srfi-1))
43
44 ;; No `configure' script; run "make check" after "make install" as
45 ;; prescribed by README.
46 #:phases
47 (modify-phases %standard-phases
48 (delete 'configure)
49 (delete 'check)
50 (add-after 'install 'check
51 (assoc-ref %standard-phases 'check)))
52
53 #:make-flags (let ((out (assoc-ref %outputs "out")))
54 (list "PLATFORM=linux"
55 (string-append "PREFIX=" out)
56 (string-append "VARDIR=" out "/var/lib")))
57
58 ;; Parallel builds are not supported, as noted in README.
59 #:parallel-build? #f))
60 (home-page "http://www.call-cc.org/")
61 (synopsis "R5RS Scheme implementation that compiles native code via C")
62 (description
63 "CHICKEN is a compiler for the Scheme programming language. CHICKEN
64produces portable and efficient C, supports almost all of the R5RS Scheme
65language standard, and includes many enhancements and extensions.")
66 (license bsd-3)))