gnu: emacs-lsp-mode: Update to 9.0.1-0.1472333.

* gnu/packages/emacs-xyz.scm (emacs-lsp-mode): Update to 9.0.1-0.1472333.

Change-Id: I25e85808cadc6e7ef5c8573a0822c8cbac2889eb
Signed-off-by: Hilton Chain <hako@ultrarare.space>
This commit is contained in:
Cayetano Santos 2025-07-18 12:31:44 +02:00 committed by Hilton Chain
parent 48bc3329c6
commit a3cb5f185a
No known key found for this signature in database
GPG key ID: ACC66D09CA528292

View file

@ -34762,35 +34762,49 @@ the standard @code{Dockerfile} file format.")
(license license:asl2.0))) (license license:asl2.0)))
(define-public emacs-lsp-mode (define-public emacs-lsp-mode
;; Last release is one year old.
;; Latest revision enables support for new lsp spec 3.17 features.
(let ((commit "147233313576c844e2bf56640827b0d0e5c2ee6c")
(revision "0"))
(package (package
(name "emacs-lsp-mode") (name "emacs-lsp-mode")
(version "9.0.0") (version (git-version "9.0.1" revision commit)) ;taken from lsp-mode.el
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
(url "https://github.com/emacs-lsp/lsp-mode") (url "https://github.com/emacs-lsp/lsp-mode/")
(commit version))) (commit commit)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "1p4979qbmllmmszmnyml0msxkza4pm14rdacmqczbfs3cs9n6bd3")))) (base32 "14317wgi0mrxbcrlgrfqyf80lh86n7x6bv07b43cxl3k4c4fqk0l"))))
(build-system emacs-build-system) (build-system emacs-build-system)
(arguments (arguments
(list (list
#:emacs emacs ;need libxml support #:emacs emacs ;need libxml support
#:test-command #~(list "ert-runner" "-L" "." "-L" "clients" #:test-command #~(list "ert-runner"
"-t" "!no-win" "-t" "!org") "-L" "."
"-L" "clients"
"-t" "!no-win"
"-t" "!org")
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'move-clients-libraries ;; Move libraries to the top-level.
;; Move all clients libraries at top-level, as is done, e.g., in (add-after 'unpack 'move-libraries
;; MELPA.
(lambda _ (lambda _
;; REVIEW; Improve style, pair-for-each ?
(for-each (lambda (d)
(for-each (lambda (f) (for-each (lambda (f)
(install-file f ".")) (rename-file f (basename f)))
(find-files "clients/" "\\.el$")))) (find-files d "\\.el$")))
(list "use-package/" "clients/"))))
(add-before 'check 'skip-failing-tests (add-before 'check 'skip-failing-tests
(lambda _ (lambda _
(substitute* "test/lsp-mock-server-test.el"
(("\\(ert-deftest lsp-mock-server-reports.*" all)
(string-append all "(skip-unless nil)"))
(("\\(ert-deftest lsp-mock-server-updates-.*" all)
(string-append all "(skip-unless nil)")))
(substitute* "test/lsp-common-test.el" (substitute* "test/lsp-common-test.el"
(("\\(require 'elenv" all) (("\\(require 'elenv" all)
(string-append all " nil t")) (string-append all " nil t"))
@ -34819,11 +34833,12 @@ the standard @code{Dockerfile} file format.")
;; See also: ;; See also:
;; <https://emacs-lsp.github.io/lsp-mode/page/performance/>. ;; <https://emacs-lsp.github.io/lsp-mode/page/performance/>.
(("\\(getenv \"LSP_USE_PLISTS\"\\)") "t")))) (("\\(getenv \"LSP_USE_PLISTS\"\\)") "t"))))
(add-before 'move-clients-libraries 'fix-patch-el-files (add-before 'move-libraries 'fix-patch-el-files
;; /bin/ksh is only used on macOS, which we don't support, so we ;; /bin/ksh is only used on macOS, which we don't support, so we
;; don't want to add it as input. ;; don't want to add it as input.
(lambda _ (lambda _
(substitute* '("clients/lsp-csharp.el" "clients/lsp-fsharp.el") (substitute* '("clients/lsp-csharp.el"
"clients/lsp-fsharp.el")
(("/bin/ksh") "ksh"))))))) (("/bin/ksh") "ksh")))))))
(propagated-inputs (propagated-inputs
(list emacs-dash (list emacs-dash
@ -34832,7 +34847,8 @@ the standard @code{Dockerfile} file format.")
emacs-hydra emacs-hydra
emacs-markdown-mode emacs-markdown-mode
emacs-spinner)) emacs-spinner))
(native-inputs (list emacs-deferred (native-inputs
(list emacs-deferred
emacs-el-mock emacs-el-mock
emacs-ert-runner)) emacs-ert-runner))
(home-page "https://emacs-lsp.github.io/lsp-mode/") (home-page "https://emacs-lsp.github.io/lsp-mode/")
@ -34842,7 +34858,7 @@ the standard @code{Dockerfile} file format.")
Server Protocol. This mode creates an IDE-like experience by providing Server Protocol. This mode creates an IDE-like experience by providing
optional integration with other popular Emacs packages like Company, Flycheck, optional integration with other popular Emacs packages like Company, Flycheck,
and Projectile.") and Projectile.")
(license license:gpl3+))) (license license:gpl3+))))
(define* (%emacs-lsp-treemacs-upstream-source #:key commit version hash) (define* (%emacs-lsp-treemacs-upstream-source #:key commit version hash)
(origin (origin