From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: [PATCH 6/7] gnu: Add luasec. Date: Mon, 22 Aug 2016 21:39:17 +0200 Message-ID: <20160822193918.27397-7-rekado@elephly.net> References: <20160822193918.27397-1-rekado@elephly.net> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbv4i-0008Kn-NH for guix-devel@gnu.org; Mon, 22 Aug 2016 15:40:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bbv4c-0008Lt-Hp for guix-devel@gnu.org; Mon, 22 Aug 2016 15:39:59 -0400 Received: from sender163-mail.zoho.com ([74.201.84.163]:24938) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbv4b-0008Kw-Oe for guix-devel@gnu.org; Mon, 22 Aug 2016 15:39:54 -0400 In-Reply-To: <20160822193918.27397-1-rekado@elephly.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/lua.scm (lua5.1-sec): 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 a8acadb..ea1e1a3 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm @@ -28,6 +28,7 @@ #:use-module (guix build-system gnu) #:use-module (gnu packages) #:use-module (gnu packages readline) + #:use-module (gnu packages tls) #:use-module (gnu packages xml)) (define-public lua @@ -222,3 +223,39 @@ set of functions related to file systems offered by the standard Lua distribution. LuaFileSystem offers a portable way to access the underlying directory structure and file attributes.") (license (package-license lua-5.1)))) + +(define-public lua5.1-sec + (package + (name "lua-sec") + (version "0.6") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/brunoos/luasec/archive/" + "luasec-" version ".tar.gz")) + (sha256 + (base32 + "0pgd1anzznl4s0h16wg8dlw9mgdb9h52drlcki6sbf5y31fa7wyf")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags + (let ((out (assoc-ref %outputs "out"))) + (list "linux" + "CC=gcc" + "LD=gcc" + (string-append "LUAPATH=" out "/share/lua/5.1") + (string-append "LUACPATH=" out "/lib/lua/5.1"))) + #:tests? #f ; no tests included + #:phases + (modify-phases %standard-phases + (delete 'configure)))) + (inputs + `(("lua" ,lua-5.1) + ("openssl" ,openssl))) + (propagated-inputs + `(("lua-socket" ,lua5.1-socket))) + (home-page "https://github.com/brunoos/luasec/wiki") + (synopsis "OpenSSL bindings for Lua") + (description "LuaSec is a binding for OpenSSL library to provide TLS/SSL +communication. It takes an already established TCP connection and creates a +secure session between the peers.") + (license (package-license lua-5.1)))) -- 2.9.2