Unify workspace authoring, verification and scaffolding workflows

This commit is contained in:
Timothy J. Aveni
2026-09-13 22:07:18 -07:00
parent 16b28f1bc4
commit 73cdeadc2c
11 changed files with 288 additions and 116 deletions
+17
View File
@@ -0,0 +1,17 @@
# One derivation path for provisional checking and activation. The source and
# schema come from exact committed inputs resolved by the Quixos compiler.
{ source, schema, generator, packageRevisionId, system ? builtins.currentSystem }:
let
packageSource = builtins.path {
path = /. + source;
name = "quixos-package-source";
filter = path: _: let name = baseNameOf path; in name != ".git" && name != ".jj";
};
package = builtins.getFlake ("path:" + builtins.unsafeDiscardStringContext (toString packageSource));
checked = package.quixosPackages.${system}.checkedServer or
(throw "Package ${packageRevisionId} lacks checkedServer; use the supported package scaffold.");
in checked {
inherit packageRevisionId;
schema = builtins.path { path = /. + schema; name = "candidate-package-bindings.json"; };
generator = builtins.storePath generator;
}