diff --git a/pkgs/by-name/im/immich-machine-learning/package.nix b/pkgs/by-name/im/immich-machine-learning/package.nix index 7d29efca5603..6d46e20d575e 100644 --- a/pkgs/by-name/im/immich-machine-learning/package.nix +++ b/pkgs/by-name/im/immich-machine-learning/package.nix @@ -19,9 +19,6 @@ python.pkgs.buildPythonApplication rec { postPatch = '' substituteInPlace pyproject.toml --replace-fail 'fastapi-slim' 'fastapi' - - # AttributeError: module 'cv2' has no attribute 'Mat' - substituteInPlace app/test_main.py --replace-fail ": cv2.Mat" "" ''; pythonRelaxDeps = [ diff --git a/pkgs/by-name/im/immich/package.nix b/pkgs/by-name/im/immich/package.nix index bb1778ee207f..eb0d2395ab3e 100644 --- a/pkgs/by-name/im/immich/package.nix +++ b/pkgs/by-name/im/immich/package.nix @@ -23,6 +23,7 @@ imagemagick, libraw, libheif, + perl, vips, }: let @@ -188,8 +189,6 @@ buildNpmPackage' { # If exiftool-vendored.pl isn't found, exiftool is searched for on the PATH rm -r node_modules/exiftool-vendored.* - substituteInPlace node_modules/exiftool-vendored/dist/DefaultExifToolOptions.js \ - --replace-fail "checkPerl: !(0, IsWin32_1.isWin32)()," "checkPerl: false," ''; installPhase = '' @@ -212,6 +211,7 @@ buildNpmPackage' { lib.makeBinPath [ exiftool jellyfin-ffmpeg + perl # exiftool-vendored checks for Perl even if exiftool comes from $PATH ] }"