diff --git a/flake.nix b/flake.nix index 895acbf..6b34069 100644 --- a/flake.nix +++ b/flake.nix @@ -47,21 +47,11 @@ overlays.default = final: prev: let newScripts = packages.packages.${prev.system}; in rec { - mpv-unwrapped = prev.mpv-unwrapped.overrideAttrs (oldAttrs: - if oldAttrs ? wafConfigureFlags - then { - wafConfigureFlags = oldAttrs.wafConfigureFlags ++ [ - "--confloaddir=/etc/mpv" - ]; - } - else if oldAttrs ? mesonFlags - then { - mesonFlags = oldAttrs.mesonFlags ++ [ - "-Dsysconfdir=/etc" - ]; - } - else oldAttrs - ); + mpv-unwrapped = prev.mpv-unwrapped.overrideAttrs (oldAttrs: { + wafConfigureFlags = oldAttrs.wafConfigureFlags ++ [ + "--confloaddir=/etc/mpv" + ]; + }); mpv = prev.wrapMpv mpv-unwrapped { scripts = builtins.attrValues newScripts; };