34 lines
835 B
Nix
34 lines
835 B
Nix
{
|
|
lib,
|
|
buildNpmPackage,
|
|
nodejs,
|
|
}:
|
|
buildNpmPackage (finalAttrs: {
|
|
pname = "pi-coding-agent";
|
|
version = "0.66.0";
|
|
|
|
src = ./.;
|
|
npmDepsHash = "sha256-x7XNa88oV96hl3Cr4JO4gdvaNsSUE9Vn0/qhMAnwX8g=";
|
|
|
|
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;
|
|
};
|
|
})
|