mpv: Upgrade to -git to enable --fs-screen-name

This commit is contained in:
PapaTutuWawa 2021-08-24 15:59:00 +02:00
parent de389523d7
commit 0aed41b761
2 changed files with 19 additions and 5 deletions

View File

@ -1,4 +1,4 @@
{ config, pkgs, modulesPath, lib, fetchGit, ... }:
{ config, pkgs, modulesPath, lib, fetchGit, fetchFromGitHub, ... }:
{
imports = [
@ -26,8 +26,20 @@
})
# Simple overrides
(final: prev: {
mpv = prev.wrapMpv prev.mpv-unwrapped {
(final: prev: let
# NOTE: For some reason --fs-screen-name and --screen-name are not in
# 0.33.1. So wait and then remove this.
mpv-git = prev.mpv-unwrapped.overrideAttrs (old: {
version = "0.34.0";
src = builtins.fetchGit {
url = "https://github.com/mpv-player/mpv.git";
ref = "master";
rev = "0b56e1c00a57fdb767674462c299a5c973a9e373";
};
patches = [];
});
in {
mpv = prev.wrapMpv mpv-git {
# Prevent the need for prefixing mpv with DRI_PRIME=1
extraMakeWrapperArgs = [
"--set" "DRI_PRIME" "1"

View File

@ -12,7 +12,9 @@ let
video-sync = "display-resample";
interpolation = "";
tscale = "oversample";
fs-screen = 0; # Make mpv pop up on the primary screen
# TODO: Make those two configurable
screen-name = "C27F398";
fs-screen-name = "C27F398"; # Make mpv pop up on the primary screen
} // additional;
in {
config = {