Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 41 lines 911 B view raw
1{ 2 lib, 3 buildLua, 4 fetchFromGitHub, 5 yt-dlp, 6}: 7 8buildLua { 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}