mpvScripts.youtube-chat: init at unstable-2024-06-08 (#264578)

authored by

Arne Keller and committed by
GitHub
ea567964 6490fd94

+42
+1
pkgs/applications/video/mpv/scripts/default.nix
··· 135 135 visualizer = callPackage ./visualizer.nix { }; 136 136 vr-reversal = callPackage ./vr-reversal.nix { }; 137 137 webtorrent-mpv-hook = callPackage ./webtorrent-mpv-hook.nix { }; 138 + youtube-chat = callPackage ./youtube-chat.nix { }; 138 139 youtube-upnext = callPackage ./youtube-upnext.nix { }; 139 140 }; 140 141
+41
pkgs/applications/video/mpv/scripts/youtube-chat.nix
··· 1 + { 2 + lib, 3 + buildLua, 4 + fetchFromGitHub, 5 + yt-dlp, 6 + }: 7 + 8 + buildLua { 9 + pname = "youtube-chat"; 10 + version = "unstable-2024-06-08"; 11 + 12 + src = fetchFromGitHub { 13 + owner = "BanchouBoo"; 14 + repo = "mpv-youtube-chat"; 15 + rev = "4b8d6d5d3ace40d467bc0ed75f3af2a1aefce161"; 16 + hash = "sha256-uZC7iDYqLUuXnqSLke4j6rLoufc/vFTE6Ehnpu//dxY="; 17 + }; 18 + 19 + scriptPath = "youtube-chat"; 20 + 21 + installPhase = '' 22 + runHook preInstall 23 + install -D -t $out/share/mpv/scripts/youtube-chat main.lua 24 + runHook postInstall 25 + ''; 26 + 27 + passthru.extraWrapperArgs = [ 28 + "--prefix" 29 + "PATH" 30 + ":" 31 + (lib.makeBinPath [ yt-dlp ]) 32 + ]; 33 + 34 + meta = { 35 + description = "MPV script to overlay youtube chat on top of a video using yt-dlp"; 36 + homepage = "https://github.com/BanchouBoo/mpv-youtube-chat"; 37 + license = lib.licenses.mit; 38 + platforms = yt-dlp.meta.platforms; 39 + maintainers = with lib.maintainers; [ fliegendewurst ]; 40 + }; 41 + }