mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-19 12:04:13 +00:00
Merge branch 'upstream' into v0.8
This commit is contained in:
commit
7e0ec5bce7
8 changed files with 39 additions and 19 deletions
|
|
@ -4,13 +4,11 @@
|
|||
inherit (lib.strings) isString stringLength match;
|
||||
inherit (lib.types) listOf mkOptionType coercedTo;
|
||||
in {
|
||||
mergelessListOf = elemType: let
|
||||
super = listOf elemType;
|
||||
in
|
||||
super
|
||||
// {
|
||||
mergelessListOf = elemType:
|
||||
mkOptionType {
|
||||
name = "mergelessListOf";
|
||||
description = "mergeless ${super.description}";
|
||||
description = "mergeless list of ${elemType.description or "values"}";
|
||||
inherit (lib.types.listOf elemType) check;
|
||||
merge = mergeEqualOption;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue