From ded65798a7f38eb61d406b4e067d1d9e554b8925 Mon Sep 17 00:00:00 2001 From: NAHO <90870942+trueNAHO@users.noreply.github.com> Date: Sat, 19 Apr 2025 01:25:13 +0200 Subject: [PATCH] mpvScripts.buildLua: fix buildLua's runtime-dependencies argument Fix buildLua's runtime-dependencies argument to prevent the following nasty error, introduced in commit e67cceafda6d ("mpvScripts.twitch-chat: refactor using buildLua's `runtime-dependencies`"): error: expected a list but found a set: { [...] } Fixes: e2596ac22d42 ("mpvScripts.buildLua: add a `runtime-dependencies` option") --- pkgs/applications/video/mpv/scripts/buildLua.nix | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/pkgs/applications/video/mpv/scripts/buildLua.nix b/pkgs/applications/video/mpv/scripts/buildLua.nix index 822950ffc9b7..b21df5478a3e 100644 --- a/pkgs/applications/video/mpv/scripts/buildLua.nix +++ b/pkgs/applications/video/mpv/scripts/buildLua.nix @@ -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 = {