mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
lib/types: types.nullOr deprecate functor.wrapped in favor of functor.payload.elemType
This commit is contained in:
parent
05958f27e2
commit
4fe25460e1
4 changed files with 23 additions and 3 deletions
|
@ -7,6 +7,7 @@ let
|
|||
attrsOf
|
||||
listOf
|
||||
unique
|
||||
nullOr
|
||||
;
|
||||
in
|
||||
{
|
||||
|
@ -34,6 +35,13 @@ in
|
|||
options.mergedUnique = mkOption {
|
||||
type = unique { message = ""; } (listOf types.str);
|
||||
};
|
||||
# nullOr
|
||||
options.nullOr = mkOption {
|
||||
type = nullOr (listOf types.str);
|
||||
};
|
||||
options.mergedNullOr = mkOption {
|
||||
type = nullOr (listOf types.str);
|
||||
};
|
||||
}
|
||||
)
|
||||
# Module B
|
||||
|
@ -49,6 +57,9 @@ in
|
|||
options.mergedUnique = mkOption {
|
||||
type = unique { message = ""; } (listOf types.str);
|
||||
};
|
||||
options.mergedNullOr = mkOption {
|
||||
type = nullOr (listOf types.str);
|
||||
};
|
||||
}
|
||||
)
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue