NixOS / NixOS/nixpkgs

vscode-extensions.anthropic.claude-code: Missing darwin-arm64 binary

Open
#477,331 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

2.status: stale
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

  1. Add pkgs.vscode-extensions.anthropic.claude-code to VSCodium/VS Code extensions
  2. Set mutableExtensionsDir = false in home-manager config
  3. Open VSCodium
  4. Claude Code extension fails with: "Error: Unsupported platform: darwin-arm64. No compatible Claude Code binary found."

Expected behaviour

The extension should either:

  1. Package platform-specific binaries for darwin-arm64 (and other platforms)
  2. Or respect the claudeCode.claudeProcessWrapper setting 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:

  1. Fetch the correct platform-specific .vsix for the build platform
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.