Skip to content

Commit

Permalink
docs: add missing descriptions for core module
Browse files Browse the repository at this point in the history
  • Loading branch information
DavHau authored and mergify[bot] committed Oct 11, 2023
1 parent e945481 commit 212fcf4
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/dream2nix/core/env/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ in {
in
t.attrsOf (t.nullOr (t.oneOf allTypes));
default = {};
description = ''
environment variables passed to the build environment
'';
};
};
}
4 changes: 4 additions & 0 deletions modules/dream2nix/core/eval-cache/interface.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ in {
type = t.submodule {
freeformType = t.anything;
};
description = ''
The content of the cached fields.
For example if fields.pname is set to true, then content.pname will exist.
'';
};

invalidationFields = l.mkOption {
Expand Down
6 changes: 6 additions & 0 deletions modules/dream2nix/core/flags/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ in {
flagsOffered = l.mkOption {
type = t.attrsOf t.str;
default = {};
description = ''
declare flags that can be used to enable/disable features
'';
};

# The flag options generated from `flagsOffered`
Expand All @@ -52,6 +55,9 @@ in {
options = l.mapAttrs (_: mkFlag) config.flagsOffered;
};
default = {};
description = ''
Enable/disable flags declared in `flagsOffered`
'';
};
};
}
4 changes: 4 additions & 0 deletions modules/dream2nix/core/lock/interface.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ in {
type = t.submodule {
freeformType = t.anything;
};
description = ''
The content of the lock file.
All fields declared via `lock.fields` are contained pointing to their respective values.
'';
};

fields = l.mkOption {
Expand Down

0 comments on commit 212fcf4

Please sign in to comment.