cmake-purifier

Locked, Nix-resolved dependencies for CMake.

Quickstart

nix shell 'github:nix-purifiers/cmake-purifier#toolchain'
cmake-purifier lock
cmake-purifier prefetch
cmake -B build -C .cmake-purifier/initial-cache.txt
cmake --build build
ctest --test-dir build

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

Development loop

Keep using the native build and test commands in your working tree. After changing dependency declarations, refresh the lock through the native lock workflow shown above.

Relocking retains existing pins.

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
  • aarch64-darwin

Dependency sources

  • HTTP(S) download URLs
  • Git
  • Mercurial
  • Subversion
  • CVS

Platform limits

  • The retained technical review covers native x86_64-linux, aarch64-linux and aarch64-darwin within its stated SDK/sample scopes.
  • No Intel Darwin, cross-compilation or unlisted SDK/system combination is established by that review.

More information

Setup and activation · Version compatibility · Using locked dependencies · Working offline · Language tooling integration · Nix builds · Troubleshooting.