unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#72397] [PATCH] gnu: Add fennel-ls.
@ 2024-07-31  6:27 sydney goose
  2024-08-15 14:32 ` Nicolas Graves via Guix-patches via
  0 siblings, 1 reply; 2+ messages in thread
From: sydney goose @ 2024-07-31  6:27 UTC (permalink / raw)
  To: 72397


[-- Attachment #1.1: Type: text/plain, Size: 53 bytes --]

* gnu/packages/fennel.scm (fennel-ls): New variable.

[-- Attachment #1.2: Type: text/html, Size: 78 bytes --]

[-- Attachment #2: 0001-gnu-Add-fennel-ls.patch --]
[-- Type: text/x-patch, Size: 2098 bytes --]

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(+)

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


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

* [bug#72397] [PATCH] gnu: Add fennel-ls.
  2024-07-31  6:27 [bug#72397] [PATCH] gnu: Add fennel-ls sydney goose
@ 2024-08-15 14:32 ` Nicolas Graves via Guix-patches via
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Graves via Guix-patches via @ 2024-08-15 14:32 UTC (permalink / raw)
  To: sydney goose, 72397

On 2024-07-31 00:27, sydney goose wrote:

> * gnu/packages/fennel.scm (fennel-ls): New variable.

> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (string-append "https://git.sr.ht/~xerool/fennel-ls/archive/"
> +                           version ".tar.gz"))
> +       (sha256
> +        (base32 "0nb3yclv9v2mwcnam5djvhg0vgmdsk0gavbvq1ar5v2j0m9pzr7f"))))

Is there a reason why we use archives rather than git fetching here?
Otherwise I would advise against, given the codebase is small.
This would probably also solve the two following lints:

fennel-ls@0.1.3: the source file name should contain the package name
fennel-ls@0.1.3: no updater for fennel-ls

> +    (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")

Nitpick/proposition : "A language server for Fennel"

> +    (description "A language server for Fennel.  Provides intelligent editing
> +features for Fennel files.")))

Nitpick/proposition : "This package provides a language server for
Fennel that provides intelligent editing features for Fennel files."

Otherwise LGTM. Please send an updated patch ;)

-- 
Best regards,
Nicolas Graves




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

end of thread, other threads:[~2024-08-15 14:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-31  6:27 [bug#72397] [PATCH] gnu: Add fennel-ls sydney goose
2024-08-15 14:32 ` Nicolas Graves via Guix-patches via

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).