vscode-extensions.anthropic.claude-code: Missing darwin-arm64 binary
Nobody has claimed this yet.
- Dominant language
- Nix
- Stars
- 26.2k
- Forks
- 20.1k
- PR merge metrics
- PR metrics pending
Description
vscode-extensions.anthropic.claude-code: Missing darwin-arm64 binary causes "Unsupported platform" error
Describe the bug
The vscode-extensions.anthropic.claude-code extension only packages the Windows binary (claude.exe), causing an "Unsupported platform: darwin-arm64" error when used on Apple Silicon Macs.
Steps to reproduce
- Add
pkgs.vscode-extensions.anthropic.claude-codeto VSCodium/VS Code extensions - Set
mutableExtensionsDir = falsein home-manager config - Open VSCodium
- Claude Code extension fails with: "Error: Unsupported platform: darwin-arm64. No compatible Claude Code binary found."
Expected behaviour
The extension should either:
- Package platform-specific binaries for darwin-arm64 (and other platforms)
- Or respect the
claudeCode.claudeProcessWrappersetting before checking for bundled binaries
Evidence
The packaged extension only contains the Windows binary:
$ ls /nix/store/*-vscode-extension-anthropic-claude-code-*/share/vscode/extensions/anthropic.claude-code/resources/native-binary/
claude.exe
The extension code (extension.js) looks for binaries at:
resources/native-binaries/${platform}-${arch}/claude- Falls back to
resources/native-binary/claude
Neither path exists for darwin-arm64.
Current workaround
Using an overlay to symlink an externally installed Claude CLI:
{
vscode-extensions = prev.vscode-extensions // {
anthropic = prev.vscode-extensions.anthropic // {
claude-code = prev.vscode-extensions.anthropic.claude-code.overrideAttrs (old: {
postInstall = (old.postInstall or "") + ''
mkdir -p $out/share/vscode/extensions/anthropic.claude-code/resources/native-binaries/darwin-arm64
ln -s /path/to/claude $out/share/vscode/extensions/anthropic.claude-code/resources/native-binaries/darwin-arm64/claude
'';
});
};
};
}
Suggested fix
The VS Code extension marketplace distributes platform-specific .vsix files. The nixpkgs packaging should:
- Fetch the correct platform-specific
.vsixfor the build platform - Or fetch all platform variants and include appropriate binaries
System information
- NixOS/nixpkgs version: unstable
- System: aarch64-darwin (Apple Silicon)
- Editor: VSCodium with home-manager
programs.vscode
Metadata
- Notify: @maintainers of vscode-extensions
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the packaged extension's extension.js and the resources/native-binary and resources/native-binaries/${platform}-${arch} paths described in the report. Compare the platform-specific .vsix files from the VS Code marketplace for aarch64-darwin and other platforms. Done means the nixpkgs extension includes or selects a compatible Claude Code binary instead of reporting an unsupported platform.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100