toml11: only build tests when they're enabled

This commit is contained in:
Seth Flynn
2025-10-19 00:10:07 -04:00
parent 575d45f52f
commit 2a3b2148b3
+1 -1
View File
@@ -30,7 +30,7 @@ stdenv.mkDerivation (finalAttrs: {
cmake
];
cmakeFlags = [
(lib.cmakeBool "TOML11_BUILD_TOML_TESTS" true)
(lib.cmakeBool "TOML11_BUILD_TOML_TESTS" finalAttrs.finalPackage.doCheck)
];
doCheck = true;