1
1
forked from extern/flakelight

Add fileset option type

This commit is contained in:
Archit Gupta 2023-12-06 22:46:11 -08:00
parent ec68d50b4a
commit 88607687cf

View File

@ -77,6 +77,13 @@ let
merge = _: defs: { imports = getValues defs; };
};
fileset = mkOptionType {
name = "fileset";
description = "fileset";
descriptionClass = "noun";
check = x: isPath x || x._type or null == "fileset";
};
optListOf = elemType: coercedTo elemType singleton (listOf elemType);
optFunctionTo = elemType: coercedTo elemType (x: _: x)