add standard attrs parsing interface

This commit is contained in:
Emile Clark-Boman 2025-12-13 22:01:54 +10:00
parent a3afe330c4
commit 3d9e9740d2
2 changed files with 95 additions and 0 deletions

13
nib/parse/default.nix Normal file
View file

@ -0,0 +1,13 @@
{
attrs,
result,
}: let
struct = import ./struct.nix {inherit attrs result;};
in
builtins.listToAttrs [
# 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)
]