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:
parent
3d65009eff
commit
892f76bd0a
|
@ -55,8 +55,10 @@ let
|
||||||
|
|
||||||
mpvPackage = if cfg.scripts == [ ] then
|
mpvPackage = if cfg.scripts == [ ] then
|
||||||
cfg.package
|
cfg.package
|
||||||
|
else if hasAttr "wrapMpv" pkgs then
|
||||||
|
pkgs.wrapMpv pkgs.mpv-unwrapped { scripts = cfg.scripts; }
|
||||||
else
|
else
|
||||||
pkgs.wrapMpv pkgs.mpv-unwrapped { scripts = cfg.scripts; };
|
pkgs.mpv.override { scripts = cfg.scripts; };
|
||||||
|
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
|
|
Loading…
Reference in a new issue