summary refs log tree commit diff
path: root/pkgs/development/libraries/opencv
diff options
context:
space:
mode:
authorPascal Bach <pascal.bach@nextrem.ch>2018-03-25 14:35:40 +0200
committerPascal Bach <pascal.bach@nextrem.ch>2018-03-25 15:13:32 +0200
commit7ccbca6010453263e8436994c50dae8570a5a096 (patch)
treeb451aad8f72b44fad35a964a5b2704c4048e3daf /pkgs/development/libraries/opencv
parentf66a3b333caf48cb2eab1cfd00af8c6743bebfa2 (diff)
downloadnixpkgs-7ccbca6010453263e8436994c50dae8570a5a096.tar
nixpkgs-7ccbca6010453263e8436994c50dae8570a5a096.tar.gz
nixpkgs-7ccbca6010453263e8436994c50dae8570a5a096.tar.bz2
nixpkgs-7ccbca6010453263e8436994c50dae8570a5a096.tar.lz
nixpkgs-7ccbca6010453263e8436994c50dae8570a5a096.tar.xz
nixpkgs-7ccbca6010453263e8436994c50dae8570a5a096.tar.zst
nixpkgs-7ccbca6010453263e8436994c50dae8570a5a096.zip
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.
Diffstat (limited to 'pkgs/development/libraries/opencv')
-rw-r--r--pkgs/development/libraries/opencv/3.x.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/opencv/3.x.nix b/pkgs/development/libraries/opencv/3.x.nix
index 101b38d6305..efb9a7cdbe4 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")