Commit 5ba8e428 authored by Colin's avatar Colin
Browse files

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.
parent 14e601b1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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 = {