From 56b6daa21dad13c8902e2f9c9926584de074d566 Mon Sep 17 00:00:00 2001 From: Patrick Hobusch Date: Fri, 9 Jan 2026 04:22:32 +0100 Subject: [PATCH] vscode-extensions.anthropic.claude-code: Bundle Claude Code CLI The VS Code extension for Claude requires the Claude Code CLI to be present in the `$installPrefix/resources/native-binary` directory. The upstream VSIX may or may not include platform-specific binaries, so we remove any bundled binaries and symlink the Nix-packaged Claude Code CLI into the expected location. --- .../vscode/extensions/anthropic.claude-code/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/editors/vscode/extensions/anthropic.claude-code/default.nix b/pkgs/applications/editors/vscode/extensions/anthropic.claude-code/default.nix index 7b27f9068d69..9e2f0e70b01f 100644 --- a/pkgs/applications/editors/vscode/extensions/anthropic.claude-code/default.nix +++ b/pkgs/applications/editors/vscode/extensions/anthropic.claude-code/default.nix @@ -1,5 +1,6 @@ { lib, + claude-code, vscode-utils, }: @@ -11,6 +12,11 @@ vscode-utils.buildVscodeMarketplaceExtension { hash = "sha256-UH4f3SZbKQTJS4w0AsZMLpmHg0+kyUYZkHOzy2R5Amo="; }; + postInstall = '' + rm -f "$out/$installPrefix/resources/native-binary/claude"* + ln -s "${claude-code}/bin/claude" "$out/$installPrefix/resources/native-binary/claude" + ''; + meta = { description = "Harness the power of Claude Code without leaving your IDE"; homepage = "https://docs.anthropic.com/s/claude-code";