summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-05-11 11:38:38 +0200
committerLudovic Courtès <ludo@gnu.org>2013-05-11 11:38:38 +0200
commit8cc9e7f9d882c47c5522424b9d2f0b2053e4406f (patch)
tree2780da495911f8ac0358ef6e3bcef4af98d91259 /gnu/packages
parent25c936766e7e1e75a2a3aca010fa90858194f8d4 (diff)
downloadguix-8cc9e7f9d882c47c5522424b9d2f0b2053e4406f.tar.gz
gnu: Add CHICKEN.
* gnu/packages/scheme.scm (chicken): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/scheme.scm41
1 files changed, 41 insertions, 0 deletions
diff --git a/gnu/packages/scheme.scm b/gnu/packages/scheme.scm
index 5eebb58379..9b494b7e02 100644
--- a/gnu/packages/scheme.scm
+++ b/gnu/packages/scheme.scm
@@ -255,3 +255,44 @@ applications in many fields such as multimedia (web galleries, music players,
 ...), ubiquitous and house automation (SmartPhones, personal appliance),
 mashups, office (web agendas, mail clients, ...), etc.")
     (license gpl2+)))
+
+(define-public chicken
+  (package
+    (name "chicken")
+    (version "4.8.0.3")
+    (source (origin
+             (method url-fetch)
+             (uri (string-append "http://code.call-cc.org/releases/4.8.0/chicken-"
+                                 version ".tar.gz"))
+             (sha256
+              (base32
+               "1hwrnc2dhgbnz3mlpcb4qvg76kwsfzqylw24gxyy91jmygk1853a"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:modules ((guix build gnu-build-system)
+                  (guix build utils)
+                  (srfi srfi-1))
+
+       ;; No `configure' script; run "make check" after "make install" as
+       ;; prescribed by README.
+       #:phases (alist-cons-after
+                 'install 'check
+                 (assoc-ref %standard-phases 'check)
+                 (fold alist-delete %standard-phases
+                       '(configure check)))
+
+       #:make-flags (let ((out (assoc-ref %outputs "out")))
+                      (list "PLATFORM=linux"
+                            (string-append "PREFIX=" out)
+                            (string-append "VARDIR=" out "/var/lib")))
+
+       ;; Parallel builds are not supported, as noted in README.
+       #:parallel-build? #f))
+    (home-page "http://www.call-cc.org/")
+    (synopsis "R5RS Scheme implementation that compiles native code via C")
+    (description
+     "CHICKEN is a compiler for the Scheme programming language.  CHICKEN
+produces portable and efficient C, supports almost all of the R5RS Scheme
+language standard, and includes many enhancements and extensions.  CHICKEN
+runs on Linux, MacOS X, Windows, and many Unix flavours.")
+    (license bsd-3)))