guix-devel
[Top][All Lists]
Advanced

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

[PATCH] gnu: mail: Add notifymuch.


From: Christopher Baines
Subject: [PATCH] gnu: mail: Add notifymuch.
Date: Sun, 9 Oct 2016 22:33:18 +0100

* gnu/packages/mail.scm (notifymuch): New variable.
---
 gnu/packages/mail.scm | 44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index baa5a96..632ef5d 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -443,6 +443,50 @@ attachments, create new maildirs, and so on.")
 @code{notmuch} mail.  It is written in Python using the @code{urwid} toolkit.")
     (license gpl3+)))
 
+(define-public notifymuch
+  (package
+    (name "notifymuch")
+    (version "0.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/kspi/notifymuch.git";)
+             (commit "9d4aaf54599282ce80643b38195ff501120807f0")))
+       (sha256
+        (base32
+         "1lssr7iv43mp5v6nzrfbqlfzx8jcc7m636wlfyhhnd8ydd39n6k4"))
+       (file-name (string-append name "-" version "-checkout"))))
+    (build-system python-build-system)
+    (inputs `(("python-notmuch" ,python-notmuch)
+              ("gobject-introspection" ,gobject-introspection)
+              ("libnotify" ,libnotify)
+              ("gtk+" ,gtk+)
+              ("python-pygobject" ,python-pygobject)))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'wrap-binary
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (bin (string-append out "/bin/notifymuch")))
+               (wrap-program bin
+                 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))
+                 `("GI_TYPELIB_PATH" ":" prefix
+                   (,(getenv "GI_TYPELIB_PATH")
+                    ,(string-append out "/lib/girepository-1.0")))))
+             #t)))))
+  (home-page "https://github.com/kspi/notifymuch";)
+    (synopsis "Displays notifications for changes in the notmuch database")
+    (description "notifymuch displays desktop notifications for messages in
+the notmuch database.  The notifications are sent using libnotify to a
+notification daemon.  The query to find messages to send a notification about
+is configurable, and a notification for the same message will not be send
+within a configurable period (defaults to 48 hours).  To use notifymuch, run
address@hidden after new mail is indexed, this can be automated by
+invoking @command{notifymuch} from the post-new hook.")
+    (license gpl3)))
+
 (define-public notmuch
   (package
     (name "notmuch")
-- 
2.10.1




reply via email to

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