gnu: emacs-flycheck-grammalecte: Fix location for external executables.
* gnu/packages/emacs-xyz.scm (emacs-flycheck-grammalecte)[inputs]: Add curl. [arguments]: Fix path to all "python", "python3" and "curl" occurrences.
This commit is contained in:
parent
05fa5a84fa
commit
3b1886c9dd
1 changed files with 9 additions and 5 deletions
|
@ -3381,13 +3381,16 @@ for Flow files.")
|
||||||
`(#:include '("\\.(el|py)$")
|
`(#:include '("\\.(el|py)$")
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'fix-python
|
(add-after 'unpack 'set-external-executables
|
||||||
;; Hardcode python3 executable in the Emacs library.
|
;; Hardcode python3 and curl executables in the Emacs library.
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(let ((python3 (string-append (assoc-ref inputs "python")
|
(let ((python3 (string-append (assoc-ref inputs "python")
|
||||||
"/bin/python3")))
|
"/bin/python3"))
|
||||||
|
(curl (string-append (assoc-ref inputs "curl")
|
||||||
|
"/bin/curl")))
|
||||||
(substitute* "flycheck-grammalecte.el"
|
(substitute* "flycheck-grammalecte.el"
|
||||||
(("python3") python3))
|
(("\"python3?") (string-append "\"" python3))
|
||||||
|
(("\"curl") (string-append "\"" curl)))
|
||||||
#t)))
|
#t)))
|
||||||
(add-after 'install 'link-to-grammalecte
|
(add-after 'install 'link-to-grammalecte
|
||||||
;; The package expects grammalecte to be in a sub-directory.
|
;; The package expects grammalecte to be in a sub-directory.
|
||||||
|
@ -3404,7 +3407,8 @@ for Flow files.")
|
||||||
"grammalecte"))
|
"grammalecte"))
|
||||||
#t))))))
|
#t))))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("grammalecte" ,grammalecte)
|
`(("curl" ,curl)
|
||||||
|
("grammalecte" ,grammalecte)
|
||||||
("python" ,python)))
|
("python" ,python)))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("emacs-flycheck" ,emacs-flycheck)))
|
`(("emacs-flycheck" ,emacs-flycheck)))
|
||||||
|
|
Reference in a new issue