mpvScripts.buildLua: fix buildLua's runtime-dependencies argument

Fix buildLua's runtime-dependencies argument to prevent the following
nasty error, introduced in commit e67cceafda ("mpvScripts.twitch-chat:
refactor using buildLua's `runtime-dependencies`"):

    error: expected a list but found a set: { [...] }

Fixes: e2596ac22d ("mpvScripts.buildLua: add a `runtime-dependencies` option")
This commit is contained in:
NAHO
2025-04-19 01:39:15 +02:00
parent b024ced1aa
commit ded65798a7
@@ -81,14 +81,12 @@ lib.makeOverridable (
inherit scriptName;
}
// lib.optionalAttrs (runtime-dependencies != [ ]) {
extraWrapperArgs =
[
"--prefix"
"PATH"
":"
]
++ (map lib.makeBinPath runtime-dependencies)
++ args.passthru.extraWrapperArgs or [ ];
extraWrapperArgs = [
"--prefix"
"PATH"
":"
(lib.makeBinPath runtime-dependencies)
] ++ args.passthru.extraWrapperArgs or [ ];
};
meta =
{