[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: Add luajit-lua52-openresty.
From: |
guix-commits |
Subject: |
branch master updated: gnu: Add luajit-lua52-openresty. |
Date: |
Wed, 24 Feb 2021 10:48:24 -0500 |
This is an automated email from the git hooks/post-receive script.
ngz pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new b35bbb2 gnu: Add luajit-lua52-openresty.
b35bbb2 is described below
commit b35bbb26a25b562877808bf675b275a93ffb3794
Author: VinÃcius dos Santos Oliveira <vini.ipsmaker@gmail.com>
AuthorDate: Tue Feb 23 17:25:07 2021 -0300
gnu: Add luajit-lua52-openresty.
* gnu/packages/lua.scm (luajit-lua52-openresty): New variable.
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
---
gnu/packages/lua.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm
index b029400..81846af 100644
--- a/gnu/packages/lua.scm
+++ b/gnu/packages/lua.scm
@@ -157,6 +157,38 @@ language. It may be embedded or used as a
general-purpose, stand-alone
language.")
(license license:x11)))
+(define-public luajit-lua52-openresty
+ (package
+ (inherit luajit)
+ (name "luajit-lua52-openresty")
+ (version "2.1-20201229")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/openresty/luajit2.git")
+ (commit (string-append "v" version))))
+ (sha256
+ (base32 "07haj27kbpbnkv836c2nd36h2xislrmri52w0zbpxvl68xk6g96p"))))
+ (arguments
+ `(#:tests? #f ;no test
+ #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure) ;no configure script
+ (add-after 'unpack 'enable-lua52-compat
+ (lambda _
+ (substitute* "src/Makefile"
+ (("#(XCFLAGS\\+= -DLUAJIT_ENABLE_LUA52COMPAT)" _ flag) flag))
+ #t)))))
+ (home-page "https://github.com/openresty/luajit2")
+ (synopsis "OpenResty's Branch of LuaJIT 2")
+ (description
+ "This is the official OpenResty branch of LuaJIT. It is not to be
+considered a fork, since changes are regularly synchronized from the upstream
+LuaJIT project. This package also enables the Lua 5.2 compat mode needed by
+some projects.")))
+
(define (make-lua-expat name lua)
(package
(name name)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: Add luajit-lua52-openresty.,
guix-commits <=