This is an automated email from the git hooks/post-receive script.

dannym pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new bcdd09db8e gnu: emacs-elisp-autofmt: Refer to an explicit Python.
bcdd09db8e is described below

commit bcdd09db8e145e6e7cf2d89f8afda9d480f510aa
Author: Danny Milosavljevic <dan...@friendly-machines.com>
AuthorDate: Sat May 10 12:29:46 2025 +0200

    gnu: emacs-elisp-autofmt: Refer to an explicit Python.
    
    * gnu/packages/emacs-xyz.scm 
(emacs-elisp-autofmt)[arguments]<#:phases>[patch-dependencies]:
    Refer to an explicit Python.
    
    Change-Id: I1ed78a5d70ce7f61195b08b94dd00f314c1e5145
---
 gnu/packages/emacs-xyz.scm | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 0994c15f3a..9d5e129d6f 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -375,11 +375,18 @@ buffer, a file on your disk, or a string from the kill 
ring.")
       (list
        #:phases
        #~(modify-phases %standard-phases
-                        (add-after 'install 'install-python-module
-                                   (lambda* (#:key inputs outputs 
#:allow-other-keys)
-                                            (let ((destination (elpa-directory 
(assoc-ref outputs "out"))))
-                                              (install-file "elisp-autofmt.py" 
destination)
-                                              (install-file 
"elisp-autofmt.overrides.json" destination)))))))
+           (add-after 'unpack 'patch-dependencies
+             (lambda* (#:key inputs #:allow-other-keys)
+               (substitute* "elisp-autofmt.el"
+                (("\"python\"")
+                 (string-append "\""
+                                (search-input-file inputs "/bin/python3")
+                                "\"")))))
+           (add-after 'install 'install-python-module
+             (lambda* (#:key inputs outputs #:allow-other-keys)
+               (let ((destination (elpa-directory (assoc-ref outputs "out"))))
+                 (install-file "elisp-autofmt.py" destination)
+                 (install-file "elisp-autofmt.overrides.json" 
destination)))))))
      (home-page "https://codeberg.org/ideasman42/emacs-elisp-autofmt";)
      (synopsis "Auto-format Emacs lisp")
      (description "This is a package to auto-format Emacs lisp.")

Reply via email to