Skip to content

Packages and launchers

Available on x86_64-linux and aarch64-linux:

OutputMeaning
packages.<system>.default, .pi-boltBaseline-CPU, JIT-off Pi-Bolt. Installs pi-bolt and pi.
packages.<system>.pi-bolt-jitAOT executable with the JIT enabled for runtime code.
packages.<system>.pi-bolt-runtimeReleased engine, unpacked and prepared for the system. Primarily an integration/maintenance output.
packages.<system>.docsBuilt static documentation; independent of the executable.
overlays.defaultAdds pi-bolt, pi-bolt-runtime and the piBoltPlugins scope to a package set.
apps.<system>.update-runtimeRepository maintainer’s runtime updater.
checks.<system>Build and integration checks, including docs and example evaluation.
formatter.<system>Repository Nix formatter.

No nixosModules or homeManagerModules output is supplied. See installation.

A payload below means a pkgs.pi-bolt value: the plain package, one of its override results, or a withPlugins result. Helpers that take a selection are attributes of that value.

Use pkgs.pi-bolt.override { ... }. These consumer arguments are distinct from injected build dependencies:

ArgumentDefaultMeaning
plugins[ ]Extension derivations to register in the executable. Their plugin dependencies are staged transitively.
pluginLocknullPath to an npm lock, or parsed lock attribute set. See lock contract.
launchers{ }Attribute set of entrypoint name to { env, path }.
patches[ ]Patches to the source, applied when the npm workspace builds. See patch the source.
jitfalseEnable the JIT alongside AOT code. Runtime-loaded extensions are otherwise interpreted.
maxAotCandidateBytecodeSizenullOverride the upstream maximum candidate module bytecode size, in bytes. null leaves the upstream setting.
checkRuntimeStamptrueFail on a source/runtime stamp mismatch; false warns instead.
runtimeInputs[ pkgs.ripgrep pkgs.fd ]The base program list. Overriding it replaces those defaults.
extraPackages[ ]Programs added to runtimeInputs for every entrypoint. Use this to add tools; runtimeInputs sets the base.

A module larger than the AOT limit is left out of the compiled image and interpreted; the compiler names it. Raising the limit can make compilation slower and the image larger. Use it for a named refusal, not as a general performance setting.

InterfaceMeaning
withPlugins (ps: [ ... ])Select registered plugins from piBoltPlugins or elsewhere. Returns another overridable package.
select { ... }Return settings and tools for a selection; see selection API.
updatePluginLockDerivation providing bin/update-plugin-lock; see CLI.
pluginsThe explicitly selected compiled plugin list.
runtimeInputsPackage tools plus tools of explicitly selected compiled plugins and their declared plugin dependencies.
unwrappedCompiled executable/assets without generated launchers; intended for integrations that own launch placement.

withPlugins replaces the explicit plugin selection; it does not append to it. Override composition works in either order:

(pkgs.pi-bolt.override { jit = true; }).withPlugins (ps: [ ps.word-count ])

Different derivations sharing one pluginName in the compiled dependency closure fail rather than silently replacing each other. Internal derivation arguments and staging helpers are not additional supported extension interfaces.

launchers.<name> accepts:

FieldDefaultMeaning
env{ }Environment-variable names to literal string values. No shell expansion.
path[ ]Packages whose bin directories are added after the package’s tools and before inherited PATH.

pi-bolt always exists; a field of that name customises it. bin/pi links to the default launcher. Each other name creates bin/<name>. There is no flags field and the launcher generator is not exported.

Creating directories, settings, credential links and sessions is the consumer’s responsibility.