From 7afb723621dc0d40e227920fe3ceb929bf18bc35 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 9 Apr 2026 13:16:04 +0200 Subject: [PATCH] nginxModules.vod: 1.33 -> 1.7.0; switch to fork The kaltura upstream has not merged any PRs since 2024-05. In the meantime a well-maintained upstream has picked up open PRs and made 12 releases since 2025-06. --- pkgs/servers/http/nginx/modules.nix | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pkgs/servers/http/nginx/modules.nix b/pkgs/servers/http/nginx/modules.nix index 87d9c905ee51..e4ba92fa0bf6 100644 --- a/pkgs/servers/http/nginx/modules.nix +++ b/pkgs/servers/http/nginx/modules.nix @@ -998,35 +998,35 @@ let }; }; - vod = { + vod = rec { name = "vod"; + version = "1.7.0"; + src = applyPatches { name = "vod"; src = fetchFromGitHub { - owner = "kaltura"; + owner = "dio-az"; repo = "nginx-vod-module"; - tag = "1.33"; - hash = "sha256-hf4iprkdNP7lVlrm/7kMkrp/8440PuTZiL1hv/Icfm4="; + tag = "v${version}"; + hash = "sha256-IcXbbmAs16F9qOEJWgH6XqP5sBMYszclGByVghj0eBM="; }; + postPatch = '' substituteInPlace vod/media_set.h \ --replace-fail "MAX_CLIPS (128)" "MAX_CLIPS (1024)" - substituteInPlace vod/subtitle/dfxp_format.c \ - --replace-fail '(!ctxt->wellFormed && !ctxt->recovery))' '!ctxt->wellFormed)' - # https://github.com/kaltura/nginx-vod-module/pull/1593 - substituteInPlace ngx_http_vod_module.c \ - --replace-fail 'ngx_http_vod_exit_process()' 'ngx_http_vod_exit_process(ngx_cycle_t *cycle)' ''; }; inputs = [ - ffmpeg_6-headless + ffmpeg-headless fdk_aac openssl libxml2 libiconv ]; + passthru.tests = nixosTests.frigate; + meta = { description = "VOD packager"; homepage = "https://github.com/kaltura/nginx-vod-module";