octave-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. octave-purifier is classified at maturity tier 4 (see tier assessment for details).

Contents

Setup and activation

Use the overview’s Quickstart for the initial command sequence. The setup details below apply to that workflow.

Octave’s native package index selects the source archives. Nix compiles them for the pinned Octave SDK. Your programs run in their working tree, with a private package registry and readonly dependencies.

Without a lockfile, the wrappers warn and run ordinary, impure Octave. A stale or invalid lock fails. Commit octave-purifier.lock.json and refresh it with octave-purifier lock --update. Install the wrappers through your normal Nix configuration if desired.

Version compatibility

Tool or language Packaged defaults Tested versions
GNU Octave 11.3.0 —

Operating systems and architectures

OS CPU architecture Packaged toolchain Recorded workflow
Linux ARM64 Yes Not recorded
Linux x86-64 Yes Tested

Development loop

A project with a native DESCRIPTION can build its own code outside Nix:

octave-purifier lock control signal
octave-cli --eval 'pkg install .'
octave-cli --eval 'pkg load purifierproof; purifier_answer()'

Use your package’s name and functions in the final command. Its source package is compiled by Octave’s ordinary installer into .octave-purifier/. Reinstall after changing native source. Changes to DESCRIPTION require relocking.

The native manager checks dependency requirements but does not automatically select missing packages. List those packages in the lock command, as with ordinary pkg install. Their native dependency declarations remain authoritative.

Using locked dependencies

Use --input path to track additional selection inputs. --project and --lock support an external companion; native commands accept OCTAVE_PURIFIER_PROJECT and OCTAVE_PURIFIER_LOCK. Environment profiles keep the packages and wrapper SDK reachable by Nix garbage collection.

Nix builds

An optional definition can use the overlay’s named builder:

pkgs.octave-purifier.buildOctaveProject {
  src = ./.;
  doCheck = true;
  checkCommand = "octave-cli --quiet test.m";
}

It exposes evaluation-known packages, tests, release and fetches. packageOverrides supplies package-specific build changes. Nixpkgs recipes provide native prerequisites; newly released versions may need overrides.

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.

octave-cli --eval 'pkg list'
octave-purifier prefetch
octave-purifier exec -- your-command
octave-purifier bundle
octave-purifier publish --tag v0.1.0

Locked installations reuse the prepared packages. Updating or replacing package registries requires changing the lock. Application files remain mutable. bundle creates a source archive consumed by ordinary pkg install; publish uploads those exact bytes to an existing GitHub release.

Supported scope

The initial target is Octave 11 on Linux. Interpreter versions, native module ABI and external C/Fortran libraries must match. Git development snapshots and unrelated downloads performed by application code are outside this adapter.

Target systems

  • x86_64-linux
  • aarch64-linux