unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] gnu: mail: Add notifymuch.
@ 2016-10-09 21:33 Christopher Baines
  2016-10-09 22:08 ` Leo Famulari
  2016-10-10  7:40 ` Hartmut Goebel
  0 siblings, 2 replies; 12+ messages in thread
From: Christopher Baines @ 2016-10-09 21:33 UTC (permalink / raw)
  To: guix-devel

* 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
+@command{notifymuch} 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

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-10-16 17:20 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-09 21:33 [PATCH] gnu: mail: Add notifymuch Christopher Baines
2016-10-09 22:08 ` Leo Famulari
2016-10-10  6:44   ` Christopher Baines
2016-10-10  6:44     ` Christopher Baines
2016-10-10  7:40 ` Hartmut Goebel
2016-10-10  7:52   ` Alex Kost
2016-10-10  8:12     ` Hartmut Goebel
2016-10-12 18:17   ` Christopher Baines
2016-10-13  7:58     ` Hartmut Goebel
2016-10-13 20:10       ` Ludovic Courtès
2016-10-14  9:30         ` Hartmut Goebel
2016-10-16 17:20           ` Christopher Baines

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).