arduino-purifier

Locked, Nix-resolved dependencies for Arduino CLI.

Quickstart

Prerequisites: A sketch with a pinned Arduino AVR profile and matching sketch directory and .ino filename.

nix shell 'github:nix-purifiers/arduino-purifier'
arduino-purifier lock
arduino-cli compile

Commit the lockfiles: arduino-purifier.lock.json, arduino-purifier.indexes/.

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:

arduino-purifier lock --update --project '<project_root>' --lock '<lockfile>'
arduino-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

  • Signed Arduino indexes preserved as committed content-addressed snapshots
  • Public HTTPS core, tool and library archives selected by native profiles

Platform limits

  • Native Linux x86-64 and ARM64 CI passed firmware compilation, frozen dependency guards, cold capture, immutable index replay, firmware consumption and reproducible builds.
  • Physical uploads, monitoring and on-device execution are not exercised by the fixture.

Not supported

  • Unpinned system platforms and source libraries
  • Non-AVR cores and additional external runtimes require providers
  • Nixpkgs GDB replaces the obsolete bundled AVR debugger; its provider version is recorded

More information

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