From a8f22d499ce23ebfbab753ee945e6ac898ba7267 Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Wed, 27 May 2020 23:08:52 +0300 Subject: wip --- guix/wigust/packages/web.scm | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/guix/wigust/packages/web.scm b/guix/wigust/packages/web.scm index 151a59e..75fe9c2 100644 --- a/guix/wigust/packages/web.scm +++ b/guix/wigust/packages/web.scm @@ -27,7 +27,8 @@ #:use-module (gnu packages lua) #:use-module (gnu packages web) #:use-module (gnu packages compression) - #:use-module (gnu packages gnuzilla)) + #:use-module (gnu packages gnuzilla) + #:use-module (guix build-system gnu)) (define-public nginx-lua (package @@ -46,7 +47,7 @@ (base32 "1j216isp0546hycklbr5wi8mlga5hq170hk7f2sm16sfavlkh5gz"))))) ("luajit" ,luajit) - ("lua" ,lua-5.1) + ;; ("lua" ,lua-5.1) ,@(package-inputs nginx))) (arguments (substitute-keyword-arguments @@ -82,6 +83,30 @@ (apply invoke "./configure" flags) #t))))))))) +(define-public lua-ffi + (let ((commit "532c757e51c86f546a85730b71c9fef15ffa633d")) + (package + (name "lua-ffi") + (version "0.0.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/facebookarchive/luaffifb.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1nwx6sh56zfq99rcs7sph0296jf6a9z72mxknn0ysw9fd7m1r8ig")))) + (arguments + `(#:phases + (modify-phases %standard-phases + (delete 'configure)))) + (build-system gnu-build-system) + (home-page "") + (synopsis "") + (description "") + (license #f)))) + (define-public lua-resty-core (package (name "lua-resty-core") @@ -102,7 +127,7 @@ (begin (use-modules (guix build utils)) (copy-recursively (string-append (assoc-ref %build-inputs "source") - "/lib/resty") + "/lib") (string-append %output "/lib/lua/5.1"))))) (home-page "") (synopsis "") -- cgit v1.2.3