flatbuffers: don’t build tests when cross compiling

This commit is contained in:
Matthew Bauer 2020-04-01 22:30:57 -04:00
parent 7887d50ae4
commit 89dac3c856

View File

@ -18,7 +18,9 @@ stdenv.mkDerivation (rec {
nativeBuildInputs = [ cmake ];
enableParallelBuilding = true;
doCheck = true;
cmakeFlags = [ "-DFLATBUFFERS_BUILD_TESTS=${if doCheck then "ON" else "OFF"}" ];
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
checkTarget = "test";
meta = {