diff mbox

[3/4] gnu: mu: Install emacs autoloads.

Message ID 1462702911-18777-4-git-send-email-alezost@gmail.com
State New
Headers show

Commit Message

Alex Kost May 8, 2016, 10:21 a.m. UTC
* gnu/packages/mail.scm (mu)[arguments]: Add 'install-emacs-autoloads'
  phase.  Use appropriate modules and imported-modules.
---
 gnu/packages/mail.scm | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

Comments

Ludovic Court├Ęs May 9, 2016, 8:17 p.m. UTC | #1
Alex Kost <alezost@gmail.com> skribis:

> * gnu/packages/mail.scm (mu)[arguments]: Add 'install-emacs-autoloads'
>   phase.  Use appropriate modules and imported-modules.

LGTM!
diff mbox

Patch

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 48379f2..8998fdb 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -365,7 +365,12 @@  repository and Maildir/IMAP as LOCAL repository.")
        ("gmime" ,gmime)
        ("tzdata" ,tzdata)))             ;for mu/test/test-mu-query.c
     (arguments
-     '(#:phases
+     `(#:modules ((guix build gnu-build-system)
+                  (guix build utils)
+                  (guix build emacs-utils))
+       #:imported-modules (,@%gnu-build-system-modules
+                           (guix build emacs-utils))
+       #:phases
        (modify-phases %standard-phases
          (add-after 'unpack 'patch-configure.ac
            ;; By default, elisp code goes to "share/emacs/site-lisp/mu4e",
@@ -385,6 +390,13 @@  repository and Maildir/IMAP as LOCAL repository.")
              (setenv "TZDIR"
                      (string-append (assoc-ref inputs "tzdata")
                                     "/share/zoneinfo"))
+             #t))
+         (add-after 'install 'install-emacs-autoloads
+           (lambda* (#:key outputs #:allow-other-keys)
+             (emacs-generate-autoloads
+              "mu4e"
+              (string-append (assoc-ref outputs "out")
+                             "/share/emacs/site-lisp"))
              #t)))))
     (home-page "http://www.djcbsoftware.nl/code/mu/")
     (synopsis "Quickly find emails")