miku: Override mpv to prefix with DRI_PRIME

This commit is contained in:
PapaTutuWawa 2021-08-23 14:19:59 +02:00
parent 1b64ecf4d7
commit 429a4c1eef

View File

@ -26,6 +26,7 @@ in {
# sha256 = "0r2pcc6sjxmhg1xxk23648wrwccv2c5v44cfwglx35az5y0hmr1f";
#}))
# Steam overlay
(final: prev:
let
# NOTE: This is a really messy solution
@ -48,6 +49,16 @@ in {
steamcmd = final.steamPackages.steamcmd;
})
# Simple overrides
(final: prev: {
mpv = prev.wrapMpv prev.mpv-unwrapped {
# Prevent the need for prefixing mpv with DRI_PRIME=1
extraMakeWrapperArgs = [
"--set" "DRI_PRIME" "1"
];
};
})
customPkgs
];