From patchwork Wed Dec 16 17:05:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Paul A. Patience" X-Patchwork-Id: 25802 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 957BC27BC05; Wed, 16 Dec 2020 20:33:34 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6021427BC04 for ; Wed, 16 Dec 2020 20:33:34 +0000 (GMT) Received: from localhost ([::1]:49666 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpdUK-0001Mn-IG for patchwork@mira.cbaines.net; Wed, 16 Dec 2020 15:33:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43064) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpaGU-000789-BV for guix-patches@gnu.org; Wed, 16 Dec 2020 12:07:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:50303) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kpaGU-0005rr-1F for guix-patches@gnu.org; Wed, 16 Dec 2020 12:07:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kpaGT-0006Tn-Sw for guix-patches@gnu.org; Wed, 16 Dec 2020 12:07:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45271] [PATCH] gnu: Add Fennel Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 16 Dec 2020 17:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45271 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 45271@debbugs.gnu.org X-Debbugs-Original-To: "guix-patches@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.160813841824895 (code B ref -1); Wed, 16 Dec 2020 17:07:01 +0000 Received: (at submit) by debbugs.gnu.org; 16 Dec 2020 17:06:58 +0000 Received: from localhost ([127.0.0.1]:33616 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpaGP-0006TS-OT for submit@debbugs.gnu.org; Wed, 16 Dec 2020 12:06:58 -0500 Received: from lists.gnu.org ([209.51.188.17]:42816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpaFQ-0006RZ-T2 for submit@debbugs.gnu.org; Wed, 16 Dec 2020 12:05:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpaFP-0005Mr-Jq for guix-patches@gnu.org; Wed, 16 Dec 2020 12:05:55 -0500 Received: from mail-40136.protonmail.ch ([185.70.40.136]:60692) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpaFL-0005Qf-1i for guix-patches@gnu.org; Wed, 16 Dec 2020 12:05:55 -0500 Date: Wed, 16 Dec 2020 17:05:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1608138345; bh=6oE6SGZGQuRNf9LyqiIbWUfwsdZmNyfA5ww0euwNtyY=; h=Date:To:From:Reply-To:Subject:From; b=dMg1y7QvMtzN9GU2RJ411dKDsJM5rg5+FZxst87ElFPHEPV9vYQzk/UFLjK/cvbhz lO5AuvAQk8Riy4nEwWfWS6DdVu7xCWhX0Jr+4VovyLeIicamXQGwAjRc7wF9WGVAPk r32f75N7p7ROLCEyashXVpZoQhuM4jaNKqizxNUb85jLUmbbUKyXwWVCWNRxCTx/fL pmRrOOIJczKOv7rRm7t863ZDZaEA/IlApe+HSTJpd5D6+E995xA+tCoQtkOqk+/Nzt vSvoXTlXAFLU3gAVvQnMx3PmryeQQ4XSQMrrwyJIqeAhMSRD+MHSfvdmcQIWh7t8Wf bRt0eQ/jNzzFw== From: "Paul A. Patience" Message-ID: MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.40.136; envelope-from=paul@apatience.com; helo=mail-40136.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 16 Dec 2020 12:06:56 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Wed, 16 Dec 2020 15:33:10 -0500 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: "Paul A. Patience" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/lua.scm (fennel): New variable. --- gnu/packages/lua.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) -- 2.29.2 diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index 5d6da69fae..cd4ff4a29a 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm @@ -1061,3 +1061,40 @@ signals to Linux processes.") (description "This package provides Lua module for nonblocking system shell command executions.") (license license:bsd-3))) + +(define-public fennel + (package + (name "fennel") + (version "0.7.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://git.sr.ht/~technomancy/fennel") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "17pdcwhfw754fblppw46qphnsvxrn3b7066cz54lv8c0c12iryim")))) + (build-system gnu-build-system) + (arguments + '(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))) + #:test-target "test" + #:phases + (modify-phases %standard-phases + (delete 'configure) + (add-before 'build 'delete-fennelview + ;; The repository bundles a precompiled fennelview.lua. + (lambda _ (delete-file "fennelview.lua") #t)) + (add-after 'build 'patch-fennel + (lambda _ + (substitute* "fennel" + (("/usr/bin/env lua") (which "lua"))) + #t))))) + (inputs `(("lua" ,lua))) + (home-page "https://fennel-lang.org/") + (synopsis "A Lisp that compiles to Lua") + (description + "Fennel is a programming language that brings together the speed, +simplicity, and reach of Lua with the flexibility of a Lisp syntax and macro +system.") + (license license:expat)))