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:
parent
f771d39750
commit
06da97fc3a
3 changed files with 62 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue