use with builtins nib.types

This commit is contained in:
Emile Clark-Boman 2025-12-14 12:59:31 +10:00
parent ead4d37ca7
commit 600cac3ce3
6 changed files with 36 additions and 31 deletions

View file

@ -1,10 +1,11 @@
{nib, ...} @ args: let
struct = import ./struct.nix args;
in
nib.types.mergeAttrsList [
# submodule is included directly to this module (ie self.myFunc)
struct
with nib.types;
mergeAttrsList [
# submodule is included directly to this module (ie self.myFunc)
struct
# submodule content is accessible first by submodule name
# then by the name of the content (ie self.submodule.myFunc)
]
# submodule content is accessible first by submodule name
# then by the name of the content (ie self.submodule.myFunc)
]