Frigate module not building because nginx vod module

I tried building but nginx won’t build.
Could I disable vod?

...

        /nix/store/xjls3h70j5zj2pipyvlhl1zwd4c14wf8-vod/vod/hls/adts_encoder_filter.c
/nix/store/xjls3h70j5zj2pipyvlhl1zwd4c14wf8-vod/vod/subtitle/dfxp_format.c: In function 'dfxp_parse':
/nix/store/xjls3h70j5zj2pipyvlhl1zwd4c14wf8-vod/vod/subtitle/dfxp_format.c:443:17: error: 'recovery' is deprecated [-Werror=deprecated-declarations]
  443 |                 (!ctxt->wellFormed && !ctxt->recovery))
      |                 ^
In file included from /nix/store/xjls3h70j5zj2pipyvlhl1zwd4c14wf8-vod/vod/subtitle/dfxp_format.c:6:
/nix/store/rdnx32wkaz273f643sv1m1hbd5gh56bz-libxml2-2.14.3-dev/include/libxml2/libxml/parser.h:377:9: note: declared here
  377 |     int recovery XML_DEPRECATED_MEMBER;
      |         ^~~~~~~~
gcc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -DNDK_SET_VAR -DNDK_UPSTREAM_LIST  -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /nix/store/2ysp5ichpccf4lv1wp2qcwz0bmm840f1-rtmp -I /nix/store/w218m7m6bma3n6hnk15wxw5fd7sn9y7x-develkit/objs -I objs/addon/ndk -I /usr/include/libxml2 -I objs -I src/http -I src/http/modules -I src/http/v2 -I /nix/store/w218m7m6bma3n6hnk15wxw5fd7sn9y7x-develkit/src -I /nix/store/w218m7m6bma3n6hnk15wxw5fd7sn9y7x-develkit/src -I /nix/store/w218m7m6bma3n6hnk15wxw5fd7sn9y7x-develkit/objs -I objs/addon/ndk -I /usr/include/libxml2 -I src/stream \
        -o objs/addon/hls/buffer_filter.o \
        /nix/store/xjls3h70j5zj2pipyvlhl1zwd4c14wf8-vod/vod/hls/buffer_filter.c
gcc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -DNDK_SET_VAR -DNDK_UPSTREAM_LIST  -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /nix/store/2ysp5ichpccf4lv1wp2qcwz0bmm840f1-rtmp -I /nix/store/w218m7m6bma3n6hnk15wxw5fd7sn9y7x-develkit/objs -I objs/addon/ndk -I /usr/include/libxml2 -I objs -I src/http -I src/http/modules -I src/http/v2 -I /nix/store/w218m7m6bma3n6hnk15wxw5fd7sn9y7x-develkit/src -I /nix/store/w218m7m6bma3n6hnk15wxw5fd7sn9y7x-develkit/src -I /nix/store/w218m7m6bma3n6hnk15wxw5fd7sn9y7x-develkit/objs -I objs/addon/ndk -I /usr/include/libxml2 -I src/stream \
        -o objs/addon/hls/frame_joiner_filter.o \
        /nix/store/xjls3h70j5zj2pipyvlhl1zwd4c14wf8-vod/vod/hls/frame_joiner_filter.c
gcc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -DNDK_SET_VAR -DNDK_UPSTREAM_LIST  -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /nix/store/2ysp5ichpccf4lv1wp2qcwz0bmm840f1-rtmp -I /nix/store/w218m7m6bma3n6hnk15wxw5fd7sn9y7x-develkit/objs -I objs/addon/ndk -I /usr/include/libxml2 -I objs -I src/http -I src/http/modules -I src/http/v2 -I /nix/store/w218m7m6bma3n6hnk15wxw5fd7sn9y7x-develkit/src -I /nix/store/w218m7m6bma3n6hnk15wxw5fd7sn9y7x-develkit/src -I /nix/store/w218m7m6bma3n6hnk15wxw5fd7sn9y7x-develkit/objs -I objs/addon/ndk -I /usr/include/libxml2 -I src/stream \
        -o objs/addon/hls/hls_muxer.o \
        /nix/store/xjls3h70j5zj2pipyvlhl1zwd4c14wf8-vod/vod/hls/hls_muxer.c
gcc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -DNDK_SET_VAR -DNDK_UPSTREAM_LIST  -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I /nix/store/2ysp5ichpccf4lv1wp2qcwz0bmm840f1-rtmp -I /nix/store/w218m7m6bma3n6hnk15wxw5fd7sn9y7x-develkit/objs -I objs/addon/ndk -I /usr/include/libxml2 -I objs -I src/http -I src/http/modules -I src/http/v2 -I /nix/store/w218m7m6bma3n6hnk15wxw5fd7sn9y7x-develkit/src -I /nix/store/w218m7m6bma3n6hnk15wxw5fd7sn9y7x-develkit/src -I /nix/store/w218m7m6bma3n6hnk15wxw5fd7sn9y7x-develkit/objs -I objs/addon/ndk -I /usr/include/libxml2 -I src/stream \
        -o objs/addon/hls/id3_encoder_filter.o \
        /nix/store/xjls3h70j5zj2pipyvlhl1zwd4c14wf8-vod/vod/hls/id3_encoder_filter.c
cc1: all warnings being treated as errors
make[1]: *** [objs/Makefile:2686: objs/addon/subtitle/dfxp_format.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/build/nginx-1.28.0'
make: *** [Makefile:10: build] Error 2
(END)

config:

{ config, ... }:
{
    services.frigate = {
      enable = true;
      hostname = "localhost";

      settings = {
        mqtt.enabled = false;

        record = {
          enabled = true;
          retain = {
            days = 2;
            mode = "all";
          };
        };

        # ffmpeg.hwaccel_args = "preset-vaapi";

        cameras.cam-1 = {
          ffmpeg.inputs = [
            {
              path = "rtsp://admin:admin@192.168.1.5:554/profile1";
              roles = [ "record" ];
            }
          ];
          detect.enabled = false;
          record.enabled = true;
        };
      };
    };
}

source:

Then frigate wouldn’t be able to stream video any more.

Have you tried fixing the package yet?

fix it for now.

diff --git a/pkgs/servers/http/nginx/generic.nix b/pkgs/servers/http/nginx/generic.nix
index 69dc64712451..a012dd01a3c5 100644
--- a/pkgs/servers/http/nginx/generic.nix
+++ b/pkgs/servers/http/nginx/generic.nix
@@ -180,6 +180,7 @@ stdenv.mkDerivation {
     [
       "-I${libxml2.dev}/include/libxml2"
       "-Wno-error=implicit-fallthrough"
+      "-Wno-error=deprecated-declarations"
       (
         # zlig-ng patch needs this
         if stdenv.cc.isGNU then
1 Like