Commit 67c88f3c authored by Robert Schütz's avatar Robert Schütz
Browse files

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
parent e1b70fb0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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
        ]
      }"