Excerpts from Yury G. Kudryashov's message of Fri May 14 22:22:32 +0000 2010:
> Hi!
> 
> AFAICS, nix supports any string as a key in attr set, but { name = value; } 
> syntax only supports "simple" strings.
> 
> What do you think about the following:
> 
> x = {
>   'very strange.name' = "value";
>   '0.2' = "another value";
> }

In fact I tried implementing it. I failed I got a segfault I couldn't
resolve.

The workaround is using builtins.listToAttrs which is cumbersome but
works. If you grep nixpkgs for this word you'llt find examples.

This is still on my long TODO list..

Marc Weber
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to