1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-05-22 17:16:01 +02:00

gnu: emacs-rust-mode: Fix and enable tests.

* gnu/packages/emacs-xyz.scm (emacs-rust-mode)
[arguments]: Convert to list of G-Expressions.
<#:tests?>: Enable.
<#:phases>: Add ‘patch-makefile’.

Merges guix/guix!6772

Change-Id: I99557fb898055793acaf40020d7d75a5d244c8ef
Signed-off-by: Cayetano Santos <csantosb@inventati.org>
This commit is contained in:
Thanos Apollo
2026-02-28 15:49:25 +02:00
committed by Cayetano Santos
parent 6046e27b93
commit 50f998e04c
+14 -2
View File
@@ -34104,8 +34104,20 @@ docstring of the thing at point.")
(base32 "14al12fh707flb9aqz8b70mbb3b7ah5anal4ch60q68m0zzas56i"))))
(build-system emacs-build-system)
(arguments
`(#:tests? #false ;FIXME: phase fail with status 127
#:test-command '("make test")))
(list
#:test-command #~(list "make" "test")
#:phases
#~(modify-phases %standard-phases
;; The Makefile uses 'eask' (a Node.js CLI wrapper) to run
;; ERT tests. Replace with direct Emacs invocations to avoid
;; the heavyweight dependency.
(add-after 'unpack 'patch-makefile
(lambda _
(substitute* "Makefile"
(("\\$\\(EASK\\) test ert ([^ \t\n]+)" all test-file)
(string-append
"emacs --batch -L . -l ert -l " test-file
" -f ert-run-tests-batch-and-exit"))))))))
(home-page "https://github.com/rust-lang/rust-mode")
(synopsis "Major Emacs mode for editing Rust source code")
(description "This package provides a major Emacs mode for editing Rust