mpv: fix package if wrapMpv not found

`wrapMpv` was removed from nixpkgs since this PR:
https://github.com/NixOS/nixpkgs/pull/304349

Co-authored-by: Mario Rodas <marsam@users.noreply.github.com>
This commit is contained in:
Mathis H 2024-06-11 21:35:34 +00:00 committed by GitHub
parent 3d65009eff
commit 892f76bd0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,8 +55,10 @@ let
mpvPackage = if cfg.scripts == [ ] then
cfg.package
else if hasAttr "wrapMpv" pkgs then
pkgs.wrapMpv pkgs.mpv-unwrapped { scripts = cfg.scripts; }
else
pkgs.wrapMpv pkgs.mpv-unwrapped { scripts = cfg.scripts; };
pkgs.mpv.override { scripts = cfg.scripts; };
in {
options = {