giter8: limit platforms to those the jre supports

meta.platforms was absent rather than wrong, and check-meta only applies
the platform check when the attribute exists, so giter8 was offered on
every system including those with no jre.

Assisted-by: Claude Code (Claude Opus 5)
This commit is contained in:
Vladyslav Pekker
2026-08-13 17:58:32 -03:00
parent 92152802e2
commit 3f7178afe7

View File

@@ -67,5 +67,7 @@ stdenv.mkDerivation (finalAttrs: {
maintainers = [ lib.maintainers.agilesteel ];
changelog = "https://github.com/foundweekends/giter8/releases/tag/v${version}";
mainProgram = "g8";
# a jar plus a launcher wrapper, so it runs wherever the jre does
platforms = jre.meta.platforms;
};
})