mpv: allow scripts to add wrapper args
This commit is contained in:
parent
16818343f1
commit
481f02f7dd
|
@ -18,6 +18,7 @@ let
|
|||
# expected to have a `scriptName` passthru attribute that points to the
|
||||
# name of the script that would reside in the script's derivation's
|
||||
# `$out/share/mpv/scripts/`.
|
||||
# A script can optionally also provide an `extraWrapperArgs` passthru attribute.
|
||||
scripts ? [],
|
||||
extraUmpvWrapperArgs ? []
|
||||
}:
|
||||
|
@ -49,6 +50,8 @@ let
|
|||
# attribute of the script derivation from the `scripts`
|
||||
"--script=${script}/share/mpv/scripts/${script.scriptName}"
|
||||
]
|
||||
# scripts can also set the `extraWrapperArgs` passthru
|
||||
++ (script.extraWrapperArgs or [])
|
||||
) scripts
|
||||
)) ++ extraMakeWrapperArgs)
|
||||
;
|
||||
|
|
Loading…
Reference in a new issue