fix(pi-coding-agent): wrap binary with nodejs_22 in PATH

This commit is contained in:
2026-04-26 09:25:42 -04:00
parent ad11dbdf2a
commit a38a725bb9

View File

@@ -2,6 +2,8 @@
, buildNpmPackage
, fetchFromGitHub
, nodejs
, nodejs_22
, makeWrapper
, pkg-config
, pixman
, cairo
@@ -25,7 +27,7 @@ buildNpmPackage rec {
npmDepsHash = "sha256-ImDvTC0Nm+IGYJuqjwUUfnOtA65uJvjlpP4h2Xt/2vE=";
nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [ pkg-config makeWrapper ];
buildInputs = [
pixman
@@ -70,6 +72,9 @@ buildNpmPackage rec {
EOF
chmod +x $out/bin/pi
wrapProgram $out/bin/pi \
--prefix PATH : ${lib.makeBinPath [ nodejs_22 ]}
runHook postInstall
'';