guix_mirror_bot pushed a commit to branch emacs-team
in repository guix.

commit 6764fed18b542d417864201ada1720c8801f7bfe
Author: Morgan Smith <[email protected]>
AuthorDate: Sat Aug 29 16:50:58 2026 -0400

    gnu: emacs-paradox: Fix build.
    
    * gnu/packages/emacs-xyz.scm (emacs-paradox)[arguments]:
    Add #:test-command and #:phases.
    
    Signed-off-by: Liliana Marie Prikler <[email protected]>
---
 gnu/packages/emacs-xyz.scm | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index c027873d95..0a6f0ed5e3 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -6481,6 +6481,22 @@ overwrite mode, it will turn into a block cursor.")
           (base32
            "0v9hmvq6bcr2hwlb09ldsd6pjl19ri5n2hl2bs3x52fqjj6fdzzn"))))
       (build-system emacs-build-system)
+      (arguments
+       (list
+        #:test-command
+        #~(list "emacs" "-Q" "--batch"
+                "-l" "paradox"
+                "-l" "test/paradox-test.el"
+                "-f" "ert-run-tests-batch-and-exit")
+        #:phases
+        #~(modify-phases %standard-phases
+            ;; Needed for tests
+            (add-before 'check 'set-home
+              (lambda _
+                (setenv "HOME" (getcwd))
+                (substitute* "test/paradox-test.el"
+                  (("ert-deftest sanity .*" all)
+                   (string-append all "(skip-unless nil)"))))))))
       (propagated-inputs
        (list emacs-hydra emacs-let-alist emacs-spinner))
       (native-inputs (list emacs-ert-runner emacs-undercover))

Reply via email to