Unverified Commit 13b0b44e authored by Robert Schütz's avatar Robert Schütz Committed by GitHub
Browse files

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

parents 40d5f22c 0bc675c4
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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 = [
+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
        ]
      }"