mpv.tests.mpv-scripts-should-not-collide: add opt-out mechanism, use on modernx-zydezu

This commit is contained in:
Peder Bergebakken Sundt
2026-07-14 16:31:23 +02:00
parent a622147fcb
commit 79806477f8
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -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}";