me
/
guix
Archived
1
0
Fork 0

gnu: emacs-lsp-mode: Improve package style.

* gnu/packages/emacs-xyz.scm (emacs-lsp-mode)[arguments]: Use G-expressions.

Change-Id: Ie2e1afba6e62a7fa4628c8bb7259e2d1f2d73c71
master
Nicolas Goaziou 2024-04-06 17:08:47 +02:00
parent 106c16fc8e
commit ab3731d255
No known key found for this signature in database
GPG Key ID: DA00B4F048E92F2D
1 changed files with 17 additions and 16 deletions

View File

@ -30692,22 +30692,23 @@ the standard @code{Dockerfile} file format.")
(base32 "1p4979qbmllmmszmnyml0msxkza4pm14rdacmqczbfs3cs9n6bd3"))))
(build-system emacs-build-system)
(arguments
`(#:emacs ,emacs ;need libxml support
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'move-clients-libraries
;; Move all clients libraries at top-level, as is done, e.g., in
;; MELPA.
(lambda _
(for-each (lambda (f)
(install-file f "."))
(find-files "clients/" "\\.el$"))))
(add-before 'move-clients-libraries 'fix-patch-el-files
;; /bin/ksh is only used on macOS, which we don't support, so we
;; don't want to add it as input.
(lambda _
(substitute* '("clients/lsp-csharp.el" "clients/lsp-fsharp.el")
(("/bin/ksh") "ksh")))))))
(list
#:emacs emacs ;need libxml support
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'move-clients-libraries
;; Move all clients libraries at top-level, as is done, e.g., in
;; MELPA.
(lambda _
(for-each (lambda (f)
(install-file f "."))
(find-files "clients/" "\\.el$"))))
(add-before 'move-clients-libraries 'fix-patch-el-files
;; /bin/ksh is only used on macOS, which we don't support, so we
;; don't want to add it as input.
(lambda _
(substitute* '("clients/lsp-csharp.el" "clients/lsp-fsharp.el")
(("/bin/ksh") "ksh")))))))
(propagated-inputs
(list emacs-dash
emacs-f