I got this message after switching to a newer nixpkgs version (79d3ca08920364759c63fd3eb562e99c0c17044a 2022-09-25)
error: 'mpv-with-scripts' has been renamed to/replaced by 'self.wrapMpv'
I’m quite puzzled by this message, should I use wrapMpv instead of mpv-with-scripts? That’s super weird, and I think this kind of message should be improved… Or the new package name changed.
The old alias was mpv-with-scripts = self.wrapMpv self.mpv-unwrapped { }; So you can just use (wrapMpv mpv-unwrapped { }).
I guess previously it was meant to be used as (mpv-with-scripts.override { scripts = [ … ]; }) but now you are supposed to do (wrapMpv mpv-unwrapped { scripts = [ … ]; }).
But since you do not pass any scripts, you should be able to just use mpv directly:
Would be nice if you could correct the error message, if you feel like it:
Since the old mpv-with-scripts alias was the same as the mpv attribute in all-packages.nix is now, recommending to replace it with mpv will probably be safe.