nixpkgs/pkgs/applications/networking/mailreaders/notmuch/default.nix
Florian Friesdorf a09f26e1a2 notmuch-0.12 (thx garbas)
svn path=/nixpkgs/trunk/; revision=33535
2012-04-02 10:24:30 +00:00

72 lines
1.6 KiB
Nix

{ fetchurl, stdenv, bash, emacs, gdb, glib, gmime, gnupg1,
pkgconfig, talloc, xapian
}:
stdenv.mkDerivation rec {
name = "notmuch-0.12";
src = fetchurl {
url = "http://notmuchmail.org/releases/${name}.tar.gz";
sha256 = "1dbbbbba3567df9c67ecc642d1e63269a527952c557f6b0c8bafcd4e37893992";
};
buildInputs = [ bash emacs gdb glib gmime gnupg1 pkgconfig talloc xapian ];
patchPhase = ''
(cd test && for prg in \
aggregate-results.sh \
argument-parsing \
atomicity \
author-order \
basic \
crypto \
count \
dump-restore \
emacs \
emacs-large-search-buffer \
encoding \
from-guessing \
help-test \
hooks \
json \
long-id \
maildir-sync \
multipart \
new \
notmuch-test \
python \
raw \
reply \
search \
search-by-folder \
search-insufficient-from-quoting \
search-folder-coherence \
search-limiting \
search-output \
search-position-overlap-bug \
symbol-hiding \
tagging \
test-lib.sh \
test-verbose \
thread-naming \
thread-order \
uuencode \
;do
substituteInPlace "$prg" \
--replace "#!/usr/bin/env bash" "#!${bash}/bin/bash"
done)
'';
# XXX: emacs tests broken
doCheck = false;
checkTarget = "test";
meta = {
description = "Notmuch -- The mail indexer";
longDescription = "";
license = stdenv.lib.licenses.gpl3;
maintainers = with stdenv.lib.maintainers; [ chaoflow ];
platforms = stdenv.lib.platforms.gnu;
};
}