[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/08: gnu: Add lua-resty-lrucache.
From: |
guix-commits |
Subject: |
02/08: gnu: Add lua-resty-lrucache. |
Date: |
Wed, 14 Oct 2020 16:41:44 -0400 (EDT) |
wigust pushed a commit to branch master
in repository guix.
commit 1263bd0dbf55f340e5292bcee00dd1f3d4eb6ef1
Author: Oleg Pykhalov <go.wigust@gmail.com>
AuthorDate: Sun Oct 11 17:25:28 2020 +0300
gnu: Add lua-resty-lrucache.
* gnu/packages/lua.scm (lua-resty-lrucache): New variable.
---
gnu/packages/lua.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm
index 774df85..59d449d 100644
--- a/gnu/packages/lua.scm
+++ b/gnu/packages/lua.scm
@@ -917,3 +917,38 @@ on numbers.")
(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)))
+
+(define-public lua-resty-lrucache
+ (package
+ (name "lua-resty-lrucache")
+ (version "0.09")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/openresty/lua-resty-lrucache")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1mwiy55qs8bija1kpgizmqgk15ijizzv4sa1giaz9qlqs2kqd7q2"))))
+ (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/" luajit-major+minor))
+ (copy-recursively (string-append input
"/lib/resty")
+ (string-append output
"/lib/lua/" luajit-major+minor "/resty"))
+ (symlink (string-append output
"/lib/lua/" luajit-major+minor "/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-lrucache")
+ (synopsis "Lua LRU cache based on the LuaJIT FFI")
+ (description
+ "This package provides Lua LRU cache based on the LuaJIT FFI.")
+ (license license:bsd-2)))
- branch master updated (dd64251 -> 00014f7), guix-commits, 2020/10/14
- 03/08: gnu: Add lua-resty-signal., guix-commits, 2020/10/14
- 01/08: gnu: Add lua-resty-core., guix-commits, 2020/10/14
- 02/08: gnu: Add lua-resty-lrucache.,
guix-commits <=
- 04/08: gnu: Add lua-tablepool., guix-commits, 2020/10/14
- 06/08: gnu: Add nginx-socket-cloexec., guix-commits, 2020/10/14
- 07/08: gnu: Add nginx-lua-module., guix-commits, 2020/10/14
- 05/08: gnu: Add lua-resty-shell., guix-commits, 2020/10/14
- 08/08: services: nginx: Add lua module., guix-commits, 2020/10/14