esp-idf-purifier
Locked, Nix-resolved ESP-IDF components.
Quickstart
Prerequisites: An existing ESP-IDF project configured for ESP32-C3 or Linux.
nix shell 'github:nix-purifiers/esp-idf-purifier'
esp-idf-purifier lock --update --target esp32c3
idf.py build
Commit the lockfiles: esp-idf-purifier.lock.json, dependencies.lock.
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:
esp-idf-purifier lock --update --project '<project_root>' --lock '<lockfile>'
esp-idf-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 ESP Component Registry archives
- Pinned ESP-IDF SDK and framework sources
Platform limits
- Native dependency replay, firmware and Linux host builds, runtime checks, artifact inspection and reproducibility pass CI on x86-64 and ARM64 Linux.
Not supported
- Initial target SDK supports ESP32-C3 and Linux; extra hardware toolchains and debug tools are separate providers
- Git and local dependency sources, authenticated registries and dependencies conditional on Kconfig settings require providers
- SDK framework submodules beyond the exercised ESP32-C3 Wi-Fi set, including Bluetooth, need additional SDK providers
More information
Setup and activation · Version compatibility · Using locked dependencies · Nix builds.