diff --git a/pkgs/tools/graphics/facedetect/default.nix b/pkgs/tools/graphics/facedetect/default.nix index aab2e111e85f..cb697148d045 100644 --- a/pkgs/tools/graphics/facedetect/default.nix +++ b/pkgs/tools/graphics/facedetect/default.nix @@ -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 = ''