From 31bd95c8769ecd296e5bae31b3657740377a433b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 25 May 2024 23:46:18 +0200 Subject: [PATCH] opencv: expose runAccuracyTests, runPerformanceTests booleans --- pkgs/development/libraries/opencv/4.x.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/opencv/4.x.nix b/pkgs/development/libraries/opencv/4.x.nix index 2f24d984c062..56812df8f9c2 100644 --- a/pkgs/development/libraries/opencv/4.x.nix +++ b/pkgs/development/libraries/opencv/4.x.nix @@ -80,6 +80,9 @@ , doxygen , graphviz-nox +, runAccuracyTests ? true +, runPerformanceTests ? false + , AVFoundation , Cocoa , VideoDecodeAcceleration @@ -234,8 +237,6 @@ let opencvFlag = name: enabled: "-DWITH_${name}=${printEnabled enabled}"; - runAccuracyTests = true; - runPerformanceTests = false; printEnabled = enabled: if enabled then "ON" else "OFF"; withOpenblas = (enableBlas && blas.provider.pname == "openblas"); #multithreaded openblas conflicts with opencv multithreading, which manifest itself in hung tests @@ -254,6 +255,7 @@ effectiveStdenv.mkDerivation { outputs = [ "out" "cxxdev" + ] ++ lib.optionals (runAccuracyTests || runPerformanceTests) [ "package_tests" ]; cudaPropagateToOutput = "cxxdev";