File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed
pkgs/applications/video/mpv/scripts Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments