From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36743) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWQpx-0007tw-32 for guix-patches@gnu.org; Fri, 22 Jun 2018 14:31:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWQpt-0008Qh-5b for guix-patches@gnu.org; Fri, 22 Jun 2018 14:31:09 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:52658) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fWQpt-0008Qc-22 for guix-patches@gnu.org; Fri, 22 Jun 2018 14:31:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fWQps-0008Sv-Sh for guix-patches@gnu.org; Fri, 22 Jun 2018 14:31:04 -0400 Subject: [bug#31939] [PATCH 08/13] gnu: Add go-github-com-stevedonovan-luar. Resent-Message-ID: From: Pierre Neidhardt Date: Fri, 22 Jun 2018 20:30:26 +0200 Message-Id: <20180622183031.3044-7-ambrevar@gmail.com> In-Reply-To: <20180622183031.3044-1-ambrevar@gmail.com> References: <20180622183031.3044-1-ambrevar@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 31939@debbugs.gnu.org * gnu/packages/golang.scm (go-github-com-stevedonovan-luar): New variable. --- gnu/packages/golang.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 1ae59fee1..18e54cf8b 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2015,3 +2015,44 @@ Damerau-Levenshtein distance. Takes a string value input from the user. Looks for an identical word on a list of words, if none is found, look for a similar word.") (license license:bsd-style)))) + +(define-public go-github-com-stevedonovan-luar + (let ((commit "22d247e5366095f491cd83edf779ee99a78f5ead") + (revision "0")) + (package + (name "go-github-com-stevedonovan-luar") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url + "https://github.com/stevedonovan/luar") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1acjgw9cz1l0l9mzkyk7irz6cfk31wnxgbwa805fvm1rqcjzin2c")))) + (build-system go-build-system) + (native-inputs + `(("go-github-com-aarzilli-golua" ,go-github-com-aarzilli-golua))) + (arguments + `(#:tests? #f ; Upstream tests are broken. + #:import-path "github.com/stevedonovan/luar")) + (home-page "https://github.com/stevedonovan/luar") + (synopsis "Lua reflection bindings for Go") + (description "Luar is designed to make using Lua from Go more +convenient. Go structs, slices and maps can be automatically converted to Lua +tables and vice-versa. The resulting conversion can either be a copy or a +proxy. In the latter case, any change made to the result will reflect on the +source. + +Any Go function can be made available to Lua scripts, without having to write +C-style wrappers. + +Luar support cyclic structures (map[string]interface{}, lists, etc.). + +User-defined types can be made available to Lua as well: their exported +methods can be called and usual operations such as indexing or arithmetic can +be performed.") + (license license:bsd-style)))) -- 2.17.1