From bea3f1818590d26221b702c2789932cfad552eee Mon Sep 17 00:00:00 2001 From: Justin Humm Date: Thu, 4 Oct 2018 18:06:12 +0200 Subject: [PATCH] notmuch: use test-database in checkPhase for running all tests, notmuch requires a database file, which can be downloaded at https://notmuchmail.org/releases/test-databases/ See test/README in notmuch sources for further info. --- .../networking/mailreaders/notmuch/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/applications/networking/mailreaders/notmuch/default.nix b/pkgs/applications/networking/mailreaders/notmuch/default.nix index 9b259cad6d0b..2d1b6ee15301 100644 --- a/pkgs/applications/networking/mailreaders/notmuch/default.nix +++ b/pkgs/applications/networking/mailreaders/notmuch/default.nix @@ -89,6 +89,14 @@ stdenv.mkDerivation rec { install_name_tool -change "$badname" "$goodname" "$prg" ''; + preCheck = let + test-database = fetchurl { + url = "https://notmuchmail.org/releases/test-databases/database-v1.tar.xz"; + sha256 = "1lk91s00y4qy4pjh8638b5lfkgwyl282g1m27srsf7qfn58y16a2"; + }; + in '' + ln -s ${test-database} test/test-databases/database-v1.tar.xz + ''; doCheck = !stdenv.isDarwin && (versionAtLeast gmime.version "3.0"); checkTarget = "test V=1";