opencv: dont try cuda on 32 bit

config.cudaSupport can be true and cudatoolkit doesn't work with i686,
which can happen inside pkgsi686Linux wrapping.
This commit is contained in:
Averell Dalton 2019-08-07 21:30:58 +02:00 committed by Frederik Rietdijk
parent 5858a3693e
commit c4adeddb5f
2 changed files with 4 additions and 2 deletions

View File

@ -14,7 +14,8 @@
, enableOpenblas ? true, openblas
, enableContrib ? true
, enableCuda ? config.cudaSupport or false, cudatoolkit
, enableCuda ? (config.cudaSupport or false) &&
stdenv.hostPlatform.isx86_64, cudatoolkit
, enableUnfree ? false
, enableIpp ? false

View File

@ -14,7 +14,8 @@
, enableOpenblas ? true, openblas
, enableContrib ? true
, enableCuda ? config.cudaSupport or false, cudatoolkit
, enableCuda ? (config.cudaSupport or false) &&
stdenv.hostPlatform.isx86_64, cudatoolkit
, enableUnfree ? false
, enableIpp ? false