mpv: override with ffmpeg-full

Fixes an issue where some mpv features like subtitle support were broken
due to not using ffmpeg-full.

An override is used instead of an overlay here to prevent having to
compile all packages that depend on mpv.
This commit is contained in:
Donovan Glover
2025-05-30 16:41:12 -04:00
parent c8792a9230
commit a652c40287

View File

@ -4,6 +4,19 @@
programs.mpv = { programs.mpv = {
enable = true; enable = true;
package = pkgs.mpv-unwrapped.wrapper {
mpv = pkgs.mpv-unwrapped.override {
ffmpeg = pkgs.ffmpeg-full;
};
scripts = with pkgs.mpvScripts; [
mpris
uosc
thumbfast
mpv-subtitle-lines
];
};
config = { config = {
fullscreen = true; fullscreen = true;
@ -27,13 +40,6 @@
"ctrl+f" = "script-binding subtitle_lines/list_subtitles"; "ctrl+f" = "script-binding subtitle_lines/list_subtitles";
"Del" = "run \"trash\" \"\${path}\"; playlist_next"; "Del" = "run \"trash\" \"\${path}\"; playlist_next";
}; };
scripts = with pkgs.mpvScripts; [
mpris
uosc
thumbfast
mpv-subtitle-lines
];
}; };
xdg.configFile."mpv/script-opts/uosc.conf".text = lib.concatStrings [ xdg.configFile."mpv/script-opts/uosc.conf".text = lib.concatStrings [