me
/
guix
Archived
1
0
Fork 0

gnu: emacs-direnv: Patch the reference to direnv.

* gnu/packages/emacs-xyz.scm (emacs-direnv)
[phases]{patch-in-direnv}: New phase.

Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Katherine Cox-Buday 2021-08-06 00:38:31 -04:00 committed by Maxim Cournoyer
parent c64c49b152
commit 0d72f24ac0
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 13 additions and 0 deletions

View File

@ -210,6 +210,7 @@
#:use-module (gnu packages sphinx)
#:use-module (gnu packages xdisorg)
#:use-module (gnu packages shells)
#:use-module (gnu packages shellutils)
#:use-module (gnu packages sqlite)
#:use-module (gnu packages ghostscript)
#:use-module (gnu packages gnupg)
@ -2888,6 +2889,18 @@ overlay below or above the point. Corfu can be considered the minimalistic
(sha256
(base32 "0xkqn4604k2imas6azy1www56br8ls4iv9a44pxcd8h94j1fp44d"))))
(build-system emacs-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-in-direnv
(lambda* (#:key inputs #:allow-other-keys)
(let* ((direnv-path (assoc-ref inputs "direnv"))
(direnv-bin (string-append
"\"" direnv-path "/bin/direnv\"")))
(substitute* "direnv.el"
(("\"direnv\"") direnv-bin))))))))
(inputs
`(("direnv" ,direnv)))
(propagated-inputs
`(("dash" ,emacs-dash)
("with-editor" ,emacs-with-editor)))