idris2-purifier full guide
Detailed setup, dependency management, build commands, and troubleshooting. Start with the overview for the initial commands; use the sections below for the complete setup and behavior. idris2-purifier is classified at maturity tier 4 (see tier assessment for details).
Contents
- Setup and activation
- Version compatibility
- Development loop
- Using locked dependencies
- Working offline
- Language tooling integration
- Nix builds
- Project projections
- Supported scope
Setup and activation
Use the overview’s Quickstart for the initial command sequence. The setup details below apply to that workflow.
Pack’s native resolver reads the project’s .ipkg and pack.toml, selects its
curated collection and dependencies, and records exact Git revisions. Nix builds
that collection’s compiler and libraries. Your project builds in its working tree.
The shell provides pack, idris2 and idris2-lsp wrappers. Without a lockfile,
they warn and run their ordinary, impure tools. Invalid or stale locks fail.
The wrappers can also be installed through your normal Nix configuration.
Commit idris2-purifier.lock.json. Source edits do not require relocking;
selection metadata changes do:
idris2-purifier lock --update
pack build
Use --ipkg path to select a package explicitly. A project without an .ipkg
can select libraries directly:
idris2-purifier lock refined
idris2 -p refined --check Main.idr
Version compatibility
| Tool or language | Packaged defaults | Tested versions |
|---|---|---|
| Pack | 2025-12-27 | — |
| Idris 2 | 0.8.0 | — |
Operating systems and architectures
| OS | CPU architecture | Packaged toolchain | Recorded workflow |
|---|---|---|---|
| Linux | ARM64 | Yes | Not recorded |
| Linux | x86-64 | Yes | Tested |
Development loop
pack run
idris2 --build proof.ipkg
idris2 --list-packages
idris2-lsp
Library projects can use pack test library-name with their native Pack test
configuration. Track the test .ipkg with --input when creating the lock.
Using locked dependencies
The lock includes original .ipkg contents and native dependency edges,
installation hashes, collection and compiler selection, source hashes, and
selection inputs. Native metadata is checked again during Nix compilation.
The initial frontend supports Idris 0.8.0, TTC ABI 2025081600 and the six standard
runtime core libraries on Linux. Compiler API and papers core packages are
outside this initial integration. Automatic dependency applications and
documentation installation are also unsupported.
--input path tracks additional selection files. Use --project and --lock
for an external companion; native tools accept IDRIS2_PURIFIER_PROJECT and
IDRIS2_PURIFIER_LOCK. Ancestor Pack configurations are selection inputs too.
Environment generations keep their compiler, libraries and frontend SDK rooted
for Nix garbage collection while older sessions remain active.
Working offline
idris2-purifier prefetch
idris2-purifier exec -- your-command
Language tooling integration
Use your project’s package filename in the compiler command. Pack keeps its own
mutable project builds and installation state private under .idris2-purifier/.
Prepared dependencies, sources and compiler remain readonly in Nix. The native
language server can navigate into those library sources.
Nix builds
An optional definition can use the overlay’s named builder:
pkgs.idris2-purifier.buildIdrisProject {
src = ./.;
doCheck = true;
checkCommand = "./build/exec/proof";
}
It exposes evaluation-known packages, tests, release and fetches.
libraryOverrides provides library-specific build changes.
Project projections
This integration provides native release artifacts, rather than a typed cross-purifier project projection interface. The publication workflow below uses those native artifacts.
idris2-purifier bundle
idris2-purifier publish --tag v0.1.0
The reproducible source archive contains the native .ipkg and can be built
by an ordinary Idris/Pack consumer. Publication uploads the exact realized bytes
to an existing GitHub release.
Supported scope
Locked tools do not load packages from a local depends/ cache. Missing cached
dependency metadata and attempts to fetch new dependencies fail before Git
transport. Add them to the lock instead. The selected root project remains a
mutable local package; other local dependency projects are not supported yet.
Target systems
- x86_64-linux
- aarch64-linux