From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Baines Subject: [PATCH] gnu: mail: Add notifymuch. Date: Mon, 10 Oct 2016 07:44:15 +0100 Message-ID: <20161010064415.16813-2-mail@cbaines.net> References: <20161009220838.GC18927@jasmine> <20161010064415.16813-1-mail@cbaines.net> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btUKE-0002iw-CO for guix-devel@gnu.org; Mon, 10 Oct 2016 02:44:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1btUKC-0004vf-NK for guix-devel@gnu.org; Mon, 10 Oct 2016 02:44:37 -0400 Received: from mira.cbaines.net ([2a01:7e00::f03c:91ff:fe69:8da9]:60017) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btUKC-0004tw-I1 for guix-devel@gnu.org; Mon, 10 Oct 2016 02:44:36 -0400 In-Reply-To: <20161010064415.16813-1-mail@cbaines.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/mail.scm (notifymuch): New variable. --- gnu/packages/mail.scm | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index baa5a96..02dd72a 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -443,6 +443,56 @@ 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 + (let + ((commit "9d4aaf54599282ce80643b38195ff501120807f0") + (revision "1")) + (package + (name "notifymuch") + (version (string-append "0.1-" + revision + "." + (string-take commit 7))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kspi/notifymuch.git") + (commit commit))) + (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 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