fix weird infinite recursion

am i missing something?
This commit is contained in:
Emile Clark-Boman 2026-01-28 13:52:09 +10:00
parent 2cabb50a38
commit 0ebf24920c
3 changed files with 6 additions and 5 deletions

View file

@ -39,7 +39,7 @@ let
naive = ./naive/bootstrap.nix;
};
in
bootstrap {} [
bootstrap {inherit bootstrap;} [
submods.prim
submods.naive
./attrs.nix

View file

@ -1,7 +1,7 @@
# WARNING: /nt/primitives/bootstrap cannot depend on mix
# WARNING: this file is strictly for bootstrapping nt
{this, ...} @ inputs:
this.bootstrap inputs [
{bootstrap, ...} @ inputs:
bootstrap inputs [
{
maybe = ./maybe.nix;
terminal = ./terminal.nix;

View file

@ -1,9 +1,10 @@
# WARNING: /nt/primitives/bootstrap cannot depend on mix
# WARNING: this file is strictly for bootstrapping nt
{this, ...}:
{bootstrap, ...}:
# WARNING: do not propagate `this` from parent, bootstrap/std must
# WARNING: remain entirely independent from bootstrap/
this.bootstrap {} [
bootstrap {} [
./any.nix
./attrs.nix
./fn.nix
./list.nix