Add pi
This commit is contained in:
parent
23d22dd2ce
commit
af35f0bc99
6 changed files with 3606 additions and 0 deletions
34
pkgs/pi-coding-agent/package.nix
Normal file
34
pkgs/pi-coding-agent/package.nix
Normal 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;
|
||||
};
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue