Skip to content

mcpx package: absorb dezren39/nix's platform checkPhase adaptations into pkgs/mcpx/package.nix #4798

Closed

Description

@dezren39

dezren39/nix's flake currently rewrites this package's checkPhase from downstream (guarded replaceStrings in its mcpx override): on Linux it adds '-p 1' (serial package tests so the timing-sensitive retention/reopen test is not starved), on darwin it adds a -skip list of the 20 Linux-only takeover/handoff tests (#418). The coupling is fragile by design — the package's own comment documents that the exact 'go test -timeout 30m $pkgs' line is load-bearing downstream, and nix carries a flake check (mcpx-darwin-skip) whose only job is policing the coupling.\n\nPer Drew (2026-11-03): the adaptations belong in the package itself, as platform conditionals. This issue is step 1 of a three-repo simplification:\n1. (this repo) package.nix constructs its checkPhase with the platform flags directly; the downstream-coupling comment is replaced.\n2. (developing-today/opencode) expose the mcpx daemon modules (NixOS / home-manager / darwin) as flake outputs, package defaulting to the fork's mcpx build.\n3. (dezren39/nix) drop the opencode + mcpx-src inputs (consume everything through the openchamber input), drop the private mcpx build, the checkPhase rewrites, the mcpx-darwin-skip check, the opencode mcpx override, and modules/mcpx — services.mcpx comes from the fork's module, so the daemon and the mcpx bundled in opencode are one build by construction.

Activity

  1. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    Completed by #4799 (merged): pkgs/mcpx/package.nix now constructs its checkPhase command with the platform adaptations in-package (Linux -p 1, darwin takeover-test -skip), and the buildcheck guard was updated to match. Steps 2-3 continue in developing-today-forks/opencode#1502 and dezren39/darwin-nix#1384; the module-origin piece is #4801.

  2. added
    design/mcpx-consolidationDesign: mcpx-consolidation - all issues of this effort carry it
    epic/mcpxEpic: mcpx - all issues of this effort carry it
    on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    design/mcpx-consolidationDesign: mcpx-consolidation - all issues of this effort carry itepic/mcpxEpic: mcpx - all issues of this effort carry it

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions