guix-commits
[Top][All Lists]
Advanced

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

03/03: gnu: emacs-notmuch: Use G-expressions.


From: guix-commits
Subject: 03/03: gnu: emacs-notmuch: Use G-expressions.
Date: Mon, 7 Feb 2022 05:06:05 -0500 (EST)

ngz pushed a commit to branch master
in repository guix.

commit 699e79e0fbe4b4dd8c041ea3c08c76abf7bf9156
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Mon Feb 7 11:04:06 2022 +0100

    gnu: emacs-notmuch: Use G-expressions.
    
    * gnu/packages/mail.scm (emacs-notmuch)[arguments]: Use G-expressions.
    <#:phases>: Use SEARCH-INPUT-FILE.
---
 gnu/packages/mail.scm | 25 +++++++++++++------------
 1 file changed, 13 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 0c2bd8f715..70d6d03a75 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -1397,18 +1397,19 @@ ing, and tagging large collections of email messages.")
     (inputs
      (list notmuch))
     (arguments
-     `(#:exclude (cons* "make-deps.el" "rstdoc.el" %default-exclude)
-       #:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'chdir
-           (lambda _
-             (chdir "emacs")))
-         (add-after 'chdir 'patch-paths
-           (lambda* (#:key inputs #:allow-other-keys)
-             (let ((notmuch (assoc-ref inputs "notmuch")))
-               (substitute* "notmuch-lib.el"
-                 (("\"notmuch\"")
-                  (string-append "\"" notmuch "/bin/notmuch\"")))))))))
+     (list
+      #:exclude #~(cons* "make-deps.el" "rstdoc.el" %default-exclude)
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'chdir
+            (lambda _
+              (chdir "emacs")))
+          (add-after 'chdir 'patch-paths
+            (lambda* (#:key inputs #:allow-other-keys)
+              (let ((notmuch (search-input-file inputs "/bin/notmuch")))
+                (substitute* "notmuch-lib.el"
+                  (("\"notmuch\"")
+                   (string-append "\"" notmuch "\"")))))))))
     (synopsis "Run Notmuch within Emacs")
     (description
      "This package provides an Emacs-based interface to the Notmuch mail



reply via email to

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