cryfs: disable tests on Darwin

The tests [require macFUSE to be installed][1] on Darwin. This change
disable the tests because Hydra doesn't have it installed.

[1]: https://github.com/NixOS/nixpkgs/blob/master/doc/builders/packages/fuse.section.md
This commit is contained in:
midchildan 2021-04-24 16:32:01 +09:00
parent 276cb2ad23
commit 755633ea54
No known key found for this signature in database
GPG key ID: D9A5748BACC6E3C2

View file

@ -62,7 +62,8 @@ stdenv.mkDerivation rec {
"-DBUILD_TESTING:BOOL=${if doCheck then "TRUE" else "FALSE"}"
] ++ lib.optional doCheck "-DCMAKE_PREFIX_PATH=${gtest.dev}/lib/cmake";
doCheck = true;
# macFUSE needs to be installed for the test to succeed on Darwin
doCheck = !stdenv.isDarwin;
checkPhase = ''
# Skip CMakeFiles directory and tests depending on fuse (does not work well with sandboxing)