all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Paul A. Patience" <paul@apatience.com>
To: 45271@debbugs.gnu.org
Subject: [bug#45271] [PATCH] gnu: Add Fennel
Date: Wed, 16 Dec 2020 17:05:34 +0000	[thread overview]
Message-ID: <qZrmcuFkkkYNHVS1JqZ9hvfrGclCcuQnEb-ZQSQ9SsAfEf6cp0RoGbWQqb7XZTGRJYXH5oioO8GWn5XSynGhtuKAUydqiWAZ5uoYWtVig0E=@apatience.com> (raw)

* gnu/packages/lua.scm (fennel): 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 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)))
--
2.29.2





             reply	other threads:[~2020-12-16 20:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-16 17:05 Paul A. Patience [this message]
2020-12-17  3:38 ` [bug#45271] [PATCH] gnu: Add Fennel Paul A. Patience
2020-12-26 20:36 ` bug#45271: " Efraim Flashner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='qZrmcuFkkkYNHVS1JqZ9hvfrGclCcuQnEb-ZQSQ9SsAfEf6cp0RoGbWQqb7XZTGRJYXH5oioO8GWn5XSynGhtuKAUydqiWAZ5uoYWtVig0E=@apatience.com' \
    --to=paul@apatience.com \
    --cc=45271@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.