mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
feat(coding-agent): add Nix flake (#9137)
Add a Nix flake that builds Pi from the checkout on aarch64/x86_64 Linux and macOS. The build is offline: provider model data is hydrated from a pi.dev model catalog revision pinned in nix/model-catalog.json, and the runtime dependency tree comes from packages/coding-agent/install-lock with internal packages built from source. The Nix workflow keeps the catalog pin current on main, builds release tags on all systems, and fast-forwards the stable branch to each release that builds. The release script refreshes the pin before tagging.
This commit is contained in:
parent
4665fafb4d
commit
c71a496ff9
18 changed files with 997 additions and 19 deletions
16
README.md
16
README.md
|
|
@ -53,6 +53,22 @@ For a built-in AI provider, run `/login` inside Pi to connect a subscription or
|
|||
|
||||
See the [documentation](https://pi.dev/docs/latest) for full setup and usage instructions, or [visit pi.dev](https://pi.dev) for demos.
|
||||
|
||||
## Run with Nix
|
||||
|
||||
```bash
|
||||
nix run github:earendil-works/pi/stable
|
||||
```
|
||||
|
||||
`stable` points at the latest release. Install it with `nix profile add github:earendil-works/pi/stable` and update with `nix profile upgrade pi`. Use a release tag such as `github:earendil-works/pi/v1.0.0` to pin a version, or `github:earendil-works/pi` for unreleased changes on `main`. Nix builds Pi from source.
|
||||
|
||||
Supports ARM64 and x86-64 on Linux and macOS. Use `nix build .` or `nix run .` to build or run your checkout.
|
||||
|
||||
Nix builds are offline, so the bundled model data comes from a pi.dev model catalog revision pinned in `nix/model-catalog.json`. At runtime, Pi still overlays newer catalog data from pi.dev as usual. The Nix workflow replaces the pin on `main` when it no longer matches the checkout, for example after a provider is added or gains a new model type. To refresh it by hand:
|
||||
|
||||
```bash
|
||||
npm run update:model-catalog-pin
|
||||
```
|
||||
|
||||
## Packages
|
||||
|
||||
This monorepo contains the Pi CLI and its supporting libraries.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue