1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00

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 = ''