mpv.tests.mpv-scripts-should-not-collide: add opt-out mechanism, use on modernx-zydezu
This commit is contained in:
@@ -121,6 +121,8 @@ symlinkJoin {
|
||||
(lib.filterAttrs (key: script: (builtins.tryEval (lib.isDerivation script)).success))
|
||||
# filters "override" "overrideDerivation" "recurseForDerivations"
|
||||
(lib.filterAttrs (key: script: lib.isDerivation script))
|
||||
# filters mpv scripts that opt out of this check
|
||||
(lib.filterAttrs (key: script: !(script.passthru.dontCollideCheck or false)))
|
||||
# replaces unfree and meta.broken scripts with decent placeholders
|
||||
(lib.mapAttrsToList (
|
||||
key: script:
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
fetchFromGitHub,
|
||||
installFonts,
|
||||
makeFontsConf,
|
||||
mpvScripts,
|
||||
nix-update-script,
|
||||
}:
|
||||
buildLua (finalAttrs: {
|
||||
@@ -30,6 +31,9 @@ buildLua (finalAttrs: {
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
# FIXME?: collides with mpvScripts.modernx
|
||||
passthru.dontCollideCheck = lib.hasAttr "modernx" mpvScripts;
|
||||
|
||||
meta = {
|
||||
description = "Modern OSC UI replacement for MPV that retains the functionality of the default OSC";
|
||||
changelog = "https://github.com/zydezu/ModernX/releases/tag/${finalAttrs.version}";
|
||||
|
||||
Reference in New Issue
Block a user