You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2019 Carlo Zancanaro <email@example.com>
;;; Copyright © 2019 Ludovic Courtès <firstname.lastname@example.org>
;;; Copyright © 2020 Tobias Geerinckx-Rice <email@example.com>
;;; This file is part of GNU Guix.
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU General Public License for more details.
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (gnu packages kawa)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system gnu)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages java))
(uri (string-append "mirror://gnu/kawa/kawa-" version ".tar.gz"))
(add-after 'install 'wrap-kawa
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(wrap-program (string-append out "/share/kawa/bin/kawa")
`("JAVA_HOME" ":" = (,(assoc-ref inputs "icedtea"))))
`(("icedtea" ,icedtea-8 "jdk")))
(synopsis "Java framework and implementation of Scheme, Elisp, and more")
"GNU Kawa is an implementation of the Scheme programming language that
is built on top of the Java platform. It is thus conveniently integrated
with Java and benefits from this by having a compiler, optional static
typing, and so on. Kawa also serves as a framework for implementing other
programming languages on the Java platform. Included in Kawa is qexo, a
partial implementation of XQuery in Java.")