Loading pkgs/applications/video/mpv/scripts/buildLua.nix +15 −3 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ lib.makeOverridable ( { pname, extraScripts ? [ ], runtime-dependencies ? [ ], ... }@args: let Loading Loading @@ -75,8 +76,19 @@ lib.makeOverridable ( runHook postInstall ''; passthru = { passthru = { inherit scriptName; } // lib.optionalAttrs (runtime-dependencies != [ ]) { extraWrapperArgs = [ "--prefix" "PATH" ":" ] ++ (map lib.makeBinPath runtime-dependencies) ++ args.passthru.extraWrapperArgs or [ ]; }; meta = { Loading pkgs/applications/video/mpv/scripts/twitch-chat.nix +7 −14 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ lib, nix-update-script, }: buildLua (finalAttrs: { buildLua { pname = "twitch-chat"; version = "0-unstable-2024-06-23"; Loading @@ -13,21 +13,14 @@ buildLua (finalAttrs: { 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 = "."; passthru.extraWrapperArgs = [ "--prefix" "PATH" ":" (lib.makeBinPath [ curl ]) ]; runtime-dependencies = [ curl ]; passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; Loading @@ -39,4 +32,4 @@ buildLua (finalAttrs: { license = lib.licenses.mit; maintainers = [ lib.maintainers.naho ]; }; }) } Loading
pkgs/applications/video/mpv/scripts/buildLua.nix +15 −3 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ lib.makeOverridable ( { pname, extraScripts ? [ ], runtime-dependencies ? [ ], ... }@args: let Loading Loading @@ -75,8 +76,19 @@ lib.makeOverridable ( runHook postInstall ''; passthru = { passthru = { inherit scriptName; } // lib.optionalAttrs (runtime-dependencies != [ ]) { extraWrapperArgs = [ "--prefix" "PATH" ":" ] ++ (map lib.makeBinPath runtime-dependencies) ++ args.passthru.extraWrapperArgs or [ ]; }; meta = { Loading
pkgs/applications/video/mpv/scripts/twitch-chat.nix +7 −14 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ lib, nix-update-script, }: buildLua (finalAttrs: { buildLua { pname = "twitch-chat"; version = "0-unstable-2024-06-23"; Loading @@ -13,21 +13,14 @@ buildLua (finalAttrs: { 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 = "."; passthru.extraWrapperArgs = [ "--prefix" "PATH" ":" (lib.makeBinPath [ curl ]) ]; runtime-dependencies = [ curl ]; passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; Loading @@ -39,4 +32,4 @@ buildLua (finalAttrs: { license = lib.licenses.mit; maintainers = [ lib.maintainers.naho ]; }; }) }