[Nix-dev] Nix language: converting an attribute set to a list

2014-04-14 Thread Sergey Mironov
Hi. Nix language has a built-in function builtins.listToAttrs which converts list to the Attrs. I'm searching a way to make an opposite thing - convert attrs to a list. Say, I'd like to convert users = { root = { name = root; group = groups.root; }; ssh = { name = ssh ;

Re: [Nix-dev] Nix language: converting an attribute set to a list

2014-04-14 Thread Marc Weber
attrValues (mapAttrs (name: vals: merge or check that name is same as name key) ) attrs Marc Weber ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev