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

Michael Raskin 7c6f434c at mail.ru
Mon Jan 12 22:44:05 CET 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Nicolas Pierron wrote:
> 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.

Well, I hope to find some small quantum time and update LiveDVD. I would
be happy to receive some direct advice on doing feature sets, but that's
another can of worms.

I do not want to use a fortnight old builtin inside NixOS tree (in a
much used place) anyway. So I have no choice..
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQEcBAEBAgAGBQJJa7mkAAoJEE6tnN0aWvw3IyYH/iz1jPL1c7cBKNpCYpOB7/1y
fkop3YTp3EyxTeLrRVfudHUdfUNGxRnIDXeqAcBIhoSjKCsanMkIc4LLefCm1cl0
z+rg3jj0bvVCDWZ7QGtSOYeGXIFDSLssXKw5JaZCSnJQl2AZ001E2uR7DSmkxVRF
1qaAv/w3UQXVkfFGufggySaji3jiwCfKfz6TtTiMMptaFpICuMVC69VssDHACwMm
NXHXzrpY1rJVsphETVNzpJP/m8wUJ9PDLdlLBOAqpnCqgf08+Lzi7yJF5pOZaIEV
vEm/1A0S3F7Y4aj4EjfxQilz6h5uD5tKBhKiI2FKtfVWIuJcAGVLN1lkYxq1Q1I=
=phzQ
-----END PGP SIGNATURE-----



More information about the nix-dev mailing list