mpv: drop old wrapMpv compatibility (#6024)

wrapMpv doesn't exist anymore for a while.
This commit is contained in:
Sandro 2025-02-17 10:28:26 +01:00 committed by GitHub
parent 662fa98bf4
commit 30b9cd6f1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,10 +55,8 @@ let
mpvPackage = if cfg.scripts == [ ] then
cfg.package
else if hasAttr "wrapMpv" pkgs then
pkgs.wrapMpv pkgs.mpv-unwrapped { scripts = cfg.scripts; }
else
pkgs.mpv.override { scripts = cfg.scripts; };
pkgs.mpv.override { inherit (cfg) scripts; };
in {
options = {
@ -69,7 +67,7 @@ in {
type = types.package;
default = pkgs.mpv;
example = literalExpression
"pkgs.wrapMpv (pkgs.mpv-unwrapped.override { vapoursynthSupport = true; }) { youtubeSupport = true; }";
"pkgs.mpv-unwrapped.wrapper { mpv = pkgs.mpv-unwrapped.override { vapoursynthSupport = true; }; youtubeSupport = true; }";
description = ''
Package providing mpv.
'';