From 5ba8e428ff7073b6e43352d6c9ad12a0d53e03ef Mon Sep 17 00:00:00 2001 From: Colin Date: Tue, 7 Oct 2025 05:33:57 +0000 Subject: [PATCH] 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. --- pkgs/by-name/ch/chromaprint/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/ch/chromaprint/package.nix b/pkgs/by-name/ch/chromaprint/package.nix index d0c7fe4bbef4..89674dc9f6a0 100644 --- a/pkgs/by-name/ch/chromaprint/package.nix +++ b/pkgs/by-name/ch/chromaprint/package.nix @@ -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 = {