[Nix-dev] Re: [Nix-commits] SVN commit: nix - 13726 - raskin - nixpkgs/trunk/pkgs/lib

Nicolas Pierron nicolas.b.pierron at gmail.com
Mon Jan 12 19:36:53 CET 2009


On Fri, Jan 9, 2009 at 00:02, Michael Raskin <7c6f434c at mail.ru> wrote:
> Modified: nixpkgs/trunk/pkgs/lib/default.nix
> ===================================================================
> --- nixpkgs/trunk/pkgs/lib/default.nix  2009-01-08 22:21:32 UTC (rev 13725)
> +++ nixpkgs/trunk/pkgs/lib/default.nix  2009-01-08 23:02:44 UTC (rev 13726)
> @@ -484,6 +484,7 @@
>     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.";

Nice trick, but it would be better to have a builtins.isString for that.

-- 
Nicolas Pierron
http://www.linkedin.com/in/nicolasbpierron
- If you are doing something twice then you should try to do it once.



More information about the nix-dev mailing list