Unverified Commit 25c002d8 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

nginxModules.vod: fix build on gcc 15; cleanup (#476041)

parents 20594a5d 1e8a2bf1
Loading
Loading
Loading
Loading
+15 −9
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  config,
  nixosTests,
  applyPatches,
  fetchFromGitHub,
  fetchFromGitLab,
  fetchhg,
@@ -996,17 +997,22 @@ let

    vod = {
      name = "vod";
      src = fetchFromGitHub {
      src = applyPatches {
        name = "vod";
        src = fetchFromGitHub {
          owner = "kaltura";
          repo = "nginx-vod-module";
        rev = "1.33";
        hash = "sha256-pForXU1VBxa4F3F7xK+DJtMKC4wgcykJImlQjxz5GnE=";
        postFetch = ''
          substituteInPlace $out/vod/media_set.h \
            --replace "MAX_CLIPS (128)" "MAX_CLIPS (1024)"
          substituteInPlace $out/vod/subtitle/dfxp_format.c \
          tag = "1.33";
          hash = "sha256-hf4iprkdNP7lVlrm/7kMkrp/8440PuTZiL1hv/Icfm4=";
        };
        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)'
        '';
      };