mirror of
https://github.com/nix-community/home-manager
synced 2024-11-22 12:43:14 +00:00
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
1 changed files with 3 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue