diff options
author | nicoo <nicoo@mur.at> | 2023-12-24 11:07:38 +0000 |
---|---|---|
committer | nicoo <nicoo@mur.at> | 2023-12-24 11:15:43 +0000 |
commit | 764f54631c8fd60ffa965dc8065124353fa1c965 (patch) | |
tree | 0e077439307366de497e7c859e1b85f1e4ff025c /pkgs/applications/video/mpv/scripts/default.nix | |
parent | f203a40a13c16b76b1937f23cdbaa478a97549af (diff) |
mpvScripts: use `overrideAttrs` instead of `override`
Diffstat (limited to 'pkgs/applications/video/mpv/scripts/default.nix')
-rw-r--r-- | pkgs/applications/video/mpv/scripts/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/applications/video/mpv/scripts/default.nix b/pkgs/applications/video/mpv/scripts/default.nix index c4210a0ecf1e1..d1f35882afb1f 100644 --- a/pkgs/applications/video/mpv/scripts/default.nix +++ b/pkgs/applications/video/mpv/scripts/default.nix @@ -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 |