From b2f866ada34994d07279b2ebd6e6c73183ad9578 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sat, 14 Jun 2014 20:52:09 -0400 Subject: [PATCH 3/3] gnu: Add notmuch. * gnu/packages/mail.scm (notmuch): New variable. --- gnu/packages/mail.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 796dcd7..d9c847d 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -44,6 +44,8 @@ #:use-module (gnu packages pkg-config) #:use-module (gnu packages flex) #:use-module (gnu packages bdb) + #:use-module (gnu packages gdb) + #:use-module (gnu packages samba) #:use-module ((guix licenses) #:select (gpl2 gpl2+ gpl3+ lgpl2.1+ lgpl3+)) #:use-module (guix packages) @@ -326,4 +328,42 @@ messages you need; in addition, it allows you to view messages, extract attachments, create new maildirs, and so on.") (license gpl3+))) +(define-public notmuch + (package + (name "notmuch") + (version "0.18") + (source (origin + (method url-fetch) + (uri (string-append "http://notmuchmail.org/releases/notmuch-" + version ".tar.gz")) + (sha256 + (base32 + "1ia65iazz2hlp3ja57yn0chs27rzsky9kayw74njwmgi9faw3vh9")))) + (build-system gnu-build-system) + (arguments + '(#:tests? #f ;; FIXME: Test suite hangs and times out. + #:phases (alist-replace + 'configure + (lambda* (#:key outputs #:allow-other-keys) + (setenv "CONFIG_SHELL" (which "sh")) + (let ((out (assoc-ref outputs "out"))) + (zero? (system* "./configure" + (string-append "--prefix=" out))))) + %standard-phases))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("emacs" ,emacs) + ("glib" ,glib) + ("gmime" ,gmime) + ("talloc" ,talloc) + ("xapian" ,xapian) + ("zlib" ,zlib))) + (home-page "http://notmuchmail.org/") + (synopsis "Thread-based email index, search, and tagging") + (description + "Notmuch is a command-line based program for indexing, searching, read- +ing, and tagging large collections of email messages.") + (license gpl3+))) + ;;; mail.scm ends here -- 2.0.0