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.
This commit is contained in:
Martin Weinelt 2023-07-29 17:52:49 +02:00
parent 8175297e0c
commit 5b3f58125e
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

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