about summary refs log tree commit diff
path: root/pkgs/applications/networking/mailreaders/notmuch
diff options
context:
space:
mode:
authorJustin Humm <justin.humm@posteo.de>2018-10-04 18:06:12 +0200
committerRok Garbas <rok@garbas.si>2018-10-05 12:36:12 +0200
commitbea3f1818590d26221b702c2789932cfad552eee (patch)
tree1db11b19a5f7519af0334bf5a234bdda7449240e /pkgs/applications/networking/mailreaders/notmuch
parenteae1bd09582119e52ec5bbf49540c0ebd945c9fd (diff)
downloadnixlib-bea3f1818590d26221b702c2789932cfad552eee.tar
nixlib-bea3f1818590d26221b702c2789932cfad552eee.tar.gz
nixlib-bea3f1818590d26221b702c2789932cfad552eee.tar.bz2
nixlib-bea3f1818590d26221b702c2789932cfad552eee.tar.lz
nixlib-bea3f1818590d26221b702c2789932cfad552eee.tar.xz
nixlib-bea3f1818590d26221b702c2789932cfad552eee.tar.zst
nixlib-bea3f1818590d26221b702c2789932cfad552eee.zip
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.
Diffstat (limited to 'pkgs/applications/networking/mailreaders/notmuch')
-rw-r--r--pkgs/applications/networking/mailreaders/notmuch/default.nix8
1 files changed, 8 insertions, 0 deletions
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";