2011-09-21 21:04:43 +01: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 21:04:43 +01: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 22:07:48 +01:00
|
|
|
buildInputs = [ bash emacs gdb git glib gmime gnupg1 pkgconfig talloc xapian ];
|
2011-04-18 18:19:44 +01:00
|
|
|
|
|
|
|
patchPhase = ''
|
2011-10-14 11:30:14 +01:00
|
|
|
(cd test && for prg in \
|
|
|
|
aggregate-results.sh \
|
2011-11-20 19:22:53 +00:00
|
|
|
atomicity \
|
2011-10-14 11:30:14 +01: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 18:19:44 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
make test
|
|
|
|
'';
|
2011-02-13 01:34:49 +00:00
|
|
|
|
|
|
|
meta = {
|
2011-04-18 18:19:54 +01:00
|
|
|
description = "Notmuch -- The mail indexer";
|
2011-02-13 01:34:49 +00:00
|
|
|
|
|
|
|
longDescription = "";
|
|
|
|
|
|
|
|
license = "GPLv3";
|
|
|
|
|
|
|
|
maintainers = [ stdenv.lib.maintainers.chaoflow ];
|
|
|
|
platforms = stdenv.lib.platforms.gnu; # arbitrary choice
|
|
|
|
};
|
|
|
|
}
|