[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#43933] [PATCH 1/8] gnu: Add lua-resty-core.
From: |
Oleg Pykhalov |
Subject: |
[bug#43933] [PATCH 1/8] gnu: Add lua-resty-core. |
Date: |
Sun, 11 Oct 2020 21:30:05 +0300 |
* gnu/packages/lua.scm (lua-resty-core): New variable.
---
gnu/packages/lua.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm
index 5479b891bd..774df85170 100644
--- a/gnu/packages/lua.scm
+++ b/gnu/packages/lua.scm
@@ -880,3 +880,40 @@ on numbers.")
"Selene is a simple C++11 header-only library enabling seamless
interoperability between C++ and Lua programming language.")
(license license:zlib)))
+
+(define-public lua-resty-core
+ (package
+ (name "lua-resty-core")
+ (version "0.1.17")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/openresty/lua-resty-core")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "11fyli6yrg7b91nv9v2sbrc6y7z3h9lgf4lrrhcjk2bb906576a0"))))
+ (build-system trivial-build-system)
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder
+ (begin
+ (use-modules (guix build utils))
+ (let* ((luajit-major+minor ,(version-major+minor (package-version
lua)))
+ (package-lua-resty (lambda (input output)
+ (mkdir-p (string-append output
"/lib/lua"))
+ (copy-recursively (string-append input
"/lib/resty")
+ (string-append output
"/lib/lua/resty"))
+ (copy-recursively (string-append input
"/lib/ngx")
+ (string-append output
"/lib/ngx"))
+ (symlink (string-append output
"/lib/lua/resty")
+ (string-append output
"/lib/resty")))))
+ (package-lua-resty (assoc-ref %build-inputs "source")
+ (assoc-ref %outputs "out")))
+ #t)))
+ (home-page "https://github.com/openresty/lua-resty-core")
+ (synopsis "Lua API for NGINX")
+ (description "This package provides a FFI-based Lua API for
+@code{ngx_http_lua_module} or @code{ngx_stream_lua_module}.")
+ (license license:bsd-2)))
--
2.28.0
- [bug#43933] [PATCH 0/8] services: nginx: Add lua module., Oleg Pykhalov, 2020/10/11
- [bug#43933] [PATCH 1/8] gnu: Add lua-resty-core.,
Oleg Pykhalov <=
- [bug#43933] [PATCH 3/8] gnu: Add lua-resty-signal., Oleg Pykhalov, 2020/10/11
- [bug#43933] [PATCH 8/8] services: nginx: Add lua module., Oleg Pykhalov, 2020/10/11
- [bug#43933] [PATCH 4/8] gnu: Add lua-tablepool., Oleg Pykhalov, 2020/10/11
- [bug#43933] [PATCH 2/8] gnu: Add lua-resty-lrucache., Oleg Pykhalov, 2020/10/11
- [bug#43933] [PATCH 5/8] gnu: Add lua-resty-shell., Oleg Pykhalov, 2020/10/11
- [bug#43933] [PATCH 7/8] gnu: Add nginx-lua-module., Oleg Pykhalov, 2020/10/11
- [bug#43933] [PATCH 6/8] gnu: Add nginx-socket-cloexec., Oleg Pykhalov, 2020/10/11
- bug#43933: [PATCH 1/8] gnu: Add lua-resty-core., Oleg Pykhalov, 2020/10/14