[Nix-dev] joining attribute sets recursively

Marc Weber marco-oweber at gmx.de
Mon Jan 16 17:10:00 CET 2012


Excerpts from Eelco Dolstra's message of Mon Jan 16 16:50:10 +0100 2012:
>   config = mkUnion
That mkUnion is exactly what mkMerge should be doing.

Wait another week or two. I hope I have nixos running on my rewrite so that we
can benchmark both memory consumption and speed. If there are no
significant improvements in those two areas I'm likely to drop it again.

You can see the draft implementation here:
http://mawercer.de/~marc/config-eval-rewrite.patch

The test.nix contains examples about how mkMerge can be used.

Basically its still a {
 options = ..
 config = ..
}

declaration. I chose to make it explicit that required modules don't depend
on options. Not sure whether its making everything less readable.

Marc Weber


More information about the nix-dev mailing list