guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: gnu: emacs-direnv: Use new style.


From: guix-commits
Subject: branch master updated: gnu: emacs-direnv: Use new style.
Date: Tue, 14 Dec 2021 13:23:27 -0500

This is an automated email from the git hooks/post-receive script.

ngz pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new b1cfd7a  gnu: emacs-direnv: Use new style.
b1cfd7a is described below

commit b1cfd7a40b52b7f5bef58785b8567e8f43f257ac
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Tue Dec 14 19:20:14 2021 +0100

    gnu: emacs-direnv: Use new style.
    
    * gnu/packages/emacs-xyz.scm (emacs-direnv)[arguments]: Use SEARCH-INPUT.
    [propagated-inputs]: Remove labels.
---
 gnu/packages/emacs-xyz.scm | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index d278133..7f509ce 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -2927,16 +2927,13 @@ overlay below or above the point.  Corfu can be 
considered the minimalistic
        (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\"")))
+             (let ((direnv (search-input-file inputs "/bin/direnv")))
                (substitute* "direnv.el"
-                 (("\"direnv\"") direnv-bin))))))))
+                 (("\"direnv\"") (string-append "\"" direnv "\"")))))))))
     (inputs
      (list direnv))
     (propagated-inputs
-     `(("dash" ,emacs-dash)
-       ("with-editor" ,emacs-with-editor)))
+     (list emacs-dash emacs-with-editor))
     (home-page "https://github.com/wbolster/emacs-direnv";)
     (synopsis "Direnv integration for Emacs")
     (description



reply via email to

[Prev in Thread] Current Thread [Next in Thread]