wf-config: fix cross

We need to tell meson we won't be running the tests when
nativeCheckInputs won't be included, or it will fail when it can't
find doctest.
This commit is contained in:
Alyssa Ross 2023-04-22 20:43:34 +00:00 committed by Anderson Torres
parent cf8e955712
commit d9cb65a263

View file

@ -44,6 +44,10 @@ stdenv.mkDerivation rec {
# CMake is just used for finding doctest.
dontUseCmakeConfigure = true;
mesonFlags = [
(lib.mesonEnable "tests" (stdenv.buildPlatform.canExecute stdenv.hostPlatform))
];
doCheck = true;
meta = with lib; {