diff options
-rw-r--r-- | pkgs/applications/video/mpv/scripts/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/applications/video/mpv/scripts/default.nix b/pkgs/applications/video/mpv/scripts/default.nix index 2c310cd410b6b..158a7c491007b 100644 --- a/pkgs/applications/video/mpv/scripts/default.nix +++ b/pkgs/applications/video/mpv/scripts/default.nix @@ -84,13 +84,15 @@ let webtorrent-mpv-hook = callPackage ./webtorrent-mpv-hook.nix { }; }; - aliases = lib.optionalAttrs config.allowAliases { + aliases = { youtube-quality = throw "'youtube-quality' is no longer maintained, use 'quality-menu' instead"; # added 2023-07-14 }; in with lib; pipe scope [ (makeScope newScope) - (attrsets.unionOfDisjoint aliases) + (self: + assert builtins.intersectAttrs self aliases == {}; + self // optionalAttrs config.allowAliases aliases) recurseIntoAttrs ] |