facedetect: switch to opencv4
opencv2 is essentially EOL and has security concerns
This commit is contained in:
parent
c5c37d77f2
commit
8361442cf7
@ -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 = ''
|
||||
|
Loading…
Reference in New Issue
Block a user