Skip to content

nix: prune bun platform binaries from package#6735

Closed
ry2009 wants to merge 2 commits into
anomalyco:devfrom
ry2009:fix/nix-prune-bun-platform
Closed

nix: prune bun platform binaries from package#6735
ry2009 wants to merge 2 commits into
anomalyco:devfrom
ry2009:fix/nix-prune-bun-platform

Conversation

@ry2009

@ry2009 ry2009 commented Jan 3, 2026

Copy link
Copy Markdown
Contributor
  • Fixed the prune step so it actually works in Nix builds (copied .bun tree is read-only): nix/opencode.nix:96
    now chmod -R u+w "$bun_root" before the rm -rf.
  • Fixed the Nix interpolation bug by escaping shell ${...} expansions (''${...}) in nix/opencode.nix:99, so
    nix build doesn’t fail to parse.
  • Verified with a real nixos/nix Docker build for aarch64-linux: output went from ~4.2 GiB (baseline) down to
    2.8 GiB.

@rekram1-node

rekram1-node commented Jan 3, 2026

Copy link
Copy Markdown
Collaborator

is there an issue this fixes (if so can u link) or r u a nix user that noticed this?

@ry2009

ry2009 commented Jan 6, 2026

Copy link
Copy Markdown
Contributor Author

Saw an issue about ti and a nix user

@github-actions

github-actions Bot commented Mar 8, 2026

Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions Bot closed this Mar 8, 2026
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.

2 participants