feat(flake): repo-root flake.nix packaging + nixpkgs-pin parity gate (RIG-2757, T6) - #642
Merged
Merged
Conversation
|
Compass engineering docs preview: https://compass-native-rig-2757-flak.compass-eng-docs.pages.dev Deployed from |
…(RIG-2757, T6) Add a repo-root flake.nix packaging the four backend binaries (compass, compass-server, compass-runner, compass-stack — one shared version stamp, Global Constraint 4), the Linux gtk3 cgo native app (compass-app, built against the shared SEA-1172 gtk-closure.nix so the dev shell, e2e helper, and flake cannot drift), and the microVM stack-env trio (cloud-hypervisor + virtiofsd + passt). nixpkgs is pinned to devenv.lock's rev. Because the flake carries its OWN flake.lock — a second independent nixpkgs pin — a devenv bump could silently skew the 'one closure' claim. tools/toolchain/ flake-parity.ts (thin shell over a pure, unit-tested core, mirroring parity.ts) enforces flake.lock's nixpkgs rev == devenv.lock's, wired as the flake-gate moon project (nix-source, ci-group.nix) running nix flake check + the parity gate, affected-gated on the flake build closure. aarch64-darwin is deferred with a TODO (the darwin app links system WebKit, not the gtk closure). Implements DL-259 install surface (flake as the self-host stack's install path). Co-authored-by: Matt Wilkinson <matt@rigel.build>
rigel-mintaka
force-pushed
the
compass-native/rig-2757-flake
branch
from
August 26, 2026 05:03
52cb21d to
45cdfd2
Compare
rigel-mintaka
marked this pull request as ready for review
August 26, 2026 05:08
mattwilkinsonn
approved these changes
Aug 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a repo-root flake.nix packaging the four backend binaries (compass,
compass-server, compass-runner, compass-stack — one shared version stamp,
Global Constraint 4), the Linux gtk3 cgo native app (compass-app, built against
the shared SEA-1172 gtk-closure.nix so the dev shell, e2e helper, and flake
cannot drift), and the microVM stack-env trio (cloud-hypervisor + virtiofsd +
passt). nixpkgs is pinned to devenv.lock's rev.
Because the flake carries its OWN flake.lock — a second independent nixpkgs pin
— a devenv bump could silently skew the 'one closure' claim. tools/toolchain/
flake-parity.ts (thin shell over a pure, unit-tested core, mirroring parity.ts)
enforces flake.lock's nixpkgs rev == devenv.lock's, wired as the flake-gate moon
project (nix-source, ci-group.nix) running nix flake check + the parity gate,
affected-gated on the flake build closure. aarch64-darwin is deferred with a
TODO (the darwin app links system WebKit, not the gtk closure).
Implements DL-259 install surface (flake as the self-host stack's install path).
Co-authored-by: Matt Wilkinson matt@rigel.build