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:
parent
276cb2ad23
commit
755633ea54
|
@ -62,7 +62,8 @@ stdenv.mkDerivation rec {
|
||||||
"-DBUILD_TESTING:BOOL=${if doCheck then "TRUE" else "FALSE"}"
|
"-DBUILD_TESTING:BOOL=${if doCheck then "TRUE" else "FALSE"}"
|
||||||
] ++ lib.optional doCheck "-DCMAKE_PREFIX_PATH=${gtest.dev}/lib/cmake";
|
] ++ 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 = ''
|
checkPhase = ''
|
||||||
# Skip CMakeFiles directory and tests depending on fuse (does not work well with sandboxing)
|
# Skip CMakeFiles directory and tests depending on fuse (does not work well with sandboxing)
|
||||||
|
|
Loading…
Reference in New Issue