Add a (failure-prone) last-chance string merger
svn path=/nixpkgs/trunk/; revision=13726
This commit is contained in:
@@ -484,6 +484,7 @@ rec {
|
|||||||
else if all __isList list then concatLists list
|
else if all __isList list then concatLists list
|
||||||
else if all __isAttrs list then mergeAttrs list
|
else if all __isAttrs list then mergeAttrs list
|
||||||
else if all (x: true == x || false == x) list then fold logicalOR false list
|
else if all (x: true == x || false == x) list then fold logicalOR false list
|
||||||
|
else if all (x: x == toString x) list then concatStrings x
|
||||||
else abort "${name}: Cannot merge values.";
|
else abort "${name}: Cannot merge values.";
|
||||||
|
|
||||||
mergeTypedOption = typeName: predicate: merge: name: list:
|
mergeTypedOption = typeName: predicate: merge: name: list:
|
||||||
|
|||||||
Reference in New Issue
Block a user