guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

05/08: gnu: Add lua-resty-shell.


From: guix-commits
Subject: 05/08: gnu: Add lua-resty-shell.
Date: Wed, 14 Oct 2020 16:41:45 -0400 (EDT)

wigust pushed a commit to branch master
in repository guix.

commit 89c4122ec9b816e5d6902c3b17e912543fd21033
Author: Oleg Pykhalov <go.wigust@gmail.com>
AuthorDate: Sun Oct 11 17:27:07 2020 +0300

    gnu: Add lua-resty-shell.
    
    * gnu/packages/lua.scm (lua-resty-shell): 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 d30692d..2f21d85 100644
--- a/gnu/packages/lua.scm
+++ b/gnu/packages/lua.scm
@@ -1024,3 +1024,38 @@ signals to Linux processes.")
     (synopsis "Lua table recycling pools for LuaJIT")
     (description "This package provides Lua table recycling pools for LuaJIT.")
     (license license:bsd-2)))
+
+(define-public lua-resty-shell
+  (package
+    (name "lua-resty-shell")
+    (version "0.03")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/openresty/lua-resty-shell";)
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1s6g04ip4hr97r2pd8ry3alq063604s9a3l0hn9nsidh81ps4dp7"))))
+    (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-shell";)
+    (synopsis "Lua module for nonblocking system shell command executions")
+    (description "This package provides Lua module for nonblocking system
+shell command executions.")
+    (license license:bsd-3)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]