Skip to content

Commit

Permalink
Merge pull request NixOS#144157 from tpwrules/opencv_cuda_fix
Browse files Browse the repository at this point in the history
opencv{3,4}: move cudatoolkit to propagatedBuildInputs
  • Loading branch information
r-burns authored Nov 4, 2021
2 parents 2da7d60 + fbab2e0 commit 7fe522a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkgs/development/libraries/opencv/3.x.nix
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,11 @@ stdenv.mkDerivation {
# tesseract & leptonica.
++ lib.optionals enableTesseract [ tesseract leptonica ]
++ lib.optional enableTbb tbb
++ lib.optional enableCuda cudatoolkit
++ lib.optionals stdenv.isDarwin [ bzip2 AVFoundation Cocoa VideoDecodeAcceleration ]
++ lib.optionals enableDocs [ doxygen graphviz-nox ];

propagatedBuildInputs = lib.optional enablePython pythonPackages.numpy;
propagatedBuildInputs = lib.optional enablePython pythonPackages.numpy
++ lib.optional enableCuda cudatoolkit;

nativeBuildInputs = [ cmake pkg-config unzip ];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/opencv/4.x.nix
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,11 @@ stdenv.mkDerivation {
# tesseract & leptonica.
++ lib.optionals enableTesseract [ tesseract leptonica ]
++ lib.optional enableTbb tbb
++ lib.optionals enableCuda [ cudatoolkit nvidia-optical-flow-sdk ]
++ lib.optionals stdenv.isDarwin [ bzip2 AVFoundation Cocoa VideoDecodeAcceleration CoreMedia MediaToolbox ]
++ lib.optionals enableDocs [ doxygen graphviz-nox ];

propagatedBuildInputs = lib.optional enablePython pythonPackages.numpy;
propagatedBuildInputs = lib.optional enablePython pythonPackages.numpy
++ lib.optionals enableCuda [ cudatoolkit nvidia-optical-flow-sdk ];

nativeBuildInputs = [ cmake pkg-config unzip ];

Expand Down

0 comments on commit 7fe522a

Please sign in to comment.