2011-09-21 20:04:43 +00:00
|
|
|
{ fetchurl, stdenv, bash, emacs, gdb, git, glib, gmime, gnupg1, pkgconfig, talloc, xapian }:
|
2011-02-13 01:34:49 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2011-11-20 19:22:53 +00:00
|
|
|
name = "notmuch-0.9";
|
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";
|
2011-11-20 19:22:53 +00:00
|
|
|
sha256 = "e6f1046941d2894d143cb7c19d4810f97946f98742f6d9b8a7208ddb858c57e4";
|
2011-02-13 01:34:49 +00:00
|
|
|
};
|
|
|
|
|
2011-05-06 21:07:48 +00:00
|
|
|
buildInputs = [ bash emacs gdb git glib gmime gnupg1 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 \
|
2011-11-20 19:22:53 +00:00
|
|
|
atomicity \
|
2011-10-14 10:30:14 +00:00
|
|
|
author-order \
|
|
|
|
basic \
|
|
|
|
crypto \
|
|
|
|
dump-restore \
|
|
|
|
emacs \
|
|
|
|
emacs-large-search-buffer \
|
|
|
|
encoding \
|
|
|
|
from-guessing \
|
|
|
|
json \
|
|
|
|
long-id \
|
|
|
|
maildir-sync \
|
|
|
|
new \
|
|
|
|
notmuch-test \
|
|
|
|
raw \
|
|
|
|
reply \
|
|
|
|
search \
|
|
|
|
search-by-folder \
|
|
|
|
search-insufficient-from-quoting \
|
|
|
|
search-folder-coherence \
|
|
|
|
search-output \
|
|
|
|
search-position-overlap-bug \
|
|
|
|
symbol-hiding \
|
|
|
|
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 17:19:44 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
make 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;
|
2011-02-13 01:34:49 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.chaoflow ];
|
|
|
|
platforms = stdenv.lib.platforms.gnu; # arbitrary choice
|
|
|
|
};
|
|
|
|
}
|