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