1- { pkgs , strOrPackage , attrsOfNested , pairHelpPackageType , pairHelpCommandType , flatOptionsType , maxDepth } :
1+ { pkgs , strOrPackage , attrsNestedOf , pairHelpPackageType , pairHelpCommandType , flatOptionsType , maxDepth } :
22with pkgs . lib ;
33{
44 prefix = mkOption {
@@ -19,7 +19,7 @@ with pkgs.lib;
1919 } ;
2020
2121 prefixes = mkOption {
22- type = types . nullOr ( attrsOfNested types . str ) ;
22+ type = types . nullOr ( attrsNestedOf types . str ) ;
2323 default = { } ;
2424 description = ''
2525 A leaf value becomes a prefix of a `${ flatOptionsType . name } .name` of a `package` (`command`) with a matching path in `packages` (`commands`).
@@ -39,7 +39,7 @@ with pkgs.lib;
3939 packages = mkOption {
4040 type =
4141 types . nullOr (
42- attrsOfNested ( types . oneOf [
42+ attrsNestedOf ( types . oneOf [
4343 strOrPackage
4444 pairHelpPackageType
4545 ] ) ) ;
@@ -89,7 +89,7 @@ with pkgs.lib;
8989 commands = mkOption {
9090 type =
9191 types . nullOr (
92- attrsOfNested ( types . oneOf [
92+ attrsNestedOf ( types . oneOf [
9393 types . str
9494 pairHelpCommandType
9595 ] ) ) ;
@@ -133,7 +133,7 @@ with pkgs.lib;
133133 } ;
134134
135135 helps = mkOption {
136- type = types . nullOr ( attrsOfNested types . str ) ;
136+ type = types . nullOr ( attrsNestedOf types . str ) ;
137137 default = { } ;
138138 description = ''
139139 A leaf value can be used as `${ flatOptionsType . name } .help` for a `package` (`command`) with a matching path in `packages` (`commands`).
@@ -171,7 +171,7 @@ with pkgs.lib;
171171 } ;
172172
173173 exposes = mkOption {
174- type = types . nullOr ( attrsOfNested types . bool ) ;
174+ type = types . nullOr ( attrsNestedOf types . bool ) ;
175175 default = { } ;
176176 description = ''
177177 A nested (max depth is ${ toString maxDepth } ) attrset of `${ flatOptionsType . name } .expose`-s.
0 commit comments