platformio-purifier

Locked, Nix-resolved dependencies for PlatformIO.

Quickstart

Prerequisites: An Arduino AVR PlatformIO project.

nix shell 'github:nix-purifiers/platformio-purifier'
platformio-purifier lock
pio run

Commit the lockfiles: platformio-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:

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

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

Using locked dependencies

The development environment supplies a wrapper that runs the build tool with the locked dependencies. Without an applicable purifier lock, it warns and lets the tool use its usual dependency resolution. A stale or invalid lock fails with a repair command.

The supplied wrapper is required for native builds.

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 PlatformIO registry archives and HTTPS package archives

Platform limits

  • Native Linux x86-64 and ARM64 are supported. PlatformIO firmware compilation and unit-firmware compilation are tested without hardware; physical uploads and on-device test execution are not exercised.

Not supported

  • Initial provider supports Arduino AVR on Linux x86-64 and ARM64
  • Git and local package sources, other platforms and additional Python dependencies require separate providers
  • Nixpkgs GDB and cppcheck replace the registry debugger and analyzer; provider versions are recorded

More information

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