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.
This commit is contained in:
parent
f66a3b333c
commit
7ccbca6010
@ -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")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user