From c67998ff3b628a7af48b022081c22957bc1dfc8f Mon Sep 17 00:00:00 2001 From: nicoo Date: Sun, 9 Mar 2025 15:38:53 +0000 Subject: [PATCH] mpvScripts.twitch-chat: treat script as directory-packaged Removes the screenshot from the source archive, to avoid wasting space in the build cache and in outputs downloaded by end-users. --- pkgs/applications/video/mpv/scripts/twitch-chat.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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 ];