diff --git a/pkgs/applications/video/mpv/scripts/twitch-chat.nix b/pkgs/applications/video/mpv/scripts/twitch-chat.nix index 16c7bfb6cf74..cdcadf2f9ead 100644 --- a/pkgs/applications/video/mpv/scripts/twitch-chat.nix +++ b/pkgs/applications/video/mpv/scripts/twitch-chat.nix @@ -13,14 +13,12 @@ buildLua { owner = "CrendKing"; repo = "mpv-twitch-chat"; rev = "bb0c2e84675f4f1e0c221c8e1d3516b60242b985"; - hash = "sha256-WyNPUiAs5U/vrjNbAgyqkfoxh9rabLmuZ1zG5uZYxaw="; + hash = "sha256-lnWYcr49koI60Su85OWbcxrARWTfXW2zIvfCZ6c3GtI="; + + postFetch = "rm $out/screenshot.webp"; }; - installPhase = '' - runHook preInstall - install -D main.lua $out/share/mpv/scripts/twitch-chat.lua - runHook postInstall - ''; + scriptPath = "."; runtime-dependencies = [ curl ];