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.

61 lines
2.5 KiB

  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2019 Carlo Zancanaro <carlo@zancanaro.id.au>
  3. ;;; Copyright © 2019 Ludovic Courtès <ludo@gnu.org>
  4. ;;; Copyright © 2020 Tobias Geerinckx-Rice <me@tobias.gr>
  5. ;;;
  6. ;;; This file is part of GNU Guix.
  7. ;;;
  8. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  9. ;;; under the terms of the GNU General Public License as published by
  10. ;;; the Free Software Foundation; either version 3 of the License, or (at
  11. ;;; your option) any later version.
  12. ;;;
  13. ;;; GNU Guix is distributed in the hope that it will be useful, but
  14. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  15. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. ;;; GNU General Public License for more details.
  17. ;;;
  18. ;;; You should have received a copy of the GNU General Public License
  19. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  20. (define-module (gnu packages kawa)
  21. #:use-module (guix packages)
  22. #:use-module (guix download)
  23. #:use-module (guix build-system gnu)
  24. #:use-module ((guix licenses) #:prefix license:)
  25. #:use-module (gnu packages java))
  26. (define-public kawa
  27. (package
  28. (name "kawa")
  29. (version "3.1.1")
  30. (source
  31. (origin
  32. (method url-fetch)
  33. (uri (string-append "mirror://gnu/kawa/kawa-" version ".tar.gz"))
  34. (sha256
  35. (base32 "06g015zjlfgsx0n4lb326czkbf1grlx0n6dx074m808hdg6m16lc"))))
  36. (build-system gnu-build-system)
  37. (arguments
  38. `(#:parallel-build? #f
  39. #:parallel-tests? #f
  40. #:phases
  41. (modify-phases %standard-phases
  42. (add-after 'install 'wrap-kawa
  43. (lambda* (#:key inputs outputs #:allow-other-keys)
  44. (let ((out (assoc-ref outputs "out")))
  45. (wrap-program (string-append out "/share/kawa/bin/kawa")
  46. `("JAVA_HOME" ":" = (,(assoc-ref inputs "icedtea"))))
  47. #t))))))
  48. (inputs
  49. `(("icedtea" ,icedtea-8 "jdk")))
  50. (home-page "https://www.gnu.org/software/kawa/")
  51. (synopsis "Java framework and implementation of Scheme, Elisp, and more")
  52. (description
  53. "GNU Kawa is an implementation of the Scheme programming language that
  54. is built on top of the Java platform. It is thus conveniently integrated
  55. with Java and benefits from this by having a compiler, optional static
  56. typing, and so on. Kawa also serves as a framework for implementing other
  57. programming languages on the Java platform. Included in Kawa is qexo, a
  58. partial implementation of XQuery in Java.")
  59. (license license:expat)))