mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-24 05:00:19 +00:00
opencv4: cuda: add a libstdc++ integration test
This commit is contained in:
parent
edbe9ad5e0
commit
a122884cb3
@ -495,8 +495,11 @@ stdenv.mkDerivation {
|
||||
opencv4-tests = callPackage ./tests.nix {
|
||||
inherit enableGStreamer enableGtk2 enableGtk3 runAccuracyTests runPerformanceTests testDataSrc;
|
||||
inherit opencv4;
|
||||
};
|
||||
};
|
||||
}
|
||||
// lib.optionalAttrs (enableCuda) {
|
||||
no-libstdcxx-errors = callPackage ./libstdcxx-test.nix { };
|
||||
};
|
||||
} // lib.optionalAttrs enablePython { pythonPath = [ ]; };
|
||||
|
||||
meta = with lib; {
|
||||
|
17
pkgs/development/libraries/opencv/libstdcxx-test.nix
Normal file
17
pkgs/development/libraries/opencv/libstdcxx-test.nix
Normal file
@ -0,0 +1,17 @@
|
||||
{ python3Packages, runCommand }:
|
||||
|
||||
runCommand "${python3Packages.opencv4.pname}-libstdcxx-test"
|
||||
{
|
||||
nativeBuildInputs = [
|
||||
(python3Packages.python.withPackages (ps: with ps; [
|
||||
(opencv4.override { enableCuda = true; })
|
||||
scikit-image
|
||||
]))
|
||||
];
|
||||
} ''
|
||||
python << EOF
|
||||
import cv2
|
||||
from skimage.transform import pyramid_reduce
|
||||
EOF
|
||||
touch $out
|
||||
''
|
Loading…
Reference in New Issue
Block a user