mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 23:06:59 +01:00
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>
This commit is contained in:
parent
c64c49b152
commit
0d72f24ac0
1 changed files with 13 additions and 0 deletions
|
@ -210,6 +210,7 @@ (define-module (gnu packages emacs-xyz)
|
|||
#: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 @@ (define-public emacs-direnv
|
|||
(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)))
|
||||
|
|
Loading…
Reference in a new issue