0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

* Options / config: these should be attrsets, not lists (IMHO).

svn path=/nixpkgs/trunk/; revision=16359
This commit is contained in:
Eelco Dolstra 2009-07-14 16:22:42 +00:00
parent 7f080535c4
commit 80cab44fce

View file

@ -62,8 +62,8 @@ rec {
selectDeclsAndDefs = modules: selectDeclsAndDefs = modules:
lib.concatMap (m: lib.concatMap (m:
if m ? config || m ? options then if m ? config || m ? options then
attrByPath ["options"] [] m [ (attrByPath ["options"] {} m) ]
++ attrByPath ["config"] [] m ++ [ (attrByPath ["config"] {} m) ]
else else
[ m ] [ m ]
) modules; ) modules;