mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-27 00:06:16 +02:00
1a7e88bbd9
names of the attributes in an attribute set.
11 lines
217 B
Nix
11 lines
217 B
Nix
with import ./lib.nix;
|
|
|
|
let
|
|
|
|
attrs = {y = "y"; x = "x"; foo = "foo";} // rec {x = "newx"; bar = x;};
|
|
|
|
names = builtins.attrNames attrs;
|
|
|
|
values = map (name: builtins.getAttr name attrs) names;
|
|
|
|
in concat values
|