restinio: fix cross compilation

We always build tests, even when cross compiling. Moving `catch_2_3`
from `checkInputs` to `buildInputs` fixes that mode.
This commit is contained in:
Tobias Mayer
2025-01-04 19:21:44 +01:00
parent 8f3e1f8070
commit 91ab20c866
+2 -1
View File
@@ -54,12 +54,13 @@ stdenv.mkDerivation (finalAttrs: {
]
);
checkInputs = [
buildInputs = [
catch2_3
];
cmakeDir = "../dev";
cmakeFlags = [
"-DCMAKE_CATCH_DISCOVER_TESTS_DISCOVERY_MODE=PRE_TEST"
"-DRESTINIO_TEST=ON"
"-DRESTINIO_SAMPLE=OFF"
"-DRESTINIO_BENCHMARK=OFF"