3
0
Fork 0
forked from mirrors/nixpkgs

mergeDefaultOption: handle boolean values.

svn path=/nixpkgs/trunk/; revision=13371
This commit is contained in:
Nicolas Pierron 2008-11-23 00:19:12 +00:00
parent b62298f7c7
commit 0f2bd6c305

View file

@ -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: