mediamtx: 1.11.3 -> 1.12.2 (#405334)

authored by Franz Pletz and committed by GitHub 5c8fdd31 388bd13f

+16 -16
+16 -16
pkgs/by-name/me/mediamtx/package.nix
··· 1 { 2 lib, 3 fetchFromGitHub, 4 fetchurl, 5 - buildGoModule, 6 nixosTests, 7 }: 8 ··· 12 hash = "sha256-0BbBIwSW7lnz9bAcFszkzAG1odPTV63sIAyQixMevkk="; 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.11.3"; 19 20 src = fetchFromGitHub { 21 owner = "bluenviron"; 22 - repo = pname; 23 - rev = "v${version}"; 24 - hash = "sha256-LPyyPHTdV9cUDRKSlP+XaMyb+yhSj4Jq0tnT7AnTRqw="; 25 }; 26 27 - vendorHash = "sha256-lR2GH/oEdzdnel7wUAVDUQIpKuI4WUsa75Nn44SWloY="; 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 || !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 ··· 50 inherit (nixosTests) mediamtx; 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"; 58 - maintainers = with maintainers; [ fpletz ]; 59 }; 60 - }
··· 1 { 2 lib, 3 + buildGoModule, 4 fetchFromGitHub, 5 fetchurl, 6 nixosTests, 7 }: 8 ··· 12 hash = "sha256-0BbBIwSW7lnz9bAcFszkzAG1odPTV63sIAyQixMevkk="; 13 }; 14 in 15 + buildGoModule (finalAttrs: { 16 pname = "mediamtx"; 17 # check for hls.js version updates in internal/servers/hls/hlsjsdownloader/VERSION 18 + version = "1.12.2"; 19 20 src = fetchFromGitHub { 21 owner = "bluenviron"; 22 + repo = "mediamtx"; 23 + tag = "v${finalAttrs.version}"; 24 + hash = "sha256-O3Iu9gvCiAVuoJw77MWPyCfuJVcw0E8YWcJBiJq+/Ms="; 25 }; 26 27 + vendorHash = "sha256-0927IeFIC2rhApPVs5ZIvS3yoDN8Km3tHgrRXnP/wBc="; 28 29 postPatch = '' 30 cp ${hlsJs} internal/servers/hls/hls.min.js 31 + echo "v${finalAttrs.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 || !linux' 36 + substituteInPlace internal/staticsources/rpicamera/{camera,params_serialize,pipe}.go \ 37 --replace-fail '(linux && arm) || (linux && arm64)' 'linux && !linux' 38 + substituteInPlace internal/staticsources/rpicamera/camera_32.go \ 39 --replace-fail 'linux && arm' 'linux && !linux' 40 + substituteInPlace internal/staticsources/rpicamera/camera_64.go \ 41 --replace-fail 'linux && arm64' 'linux && !linux' 42 ''; 43 ··· 50 inherit (nixosTests) mediamtx; 51 }; 52 53 + meta = { 54 description = "SRT, WebRTC, RTSP, RTMP, LL-HLS media server and media proxy"; 55 + inherit (finalAttrs.src.meta) homepage; 56 + license = lib.licenses.mit; 57 mainProgram = "mediamtx"; 58 + maintainers = with lib.maintainers; [ fpletz ]; 59 }; 60 + })