Repository navigation
Block unsupported applications in Yukimi's catalog - #129
Merged
Merged
Conversation
Owner
Author
|
Re-pinned Sidestep to Revalidated on wx-workstation against that Sidestep:
🤖 Generated with Claude Code |
bitemyapp
force-pushed
the
codex/yukimi-platform-catalog
branch
from
October 29, 2026 06:16
0b4f5be to
1893d21
Compare
Instantiating every catalog package on each rebuild took a reference Aizome system's evaluation from 8.6 to 15.9 s of CPU and its peak memory from 2.1 to 3.7 GB. It also met Nixpkgs' policy, so systems refusing unfree packages called Chrome, Discord, Steam and the rest "cannot be evaluated" instead of saying unfree software isn't allowed. Systems now read metadata only, which costs about 0.2 GB. Wrappers whose metadata claims more than their dependencies support list their platforms in the catalog: Steam and Heroic bring 32-bit x86 libraries, Lutris the x86-only libstrangle. Lutris is marked unfree, as Nixpkgs' lutris includes Steam's runtime. The application-platforms check resolves both catalogs from metadata, as systems do, and again with every package instantiated, for x86 and ARM. It fails when metadata offers something that doesn't instantiate, or when an application needs unfree packages without being marked unfree. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolving Genkan's catalog read the packages of every entry, so each installation and rebuild fetched and evaluated the ai-apps, omp, Superluminal and Tracy flakes and two more Nixpkgs revisions, even for Aizome with Firefox alone. From a fresh store that was ten more flake sources, 0.8 GB more in the live session's memory and 7 s more evaluation, and a GitHub outage could fail an installation over apps it never chose. Entries from other flakes now list the systems they install on, and systems decide them from that list alone. On that reference evaluation the system fetches exactly the sources main does, with peak memory and allocations within 1% of main's. Genkan's tests require the list on every entry with a source. Only checks read their packages: the application-platforms check makes the other flakes' packages abort a system's evaluation if read, and still instantiates everything to catch a list that offers what can't install. The resolver now follows the Nixpkgs the packages come from: where it allows broken or unsupported packages, systems are offered them, as it would install them. The catalog's own platforms lists still apply. The check takes Sekka's packages from the per-system definition in nix/components.nix that systems use, and requires the catalog's Sekka-source entries to match it, so new ones are covered. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
checks.application-platforms allowed unsupported packages in the system's Nixpkgs and in applicationPkgs at once, so it passed whether Genkan's catalog followed applicationPkgs' configuration or the system's. On installed systems the two differ: the flake template builds applicationPkgs with allowUnfree alone, whatever configuration.nix sets in nixpkgs.config, so a catalog following the system's would offer packages that applicationPkgs refuses to install. Two ARM variants now each allow unsupported packages in only one of them, and Discord must be offered by exactly the catalog that follows it: Yukimi's own catalog the system's Nixpkgs, Genkan's applicationPkgs. The comments no longer say that every entry with a source comes from another flake, since Kakehashi is Sekka's own, or that the check's ARM Sekka packages are the ones systems get. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bitemyapp
force-pushed
the
codex/yukimi-platform-catalog
branch
from
November 8, 2026 19:19
07c431d to
d02c454
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Yukimi's curated app cards offered Discord on ARM Linux even though its pinned package supports only x86 Linux and ARM macOS. Installing it made the system rebuild fail. Package search already checked platform metadata, but catalog cards did not.
Resolve Yukimi's own catalog and Genkan's catalog against the target platform. For Nixpkgs packages, systems check platform metadata, broken or missing packages and required applications. They follow the policy of the Nixpkgs the packages come from: where it sets
allowBrokenorallowUnsupportedSystem, those packages are offered, as that Nixpkgs would install them. Yukimi's own catalog follows the system's Nixpkgs; Genkan's followsapplicationPkgs, which installed systems configure apart fromnixpkgs.config. This does not build catalog applications or relax Nixpkgs policy.Genkan's entries with a
source(the AI assistants, oh-my-pi, Superluminal, Tracy, Uta and Kakehashi) now list the systems they install on asplatforms. Systems decide those entries from the list alone and never read their packages. All but Kakehashi, Sekka's own, come from other repositories. Reading their packages made every installation and rebuild fetch and evaluate the ai-apps, omp, Superluminal and Tracy flakes, plus two more Nixpkgs revisions, even for Aizome with Firefox alone: from a fresh store, ten more flake sources, 0.8 GB more store data (which a live session keeps in memory) and 7 s more evaluation. On that reference evaluation the system now fetches exactly the sources main does, and its peak memory (2.4 GB) and allocations are within 1% of main's. Genkan's unit tests require aplatformslist on every entry with asource. The lists nameaarch64-linuxwherever the source instantiates there today, which is every entry but Superluminal, although Sekka itself ships only x86 systems.Systems read metadata only. Instantiating every catalog package on each rebuild took a reference Aizome system's evaluation from 8.6 to 15.9 s of CPU and its peak memory from 2.1 to 3.7 GB. It also met Nixpkgs' policy, so a system refusing unfree packages labelled them "cannot be evaluated" instead of saying unfree software isn't allowed.
Some wrappers' metadata claims more than their dependencies support; these list their
platformsin the catalog. Steam and Heroic bring 32-bit x86 libraries, and Lutris brings the x86-only libstrangle. Lutris is now markedunfree, since Nixpkgs'lutrisincludes Steam's runtime.checks.x86_64-linux.application-platformsresolves both catalogs for x86 and ARM the way systems do, with the packages of entries with asourceset to abort the evaluation if read. It then resolves them again with every package read and instantiated, through an internalprograms.yukimi.instantiateCatalogsoption. It fails when:platformslist;unfree;applicationPkgs; in each, exactly the catalog that follows it offers Discord, and neither offers Steam, whose own list says x86 only.The check takes Sekka's packages from
catalog.packagesForinnix/components.nix, the definition that also gives systems theirs, and requires the catalog's Sekka-source entries to match it.Yukimi displays unavailable apps with a reason and disables installation, including in package details that route through a catalog program. The helper independently rejects new unavailable catalog selections before writing configuration, while still allowing existing selections to be removed. Older system metadata remains compatible; resolved availability takes effect after a successful system update.
Integration with current main
Rebased onto
mainat462dd31fon November 8, 2026, preserving the four PR commits. The resolution keeps Uta'spreload: falsepolicy and T3 Code's catalog entry, gives both entries their x86 and ARM platform lists, and includes Uta in the sharedcatalog.packagesFordefinition. The platform check explicitly verifies that both entries are offered without reading their packages and that Uta remains excluded from preloading. The lockfile, release workflows and Uta package definition are unchanged.Changes from review
sourceare now decided by staticplatformslists, and the check aborts if a system evaluation reads their packages.allowBrokenandallowUnsupportedSystem. It now follows the configuration of the Nixpkgs each catalog's packages come from.catalog.packagesForand checks the names.sourcecomes from another flake, or that the check's ARM Sekka packages are the ones systems get (systems get the x86 set today).Rebase validation — November 8, 2026
Rebased head:
d02c454d, based onmain462dd31f. These are component checks:nix build .#checks.x86_64-linux.application-platforms --no-link --no-update-lock-filepassed, including the added Uta and T3 Code assertions on x86 and ARM.checks.x86_64-linux.applications.drvPathandchecks.x86_64-linux.uta-installation.drvPathevaluated successfully. Their Nix assertions passed; application packages were not built for these two checks.nix develop -c cargo test --locked --manifest-path apps/yukimi/Cargo.toml: 136 passed, one existing network test ignored.nix develop .#aizome -c cargo test --locked --manifest-path desktop/aizome/Cargo.toml -p aizome-yukimi: 89 passed, one existing timing test ignored, including the headless unavailable-card and package-details tests and golden tests.nix develop -c cargo test --locked --manifest-path installer/genkan/rust/Cargo.toml --lib applications::: four passed. No storage or disk tests ran on the host.git diff --checkpassed. The working tree is clean.No ISO build, VM installation, hardware validation, full flake check, or helper rejection end-to-end test was performed for this rebase. Earlier VM/build/performance results below describe their original revisions.
Earlier validation — before the rebase
All on wx-workstation, on the branch merged with main d717500 (#131 removed the GTK interface, so this PR's changes to it are dropped). These are component checks.
Final tree:
cargo metadata --lockedpasses. 127 tests passed and one existing network test was ignored. Clippy with-D warningsis clean.cargo metadata --lockedpasses. The application tests pass (3, including the newplatformsrequirement), run alone with--lib applications::so that no storage or disk tests run on the host. rustfmt is clean onapplications.rs.checks.x86_64-linux.application-platformsandchecks.x86_64-linux.applicationsbuild.nix/components.nix;applicationPkgs'.git diff --checkpasses.From earlier revisions of this branch (this round changes only Nix files, docs and one Genkan test message). The Aizome package,
#yukimi.helperandchecks.x86_64-linux.yukimi-tatamihave the same derivations on the final tree as on 6b0bee6, so their results carry over; the final run rebuilt nothing for them.#yukimi.helperbuilds; its check phase runs the Yukimi tests.checks.x86_64-linux.yukimi-tatami(Discover in a VM) passes. It cancels authentication, so it doesn't reach the helper's new validation.specialArgsand modules of Genkan's flake template. It doesn't generate a template flake. From a fresh store and fetcher cache, it fetched the same URLs as main, with 1.5 GB of store each, and took 13.3 s and 2.44 GB against main's 13.6 s and 2.45 GB. Warm, peak memory was 2.38–2.41 GB against main's 2.37–2.39 GB, with allocations within 1%. An independent cold rerun matched.packages.x86_64-linux.iso.unfreeflag.Not tested
nix flake checkhasn't run on this branch's final tree. Nightly CI runs it after merge.yukimi-systemunit tests.Follow-ups
🤖 Generated with Claude Code