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