From 7ccbca6010453263e8436994c50dae8570a5a096 Mon Sep 17 00:00:00 2001 From: Pascal Bach Date: Sun, 25 Mar 2018 14:35:40 +0200 Subject: [PATCH] opencv3: don't download ippicv if not enabled On aarch64 ipp is not available but the derivation still tries to download it leading to an error that the platform is not supported. There is already an option to enable ipp which is disabled by default. So the sensitive thing to do is to only download the ippicv package if the option is enabled. This makes opencv3 build on aarch64. --- pkgs/development/libraries/opencv/3.x.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/opencv/3.x.nix b/pkgs/development/libraries/opencv/3.x.nix index 101b38d6305b..efb9a7cdbe43 100644 --- a/pkgs/development/libraries/opencv/3.x.nix +++ b/pkgs/development/libraries/opencv/3.x.nix @@ -167,7 +167,7 @@ stdenv.mkDerivation rec { ''; preConfigure = - installExtraFiles ippicv + ( + lib.optionalString enableIpp (installExtraFiles ippicv) + ( lib.optionalString buildContrib '' cmakeFlagsArray+=("-DOPENCV_EXTRA_MODULES_PATH=$NIX_BUILD_TOP/opencv_contrib")