diff options
author | Justin Humm <justin.humm@posteo.de> | 2018-10-04 18:06:12 +0200 |
---|---|---|
committer | Rok Garbas <rok@garbas.si> | 2018-10-05 12:36:12 +0200 |
commit | bea3f1818590d26221b702c2789932cfad552eee (patch) | |
tree | 1db11b19a5f7519af0334bf5a234bdda7449240e /pkgs | |
parent | eae1bd09582119e52ec5bbf49540c0ebd945c9fd (diff) | |
download | nixlib-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')
-rw-r--r-- | pkgs/applications/networking/mailreaders/notmuch/default.nix | 8 |
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"; |