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

Contents

Setup and activation

Start in a project with a native .egg description that includes a version.

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

The shell supplies wrappers for chicken-install, csi, csc, chicken-status and chicken-uninstall. Dependencies are compiled in Nix; your application builds in the working tree. Each project gets a private egg repository under .chicken-purifier/, beside readonly dependency repositories. No global egg installation is required.

Without a companion lockfile, wrappers warn and run the ordinary native tool. A stale or invalid lock fails; refresh it after changing dependency metadata:

chicken-purifier lock --update

Commit chicken-purifier.lock.json. Source edits do not require relocking. Use lock --input path to track other files that affect dependency selection. prefetch prepares the immutable dependency environment without installing the application. Wrappers can also be installed using your normal Nix configuration.

Version compatibility

Tool or language Packaged defaults Tested versions
CHICKEN Scheme 5.4.0 —

Operating systems and architectures

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

Development loop

chicken-purifier exec -- csi -s tests/run.scm
chicken-purifier release
chicken-purifier publish \
  --repo owner/project --tag v0.1.0

release produces a reproducible source tarball containing the companion lock. An ordinary CHICKEN user can unpack it and run chicken-install from that source directory. publish creates or updates a GitHub release with those same bytes.

An external companion can be selected with --project and --lock-file, or CHICKEN_PURIFIER_PROJECT and CHICKEN_PURIFIER_LOCK for native commands. The environment profile retains both the dependencies and the wrapper SDK as Nix garbage collector roots.

Using locked dependencies

Dependency resolution

Locked, Nix-resolved eggs for CHICKEN Scheme 5.

What is locked

The pinned native installer selects dependencies, build dependencies and test dependencies recursively, including native conditional metadata and version requirements. The companion records that graph, selected versions, the SDK identity, and SHA-256 hashes of the exact versioned HTTPS Henrietta responses. Nix verifies those bytes and the SDK’s native reader extracts them. The native installer builds the selected eggs without network access and checks installed versions against the lock.

This integration targets CHICKEN 5.4 and the canonical code.call-cc.org egg registry. Arbitrary download servers, local overrides and custom installer resolution flags are outside its current scope. Native C libraries required by an egg must be supplied as Nix build inputs. SDK changes require relocking.

Nix builds

An optional project Nix definition can use the overlay’s chicken-purifier.buildChickenProject through callPackage:

pkgs.chicken-purifier.buildChickenProject {
  src = ./.;
  nativeBuildInputs = [ pkgs.zlib ];
}

It exposes evaluation-known packages, tests, release and fetches. packages.environment contains the compiled dependency repository; packages.project builds and tests the application. Override buildCommand, checkCommand, installCommand or doCheck for the project’s native workflow. The default test command is csi -s tests/run.scm.

Supported scope

  • x86_64-linux
  • aarch64-linux