add standard attrs parsing interface
This commit is contained in:
parent
a3afe330c4
commit
3d9e9740d2
2 changed files with 95 additions and 0 deletions
13
nib/parse/default.nix
Normal file
13
nib/parse/default.nix
Normal 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)
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue