From 8688fd8fa1970c155f520dcc95afccecd3e10a2d Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Sun, 11 Oct 2020 17:26:32 +0300 Subject: gnu: Add lua-resty-signal. * gnu/packages/lua.scm (lua-resty-signal): New variable. --- gnu/packages/lua.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'gnu/packages/lua.scm') diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index 59d449dfe5..60f88c1536 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm @@ -952,3 +952,43 @@ (define-public lua-resty-lrucache (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))) -- cgit v1.2.3 r 2021-12-13gnu: Simplify package inputs.Ludovic Courtès 2021-10-24gnu: s6-linux-utils: Update to 2.5.1.6.Tobias Geerinckx-Rice 2021-10-24gnu: s6-linux-init: Update to 1.0.6.4.Tobias Geerinckx-Rice 2021-10-24gnu: s6-portable-utils: Update to 2.2.3.3.Tobias Geerinckx-Rice 2021-10-24gnu: s6-rc: Update to 0.5.2.3.Tobias Geerinckx-Rice 2021-10-24gnu: s6-networking: Update to 2.5.0.0.Tobias Geerinckx-Rice 2021-10-24gnu: s6-dns: Update to 2.3.5.2.Tobias Geerinckx-Rice 2021-10-24gnu: s6: Update to 2.11.0.0.Tobias Geerinckx-Rice 2021-10-24gnu: execline: Update to 2.8.1.0.Tobias Geerinckx-Rice 2021-10-24gnu: skalibs: Update to 2.11.0.0.Tobias Geerinckx-Rice