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; naive = ./naive/bootstrap.nix;
}; };
in in
bootstrap {} [ bootstrap {inherit bootstrap;} [
submods.prim submods.prim
submods.naive submods.naive
./attrs.nix ./attrs.nix

View file

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

View file

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