Extract Cloudflare CLI packaging into a standalone flake #356

Closed
opened 2026-10-17 08:12:17 +01:00 by nimmo · 2 comments
Owner

Extract the existing cf CLI package and smoke tests into a standalone cloudflare-cli.nix repository intended for forge.nimmog.uk, following the other standalone package repositories.

Local package extraction is complete in commit a3bb383:

  • Exposes default/named packages, overlay, development shell and formatter.
  • Preserves beta.17 and the exact package derivation from the accepted nixos-config package.
  • Stores minimal versioned npm release metadata in package/release.json; no mutable npm flake input remains.
  • Owns a transactional updater that refreshes release metadata and source together, runs the package checks, and restores both files on failure.
  • Includes native Sharp and local Miniflare Worker smoke tests plus updater rollback regressions.
  • Includes a GitLab CI configuration based on the existing Token TV Nix container. A runner must be assigned to the new project; no schedule/publication credentials have been configured.

Validation: standalone x86_64 nix flake check, package build, CLI version, ShellCheck, shfmt and nixfmt checks pass. ARM remains declared but not runtime-tested; evaluating it requires its import-from-derivation parser build. The extraction selects the same beta.17 package derivation as nixos-config. A disposable consumer checkout is testing the single-input integration without touching the live configuration checkout.

Remaining work:

  • Publish the new standalone package repository to forge.nimmog.uk.
  • Replace consumer release/source/pnpm2nix inputs with one cloudflare-cli input and remove the local package/update adapter.
  • Assign a GitLab runner and decide the release-update schedule.
  • Review and validate the consumer MR before deployment.

Immediate repair #354 / MR #355 remains separate. Nothing has been merged or deployed as part of extraction.

Extract the existing cf CLI package and smoke tests into a standalone `cloudflare-cli.nix` repository intended for forge.nimmog.uk, following the other standalone package repositories. Local package extraction is complete in commit `a3bb383`: - Exposes default/named packages, overlay, development shell and formatter. - Preserves beta.17 and the exact package derivation from the accepted nixos-config package. - Stores minimal versioned npm release metadata in package/release.json; no mutable npm flake input remains. - Owns a transactional updater that refreshes release metadata and source together, runs the package checks, and restores both files on failure. - Includes native Sharp and local Miniflare Worker smoke tests plus updater rollback regressions. - Includes a GitLab CI configuration based on the existing Token TV Nix container. A runner must be assigned to the new project; no schedule/publication credentials have been configured. Validation: standalone x86_64 `nix flake check`, package build, CLI version, ShellCheck, shfmt and nixfmt checks pass. ARM remains declared but not runtime-tested; evaluating it requires its import-from-derivation parser build. The extraction selects the same beta.17 package derivation as nixos-config. A disposable consumer checkout is testing the single-input integration without touching the live configuration checkout. Remaining work: - Publish the new standalone package repository to forge.nimmog.uk. - Replace consumer release/source/pnpm2nix inputs with one cloudflare-cli input and remove the local package/update adapter. - Assign a GitLab runner and decide the release-update schedule. - Review and validate the consumer MR before deployment. Immediate repair #354 / MR #355 remains separate. Nothing has been merged or deployed as part of extraction.
Author
Owner

The disposable single-input consumer integration now also passes full nix flake check. Vega and Lyra toplevel evaluation pass, and the selected CLI package derivation exactly matches the extracted beta.17 package. The cleanup removes local packaging and npm-specific adapters (363 deleted lines). These changes remain a local prototype; the live checkout is clean and still uses the published repair branch's configuration. Publication of the standalone repository and generation of the final remote consumer lock remain pending.

The disposable single-input consumer integration now also passes full `nix flake check`. Vega and Lyra toplevel evaluation pass, and the selected CLI package derivation exactly matches the extracted beta.17 package. The cleanup removes local packaging and npm-specific adapters (363 deleted lines). These changes remain a local prototype; the live checkout is clean and still uses the published repair branch's configuration. Publication of the standalone repository and generation of the final remote consumer lock remain pending.
Author
Owner

User authorized publication of the tested standalone package. Created public GitLab project https://forge.nimmog.uk/nimmo/cloudflare-cli.nix (project29), published main at a3bb383c8967ff8a8744b9b2e39787338c36492b, and verified the remote ref matches the local extraction. GitLab pipeline https://forge.nimmog.uk/nimmo/cloudflare-cli.nix/-/pipelines/4 was created; its check job is pending runner assignment. Local package/runtime/updater/format/lint validation already passed.

The standalone repository is now published; consumer input replacement remains a separate unpublished prototype. No host activation, deployment, or repair-MR merge was performed.

User authorized publication of the tested standalone package. Created public GitLab project https://forge.nimmog.uk/nimmo/cloudflare-cli.nix (project29), published `main` at `a3bb383c8967ff8a8744b9b2e39787338c36492b`, and verified the remote ref matches the local extraction. GitLab pipeline https://forge.nimmog.uk/nimmo/cloudflare-cli.nix/-/pipelines/4 was created; its check job is pending runner assignment. Local package/runtime/updater/format/lint validation already passed. The standalone repository is now published; consumer input replacement remains a separate unpublished prototype. No host activation, deployment, or repair-MR merge was performed.
nimmo closed this issue 2026-10-17 20:07:12 +01:00
Sign in to join this conversation.
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
nimmo/nixos-config#356
No description provided.