(address . guix-patches@gnu.org)
* gnu/packages/fennel.scm (fennel-ls): New variable.
From 00dc141d99539ab9aec01d5adf43b0fafb1f32f4 Mon Sep 17 00:00:00 2001
Message-ID: <00dc141d99539ab9aec01d5adf43b0fafb1f32f4.1722407043.git.lomiskiam@gmail.com>
From: crumbtoo <crumb@duck.com>
Date: Wed, 31 Jul 2024 00:13:52 -0600
Subject: [PATCH] gnu: Add fennel-ls.
* gnu/packages/fennel.scm (fennel-ls): New variable.
Change-Id: Id8a465f2c549f07f014ad9f65af2837e8e18e6d0
---
gnu/packages/lua.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Toggle diff (46 lines)
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm
index 1e583b59b3..0be9914e65 100644
--- a/gnu/packages/lua.scm
+++ b/gnu/packages/lua.scm
@@ -1397,6 +1397,37 @@ (define-public fennel
system.")
(license license:expat)))
+(define-public fennel-ls
+ (package
+ (name "fennel-ls")
+ (version "0.1.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://git.sr.ht/~xerool/fennel-ls/archive/"
+ version ".tar.gz"))
+ (sha256
+ (base32 "0nb3yclv9v2mwcnam5djvhg0vgmdsk0gavbvq1ar5v2j0m9pzr7f"))))
+ (build-system gnu-build-system)
+ (arguments
+ (list
+ #:test-target "test"
+ #:phases #~(modify-phases %standard-phases
+ (delete 'configure)
+ (add-after 'build 'patch-fennel-ls
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "fennel-ls"
+ (("/usr/bin/env .*lua")
+ (search-input-file inputs "/bin/lua"))))))
+ #:make-flags #~(list (string-append "PREFIX="
+ (assoc-ref %outputs "out")))))
+ (inputs (list lua-5.4 fennel))
+ (home-page "https://git.sr.ht/~xerool/fennel-ls")
+ (license license:expat)
+ (synopsis "Provides intelligent editing features for Fennel files")
+ (description "A language server for Fennel. Provides intelligent editing
+features for Fennel files.")))
+
(define-public antifennel
(package
(version "0.2.0")
base-commit: f59c4126827af3d2041d49f1d0a8ce12b41470cf
--
2.45.2