gnu: Add notmuch.

* gnu/packages/mail.scm (notmuch): New variable.
This commit is contained in:
David Thompson 2014-06-14 20:52:09 -04:00
parent f4eae897cb
commit 1bd3f84986
1 changed files with 40 additions and 0 deletions

View File

@ -44,6 +44,8 @@
#:use-module (gnu packages pkg-config) #:use-module (gnu packages pkg-config)
#:use-module (gnu packages flex) #:use-module (gnu packages flex)
#:use-module (gnu packages bdb) #:use-module (gnu packages bdb)
#:use-module (gnu packages gdb)
#:use-module (gnu packages samba)
#:use-module ((guix licenses) #:use-module ((guix licenses)
#:select (gpl2 gpl2+ gpl3+ lgpl2.1+ lgpl3+)) #:select (gpl2 gpl2+ gpl3+ lgpl2.1+ lgpl3+))
#:use-module (guix packages) #: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.") attachments, create new maildirs, and so on.")
(license gpl3+))) (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 ;;; mail.scm ends here