Skip to content

Release maintenance

From the repository root:

  1. Update the runtime data, specifying the intended release:

    Terminal window
    nix run .#update-runtime -- 1.4.0

    Without a version the updater selects the newest stable release. It verifies the signature on SHA256SUMS against keys/release.pub, reads RUNTIME_STAMP, writes nix/runtime-data.nix, and compares evaluated versions, hashes and stamps for both platforms. It builds no runtime; repeating a recorded release changes nothing.

  2. Change the pi-bolt input tag in flake.nix, then run nix flake lock.

  3. Run the repository checks, build the intended packages and inspect --version/doctor.

The runtime and release tag are separate pins. While they disagree, evaluation reports the runtime is <v>, the release is <v> with the updater command. Older downstream locks retain their own runtime data.

The runtime declares passthru.updateScript, so:

Terminal window
nix-update --use-update-script packages.x86_64-linux.pi-bolt-runtime

This dispatches to the same updater. Plain nix-update is not the replacement: it would not coordinate both hashes and the stamp. Moving the release source input remains a separate lock/tag change.

Plugin dependency locks are consumer-owned and have a different workflow.

keys/release.pub is the trusted repository copy, not a key supplied alongside an untrusted release. Replace it only after confirming an upstream rotation and checking a release signed by the new key:

Terminal window
openssl dgst -sha256 -verify new-release.pub -signature SHA256SUMS.sig SHA256SUMS

The architecture page describes runtime matching and build layers.