Skip to content

feat: nix flake wrapping the release binaries, with-omp bundle#13

Merged
atyrode merged 1 commit into
mainfrom
feat/nix-flake
Jul 16, 2026
Merged

feat: nix flake wrapping the release binaries, with-omp bundle#13
atyrode merged 1 commit into
mainfrom
feat/nix-flake

Conversation

@atyrode

@atyrode atyrode commented Jul 16, 2026

Copy link
Copy Markdown
Owner

Closes #2. The three-channel install story:

  1. Release binary — headline: one static file, curl+tar one-liner in the README
  2. Nixnix run github:atyrode/code and #with-omp (bundles pinned oh-my-pi v17.0.1 using the dotfiles' proven dynamic-linker packaging; omp exposed alongside for omp login)
  3. go install — one line for the Gophers

The flake wraps the published goreleaser binaries (fetchurl) instead of building from source: instant nix run, no vendorHash maintenance, byte-identical artifact across channels. scripts/bump-flake-pin.sh <tag> repoints the self-pin after each release — added to the AGENTS.md release flow.

Verified on x86_64-linux: both packages build, bundled omp executes (omp/17.0.1), nix run works. Note the pin currently serves v0.1.0 (the latest release) — it naturally lacks code generate until v0.2.0 is tagged and the pin bumped.

🤖 Generated with Claude Code

@atyrode
atyrode enabled auto-merge (squash) July 16, 2026 23:02
Three install channels, ordered by reach in the README: release binary
(headline), Nix, go install.

- flake packages wrap the goreleaser RELEASE binaries via fetchurl — no
  source build, instant `nix run`, no vendorHash churn, byte-identical
  artifact on every channel. nix/code.nix is the self-pin;
  scripts/bump-flake-pin.sh repoints it after each release (documented in
  AGENTS.md as part of the release flow).
- packages.with-omp bundles a pinned oh-my-pi (v17.0.1, the dotfiles'
  proven dynamic-linker packaging) wrapped onto code's PATH, with omp
  itself exposed alongside for `omp login` — Nix bundles the binary,
  not the credentials, and the README says so.
- overlays.default for downstream flakes (the dotfiles keep their own
  update-pins pin and do NOT consume this flake).

Verified locally: nix build .#code + .#with-omp on x86_64-linux; bundled
omp runs (omp/17.0.1); nix run serves the pinned release.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@atyrode
atyrode merged commit a4b6df3 into main Jul 16, 2026
1 check passed
@atyrode
atyrode deleted the feat/nix-flake branch July 17, 2026 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nix flake: package + omp-wrapped variant

1 participant