Unverified Commit ded65798 authored by NAHO's avatar NAHO
Browse files

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

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

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

Fixes: e2596ac2 ("mpvScripts.buildLua: add a `runtime-dependencies` option")
parent b024ced1
Loading
Loading
Loading
Loading
+6 −8
Original line number Diff line number Diff line
@@ -81,14 +81,12 @@ lib.makeOverridable (
            inherit scriptName;
          }
          // lib.optionalAttrs (runtime-dependencies != [ ]) {
            extraWrapperArgs =
              [
            extraWrapperArgs = [
              "--prefix"
              "PATH"
              ":"
              ]
              ++ (map lib.makeBinPath runtime-dependencies)
              ++ args.passthru.extraWrapperArgs or [ ];
              (lib.makeBinPath runtime-dependencies)
            ] ++ args.passthru.extraWrapperArgs or [ ];
          };
        meta =
          {