Subject: bug#77576: closed (Re: [PATCH] gnu: Add guile-lsp-server.)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 08 Apr 2025 09:41:02 +0000

Your bug report

#77576: [PATCH] gnu: Add guile-lsp-server.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
77576: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=77576
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [PATCH] gnu: Add guile-lsp-server.
From: Andreas Enge <[email-masked]>
To: Daniel Ziltener <[email-masked]>
Cc: [email-masked]
Date: Tue, 8 Apr 2025 11:40:11 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Thanks for the patch, which I have just pushed with microscopic changes
to the synopsis and description. It is useful to run
   ./pre-inst-env guix lint ...
which will suggest some such small changes, and also trigger Software
Heritage archival of the referenced source code.

Andreas

Subject: [PATCH] gnu: Add guile-lsp-server.
From: Daniel Ziltener <[email-masked]>
To: [email-masked]
Cc: Daniel Ziltener <[email-masked]>
Date: Sun, 6 Apr 2025 17:02:20 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

This adds long-overdue guile-lsp-server to guile-xyz.

---
 gnu/packages/guile-xyz.scm | 40 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index d5baea788c..a3fcd1bd87 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -1248,6 +1248,46 @@ (define-public guile-scheme-json-rpc
     (home-page "https://codeberg.org/rgherdt/scheme-json-rpc/")
     (license license:expat)))
 
+(define-public guile-lsp-server
+  (package
+    (name "guile-lsp-server")
+    (version "0.4.7")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://codeberg.org/rgherdt/scheme-lsp-server")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1ybd9gs8wbxv6hfph7cs3hv02qf5qyqkdb0nw6fp02ksb6gyip2w"))))
+    (build-system gnu-build-system)
+     (arguments
+      (list
+       #:phases
+       #~(modify-phases %standard-phases
+                        (add-after 'unpack 'move-to-guile-directory
+                                   (lambda _
+                                     (chdir "./guile"))))))
+     (native-inputs
+      (list autoconf
+            automake
+            pkg-config
+            texinfo
+            guile-3.0))
+    (propagated-inputs
+     (list guile-scheme-json-rpc
+           guile-srfi-145
+           guile-srfi-180
+           guile-irregex
+           guile-3.0))
+    (synopsis "LSP (Language Server Protocol) server for Guile.")
+    (description "Provides a library (lsp-server) and an executable
+@code{guile-lsp-server} that can be used by LSP clients in order to
+provide IDE functionality for Guile Scheme.")
+    (home-page "https://codeberg.org/rgherdt/scheme-lsp-server")
+    (license license:expat)))
+
 (define-public guile-ares-rs
   (package
     (name "guile-ares-rs")
-- 
2.49.0