mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
mergeDefaultOption: handle boolean values.
svn path=/nixpkgs/trunk/; revision=13371
This commit is contained in:
parent
b62298f7c7
commit
0f2bd6c305
@ -399,6 +399,7 @@ rec {
|
||||
else if all __isFunction list then x: mergeDefaultOption (map (f: f x) list)
|
||||
else if all __isList list then concatLists list
|
||||
else if all __isAttrs list then mergeAttrs list
|
||||
else if all (x: true == x || false == x) list then fold logicalOR false list
|
||||
else abort "${name}: Cannot merge values.";
|
||||
|
||||
mergeTypedOption = typeName: predicate: merge: name: list:
|
||||
|
Loading…
Reference in New Issue
Block a user