add mix bootstrap function
This commit is contained in:
parent
7c1dc8605f
commit
57fee5b63e
1 changed files with 10 additions and 0 deletions
10
nt/primitives/mix/bootstrap.nix
Normal file
10
nt/primitives/mix/bootstrap.nix
Normal file
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue