mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
lib/types: types.functionTo deprecate functor.wrapped in favor of functor.payload.elemType
This commit is contained in:
@@ -8,6 +8,7 @@ let
|
||||
listOf
|
||||
unique
|
||||
nullOr
|
||||
functionTo
|
||||
;
|
||||
in
|
||||
{
|
||||
@@ -42,6 +43,13 @@ in
|
||||
options.mergedNullOr = mkOption {
|
||||
type = nullOr (listOf types.str);
|
||||
};
|
||||
# nullOr
|
||||
options.functionTo = mkOption {
|
||||
type = functionTo (listOf types.str);
|
||||
};
|
||||
options.mergedFunctionTo = mkOption {
|
||||
type = functionTo (listOf types.str);
|
||||
};
|
||||
}
|
||||
)
|
||||
# Module B
|
||||
@@ -60,6 +68,9 @@ in
|
||||
options.mergedNullOr = mkOption {
|
||||
type = nullOr (listOf types.str);
|
||||
};
|
||||
options.mergedFunctionTo = mkOption {
|
||||
type = functionTo (listOf types.str);
|
||||
};
|
||||
}
|
||||
)
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user