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 36f9f60e86ec..dfc8e06d2972 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-xN87LR64kikBu0M5pST0PbV7+YwB1ncTzmfGk4PEwNs="; }; + 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";