1{
2 buildLua,
3 curl,
4 fetchFromGitHub,
5 lib,
6 nix-update-script,
7}:
8buildLua {
9 pname = "twitch-chat";
10 version = "0-unstable-2025-05-15";
11
12 src = fetchFromGitHub {
13 owner = "CrendKing";
14 repo = "mpv-twitch-chat";
15 rev = "4d88ac12c843da0e916b0ed1df4d087a3418501b";
16 hash = "sha256-owU0F976K4CX0kKYoRbdtz/sqCvd8kw2LqItEgY25gE=";
17
18 postFetch = "rm $out/screenshot.webp";
19 };
20
21 scriptPath = ".";
22
23 runtime-dependencies = [ curl ];
24
25 passthru.updateScript = nix-update-script {
26 extraArgs = [ "--version=branch" ];
27 };
28
29 meta = {
30 description = "Show Twitch chat messages as subtitles when watching Twitch VOD with mpv";
31 homepage = "https://github.com/CrendKing/mpv-twitch-chat";
32 license = lib.licenses.mit;
33 maintainers = [ lib.maintainers.naho ];
34 };
35}