mediamtx: 1.9.2 -> 1.9.3 (#352624)

authored by Franz Pletz and committed by GitHub 3112671a f9f7d7b5

+16 -6
+16 -6
pkgs/by-name/me/mediamtx/package.nix
··· 8 9 let 10 hlsJs = fetchurl { 11 - url = "https://cdn.jsdelivr.net/npm/hls.js@v1.5.15/dist/hls.min.js"; 12 - hash = "sha256-qRwhj9krOcLJKbGghAC8joXfNKXUdN7OkgEDosUWdd8="; 13 }; 14 in 15 buildGoModule rec { 16 pname = "mediamtx"; 17 # check for hls.js version updates in internal/servers/hls/hlsjsdownloader/VERSION 18 - version = "1.9.2"; 19 20 src = fetchFromGitHub { 21 owner = "bluenviron"; 22 repo = pname; 23 rev = "v${version}"; 24 - hash = "sha256-aHVSGyrLuLX/RYf1I1dDackmOeU3m24QcwBus4Uly0I="; 25 }; 26 27 - vendorHash = "sha256-YpwbFCfI2kfmX3nI1G9OGUv5qpZ/JMis5VyUkqsESZA="; 28 29 postPatch = '' 30 cp ${hlsJs} internal/servers/hls/hls.min.js 31 echo "v${version}" > internal/core/VERSION 32 ''; 33 34 subPackages = [ "." ]; ··· 41 }; 42 43 meta = with lib; { 44 - description = "Ready-to-use RTSP server and RTSP proxy that allows to read and publish video and audio streams"; 45 inherit (src.meta) homepage; 46 license = licenses.mit; 47 mainProgram = "mediamtx";
··· 8 9 let 10 hlsJs = fetchurl { 11 + url = "https://cdn.jsdelivr.net/npm/hls.js@v1.5.17/dist/hls.min.js"; 12 + hash = "sha256-SEBU6M0D0/bReB+39AK9wxjYpMUn+TOpXGJOJ8yalHA="; 13 }; 14 in 15 buildGoModule rec { 16 pname = "mediamtx"; 17 # check for hls.js version updates in internal/servers/hls/hlsjsdownloader/VERSION 18 + version = "1.9.3"; 19 20 src = fetchFromGitHub { 21 owner = "bluenviron"; 22 repo = pname; 23 rev = "v${version}"; 24 + hash = "sha256-2qFJujfnlpmiOAmDBPl3hrbbHDOZOWFy8Yh2VOU0FEI="; 25 }; 26 27 + vendorHash = "sha256-6MHtYrHZF3Oo53MV1Di0wGw9Xk+2CMei2XeoI0OcKsQ="; 28 29 postPatch = '' 30 cp ${hlsJs} internal/servers/hls/hls.min.js 31 echo "v${version}" > internal/core/VERSION 32 + 33 + # disable binary-only rpi camera support 34 + substituteInPlace internal/staticsources/rpicamera/camera_disabled.go \ 35 + --replace-fail '!linux || (!arm && !arm64)' 'linux' 36 + substituteInPlace internal/staticsources/rpicamera/{component,camera,params_serialize,pipe}.go \ 37 + --replace-fail '(linux && arm) || (linux && arm64)' 'linux && !linux' 38 + substituteInPlace internal/staticsources/rpicamera/component_32.go \ 39 + --replace-fail 'linux && arm' 'linux && !linux' 40 + substituteInPlace internal/staticsources/rpicamera/component_64.go \ 41 + --replace-fail 'linux && arm64' 'linux && !linux' 42 ''; 43 44 subPackages = [ "." ]; ··· 51 }; 52 53 meta = with lib; { 54 + description = "SRT, WebRTC, RTSP, RTMP, LL-HLS media server and media proxy"; 55 inherit (src.meta) homepage; 56 license = licenses.mit; 57 mainProgram = "mediamtx";