Skip to content

Commit 393577e

Browse files
committed
fix(claude-code): add nodejs to PATH for plugin hooks
The codex plugin registers hooks that invoke `node` directly, but the claude-code Nix wrapper only exposes procps, bubblewrap, and socat in PATH. Wrap the package with symlinkJoin to add nodejs.
1 parent 60ca846 commit 393577e

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

parts/features/dev/claude-code/default.nix

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,15 @@
1717

1818
programs.claude-code = {
1919
enable = true;
20-
package = pkgs.unstable.claude-code;
20+
package = pkgs.symlinkJoin {
21+
name = "claude-code-wrapped";
22+
paths = [ pkgs.unstable.claude-code ];
23+
nativeBuildInputs = [ pkgs.makeWrapper ];
24+
postBuild = ''
25+
wrapProgram $out/bin/claude \
26+
--prefix PATH : ${pkgs.nodejs}/bin
27+
'';
28+
};
2129

2230
memory.source = ./CLAUDE.md;
2331

0 commit comments

Comments
 (0)