adjust mpv flags to work with 22.11 or 23.05
This commit is contained in:
parent
00f5e1d285
commit
3217f26b19
20
flake.nix
20
flake.nix
|
@ -47,11 +47,21 @@
|
||||||
overlays.default = final: prev: let
|
overlays.default = final: prev: let
|
||||||
newScripts = packages.packages.${prev.system};
|
newScripts = packages.packages.${prev.system};
|
||||||
in rec {
|
in rec {
|
||||||
mpv-unwrapped = prev.mpv-unwrapped.overrideAttrs (oldAttrs: {
|
mpv-unwrapped = prev.mpv-unwrapped.overrideAttrs (oldAttrs:
|
||||||
wafConfigureFlags = oldAttrs.wafConfigureFlags ++ [
|
if oldAttrs ? wafConfigureFlags
|
||||||
"--confloaddir=/etc/mpv"
|
then {
|
||||||
];
|
wafConfigureFlags = oldAttrs.wafConfigureFlags ++ [
|
||||||
});
|
"--confloaddir=/etc/mpv"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
else if oldAttrs ? mesonFlags
|
||||||
|
then {
|
||||||
|
mesonFlags = oldAttrs.mesonFlags ++ [
|
||||||
|
"-Dsysconfdir=/etc"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
else oldAttrs
|
||||||
|
);
|
||||||
mpv = prev.wrapMpv mpv-unwrapped {
|
mpv = prev.wrapMpv mpv-unwrapped {
|
||||||
scripts = builtins.attrValues newScripts;
|
scripts = builtins.attrValues newScripts;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue