chromaprint: gate BUILD_TESTS behind doCheck

upstream now invokes `tests/all_tests` as part of the same target
used to build tests; the only supported way to not run tests is
to also not build them.
This commit is contained in:
Colin 2025-10-07 05:33:57 +00:00
parent 14e601b1c6
commit 5ba8e428ff

View file

@ -53,6 +53,10 @@ stdenv.mkDerivation (finalAttrs: {
cmakeFlags = [
(lib.cmakeBool "BUILD_EXAMPLES" withExamples)
(lib.cmakeBool "BUILD_TOOLS" withTools)
]
++ lib.optionals (!finalAttrs.finalPackage.doCheck) [
# special-cased to avoid a mass-rebuild: remove from `lib.optionals` as part of next update
(lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck)
];
passthru = {