Skip to content

Conversation

@ry2009
Copy link
Contributor

@ry2009 ry2009 commented Jan 3, 2026

  • 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
Copy link
Collaborator

rekram1-node commented Jan 3, 2026

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

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