0
0
Fork 0
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:
Johannes Kirschbauer 2025-01-19 16:21:33 +01:00
parent 05958f27e2
commit 4fe25460e1
No known key found for this signature in database
4 changed files with 23 additions and 3 deletions

View file

@ -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);
};
}
)
];