[PR #6735] nix: prune bun platform binaries from package #12071

Open
opened 2026-02-16 18:17:00 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6735

State: open
Merged: No


  • 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.
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6735 **State:** open **Merged:** No --- - 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.
yindo added the pull-request label 2026-02-16 18:17:00 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12071