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
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -4,6 +4,19 @@
programs.mpv = {
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 = {
fullscreen = true;
@ -27,13 +40,6 @@
"ctrl+f" = "script-binding subtitle_lines/list_subtitles";
"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 [