about summary refs log tree commit diff
path: root/pkgs/applications/video/frigate
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2023-07-29 17:52:49 +0200
committerMartin Weinelt <hexa@darmstadt.ccc.de>2023-07-29 17:54:15 +0200
commit5b3f58125e653253d59630639741ebebdc37c8e5 (patch)
treebbb28c8de689313f98f04fcd906895924725d4f4 /pkgs/applications/video/frigate
parent8175297e0c20c7367fa6161ddba8ead0000c0782 (diff)
frigate: fix serving of clips
Frigate uses string concat to create some paths, which relies on the
cache path ending with a trailing slash.

I've meanwhile proposed a fix upstream, that will likely
be part of the next release.
Diffstat (limited to 'pkgs/applications/video/frigate')
-rw-r--r--pkgs/applications/video/frigate/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/applications/video/frigate/default.nix b/pkgs/applications/video/frigate/default.nix
index e61d276147583..42d5b281bbea2 100644
--- a/pkgs/applications/video/frigate/default.nix
+++ b/pkgs/applications/video/frigate/default.nix
@@ -92,11 +92,11 @@ python.pkgs.buildPythonApplication rec {
 
     substituteInPlace frigate/const.py \
       --replace "/media/frigate" "/var/lib/frigate" \
-      --replace "/tmp/cache" "/var/cache/frigate"
+      --replace "/tmp/cache" "/var/cache/frigate/"
 
     substituteInPlace frigate/http.py \
       --replace "/opt/frigate" "${placeholder "out"}/${python.sitePackages}" \
-      --replace "/tmp/cache/" "/var/cache/frigate"
+      --replace "/tmp/cache/" "/var/cache/frigate/"
 
     substituteInPlace frigate/output.py \
       --replace "/opt/frigate" "${placeholder "out"}/${python.sitePackages}"