2012-01-21 19:29:11 +01:00
|
|
|
{ fetchurl, stdenv, bash, emacs, gdb, glib, gmime, gnupg1,
|
|
|
|
pkgconfig, talloc, xapian
|
|
|
|
}:
|
2011-02-13 02:34:49 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-01-21 19:29:11 +01:00
|
|
|
name = "notmuch-0.11";
|
2011-02-13 02:34:49 +01:00
|
|
|
|
2011-09-21 22:04:43 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://notmuchmail.org/releases/${name}.tar.gz";
|
2012-01-21 19:29:11 +01:00
|
|
|
sha256 = "ce062b31db6868babaf3088adee95bfd1030b2691493e815da1730dd262226c0";
|
2011-02-13 02:34:49 +01:00
|
|
|
};
|
|
|
|
|
2012-01-21 19:29:11 +01:00
|
|
|
buildInputs = [ bash emacs gdb glib gmime gnupg1 pkgconfig talloc xapian ];
|
2011-04-18 19:19:44 +02:00
|
|
|
|
|
|
|
patchPhase = ''
|
2011-10-14 12:30:14 +02:00
|
|
|
(cd test && for prg in \
|
|
|
|
aggregate-results.sh \
|
2012-01-21 19:29:11 +01:00
|
|
|
argument-parsing \
|
2011-11-20 20:22:53 +01:00
|
|
|
atomicity \
|
2011-10-14 12:30:14 +02:00
|
|
|
author-order \
|
|
|
|
basic \
|
|
|
|
crypto \
|
2012-01-21 19:29:11 +01:00
|
|
|
count \
|
2011-10-14 12:30:14 +02:00
|
|
|
dump-restore \
|
|
|
|
emacs \
|
|
|
|
emacs-large-search-buffer \
|
|
|
|
encoding \
|
|
|
|
from-guessing \
|
2012-01-21 19:29:11 +01:00
|
|
|
help-test \
|
|
|
|
hooks \
|
2011-10-14 12:30:14 +02:00
|
|
|
json \
|
|
|
|
long-id \
|
|
|
|
maildir-sync \
|
2012-01-21 19:29:11 +01:00
|
|
|
multipart \
|
2011-10-14 12:30:14 +02:00
|
|
|
new \
|
|
|
|
notmuch-test \
|
2012-01-21 19:29:11 +01:00
|
|
|
python \
|
2011-10-14 12:30:14 +02:00
|
|
|
raw \
|
|
|
|
reply \
|
|
|
|
search \
|
|
|
|
search-by-folder \
|
|
|
|
search-insufficient-from-quoting \
|
|
|
|
search-folder-coherence \
|
2012-01-21 19:29:11 +01:00
|
|
|
search-limiting \
|
2011-10-14 12:30:14 +02:00
|
|
|
search-output \
|
|
|
|
search-position-overlap-bug \
|
|
|
|
symbol-hiding \
|
2012-01-21 19:29:11 +01:00
|
|
|
tagging \
|
2011-10-14 12:30:14 +02:00
|
|
|
test-lib.sh \
|
|
|
|
test-verbose \
|
|
|
|
thread-naming \
|
|
|
|
thread-order \
|
|
|
|
uuencode \
|
|
|
|
;do
|
|
|
|
substituteInPlace "$prg" \
|
|
|
|
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
|
|
|
|
done)
|
2011-04-18 19:19:44 +02:00
|
|
|
'';
|
|
|
|
|
2012-01-21 19:29:11 +01:00
|
|
|
# XXX: emacs tests broken
|
|
|
|
#postBuild = ''
|
|
|
|
# make test
|
|
|
|
#'';
|
2011-02-13 02:34:49 +01:00
|
|
|
|
|
|
|
meta = {
|
2011-04-18 19:19:54 +02:00
|
|
|
description = "Notmuch -- The mail indexer";
|
2011-02-13 02:34:49 +01:00
|
|
|
longDescription = "";
|
2011-11-20 22:49:06 +01:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2012-01-21 19:29:11 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ chaoflow ];
|
|
|
|
platforms = stdenv.lib.platforms.gnu;
|
2011-02-13 02:34:49 +01:00
|
|
|
};
|
|
|
|
}
|