Locally replacing renamed package

Hello!

Recently, lzma in nixpkgs was renamed into xz. This change however breaks a number of things in my system, which I cannot unfortunately fix that easily. How do I make lzma a system-wide alias to xz?

I tried to set nixpkgs.config.packageOverrides = pkgs: { lzma = pkgs.xz; }; and a similar thing with an overlay, but neither of these work. nix-shell -p lzma still fails with the error error: 'lzma' has been renamed to/replaced by 'xz'.