From f2efd2e9bce544298e8afa059abae69efcf55fa7 Mon Sep 17 00:00:00 2001 From: fleaz Date: Thu, 26 Oct 2023 22:04:03 +0200 Subject: [PATCH] nginxModules.vod: Patch MAX_CLIPS variable The old limit was only 128 and this breaks some applications like e.g. Frigate where playlists become bigger than that. According to upstream you should just change the variable yourself if needed. See this issue: https://github.com/kaltura/nginx-vod-module/issues/238 --- pkgs/servers/http/nginx/modules.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/http/nginx/modules.nix b/pkgs/servers/http/nginx/modules.nix index 310989387998..542ff0796ad5 100644 --- a/pkgs/servers/http/nginx/modules.nix +++ b/pkgs/servers/http/nginx/modules.nix @@ -986,7 +986,11 @@ let self = { owner = "kaltura"; repo = "nginx-vod-module"; rev = "1.32"; - hash = "sha256-uBZtzh+IvBFNU/9oQ3KmX65Eog2CrI5LYN8sKaqjJhE="; + hash = "sha256-ZpG0oj60D3o7/7uyE8AybCiOtncVe1Jnjaz22sIFypk="; + postFetch = '' + substituteInPlace $out/vod/media_set.h \ + --replace "MAX_CLIPS (128)" "MAX_CLIPS (1024)" + ''; }; inputs = [ ffmpeg fdk_aac openssl libxml2 libiconv ];