mpv: Upgrade to -git to enable --fs-screen-name
This commit is contained in:
parent
de389523d7
commit
0aed41b761
@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, modulesPath, lib, fetchGit, ... }:
|
{ config, pkgs, modulesPath, lib, fetchGit, fetchFromGitHub, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
@ -26,8 +26,20 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
# Simple overrides
|
# Simple overrides
|
||||||
(final: prev: {
|
(final: prev: let
|
||||||
mpv = prev.wrapMpv prev.mpv-unwrapped {
|
# 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
|
# Prevent the need for prefixing mpv with DRI_PRIME=1
|
||||||
extraMakeWrapperArgs = [
|
extraMakeWrapperArgs = [
|
||||||
"--set" "DRI_PRIME" "1"
|
"--set" "DRI_PRIME" "1"
|
||||||
|
@ -12,7 +12,9 @@ let
|
|||||||
video-sync = "display-resample";
|
video-sync = "display-resample";
|
||||||
interpolation = "";
|
interpolation = "";
|
||||||
tscale = "oversample";
|
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;
|
} // additional;
|
||||||
in {
|
in {
|
||||||
config = {
|
config = {
|
||||||
|
Loading…
Reference in New Issue
Block a user