all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#45271] [PATCH] gnu: Add Fennel
@ 2020-12-16 17:05 Paul A. Patience
  2020-12-17  3:38 ` Paul A. Patience
  2020-12-26 20:36 ` bug#45271: " Efraim Flashner
  0 siblings, 2 replies; 3+ messages in thread
From: Paul A. Patience @ 2020-12-16 17:05 UTC (permalink / raw)
  To: 45271

* 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





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#45271] [PATCH] gnu: Add Fennel
  2020-12-16 17:05 [bug#45271] [PATCH] gnu: Add Fennel Paul A. Patience
@ 2020-12-17  3:38 ` Paul A. Patience
  2020-12-26 20:36 ` bug#45271: " Efraim Flashner
  1 sibling, 0 replies; 3+ messages in thread
From: Paul A. Patience @ 2020-12-17  3:38 UTC (permalink / raw)
  To: 45271@debbugs.gnu.org

[-- Attachment #1: Type: text/plain, Size: 128 bytes --]

It seems that my mail client erroneously appended semicolons to the URL strings. I've attached the patch here instead.

Paul

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: lua.scm.patch --]
[-- Type: text/x-patch; name=lua.scm.patch, Size: 2075 bytes --]

From 9376e3e90fc430f8ca6ae69103c31733b8285899 Mon Sep 17 00:00:00 2001
From: "Paul A. Patience" <paul@apatience.com>
Date: Wed, 16 Dec 2020 11:57:31 -0500
Subject: [PATCH] gnu: Add fennel.

* 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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#45271: [PATCH] gnu: Add Fennel
  2020-12-16 17:05 [bug#45271] [PATCH] gnu: Add Fennel Paul A. Patience
  2020-12-17  3:38 ` Paul A. Patience
@ 2020-12-26 20:36 ` Efraim Flashner
  1 sibling, 0 replies; 3+ messages in thread
From: Efraim Flashner @ 2020-12-26 20:36 UTC (permalink / raw)
  To: Paul A. Patience; +Cc: 45271-done

[-- Attachment #1: Type: text/plain, Size: 334 bytes --]

With your comment about feneelview.lua being pre-compiled I moved it to
a source snippet and pushed the patch. Thanks!

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-12-26 20:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-16 17:05 [bug#45271] [PATCH] gnu: Add Fennel Paul A. Patience
2020-12-17  3:38 ` Paul A. Patience
2020-12-26 20:36 ` bug#45271: " Efraim Flashner

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.