mpvScripts: use overrideAttrs instead of override

This commit is contained in:
nicoo 2023-12-24 11:07:38 +00:00
parent f203a40a13
commit 764f54631c

View File

@ -14,8 +14,8 @@ let
scriptPath = "share/mpv/scripts/${scriptName}";
fullScriptPath = "${drv}/${scriptPath}";
in drv.override { passthru.tests = unionOfDisjoints [
(drv.passthru.tests or {})
in drv.overrideAttrs (old: { passthru = (old.passthru or {}) // { tests = unionOfDisjoints [
(old.passthru.tests or {})
{
scriptName-is-valid = runCommand "mpvScripts.${name}.passthru.tests.scriptName-is-valid" {
@ -53,7 +53,7 @@ let
fi
'';
})
]; };
]; }; });
in
lib.recurseIntoAttrs