mpv: Use youtube-dl’s default format

mpv overrides my custom format with `bestvideo+bestaudio/best`
(youtube-dl upstream default). This applies a patch (from upstream) that
adds a magic value to remove the override. Since home-manager’s mpv
module only supports overriding the mpv package in 21.05, it is done in
the overlay.

Fixes #39.
This commit is contained in:
Simon Bruder 2021-03-01 17:30:58 +01:00
parent fd11348b56
commit eccea38759
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
2 changed files with 14 additions and 0 deletions

View file

@ -17,4 +17,15 @@ in
}; };
aria2_exporter = import srcs.aria2_exporter { pkgs = self; }; aria2_exporter = import srcs.aria2_exporter { pkgs = self; };
# FIXME: 21.05: Move to home-manager module package attribute
mpv-unwrapped = super.mpv-unwrapped.overrideAttrs (o: o // {
patches = [
# FIXME: 21.05: Remove since it has mpv 0.33
(super.fetchpatch {
url = "https://github.com/mpv-player/mpv/commit/43c13e5ea23230edca38426d4a9eed049a70890e.patch";
sha256 = "0g73ws36cs2hfzqck6xiaimj5yd5hz68b4wf3qayyv4nrf5sz02c";
})
];
});
} }

View file

@ -103,6 +103,9 @@ in
# Lossless screenshots # Lossless screenshots
screenshot-format = "png"; screenshot-format = "png";
# Use youtube-dls format configuration
ytdl-format = "ytdl";
}; };
bindings = { bindings = {