scheme.scm 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. ;; Copyright © 2017 Kei Kebreau <kkebreau@posteo.net>
  2. ;; This program is free software: you can redistribute it and/or modify
  3. ;; it under the terms of the GNU General Public License as published by
  4. ;; the Free Software Foundation, either version 3 of the License, or
  5. ;; (at your option) any later version.
  6. ;; This program is distributed in the hope that it will be useful,
  7. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. ;; GNU General Public License for more details.
  10. ;; You should have received a copy of the GNU General Public License
  11. ;; along with this program. If not, see <http://www.gnu.org/licenses/>.
  12. (define-module (scheme)
  13. #:use-module (guix packages)
  14. #:use-module (gnu packages)
  15. #:use-module ((guix licenses) #:prefix license:)
  16. #:use-module (guix download)
  17. #:use-module (guix utils)
  18. #:use-module (guix build-system gnu)
  19. #:use-module (gnu packages java)
  20. #:use-module (gnu packages readline)
  21. #:use-module (gnu packages texinfo))
  22. (define-public kawa
  23. (package
  24. (name "kawa")
  25. (version "3.0")
  26. (source (origin
  27. (method url-fetch)
  28. (uri (string-append
  29. "mirror://gnu/kawa/kawa-" version ".tar.gz"))
  30. (sha256
  31. (base32
  32. "1k9qpydc64ar4aqyg3q7jmmxy503ayj85227qfhc5n6ngchqavhy"))))
  33. (build-system gnu-build-system)
  34. (arguments
  35. '(#:parallel-build? #f
  36. #:configure-flags '("--enable-kawa-frontend")
  37. #:phases
  38. (modify-phases %standard-phases
  39. (add-after 'build 'build-doc
  40. (lambda _
  41. (with-directory-excursion "doc"
  42. (invoke "make" "kawa-html/index.html")))))))
  43. (native-inputs
  44. `(("jdk" ,icedtea-8 "jdk")
  45. ("texinfo" ,texinfo)))
  46. (inputs
  47. `(("readline" ,readline)))
  48. (synopsis "A Scheme implementation on the Java platform")
  49. (description
  50. "Kawa is a general-purpose programming language that runs on the Java
  51. platform. It aims to combine the benefits of dynamic scripting languages with
  52. the benefits of traditional compiled languages.")
  53. (home-page "https://www.gnu.org/software/kawa/")
  54. (license license:expat)))