3
0
Fork 0
forked from mirrors/nixpkgs

mpv: allow scripts to add wrapper args

This commit is contained in:
apfelkuchen06 2023-03-07 01:53:06 +01:00
parent 16818343f1
commit 481f02f7dd

View file

@ -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)
;