facedetect: switch to opencv4

opencv2 is essentially EOL and has security concerns
This commit is contained in:
Robert Scott 2019-11-25 22:25:44 +00:00 committed by Robert Helgesson
parent c5c37d77f2
commit 8361442cf7
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89

View File

@ -12,13 +12,13 @@ stdenv.mkDerivation rec {
};
buildInputs = [ python2Packages.python python2Packages.wrapPython ];
pythonPath = [ python2Packages.numpy python2Packages.opencv ];
pythonPath = [ python2Packages.numpy python2Packages.opencv4 ];
phases = [ "unpackPhase" "patchPhase" "installPhase" ];
patchPhase = ''
substituteInPlace facedetect \
--replace /usr/share/opencv "${python2Packages.opencv}/share/OpenCV"
--replace /usr/share/opencv "${python2Packages.opencv4}/share/opencv4"
'';
installPhase = ''