From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id iPXSMXE++WMxRgEAbAwnHQ (envelope-from ) for ; Fri, 24 Feb 2023 23:47:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id aE+3MXE++WNUIwEAauVa8A (envelope-from ) for ; Fri, 24 Feb 2023 23:47:13 +0100 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 A31B829CD4 for ; Fri, 24 Feb 2023 23:47:13 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677278833; a=rsa-sha256; cv=none; b=tKlscXCWusL9kafUbIl2Hu71ApgeePN2WejBB3aXPBc1UQJE5ST2C53IWgj73QpeV3pb7v lKMHgm/UDifrfAjK5tkXUDOWNeLMpy6USZUjC1pZvjkz1q0HM40i7UsxgXjdkQ/oXsp7Co 91Up+eiLPb4KaZHMXmVudNSolUDCcpMiKJmupTX3jd10IOcLMoM6sO9q3moUNyFQTaLKeW /lW6SN/9rlP8jn2jQBYy7et1GG/SN1Bs9ZAmC5fqNtBopxyWBuf4b/ongMZC+rGkhhaD9O iQwkjkRZ0K8U6GStavOIl+mXxfGO19MqOnwi4SGSLiZHa8XV08m3EBY4BAtyBg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677278833; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=Fn0PI+QRFwqwPNgnCg7HwETWaAFEgCJFz3puowAGUWQ=; b=eANQyKddpv/r2U1jwmnrwgfYyREDYtjt8H5e2/40Ain2BxjlN35qpGuNGbtSk4KHhtUnx4 SbO5LCDKWuC62NfzuZJKCpS33WOZYIq/g2SeCUGYGmPb3Vq3yrPXsIFyZx6Q22B3O2JZR+ JI7wdiGAcq4rNvOnqi6LcWUhNhQPFl/xNrDg5wRS71PL+dPnQoie/aUclNqTl9Gm7YlP8B eWfnGhqc4wL+4v9rqq3Xcq/dKgvf5TdiJED4fjWIbqyBc4OnyEc1M8tE+r9IIvt5PlW9ze b4w4taoUR1J6nvgapTordzhjM9r6j3FnC5c2pTPW3kfvyDq8Sz1Qa8eo8KgmUQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVgqG-0001u5-TD; Fri, 24 Feb 2023 17:47:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pVgqF-0001tq-Le for guix-patches@gnu.org; Fri, 24 Feb 2023 17:47:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVgqF-0006HI-CU for guix-patches@gnu.org; Fri, 24 Feb 2023 17:47:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pVgqE-0004Xy-GH for guix-patches@gnu.org; Fri, 24 Feb 2023 17:47:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61774] [PATCH] gnu: Add luarocks. Resent-From: Timo Wilken Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 24 Feb 2023 22:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61774 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61774@debbugs.gnu.org Cc: Timo Wilken X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167727881317462 (code B ref -1); Fri, 24 Feb 2023 22:47:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 Feb 2023 22:46:53 +0000 Received: from localhost ([127.0.0.1]:38493 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVgq4-0004XY-Eg for submit@debbugs.gnu.org; Fri, 24 Feb 2023 17:46:52 -0500 Received: from lists.gnu.org ([209.51.188.17]:44962) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVgq2-0004XQ-Ci for submit@debbugs.gnu.org; Fri, 24 Feb 2023 17:46:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pVgq1-0001sB-Vr for guix-patches@gnu.org; Fri, 24 Feb 2023 17:46:49 -0500 Received: from mx2.mythic-beasts.com ([2a00:1098:0:82:1000:0:2:1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pVgq0-0006E9-4o for guix-patches@gnu.org; Fri, 24 Feb 2023 17:46:49 -0500 Received: by mailhub-hex-d.mythic-beasts.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pVgpx-00C6Um-BH; Fri, 24 Feb 2023 22:46:45 +0000 From: Timo Wilken Date: Fri, 24 Feb 2023 23:46:13 +0100 Message-Id: <20230224224613.25630-1-guix@twilken.net> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BlackCat-Spam-Score: 9 Received-SPF: pass client-ip=2a00:1098:0:82:1000:0:2:1; envelope-from=guix@twilken.net; helo=mx2.mythic-beasts.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: X-Migadu-Queue-Id: A31B829CD4 X-Spam-Score: -2.28 X-Migadu-Spam-Score: -2.28 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-TUID: QcsKXFQpYhGj Luarocks is a package manager for Lua modules. It is used by the Prosody XMPP server (already packaged in Guix) to install extensions. * gnu/packages/lua.scm (luarocks): Add variable. --- gnu/packages/lua.scm | 50 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index d50890bf1e..3d18e18ca9 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm @@ -18,6 +18,7 @@ ;;; Copyright © 2022 Brandon Lucas ;;; Copyright © 2022 Luis Henrique Gomes Higino ;;; Copyright © 2022 Leo Nikkilä +;;; Copyright © 2023 Timo Wilken ;;; ;;; This file is part of GNU Guix. ;;; @@ -49,6 +50,7 @@ (define-module (gnu packages lua) #:use-module (gnu packages bash) #:use-module (gnu packages boost) #:use-module (gnu packages build-tools) + #:use-module (gnu packages compression) #:use-module (gnu packages glib) #:use-module (gnu packages gtk) #:use-module (gnu packages libevent) @@ -1126,6 +1128,54 @@ (define-public lua-resty-shell shell command executions.") (license license:bsd-3))) +(define-public luarocks + (package + (name "luarocks") + (version "3.9.2") + (home-page "https://luarocks.org/") + (source (origin + (method url-fetch) + (uri (string-append "https://luarocks.org/releases/luarocks-" + version ".tar.gz")) + (sha256 + (base32 + "1nsfp7cwqcxa8vmkcqkgi5wc0iax0j3gbdfd183kw81cq3nf99mw")))) + (build-system gnu-build-system) + (arguments + '(#:tests? #f ;upstream has no tests + #:phases (modify-phases %standard-phases + (add-before 'build 'patch-bin-sh + (lambda* (#:key inputs #:allow-other-keys) + (substitute* '("GNUmakefile" "src/luarocks/fs/unix.lua" + "src/luarocks/core/sysdetect.lua") + (("/bin/sh") + (string-append (assoc-ref inputs "bash-minimal") + "/bin/sh"))))) + (replace 'configure + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (invoke "./configure" + (string-append "--prefix=" out)))))))) + (inputs (list lua bash-minimal)) + (native-inputs (list unzip)) + (synopsis "A package manager for Lua modules") + (description + "LuaRocks is the package manager for the Lua programming +language. + +It allows you to install Lua modules as self-contained packages called +@url{https://luarocks.org/en/Types_of_rocks, @emph{rocks}}, which also contain +version @url{https://luarocks.org/en/Dependencies, dependency} information. +This information can be used both during installation, so that when one rock +is requested all rocks it depends on are installed as well, and also +optionally at run time, so that when a module is required, the correct version +is loaded. LuaRocks supports both local and +@url{http://luarocks.org/en/Rocks_repositories, remote} repositories, and +multiple local rocks trees.") + ;; The home page says: + ;; "LuaRocks is free software and uses the same license as Lua." + (license license:x11))) + (define-public emilua (package (name "emilua") -- 2.39.1