gnu: emacs-notmuch: Use G-expressions.

* gnu/packages/mail.scm (emacs-notmuch)[arguments]: Use G-expressions.
<#:phases>: Use SEARCH-INPUT-FILE.
This commit is contained in:
Nicolas Goaziou 2022-02-07 11:04:06 +01:00
parent d7368fe7f2
commit 699e79e0fb
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -1397,18 +1397,19 @@ (define-public emacs-notmuch
(inputs
(list notmuch))
(arguments
`(#:exclude (cons* "make-deps.el" "rstdoc.el" %default-exclude)
(list
#:exclude #~(cons* "make-deps.el" "rstdoc.el" %default-exclude)
#:phases
(modify-phases %standard-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")))
(let ((notmuch (search-input-file inputs "/bin/notmuch")))
(substitute* "notmuch-lib.el"
(("\"notmuch\"")
(string-append "\"" notmuch "/bin/notmuch\"")))))))))
(string-append "\"" notmuch "\"")))))))))
(synopsis "Run Notmuch within Emacs")
(description
"This package provides an Emacs-based interface to the Notmuch mail