From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wBdvJ81Pg1/2FwAA0tVLHw (envelope-from ) for ; Sun, 11 Oct 2020 18:32:45 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id aLMqI81Pg19nLwAAbx9fmQ (envelope-from ) for ; Sun, 11 Oct 2020 18:32:45 +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 1EF199401BC for ; Sun, 11 Oct 2020 18:32:45 +0000 (UTC) Received: from localhost ([::1]:60744 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRg9C-0006ny-Vr for larch@yhetil.org; Sun, 11 Oct 2020 14:32:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRg7a-00060q-Pq for guix-patches@gnu.org; Sun, 11 Oct 2020 14:31:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57721) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kRg7a-0008Lt-Bw 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 1kRg7a-0007Ss-9J for guix-patches@gnu.org; Sun, 11 Oct 2020 14:31:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43933] [PATCH 2/8] gnu: Add lua-resty-lrucache. Resent-From: Oleg Pykhalov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 11 Oct 2020 18:31:02 +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.160244104828611 (code B ref 43933); Sun, 11 Oct 2020 18:31:02 +0000 Received: (at 43933) by debbugs.gnu.org; 11 Oct 2020 18:30:48 +0000 Received: from localhost ([127.0.0.1]:41018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kRg7M-0007RK-4D for submit@debbugs.gnu.org; Sun, 11 Oct 2020 14:30:48 -0400 Received: from mail-lj1-f171.google.com ([209.85.208.171]:40046) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kRg7I-0007Qc-Tb for 43933@debbugs.gnu.org; Sun, 11 Oct 2020 14:30:45 -0400 Received: by mail-lj1-f171.google.com with SMTP id f21so14700256ljh.7 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:in-reply-to:references :mime-version:content-transfer-encoding; bh=buq388R7XUSH3B3TJjHdUhxOponCckf7N5hfYDtpbho=; b=Ejrrs+wIJY7Z1NRW84Oq6pfIF46bTMnvZHaABGCLzpy60bFEiiOLD+1zIzTWvlNXwm bR5fNsMUFKdbL73fbYFI/kNVVBsftM8Hehh5PSbp6NybsDLLkgdRWLb9MKdQ+brgJzs/ hJrtqwsUjtkNA7+Pop6HdZ/mnNcggw6PyoLQNZ3/O/CMJCh2gb+MpTh/CpQbXnKHS1Xu IyPz4P1zHTsgdPt5iEE3M0xdI87K1Ppn1nWQUepNWpnsJiKTVh42lJN9zbtbjPM8HIG8 dx842Q+mJ/bf7W1U2+2wjo0Y1IGBCzIxP7M5uQS5RnzjQQAFy3QSHTt/muZTiTSSUVuP ngOA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=buq388R7XUSH3B3TJjHdUhxOponCckf7N5hfYDtpbho=; b=Ex+74SDxRkX8zpJVOSW0Wyy/9JRcY+idBsQMhh/RrV3rKFscwmMO6PfmsK+MKI4unx OuJ0w9sYWO+91wegb8+zrxfi6mxXkV5/fC0oCYZMZTD6Pa6qgH2yTgptf0FvX5GE//zq 6LQQQGN88RJW4Dmj2CGhnJKa7kc6TS7VofNnk2od6O2BkORjmSPlFllu1o8kX77ozkHs JhwxR+Jzteu5IVAPbGY7v1FSU9eOeRc+L7ZSF1/aJwCXzuCCm854ISaBvH4fqm8F9tYr wIDPvor6Pn/3G6KiQpWK+E3XfwZx0/BcXuQ3FSvkw3k9NYXTHJtmhkweePOnaZWRR+8p yBAw== X-Gm-Message-State: AOAM531v8QCFW72e+bf3DKAKxiia66HglX+9BDBr7VRvJZWrIX9A3eNR A0zeZFaECH8lKEvqOKEYl2fzwuwAoPE= X-Google-Smtp-Source: ABdhPJzzfIeAhte3NgVNeUSn3eEe7tRBj3ZRXekIhb2UnI4tauytZ+XzfC5n8er2qtL2lZ4Sqppb6Q== X-Received: by 2002:a05:651c:d3:: with SMTP id 19mr113699ljr.180.1602441038711; Sun, 11 Oct 2020 11:30:38 -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.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Oct 2020 11:30:38 -0700 (PDT) From: Oleg Pykhalov Date: Sun, 11 Oct 2020 21:30:06 +0300 Message-Id: <20201011183012.15932-2-go.wigust@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201011183012.15932-1-go.wigust@gmail.com> References: <20201011183012.15932-1-go.wigust@gmail.com> 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=Ejrrs+wI; 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: vzlywYyZQUlt * gnu/packages/lua.scm (lua-resty-lrucache): 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 774df85170..59d449dfe5 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm @@ -917,3 +917,38 @@ on numbers.") (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))) + +(define-public lua-resty-lrucache + (package + (name "lua-resty-lrucache") + (version "0.09") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/openresty/lua-resty-lrucache") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1mwiy55qs8bija1kpgizmqgk15ijizzv4sa1giaz9qlqs2kqd7q2")))) + (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-lrucache") + (synopsis "Lua LRU cache based on the LuaJIT FFI") + (description + "This package provides Lua LRU cache based on the LuaJIT FFI.") + (license license:bsd-2))) -- 2.28.0