0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

lib.types.functionTo: Support type merging

This commit is contained in:
Robert Hensing 2022-05-13 08:59:27 +02:00
parent f771d39750
commit 06da97fc3a
3 changed files with 62 additions and 0 deletions

View file

@ -529,6 +529,8 @@ rec {
getSubOptions = elemType.getSubOptions;
getSubModules = elemType.getSubModules;
substSubModules = m: functionTo (elemType.substSubModules m);
functor = (defaultFunctor "functionTo") // { wrapped = elemType; };
nestedTypes.elemType = elemType;
};
# A submodule (like typed attribute set). See NixOS manual.