Retain private platform source while resolving its context-free Nix flake reference

This commit is contained in:
Timothy J. Aveni
2026-10-11 16:41:18 -07:00
parent 0f41b12ca0
commit ecf97173b4
+6 -1
View File
@@ -81,7 +81,12 @@ let
else
assert platformSource.repository == root.lock.quixos.repository;
assert platformSource.commit == root.lock.quixos.commit;
builtins.getFlake "path:${builtins.storePath platformSource.directory}";
# getFlake accepts a context-free flake reference. storePath first checks
# presence; the resulting flake retains its immutable source as an input.
# Dropping string context here does not permit an authored mutable path.
builtins.getFlake (
builtins.unsafeDiscardStringContext "path:${builtins.storePath platformSource.directory}"
);
runtimePackages = runtime.packages.${system};
resourceClosure =
includeBuild: node: