27 lines
648 B
Nix
27 lines
648 B
Nix
{systems, ...}: let
|
|
# TODO: move this to a new module
|
|
mkMod' = args: mod: import mod args;
|
|
mkMod = mkMod' {inherit systems nib;};
|
|
|
|
std = mkMod ./std;
|
|
panic = mkMod ./panic.nix;
|
|
parse = mkMod ./parse;
|
|
# patterns = mkMod ./patterns.nix;
|
|
|
|
types = mkMod ./types;
|
|
typesystem = mkMod ./typesystem.nix;
|
|
|
|
sys = mkMod ./sys.nix;
|
|
|
|
nib = std.mergeAttrsList [
|
|
# submodule content is accessible first by submodule name
|
|
# then by the name of the content (ie self.submodule.myFunc)
|
|
{inherit std types panic parse;}
|
|
|
|
# submodule content accessible directly (ie self.myFunc)
|
|
# patterns
|
|
typesystem
|
|
sys
|
|
];
|
|
in
|
|
nib
|