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