feat: nix flake wrapping the release binaries, with-omp bundle#13
Merged
Conversation
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>
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.
Closes #2. The three-channel install story:
nix run github:atyrode/codeand#with-omp(bundles pinned oh-my-pi v17.0.1 using the dotfiles' proven dynamic-linker packaging;ompexposed alongside foromp login)go install— one line for the GophersThe 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 runworks. Note the pin currently serves v0.1.0 (the latest release) — it naturally lackscode generateuntil v0.2.0 is tagged and the pin bumped.🤖 Generated with Claude Code