From d55cec42d12bec89e5c526b3bccb9dd0a75e8261 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 25 May 2023 01:01:17 +0200 Subject: [PATCH] frigate: substitute more paths Fixes the error image for unreachable cameras, the idle image for the birdseye view and fix cache path in old clip removal function. --- pkgs/applications/video/frigate/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/applications/video/frigate/default.nix b/pkgs/applications/video/frigate/default.nix index 05f4c16a63a..663d7e769cf 100644 --- a/pkgs/applications/video/frigate/default.nix +++ b/pkgs/applications/video/frigate/default.nix @@ -94,6 +94,16 @@ python.pkgs.buildPythonApplication rec { --replace "/media/frigate" "/var/lib/frigate" \ --replace "/tmp/cache" "/var/cache/frigate" + substituteInPlace frigate/http.py \ + --replace "/opt/frigate" "${placeholder "out"}/${python.sitePackages}" \ + --replace "/tmp/cache/" "/var/cache/frigate" + + substituteInPlace frigate/output.py \ + --replace "/opt/frigate" "${placeholder "out"}/${python.sitePackages}" + + substituteInPlace frigate/record.py \ + --replace "/tmp/cache" "/var/cache/frigate" + substituteInPlace frigate/detectors/detector_config.py \ --replace "/labelmap.txt" "${placeholder "out"}/share/frigate/labelmap.txt"