Tracking: nixpkgs GUI apps whose metadata we cannot harvest from either source #6

Open
opened 2026-11-28 17:45:27 -06:00 by OpenWebUI · 0 comments
Member

Tracking: nixpkgs GUI apps whose metadata we cannot harvest from either source

Context: the catalog generator (pk-catalog.nix) is now a Flathub-primary + nixpkgs-build-output-harvest hybrid (committed b764672, wired into pk-managed.nix, nixos-config lock bumped 77628c0). Flathub's appstream.xml.gz is the richer primary source; the nixpkgs harvest (metainfo found in each package's build output, run through appstreamcli compose) fills what Flathub lacks. Join is gated on the nixpkgs candidate universe, so Flathub-only apps (flatpak-only ghosts) are dropped silently. One component per Package: (Flathub wins). This issue tracks the residual gap: nixpkgs GUI apps that have neither usable build-output metainfo nor a Flathub counterpart.

Drop / log rule (final)

  • App in Flathub but NOT in nixpkgs -> drop entirely, no log (flatpak-only ghosts).
  • No view-only entries: anything not installable as a nix package is dropped.
  • The ONLY thing we log is a nixpkgs GUI app that falls through BOTH sources -> gap.tsv + this issue.

Measured (this nixpkgs rev, GUI-candidate universe)

  • nixpkgs GUI-candidate universe: 16,097 attrs (pname-deduped).
  • Covered by a Flathub counterpart: 3,110 (enriched primarily from Flathub).
  • No Flathub counterpart: 12,988 (must self-describe via build-output metainfo or fall into the gap).
  • Flathub catalog joined: ~4,871 components, but 553 desktop-application (plus addons/runtimes) Flathub-only entries are dropped silently per the rule.

Confirmed no-metainfo flagship cases (Flathub saves them)

Firefox, Google Chrome, VS Code, and many Electron apps ship no *.appdata.xml/*.metainfo.xml in their build output (Firefox's wrapped share/ has only applications+icons). appstreamcli compose is driven by metainfo, not .desktop, so these contribute ZERO components from the nixpkgs harvest. They are NOT gaps because Flathub covers them richly (icon + screenshots + keywords) via the curated bridge map (pk-catalog-curated.tsv).

Real gap population

A candidate is a gap only if it is BOTH (a) in the 12,988 no-Flathub set AND (b) its own build output has no usable metainfo. gap.tsv is the exact, build-time artifact listing these (emitted by the catalog derivation).

Open refinement: candidate universe is over-inclusive

The current universe keys on meta.mainProgram, which pulls in pure CLI tools (dialog, ltrace, scponly, gcrane, kubectl-graph, ruby) that are NOT GUI apps and contradict the GUI-only scope, and massively bloats the harvest (16k closures) and disk. Toolkit-name signal among the 12,988 no-Flathub set is almost nil (gtk 25, qt 79, kde 5), confirming most are CLI. The correct GUI detector is "build output contains share/applications/*.desktop" (only knowable at build time) OR narrowing via platforms/category heuristics. Proposed follow-up: restrict the harvest universe to apps with a .desktop entry to cut cost and match scope.

Operational note (disk)

The unrestricted harvest pulls ~16k candidate output closures as build inputs (hundreds of GB) -> must run in CI with ample disk and publish to cache; laptops fetch only the final nixpkgs.yml + icon tree. A dev box here (23 GB free) cannot hold it.

See also #4 (fork backend NULL asserts), #5 (system-sources-refresh auth popup).

## Tracking: nixpkgs GUI apps whose metadata we cannot harvest from either source Context: the catalog generator (`pk-catalog.nix`) is now a **Flathub-primary + nixpkgs-build-output-harvest** hybrid (committed `b764672`, wired into `pk-managed.nix`, nixos-config lock bumped `77628c0`). Flathub's `appstream.xml.gz` is the richer primary source; the nixpkgs harvest (metainfo found in each package's build output, run through `appstreamcli compose`) fills what Flathub lacks. Join is gated on the nixpkgs candidate universe, so Flathub-only apps (flatpak-only ghosts) are dropped silently. One component per `Package:` (Flathub wins). This issue tracks the residual gap: nixpkgs GUI apps that have **neither** usable build-output metainfo **nor** a Flathub counterpart. ### Drop / log rule (final) - App in Flathub but NOT in nixpkgs -> drop entirely, no log (flatpak-only ghosts). - No view-only entries: anything not installable as a nix package is dropped. - The ONLY thing we log is a nixpkgs GUI app that falls through BOTH sources -> `gap.tsv` + this issue. ### Measured (this nixpkgs rev, GUI-candidate universe) - nixpkgs GUI-candidate universe: **16,097** attrs (pname-deduped). - Covered by a Flathub counterpart: **3,110** (enriched primarily from Flathub). - No Flathub counterpart: **12,988** (must self-describe via build-output metainfo or fall into the gap). - Flathub catalog joined: ~4,871 components, but **553 desktop-application** (plus addons/runtimes) Flathub-only entries are dropped silently per the rule. ### Confirmed no-metainfo flagship cases (Flathub saves them) Firefox, Google Chrome, VS Code, and many Electron apps ship **no** `*.appdata.xml`/`*.metainfo.xml` in their build output (Firefox's wrapped `share/` has only `applications`+`icons`). `appstreamcli compose` is driven by metainfo, not `.desktop`, so these contribute ZERO components from the nixpkgs harvest. They are NOT gaps because Flathub covers them richly (icon + screenshots + keywords) via the curated bridge map (`pk-catalog-curated.tsv`). ### Real gap population A candidate is a gap only if it is BOTH (a) in the 12,988 no-Flathub set AND (b) its own build output has no usable metainfo. `gap.tsv` is the exact, build-time artifact listing these (emitted by the catalog derivation). ### Open refinement: candidate universe is over-inclusive The current universe keys on `meta.mainProgram`, which pulls in pure CLI tools (dialog, ltrace, scponly, gcrane, kubectl-graph, ruby) that are NOT GUI apps and contradict the GUI-only scope, and massively bloats the harvest (16k closures) and disk. Toolkit-name signal among the 12,988 no-Flathub set is almost nil (gtk 25, qt 79, kde 5), confirming most are CLI. The correct GUI detector is "build output contains share/applications/*.desktop" (only knowable at build time) OR narrowing via `platforms`/category heuristics. Proposed follow-up: restrict the harvest universe to apps with a `.desktop` entry to cut cost and match scope. ### Operational note (disk) The unrestricted harvest pulls ~16k candidate output closures as build inputs (hundreds of GB) -> must run in CI with ample disk and publish to cache; laptops fetch only the final `nixpkgs.yml` + icon tree. A dev box here (23 GB free) cannot hold it. See also #4 (fork backend NULL asserts), #5 (system-sources-refresh auth popup).
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Public/packagekit-flake#6
No description provided.