Skip to content

Commit

Permalink
opencv4: discard build-time cuda deps
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeoneSerge committed Dec 6, 2023
1 parent 4569838 commit 55af932
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions pkgs/development/libraries/opencv/4.x.nix
Original file line number Diff line number Diff line change
Expand Up @@ -331,16 +331,28 @@ effectiveStdenv.mkDerivation {
]
++ lib.optionals enableDocs [ doxygen graphviz-nox ]
++ lib.optionals enableCuda (with cudaPackages; [
cuda_cudart
cuda_cccl # <thrust/*>
libnpp # npp.h
cuda_cudart.lib
cuda_cudart.dev
cuda_cccl.dev # <thrust/*>
libnpp.dev # npp.h
libnpp.lib
libnpp.static
nvidia-optical-flow-sdk
] ++ lib.optionals enableCublas [
libcublas # cublas_v2.h
# May start using the default $out instead once
# https://github.com/NixOS/nixpkgs/issues/271792
# has been addressed
libcublas.static
libcublas.lib
libcublas.dev # cublas_v2.h
] ++ lib.optionals enableCudnn [
cudnn # cudnn.h
cudnn.dev # cudnn.h
cudnn.lib
cudnn.static
] ++ lib.optionals enableCufft [
libcufft # cufft.h
libcufft.dev # cufft.h
libcufft.lib
libcufft.static
]);

propagatedBuildInputs = lib.optionals enablePython [ pythonPackages.numpy ];
Expand Down

0 comments on commit 55af932

Please sign in to comment.