This commit is contained in:
Hunter Haugen 2026-03-17 08:45:31 -07:00
parent 23d22dd2ce
commit af35f0bc99
Signed by: hunner
GPG key ID: EF99694AA599DDAD
6 changed files with 3606 additions and 0 deletions

View file

@ -0,0 +1,34 @@
{
lib,
buildNpmPackage,
nodejs,
}:
buildNpmPackage (finalAttrs: {
pname = "pi-coding-agent";
version = "0.58.4";
src = ./.;
npmDepsHash = "sha256-NckjndfyChAw0tvp+qMO2henbV00nY1DmckJxGqFHog=";
inherit nodejs;
dontNpmBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/bin $out/lib/node_modules/pi-coding-agent-package
cp -R node_modules package.json package-lock.json $out/lib/node_modules/pi-coding-agent-package/
ln -s $out/lib/node_modules/pi-coding-agent-package/node_modules/.bin/pi $out/bin/pi
runHook postInstall
'';
meta = {
description = "Coding agent CLI from the PI ecosystem";
homepage = "https://www.npmjs.com/package/@mariozechner/pi-coding-agent";
license = lib.licenses.mit;
mainProgram = "pi";
platforms = lib.platforms.unix;
};
})