[Nix-dev] nix extension proposal

Marc Weber marco-oweber at gmx.de
Sat May 15 00:34:58 CEST 2010


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



More information about the nix-dev mailing list