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.
 
 
 
 
 
 

64 lines
2.6 KiB

  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
  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. (define-module (gnu packages lua)
  19. #:use-module (guix licenses)
  20. #:use-module (guix packages)
  21. #:use-module (guix download)
  22. #:use-module (guix build-system gnu)
  23. #:use-module (gnu packages)
  24. #:use-module (gnu packages readline))
  25. (define-public lua
  26. (package
  27. (name "lua")
  28. (version "5.2.1")
  29. (source (origin
  30. (method url-fetch)
  31. (uri (string-append "http://www.lua.org/ftp/lua-"
  32. version ".tar.gz"))
  33. (sha256
  34. (base32 "1rbv2ysq5fdksz7xg07dnrkl8i0gnx855hg4z6b324vng6l4sc34"))))
  35. (build-system gnu-build-system)
  36. (inputs `(("readline", readline)))
  37. (arguments
  38. '(#:modules ((guix build gnu-build-system)
  39. (guix build utils)
  40. (srfi srfi-1))
  41. #:test-target "test"
  42. #:phases (alist-replace
  43. 'build
  44. (lambda _ (zero? (system* "make" "linux"))) ; XXX: Other OS.
  45. (alist-replace
  46. 'install
  47. (lambda* (#:key outputs #:allow-other-keys)
  48. (let ((out (assoc-ref outputs "out")))
  49. (zero? (system
  50. (string-append "make install INSTALL_TOP=" out)))))
  51. (alist-delete 'configure %standard-phases)))))
  52. (home-page "http://www.lua.org/")
  53. (synopsis "An embeddable scripting language.")
  54. (description
  55. "Lua is a powerful, fast, lightweight, embeddable scripting language. Lua
  56. combines simple procedural syntax with powerful data description constructs
  57. based on associative arrays and extensible semantics. Lua is dynamically typed,
  58. runs by interpreting bytecode for a register-based virtual machine, and has
  59. automatic memory management with incremental garbage collection, making it ideal
  60. for configuration, scripting, and rapid prototyping.")
  61. (license x11)))