Subject: [PATCH] emacs-alchemist: add alchemist-server output
From: [email-masked]
To: [email-masked]
Cc: emma thompson <[email-masked]>
Date: Sat, 05 Oct 2024 21:25:40 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

From: emma thompson <[email-masked]>

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

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 09ac57a464..5567c38a3a 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -4046,6 +4046,15 @@ (define-public emacs-alchemist
     (build-system emacs-build-system)
     (propagated-inputs
      (list emacs-elixir-mode emacs-dash emacs-company emacs-pkg-info))
+    (arguments
+     '(#:phases (modify-phases %standard-phases
+                  (add-after 'install 'install-server
+                    (lambda* (#:key outputs #:allow-other-keys)
+                      (let* ((out (assoc-ref outputs "out"))
+                             (server (string-append out "/share/emacs/site-lisp/alchemist-1.8.2/alchemist-server")))
+                        (mkdir-p server)
+                        (copy-recursively "alchemist-server" server)
+                        (delete-file-recursively (string-append server "/test"))))))))
     (home-page "http://www.github.com/tonini/alchemist.el")
     (synopsis "Elixir tooling integration into Emacs")
     (description

base-commit: 002df8abd2f4d7c5d23febb1459b77c880345ca7
-- 
2.46.0