west-purifier

Locked, Nix-resolved dependencies for West workspaces.

Quickstart

Prerequisites: An existing workspace initialized with west init, Any board SDK or Python extension requirements for the project’s native build.

nix shell 'github:nix-purifiers/west-purifier'
west-purifier lock
west build

Commit the lockfiles: west-purifier.lock.json.

Development loop

Keep using native build and test commands in your working tree. After changing dependency selection, refresh the lock and prepare the selected dependencies:

west-purifier lock --update --project '<project_root>' --lock '<lockfile>'
west-purifier prefetch --project '<project_root>' --lock '<lockfile>'

Use the project directory and lockfile from your setup for the placeholders.

Using locked dependencies

Without an applicable purifier lock, the supplied wrapper warns and runs the tool with its usual dependency resolution.

Working offline

Prepare dependencies using the Quickstart workflow before disconnecting. The lock covers the recorded dependency downloads; downloads performed outside that lock need separate inputs.

Supported scope

Target systems

  • x86_64-linux
  • aarch64-linux

Dependency sources

  • Public HTTPS Git projects and imported manifests

Not supported

  • Selected Git submodules without an additional provider
  • History and tags beyond the locked commit
  • A complete Zephyr SDK or hardware workflow
  • Implicit locking of packages installed into the writable Python virtualenv
  • Hardcoded dependency paths outside the prepared workspace

More information

Setup and activation · Version compatibility · Using locked dependencies · Working offline · Nix builds · Project projections.