From patchwork Tue Jun 28 20:34:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\\(" X-Patchwork-Id: 40388 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id DA67327BBEA; Tue, 28 Jun 2022 21:35:47 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 9315627BBE9 for ; Tue, 28 Jun 2022 21:35:47 +0100 (BST) Received: from localhost ([::1]:47132 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6Hw0-0008Pm-UP for patchwork@mira.cbaines.net; Tue, 28 Jun 2022 16:35:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6HvK-00084q-QE for guix-patches@gnu.org; Tue, 28 Jun 2022 16:35:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34296) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6HvK-0002qt-IA for guix-patches@gnu.org; Tue, 28 Jun 2022 16:35:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o6HvK-0002rm-Eg for guix-patches@gnu.org; Tue, 28 Jun 2022 16:35:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56286] [PATCH v2 2/6] gnu: Add lutok. Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 28 Jun 2022 20:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56286 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56286@debbugs.gnu.org Cc: "\(" Received: via spool by 56286-submit@debbugs.gnu.org id=B56286.165644847910926 (code B ref 56286); Tue, 28 Jun 2022 20:35:02 +0000 Received: (at 56286) by debbugs.gnu.org; 28 Jun 2022 20:34:39 +0000 Received: from localhost ([127.0.0.1]:56412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6Hux-0002q9-31 for submit@debbugs.gnu.org; Tue, 28 Jun 2022 16:34:39 -0400 Received: from knopi.disroot.org ([178.21.23.139]:58170) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6Huv-0002pv-NZ for 56286@debbugs.gnu.org; Tue, 28 Jun 2022 16:34:38 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 0E75345B24; Tue, 28 Jun 2022 22:34:37 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WiVlCzZJnp-V; Tue, 28 Jun 2022 22:34:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1656448472; bh=Mqs9YNkwDNWhf81kEWGPrCzxAwE5U/vTYwHECVGiRMk=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=cJDoPsIgP+8mwiiH7ksxH1QA4jZTO6e+iLwoWdSqaMQ/vxzchZaUmCo+nC14VjSJP d1hOeujeZ5Kgfp3h6aOzoneViJVdU9SjVmDJ1FqGSUgqDmopRkFoQ71WwLSYseAcZA Cr8e+uNJKf0F2GL1dhbMa0FlZsW9q24Ei+AXQTjkwAdslRrhk+ygi1wsQ1m49eZNbS XEJBB8mXfPSRa2eySaYEl2Oo7q5TzC7NxtM0KQmHTUYiLZSvsMAeQm/OGXM3FFcCJn kvLjpGJzFznN2kB4LL5SoPiU47HYMKhXdqDaEorDH7aFlQm6cJrT2fAp8P1IuSoycI IIDHrhrwZ2a4w== Date: Tue, 28 Jun 2022 21:34:22 +0100 Message-Id: <20220628203426.31906-2-paren@disroot.org> In-Reply-To: <20220628203426.31906-1-paren@disroot.org> References: <20220628203426.31906-1-paren@disroot.org> Mime-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: "\(" X-ACL-Warn: , "\( via Guix-patches" X-Patchwork-Original-From: "\( via Guix-patches" via From: "\\(" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/lua.scm (lutok): New variable. --- gnu/packages/lua.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index afebc6bc1f..31a0fe1034 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm @@ -45,9 +45,11 @@ (define-module (gnu packages lua) #:use-module (guix build-system meson) #:use-module (guix build-system trivial) #:use-module (gnu packages) + #:use-module (gnu packages autotools) #:use-module (gnu packages bash) #:use-module (gnu packages boost) #:use-module (gnu packages build-tools) + #:use-module (gnu packages check) #:use-module (gnu packages glib) #:use-module (gnu packages gtk) #:use-module (gnu packages libevent) @@ -1284,3 +1286,35 @@ (define-public fnlfmt "Fnlfmt is a tool for automatically formatting Fennel code in a consistent way, following established lisp conventions.") (license license:lgpl3+))) + +(define-public lutok + ;; The last tag was in 2014, the last commit in 2016. + (let ((commit "8f8eaefe8b7c76e286b96fcbe2e860af98de29ea") + (revision "0")) + (package + (name "lutok") + (version (git-version "0.4" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jmmv/lutok") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "08ajd8bb4pzrbak3kq5arxgy82wg43vfdxilyfx1p6pyp6g18jj8")))) + (build-system gnu-build-system) + (inputs (list lua-5.2)) + (native-inputs (list atf autoconf automake libtool pkg-config)) + (arguments + ;; Tests require Kyua, which itself depends on Lutok. + (list #:tests? #f)) + (home-page "https://github.com/jmmv/lutok") + (synopsis "Lightweight C++ API for Lua") + (description + "Lutok provides a lightweight wrapper around Lua's C interfaces that eases +the interaction between C++ and Lua. These wrappers make intensive use of RAII +to prevent resource leakage, expose C++-friendly data types, report errors by +means of exceptions and ensure that the Lua stack is always left untouched in +the face of errors.") + (license license:bsd-3))))