diff --git a/pkgs/nomarchy-install/compose-lock.py b/pkgs/nomarchy-install/compose-lock.py index a97f6b5..c8f8193 100644 --- a/pkgs/nomarchy-install/compose-lock.py +++ b/pkgs/nomarchy-install/compose-lock.py @@ -40,6 +40,15 @@ def main() -> None: if "nomarchy" in nodes: sys.exit("compose-lock: upstream lock already has a 'nomarchy' node") + # Follows paths (list-valued inputs) are absolute from the lock's + # root; the copied nodes now live one level down, so ["nixpkgs"] + # must become ["nomarchy", "nixpkgs"]. Plain string values reference + # node keys directly and stay as they are. + for node in nodes.values(): + for name, ref in node.get("inputs", {}).items(): + if isinstance(ref, list): + node["inputs"][name] = ["nomarchy"] + ref + nodes["nomarchy"] = { "inputs": nomarchy_inputs, "locked": locked,