immich: re-add perl to $PATH

Otherwise logging in to Immich fails with

    [Nest] 2432071  - 11/11/2024, 9:12:55 PM   ERROR [Api:Error: BatchCluster has ended, cannot enqueue -ver
    -ignoreMinorErrors
    -execute
        at BatchCluster.enqueueTask (/nix/store/s68j9ryvlcfayh8wc6s8mbqwbhhsb742-immich-1.120.1/node_modules/batch-cluster/dist/BatchCluster.js:186:25)
        at f (/nix/store/s68j9ryvlcfayh8wc6s8mbqwbhhsb742-immich-1.120.1/node_modules/exiftool-vendored/dist/ExifTool.js:402:38)
        at async g (/nix/store/s68j9ryvlcfayh8wc6s8mbqwbhhsb742-immich-1.120.1/node_modules/exiftool-vendored/dist/AsyncRetry.js:8:20)~92ys7db8] Unknown error: Error: BatchCluster has ended, cannot enqueue -ver
    -ignoreMinorErrors
    -execute
This commit is contained in:
Robert Schütz 2024-11-11 12:15:02 -08:00
parent e1b70fb061
commit 67c88f3c4b

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