lilyp pushed a commit to branch emacs-team
in repository guix.
commit c1441d821d50422ac5f73c2ec7aa5fe4822433bb
Author: Liliana Marie Prikler <[email protected]>
AuthorDate: Sat Apr 5 18:57:10 2025 +0200
gnu: emacs-clj-refactor: Fix build.
* gnu/packages/emacs-xyz.scm (emacs-clj-refactor)[arguments]:
Add #:test-command.
<#:phases>: Add ‘enable-lexical-binding’.
[native-inputs]: Add emacs-buttercup.
---
gnu/packages/emacs-xyz.scm | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 73ebbbea80..d56b8660c8 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -15495,6 +15495,16 @@ Clojure projects from templates.")
(sha256
(base32 "0mha1wqn5hd9g8y0fp35qkhlnxlrwli62x7mbifman279h16gaml"))))
(build-system emacs-build-system)
+ (arguments
+ (list #:test-command #~(list "buttercup" "-L" "." "-L" "test")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'enable-lexical-binding
+ (lambda _
+ (emacs-batch-edit-file "tests/unit-test.el"
+ '(progn
+ (add-file-local-variable-prop-line 'lexical-binding t)
+ (basic-save-buffer))))))))
(propagated-inputs
(list emacs-cider
emacs-clojure-mode
@@ -15504,6 +15514,7 @@ Clojure projects from templates.")
emacs-paredit
emacs-parseedn
emacs-yasnippet))
+ (native-inputs (list emacs-buttercup))
(home-page "https://github.com/clojure-emacs/clj-refactor.el")
(synopsis "Powerful refactoring functionality for Clojure projects")
(description "This Emacs package complements the refactoring functionality