mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 13:28:12 -05:00
gnu: Add lua5.2-lpeg.
* gnu/packages/lua.scm (lua5.2-lpeg): New variable.
This commit is contained in:
parent
cf9a788d93
commit
d9ed1779b8
1 changed files with 24 additions and 0 deletions
|
@ -402,6 +402,30 @@ (define-public lua-lpeg
|
||||||
(home-page "http://www.inf.puc-rio.br/~roberto/lpeg")
|
(home-page "http://www.inf.puc-rio.br/~roberto/lpeg")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
|
(define-public lua5.2-lpeg
|
||||||
|
(package (inherit lua-lpeg)
|
||||||
|
(name "lua5.2-lpeg")
|
||||||
|
;; XXX: The arguments field is almost an exact copy of the field in
|
||||||
|
;; "lua-lpeg", except for the version string, which was derived from "lua"
|
||||||
|
;; and now is taken from "lua-5.2". See this discussion for context:
|
||||||
|
;; http://lists.gnu.org/archive/html/guix-devel/2017-01/msg02048.html
|
||||||
|
(arguments
|
||||||
|
`(#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(delete 'configure)
|
||||||
|
;; `make install` isn't available, so we have to do it manually
|
||||||
|
(replace 'install
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let ((out (assoc-ref outputs "out"))
|
||||||
|
(lua-version ,(version-major+minor (package-version lua-5.2))))
|
||||||
|
(install-file "lpeg.so"
|
||||||
|
(string-append out "/lib/lua/" lua-version))
|
||||||
|
(install-file "re.lua"
|
||||||
|
(string-append out "/share/lua/" lua-version))
|
||||||
|
#t))))
|
||||||
|
#:test-target "test"))
|
||||||
|
(inputs `(("lua", lua-5.2)))))
|
||||||
|
|
||||||
;; Lua 5.3 is not supported.
|
;; Lua 5.3 is not supported.
|
||||||
(define-public lua5.2-bitop
|
(define-public lua5.2-bitop
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Reference in a new issue