[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/08: gnu: Add lua-resty-signal.
From: |
guix-commits |
Subject: |
03/08: gnu: Add lua-resty-signal. |
Date: |
Wed, 14 Oct 2020 16:41:44 -0400 (EDT) |
wigust pushed a commit to branch master
in repository guix.
commit 8688fd8fa1970c155f520dcc95afccecd3e10a2d
Author: Oleg Pykhalov <go.wigust@gmail.com>
AuthorDate: Sun Oct 11 17:26:32 2020 +0300
gnu: Add lua-resty-signal.
* gnu/packages/lua.scm (lua-resty-signal): New variable.
---
gnu/packages/lua.scm | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm
index 59d449d..60f88c1 100644
--- a/gnu/packages/lua.scm
+++ b/gnu/packages/lua.scm
@@ -952,3 +952,43 @@ on numbers.")
(description
"This package provides Lua LRU cache based on the LuaJIT FFI.")
(license license:bsd-2)))
+
+(define-public lua-resty-signal
+ (package
+ (name "lua-resty-signal")
+ (version "0.02")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/openresty/lua-resty-signal")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "13y1pqn45y49mhqwywasfdsid46d0c33yi6mrnracbnmvyxz1cif"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:tests? #f ;TODO: Run the test suite.
+ #:make-flags (list "CC=gcc"
+ (string-append "PREFIX=" %output))
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure)
+ (add-after 'install 'install-lua
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (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 inputs "source")
+ (assoc-ref outputs "out")))
+ #t)))))
+ (home-page "https://github.com/openresty/lua-resty-signal")
+ (synopsis "Lua library for killing or sending signals to Linux processes")
+ (description "This package provides Lua library for killing or sending
+signals to Linux processes.")
+ (license license:bsd-3)))
- branch master updated (dd64251 -> 00014f7), guix-commits, 2020/10/14
- 03/08: gnu: Add lua-resty-signal.,
guix-commits <=
- 01/08: gnu: Add lua-resty-core., guix-commits, 2020/10/14
- 02/08: gnu: Add lua-resty-lrucache., guix-commits, 2020/10/14
- 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