about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMartin Weinelt <mweinelt@users.noreply.github.com>2024-02-15 05:01:47 +0100
committerGitHub <noreply@github.com>2024-02-15 05:01:47 +0100
commit2804f529b63af763f2c788f0898984ea1b860e89 (patch)
tree637e31f821110a8e76d431ba120fad3acc397cf7 /pkgs
parente4dbabf8541ab20f927c3497f6a44e1ea0aab2e3 (diff)
parent4572f3ec59d24d153f6da98945ba39e14f7fe62a (diff)
Merge pull request #288943 from mweinelt/frigate-flask3.0-compat
frigate: fix flask 3.0 compat
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/video/frigate/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/applications/video/frigate/default.nix b/pkgs/applications/video/frigate/default.nix
index 6a93401d985d0..d6437d09f421f 100644
--- a/pkgs/applications/video/frigate/default.nix
+++ b/pkgs/applications/video/frigate/default.nix
@@ -3,6 +3,7 @@
 , python3
 , fetchFromGitHub
 , fetchurl
+, fetchpatch2
 , frigate
 , nixosTests
 }:
@@ -58,6 +59,14 @@ python.pkgs.buildPythonApplication rec {
 
   inherit src;
 
+  patches = [
+    (fetchpatch2 {
+      name = "frigate-flask3.0-compat.patch";
+      url = "https://github.com/blakeblackshear/frigate/commit/56bdacc1c661eff8a323e033520e75e2ba0a3842.patch";
+      hash = "sha256-s/goUJxIbjq/woCEOEZECdcZoJDoWc1eM63sd60cxeY=";
+    })
+  ];
+
   postPatch = ''
     echo 'VERSION = "${version}"' > frigate/version.py
 
@@ -97,6 +106,7 @@ python.pkgs.buildPythonApplication rec {
     click
     flask
     imutils
+    markupsafe
     matplotlib
     norfair
     numpy