me
/
guix
Archived
1
0
Fork 0

gnu: mu: Update to 1.12.5.

* gnu/packages/mail.scm (mu): Update to 1.12.5.
[arguments]: Wrap /bin/mu to enable running Guile extension scripts.

Signed-off-by: Christopher Baines <mail@cbaines.net>
Change-Id: I04409ad934716a4b7dfa12a225415881cd682b49
master
Sergey Trofimov 2024-06-06 09:22:39 +02:00 committed by Christopher Baines
parent 196a51e288
commit cc2c604972
No known key found for this signature in database
GPG Key ID: 5E28A33B0B84F577
1 changed files with 15 additions and 5 deletions

View File

@ -1260,14 +1260,14 @@ security functionality including PGP, S/MIME, SSH, and SSL.")
(define-public mu
(package
(name "mu")
(version "1.12.4")
(version "1.12.5")
(source
(origin
(method url-fetch)
(uri (string-append "https://github.com/djcb/mu/releases/download/v"
version "/mu-" version ".tar.xz"))
(sha256
(base32 "1ja4b9r9712zjvz8223r5vh2kmmyhkrmb7cbhxdn9hbpa5n16hdx"))))
(base32 "1jwalqmvk5s4mf7bnz7gnzh6rii7n348bsflgdvyinia0zir42vp"))))
(build-system meson-build-system)
(native-inputs
(list pkg-config
@ -1280,8 +1280,11 @@ security functionality including PGP, S/MIME, SSH, and SSL.")
(list
#:modules '((guix build meson-build-system)
(guix build emacs-utils)
((guix build guile-build-system)
#:select (target-guile-effective-version))
(guix build utils))
#:imported-modules `(,@%meson-build-system-modules
(guix build guile-build-system)
(guix build emacs-utils))
#:configure-flags
#~(list (format #f "-Dguile-extension-dir=~a/lib" #$output))
@ -1303,11 +1306,18 @@ security functionality including PGP, S/MIME, SSH, and SSL.")
(("\"libguile-mu\"")
(format #f "\"~a/lib/libguile-mu\"" #$output)))))
(add-after 'install 'install-emacs-autoloads
(lambda* (#:key outputs #:allow-other-keys)
(lambda _
(emacs-generate-autoloads
"mu4e"
(string-append (assoc-ref outputs "out")
"/share/emacs/site-lisp/mu4e")))))))
(string-append #$output
"/share/emacs/site-lisp/mu4e"))))
(add-after 'install 'wrap-executable
(lambda _
(let* ((bin (string-append #$output "/bin"))
(version (target-guile-effective-version))
(scm (string-append #$output "/share/guile/site/" version)))
(wrap-program (string-append bin "/mu")
`("GUILE_LOAD_PATH" ":" prefix (,scm)))))))))
(home-page "https://www.djcbsoftware.nl/code/mu/")
(synopsis "Quickly find emails")
(description