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