Skip to content

fix(nix): prevent stripping the Bun-compiled binary#46

Merged
yusukebe merged 1 commit into
yusukebe:mainfrom
yutakobayashidev:agent/fix-nix-bun-strip
Jul 22, 2026
Merged

fix(nix): prevent stripping the Bun-compiled binary#46
yusukebe merged 1 commit into
yusukebe:mainfrom
yutakobayashidev:agent/fix-nix-bun-strip

Conversation

@yutakobayashidev

Copy link
Copy Markdown
Contributor

Prevent the Nix package from stripping the prebuilt ax binary.

The release binary is produced with bun build --compile. Nix's default strip phase removed Bun's embedded
application payload, leaving only the Bun runtime. As a result, the package built successfully, but running ax
launched the Bun CLI instead.

Changes

  • Set dontStrip = true for the ax derivation
  • Add an install check that verifies ax --version matches the packaged version

Verification

  • nix build .#ax --no-link -L
  • nix flake check -L
  • Confirmed the packaged binary reports 0.1.20
  • Confirmed ax --help displays the ax CLI help instead of the Bun CLI help

@yusukebe yusukebe left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@yusukebe

Copy link
Copy Markdown
Owner

@yutakobayashidev

As a result, the package built successfully, but running ax launched the Bun CLI instead.

I didn't realize the behavior. Thanks!

@yusukebe
yusukebe merged commit 0b8cc13 into yusukebe:main Jul 22, 2026
2 checks passed
@yutakobayashidev
yutakobayashidev deleted the agent/fix-nix-bun-strip branch July 22, 2026 15:55
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