From 57fee5b63eb48ac107d8e08700ea9718fa4be5a3 Mon Sep 17 00:00:00 2001 From: Emile Clark-Boman Date: Sun, 25 Jan 2026 11:41:13 +1000 Subject: [PATCH] add mix bootstrap function --- nt/primitives/mix/bootstrap.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 nt/primitives/mix/bootstrap.nix diff --git a/nt/primitives/mix/bootstrap.nix b/nt/primitives/mix/bootstrap.nix new file mode 100644 index 0000000..607f24a --- /dev/null +++ b/nt/primitives/mix/bootstrap.nix @@ -0,0 +1,10 @@ +# WARNING: This file is strictly for bootstrapping nt +rec { + # NOTE: bootstrap does the equivalent to mix's `include.public` option. + # NOTE: It also provides itself as input to descendents. + bootstrap = args: paths: let + input = args // {inherit this bootstrap;}; + this = paths |> builtins.foldl' (acc: el: acc // import el input) {}; + in + this; +}