Skip to content

Nixify pi #5801

Closed
o1lo01ol1o wants to merge 2 commits into
earendil-works:mainfrom
o1lo01ol1o:feat/nix-flake-package
Closed

Nixify pi #5801
o1lo01ol1o wants to merge 2 commits into
earendil-works:mainfrom
o1lo01ol1o:feat/nix-flake-package

Conversation

@o1lo01ol1o

Copy link
Copy Markdown

This PR add nix flake packaging to pi.

How to Use the Flake

From the repo root:

nix build path:$PWD#pi
nix run path:$PWD#pi -- --version
nix run path:$PWD#pi -- --help

Install the local flake build into your user profile:

  nix profile add path:$PWD#pi

After changing the checkout, refresh the installed profile entry:

  nix profile upgrade pi

Enter the development shell:

  nix develop --impure path:$PWD

Run validation:

  nix build path:$PWD#pi --no-link
  nix run path:$PWD#pi -- --version
  npm run check

The flake packages the core pi CLI only. Runtime state such as installed pi packages, extensions, settings, sessions,
and credentials remains outside the Nix store under the normal user/project locations like ~/.pi/agent and .pi/.

You can also install it to a nix profile directly from github:

nix profile add github:o1lo01ol1o/pi/feat/nix-flake-package#pi

Run it:

 pi --version
 pi --help

Upgrade later from the same branch:

 nix profile upgrade pi

For a specific commit:

 nix profile add github:o1lo01ol1o/pi/<commit-sha>#pi

@github-actions

Copy link
Copy Markdown
Contributor

This PR was auto-closed. Only contributors approved with lgtm can open PRs. Open an issue first.

Maintainers review auto-closed issues daily. Issues that do not meet the quality bar in CONTRIBUTING.md will not be reopened or receive a reply.

If a maintainer replies lgtmi, your future issues will stay open. If a maintainer replies lgtm, your future issues and PRs will stay open.

See CONTRIBUTING.md.

@github-actions github-actions Bot closed this Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant