From 6a70a620cc20c08943762d71f21ed12b040ff431 Mon Sep 17 00:00:00 2001 From: emaryn Date: Fri, 9 May 2025 03:22:20 +0800 Subject: [PATCH] mediamtx: 1.11.3 -> 1.12.2 Diff: https://github.com/bluenviron/mediamtx/compare/v1.11.3...v1.12.2 --- pkgs/by-name/me/mediamtx/package.nix | 32 ++++++++++++++-------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/pkgs/by-name/me/mediamtx/package.nix b/pkgs/by-name/me/mediamtx/package.nix index 6d6ebbe587a0..5bd4506f7f75 100644 --- a/pkgs/by-name/me/mediamtx/package.nix +++ b/pkgs/by-name/me/mediamtx/package.nix @@ -1,8 +1,8 @@ { lib, + buildGoModule, fetchFromGitHub, fetchurl, - buildGoModule, nixosTests, }: @@ -12,32 +12,32 @@ let hash = "sha256-0BbBIwSW7lnz9bAcFszkzAG1odPTV63sIAyQixMevkk="; }; in -buildGoModule rec { +buildGoModule (finalAttrs: { pname = "mediamtx"; # check for hls.js version updates in internal/servers/hls/hlsjsdownloader/VERSION - version = "1.11.3"; + version = "1.12.2"; src = fetchFromGitHub { owner = "bluenviron"; - repo = pname; - rev = "v${version}"; - hash = "sha256-LPyyPHTdV9cUDRKSlP+XaMyb+yhSj4Jq0tnT7AnTRqw="; + repo = "mediamtx"; + tag = "v${finalAttrs.version}"; + hash = "sha256-O3Iu9gvCiAVuoJw77MWPyCfuJVcw0E8YWcJBiJq+/Ms="; }; - vendorHash = "sha256-lR2GH/oEdzdnel7wUAVDUQIpKuI4WUsa75Nn44SWloY="; + vendorHash = "sha256-0927IeFIC2rhApPVs5ZIvS3yoDN8Km3tHgrRXnP/wBc="; postPatch = '' cp ${hlsJs} internal/servers/hls/hls.min.js - echo "v${version}" > internal/core/VERSION + echo "v${finalAttrs.version}" > internal/core/VERSION # disable binary-only rpi camera support substituteInPlace internal/staticsources/rpicamera/camera_disabled.go \ --replace-fail '!linux || (!arm && !arm64)' 'linux || !linux' - substituteInPlace internal/staticsources/rpicamera/{component,camera,params_serialize,pipe}.go \ + substituteInPlace internal/staticsources/rpicamera/{camera,params_serialize,pipe}.go \ --replace-fail '(linux && arm) || (linux && arm64)' 'linux && !linux' - substituteInPlace internal/staticsources/rpicamera/component_32.go \ + substituteInPlace internal/staticsources/rpicamera/camera_32.go \ --replace-fail 'linux && arm' 'linux && !linux' - substituteInPlace internal/staticsources/rpicamera/component_64.go \ + substituteInPlace internal/staticsources/rpicamera/camera_64.go \ --replace-fail 'linux && arm64' 'linux && !linux' ''; @@ -50,11 +50,11 @@ buildGoModule rec { inherit (nixosTests) mediamtx; }; - meta = with lib; { + meta = { description = "SRT, WebRTC, RTSP, RTMP, LL-HLS media server and media proxy"; - inherit (src.meta) homepage; - license = licenses.mit; + inherit (finalAttrs.src.meta) homepage; + license = lib.licenses.mit; mainProgram = "mediamtx"; - maintainers = with maintainers; [ fpletz ]; + maintainers = with lib.maintainers; [ fpletz ]; }; -} +})