From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id eF9JAvlPg1/RGQAA0tVLHw (envelope-from ) for ; Sun, 11 Oct 2020 18:33:29 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mIa7OfhPg19AEwAA1q6Kng (envelope-from ) for ; Sun, 11 Oct 2020 18:33:28 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A4FB59400BF for ; Sun, 11 Oct 2020 18:33:28 +0000 (UTC) Received: from localhost ([::1]:34628 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRg9v-0007w7-Iy for larch@yhetil.org; Sun, 11 Oct 2020 14:33:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37436) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRg7a-00060W-JM for guix-patches@gnu.org; Sun, 11 Oct 2020 14:31:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57720) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kRg7a-0008Ln-0M for guix-patches@gnu.org; Sun, 11 Oct 2020 14:31:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kRg7Z-0007Sk-TN for guix-patches@gnu.org; Sun, 11 Oct 2020 14:31:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43933] [PATCH 1/8] gnu: Add lua-resty-core. References: <20201011181959.13871-1-go.wigust@gmail.com> In-Reply-To: <20201011181959.13871-1-go.wigust@gmail.com> Resent-From: Oleg Pykhalov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 11 Oct 2020 18:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43933 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 43933@debbugs.gnu.org Cc: Oleg Pykhalov Received: via spool by 43933-submit@debbugs.gnu.org id=B43933.160244104628585 (code B ref 43933); Sun, 11 Oct 2020 18:31:01 +0000 Received: (at 43933) by debbugs.gnu.org; 11 Oct 2020 18:30:46 +0000 Received: from localhost ([127.0.0.1]:41013 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kRg7J-0007Qy-QD for submit@debbugs.gnu.org; Sun, 11 Oct 2020 14:30:46 -0400 Received: from mail-lf1-f52.google.com ([209.85.167.52]:39189) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kRg7I-0007Qb-5H for 43933@debbugs.gnu.org; Sun, 11 Oct 2020 14:30:44 -0400 Received: by mail-lf1-f52.google.com with SMTP id 184so16070269lfd.6 for <43933@debbugs.gnu.org>; Sun, 11 Oct 2020 11:30:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+y7cludnvj5rs5VM4GQzOJR5cvIKGCTbwWP2d5jTk5c=; b=fggjB3dcmEmty39fyKJUnJ7Q1hw0jFPTPp0EZDPfPufd5xgU4g2c7hOBHuL2h65A67 1aZfX0u140OwlBqN9yZzMc/dNp4hsJRCXhRV3wAWAiWhrx+5JRf71n2RM84BKeRFYmVb 9/uh/v+zJK9l5NgWVgdMrKeKebg4HiYhz7WQXcPyy7whpRaIN6LlUGS8MOZjtXlTS/4H LOnq0ldmhl93hmnBuloYdZwqTQ96nSZSkat9FZaTQILGhUayl+k1kufwPNgO9kQbISYb C1xq1Oo1UAAvansvxqCrAFLEPSZV/vzB/1JakgL/62gP6Nmd/NeVKlLiPUdoaaBVdlge uobQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+y7cludnvj5rs5VM4GQzOJR5cvIKGCTbwWP2d5jTk5c=; b=pEQcJYxX3ciTtn5G0L7u8e1hKZPQUv1eA+IQj3s5LxZ+YyDV/WGO8tosoimxhrpDjH W08V5xjs490poxKL0+3Y/m1qaIEVRoBx6T+wfo8LXSpZUAf3mg4HyvbX65hbTHseetde 86M6ix1Xh+tPrI/LzZF45QaXpxipfB/ZfQADg2KPfUaegwA2GTIncbTSUIDE3xusOarQ 1UpH7y3oJQj2MRCvn5NkyQ+eV/a0eGwAWd6jripzM3OmW5y3mnOoiw1KdQN7nWHHEY4J S980k83cXHgAmqDnGp8FK/QEn43VEl1Ji2/LZpHwNZqaiEUZEgcM2mYwLSVabpP3sG2o i75Q== X-Gm-Message-State: AOAM531lK9AVYGBtDvuyVdNgMZv2C7WKRbL21ApnSJKpSkjVZxekpN0K 0rHPakVnAlxti8E7ZNmgRtZ0HBoQClU= X-Google-Smtp-Source: ABdhPJykU+zeKM92/7PQzp97Ge5rGUyQeONg/1YaOGsXwRFM5U0JXi+NZRB7zhugGxeLv3pxQYIoqw== X-Received: by 2002:ac2:5ca5:: with SMTP id e5mr6329470lfq.497.1602441037795; Sun, 11 Oct 2020 11:30:37 -0700 (PDT) Received: from localhost.localdomain (95-55-4-176.dynamic.avangarddsl.ru. [95.55.4.176]) by smtp.gmail.com with ESMTPSA id l188sm2669151lfd.127.2020.10.11.11.30.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Oct 2020 11:30:37 -0700 (PDT) From: Oleg Pykhalov Date: Sun, 11 Oct 2020 21:30:05 +0300 Message-Id: <20201011183012.15932-1-go.wigust@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=fggjB3dc; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 5.59 X-TUID: HEZJhN7atKXE * gnu/packages/lua.scm (lua-resty-core): New variable. --- gnu/packages/lua.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index 5479b891bd..774df85170 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm @@ -880,3 +880,40 @@ on numbers.") "Selene is a simple C++11 header-only library enabling seamless interoperability between C++ and Lua programming language.") (license license:zlib))) + +(define-public lua-resty-core + (package + (name "lua-resty-core") + (version "0.1.17") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/openresty/lua-resty-core") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "11fyli6yrg7b91nv9v2sbrc6y7z3h9lgf4lrrhcjk2bb906576a0")))) + (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")) + (copy-recursively (string-append input "/lib/resty") + (string-append output "/lib/lua/resty")) + (copy-recursively (string-append input "/lib/ngx") + (string-append output "/lib/ngx")) + (symlink (string-append output "/lib/lua/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-core") + (synopsis "Lua API for NGINX") + (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))) -- 2.28.0