immich: re-add perl to $PATH (#355266)

This commit is contained in:
Robert Schütz 2024-11-12 06:37:47 -08:00 committed by GitHub
commit 13b0b44e78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 5 deletions

View File

@ -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 = [

View File

@ -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
]
}"