From b05fb3d725ac78cb6902cbc3bdfb00b9d3c08d5a Mon Sep 17 00:00:00 2001 From: Emile Clark-Boman Date: Sat, 24 Jan 2026 23:44:34 +1000 Subject: [PATCH] add bootstrap process --- flake.nix | 6 ++++-- nt/primitives/util/bootstrap.nix | 13 +++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 nt/primitives/util/bootstrap.nix diff --git a/flake.nix b/flake.nix index 549749a..71e81ef 100644 --- a/flake.nix +++ b/flake.nix @@ -2,8 +2,10 @@ description = "NixTypes (nt)"; outputs = _: let - # nt depends on the mix subsystem for bootstrapping - mix = import ./nt/primitives/mix; + # nt depends on the mix subsystem for bootstrapping, + # we can fake its dependency on this mwahahahah + this.util = import ./nt/primitives/util/bootstrap.nix; + mix = import ./nt/primitives/mix {inherit this;}; in import ./nt {inherit mix;}; } diff --git a/nt/primitives/util/bootstrap.nix b/nt/primitives/util/bootstrap.nix new file mode 100644 index 0000000..b7f32ba --- /dev/null +++ b/nt/primitives/util/bootstrap.nix @@ -0,0 +1,13 @@ +# WARNING: this file is strictly for bootstrapping nt +let + input = {inherit this;}; + this = + import ./util.nix input + // import ./parse.nix input + // import ./trapdoor.nix input + // import ./wrap.nix input + // import ./enforce.nix input + // import ./sig.nix input + // import ./nt.nix input; +in + this