Skip to content

Commit ea56796

Browse files
mpvScripts.youtube-chat: init at unstable-2024-06-08 (#264578)
1 parent 6490fd9 commit ea56796

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

pkgs/applications/video/mpv/scripts/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ let
135135
visualizer = callPackage ./visualizer.nix { };
136136
vr-reversal = callPackage ./vr-reversal.nix { };
137137
webtorrent-mpv-hook = callPackage ./webtorrent-mpv-hook.nix { };
138+
youtube-chat = callPackage ./youtube-chat.nix { };
138139
youtube-upnext = callPackage ./youtube-upnext.nix { };
139140
};
140141

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
}

0 commit comments

Comments
 (0)