mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-09 16:18:34 +01:00
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:
parent
14e601b1c6
commit
5ba8e428ff
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue