nixpkgs-suyu/pkgs/applications/networking/mailreaders/notmuch/default.nix
Jonas Hoersch 089404358d notmuch: patch source to use full path of gpg2
gets rid of the dependency on the old gnupg1. and enables decryption
even if the gpg binary is not in the users environment.

warning: i don't know whether the switch from gnupg1 to gnupg
introduces any incompatibilities. this is a works for me patch.
2013-04-22 10:39:48 +02:00

79 lines
1.8 KiB
Nix

{ fetchurl, stdenv, bash, emacs, gdb, glib, gmime, gnupg,
pkgconfig, talloc, xapian
}:
stdenv.mkDerivation rec {
name = "notmuch-0.15.2";
src = fetchurl {
url = "http://notmuchmail.org/releases/${name}.tar.gz";
sha256 = "03cwylm0y9xld0hn753v0hn62f96nagdmzxv8jlz8vdbh9iszs56";
};
buildInputs = [ bash emacs gdb glib gmime gnupg 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)
for src in \
crypto.c \
emacs/notmuch-crypto.el
do
substituteInPlace "$src" \
--replace \"gpg\" \"${gnupg}/bin/gpg2\"
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 garbas ];
platforms = stdenv.lib.platforms.gnu;
};
}