Files
nixpkgs/pkgs/applications/video/mpv/scripts/youtube-chat.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

42 lines
911 B
Nix

{
lib,
buildLua,
fetchFromGitHub,
yt-dlp,
}:
buildLua {
pname = "youtube-chat";
version = "unstable-2024-06-08";
src = fetchFromGitHub {
owner = "BanchouBoo";
repo = "mpv-youtube-chat";
rev = "4b8d6d5d3ace40d467bc0ed75f3af2a1aefce161";
hash = "sha256-uZC7iDYqLUuXnqSLke4j6rLoufc/vFTE6Ehnpu//dxY=";
};
scriptPath = "youtube-chat";
installPhase = ''
runHook preInstall
install -D -t $out/share/mpv/scripts/youtube-chat main.lua
runHook postInstall
'';
passthru.extraWrapperArgs = [
"--prefix"
"PATH"
":"
(lib.makeBinPath [ yt-dlp ])
];
meta = {
description = "MPV script to overlay youtube chat on top of a video using yt-dlp";
homepage = "https://github.com/BanchouBoo/mpv-youtube-chat";
license = lib.licenses.mit;
platforms = yt-dlp.meta.platforms;
maintainers = with lib.maintainers; [ fliegendewurst ];
};
}