diff options
| author | Danny Milosavljevic <dannym@friendly-machines.com> | 2025-05-10 12:29:46 +0200 |
|---|---|---|
| committer | Danny Milosavljevic <dannym@friendly-machines.com> | 2025-05-10 13:29:35 +0200 |
| commit | bcdd09db8e145e6e7cf2d89f8afda9d480f510aa (patch) | |
| tree | 607b1b95e0adacb4d85c6f25f380ffad936ba982 /gnu | |
| parent | 1c50758fa735dc187dc18f50e09b970f19aef657 (diff) | |
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
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/emacs-xyz.scm | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 0994c15f3a5..9d5e129d6f6 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.") |
