mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-14 19:10:49 +02:00
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
This commit is contained in:
parent
1c50758fa7
commit
bcdd09db8e
1 changed files with 12 additions and 5 deletions
|
@ -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.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue