From 46fec9e4c984da52fa92acc65583cfd45b8dd2f5 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Thu, 8 Jan 2009 23:02:44 +0000 Subject: [PATCH] Add a (failure-prone) last-chance string merger svn path=/nixpkgs/trunk/; revision=13726 --- pkgs/lib/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/lib/default.nix b/pkgs/lib/default.nix index 3f7ba67ecf1e..ca8820034338 100644 --- a/pkgs/lib/default.nix +++ b/pkgs/lib/default.nix @@ -484,6 +484,7 @@ rec { 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 if all (x: x == toString x) list then concatStrings x else abort "${name}: Cannot merge values."; mergeTypedOption = typeName: predicate: merge: name: list: