opencv4: propagate optical flow sdk same as cuda
This commit is contained in:
parent
ada3991349
commit
4569838029
@ -18,6 +18,11 @@ stdenv.mkDerivation {
|
|||||||
cp -R * $out/include
|
cp -R * $out/include
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
mkdir -p $out/nix-support
|
||||||
|
echo $pname >> "$out/nix-support/include-in-cudatoolkit-root"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Nvidia optical flow headers for computing the relative motion of pixels between images";
|
description = "Nvidia optical flow headers for computing the relative motion of pixels between images";
|
||||||
homepage = "https://developer.nvidia.com/opticalflow-sdk";
|
homepage = "https://developer.nvidia.com/opticalflow-sdk";
|
||||||
|
@ -334,6 +334,7 @@ effectiveStdenv.mkDerivation {
|
|||||||
cuda_cudart
|
cuda_cudart
|
||||||
cuda_cccl # <thrust/*>
|
cuda_cccl # <thrust/*>
|
||||||
libnpp # npp.h
|
libnpp # npp.h
|
||||||
|
nvidia-optical-flow-sdk
|
||||||
] ++ lib.optionals enableCublas [
|
] ++ lib.optionals enableCublas [
|
||||||
libcublas # cublas_v2.h
|
libcublas # cublas_v2.h
|
||||||
] ++ lib.optionals enableCudnn [
|
] ++ lib.optionals enableCudnn [
|
||||||
@ -342,8 +343,7 @@ effectiveStdenv.mkDerivation {
|
|||||||
libcufft # cufft.h
|
libcufft # cufft.h
|
||||||
]);
|
]);
|
||||||
|
|
||||||
propagatedBuildInputs = lib.optional enablePython pythonPackages.numpy
|
propagatedBuildInputs = lib.optionals enablePython [ pythonPackages.numpy ];
|
||||||
++ lib.optionals enableCuda [ nvidia-optical-flow-sdk ];
|
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkg-config unzip ]
|
nativeBuildInputs = [ cmake pkg-config unzip ]
|
||||||
++ lib.optionals enablePython [
|
++ lib.optionals enablePython [
|
||||||
|
Loading…
Reference in New Issue
Block a user