mayor 53e3bbe78f
All checks were successful
CI / check (push) Successful in 3m32s
fix(claude-code): preserve bun appended bundle during NixOS build
Bun standalone executables store their JavaScript code by appending it
after the ELF sections, marked with "---- Bun! ----". The standard Nix
build process was corrupting this:

- autoPatchelfHook rewrites the entire ELF, losing appended data
- strip removes data after ELF sections
- patchelf shrink-rpath also rewrites the ELF

Fix by:
- Using dontStrip and dontPatchELF to skip automatic fixup
- Manually running patchelf --set-interpreter which modifies in-place
  without rewriting the entire file structure

This restores the binary from 99MB (bare bun runtime) to 220MB (full
claude-code application).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

Executed-By: mayor
Role: mayor
2026-01-19 10:39:58 -08:00
2026-01-13 18:02:36 -08:00
2026-01-10 12:45:53 -08:00
2026-01-13 18:02:36 -08:00
2026-01-13 18:02:36 -08:00
Description
No description provided
24 MiB
Languages
Nix 80.7%
Emacs Lisp 11.7%
Shell 5.1%
Python 2.5%