nt/nib/default.nix

22 lines
540 B
Nix
Raw Normal View History

{systems, ...}: let
# TODO: move this to a new module
mkMod' = args: mod: import mod args;
2025-12-18 11:25:46 +10:00
mkMod = mkMod' {inherit systems nib;};
std = mkMod ./std;
types = mkMod ./types;
parse = mkMod ./parse;
panic = mkMod ./panic.nix;
2025-12-18 11:25:46 +10:00
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;}
2025-12-18 11:25:46 +10:00
# submodule content accessible directly (ie self.myFunc)
sys
];
in
nib