diff --git a/pkgs/by-name/me/mediamtx/package.nix b/pkgs/by-name/me/mediamtx/package.nix index b0cc36acefcd..c0d1f224b387 100644 --- a/pkgs/by-name/me/mediamtx/package.nix +++ b/pkgs/by-name/me/mediamtx/package.nix @@ -8,27 +8,37 @@ let hlsJs = fetchurl { - url = "https://cdn.jsdelivr.net/npm/hls.js@v1.5.15/dist/hls.min.js"; - hash = "sha256-qRwhj9krOcLJKbGghAC8joXfNKXUdN7OkgEDosUWdd8="; + url = "https://cdn.jsdelivr.net/npm/hls.js@v1.5.17/dist/hls.min.js"; + hash = "sha256-SEBU6M0D0/bReB+39AK9wxjYpMUn+TOpXGJOJ8yalHA="; }; in buildGoModule rec { pname = "mediamtx"; # check for hls.js version updates in internal/servers/hls/hlsjsdownloader/VERSION - version = "1.9.2"; + version = "1.9.3"; src = fetchFromGitHub { owner = "bluenviron"; repo = pname; rev = "v${version}"; - hash = "sha256-aHVSGyrLuLX/RYf1I1dDackmOeU3m24QcwBus4Uly0I="; + hash = "sha256-2qFJujfnlpmiOAmDBPl3hrbbHDOZOWFy8Yh2VOU0FEI="; }; - vendorHash = "sha256-YpwbFCfI2kfmX3nI1G9OGUv5qpZ/JMis5VyUkqsESZA="; + vendorHash = "sha256-6MHtYrHZF3Oo53MV1Di0wGw9Xk+2CMei2XeoI0OcKsQ="; postPatch = '' cp ${hlsJs} internal/servers/hls/hls.min.js echo "v${version}" > internal/core/VERSION + + # disable binary-only rpi camera support + substituteInPlace internal/staticsources/rpicamera/camera_disabled.go \ + --replace-fail '!linux || (!arm && !arm64)' 'linux' + substituteInPlace internal/staticsources/rpicamera/{component,camera,params_serialize,pipe}.go \ + --replace-fail '(linux && arm) || (linux && arm64)' 'linux && !linux' + substituteInPlace internal/staticsources/rpicamera/component_32.go \ + --replace-fail 'linux && arm' 'linux && !linux' + substituteInPlace internal/staticsources/rpicamera/component_64.go \ + --replace-fail 'linux && arm64' 'linux && !linux' ''; subPackages = [ "." ]; @@ -41,7 +51,7 @@ buildGoModule rec { }; meta = with lib; { - description = "Ready-to-use RTSP server and RTSP proxy that allows to read and publish video and audio streams"; + description = "SRT, WebRTC, RTSP, RTMP, LL-HLS media server and media proxy"; inherit (src.meta) homepage; license = licenses.mit; mainProgram = "mediamtx";