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

nginxModules.vod: 1.33 -> 1.7.0; switch to fork (#508344)

parents 41a10c8d 50271477
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -640,6 +640,7 @@ in
          listen 127.0.0.1:5000;

          # vod settings
          vod_hls_version 6;
          vod_base_url "";
          vod_segments_base_url "";
          vod_mode mapped;
+10 −10
Original line number Diff line number Diff line
@@ -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";