From c5d11f986595637ae72d551acf0bf2cd15390a39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20dos=20Santos=20Oliveira?= Date: Tue, 23 Feb 2021 17:25:07 -0300 Subject: [PATCH] Add luajit-lua52-openresty --- gnu/packages/lua.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index b029400cb2..8fbcc0b317 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm @@ -157,6 +157,35 @@ 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-20201027") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/openresty/luajit2.git") + (commit (string-append "v" version)))) + (sha256 + (base32 + "115gixlbik4fx62bv8m1psfvv48alcvg3hki5kz3hcpa830gd7zp")) + (patches (search-patches + "luajit-enable-lua52compat.patch")))) + (arguments + `(#:tests? #f + #:phases (modify-phases %standard-phases + (delete 'configure)) + #:make-flags (list + (string-append "PREFIX=" (assoc-ref %outputs "out"))))) + (synopsis "OpenResty's Branch of LuaJIT 2") + (description + "This package provides 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.") + (home-page "https://github.com/openresty/luajit2"))) + (define (make-lua-expat name lua) (package (name name) -- 2.30.1