* modules.nix: use catAttrs function instead of hand made code.

svn path=/nixpkgs/trunk/; revision=17760
This commit is contained in:
Nicolas Pierron 2009-10-12 15:50:59 +00:00
parent 19648abc05
commit 81694a7f54

View File

@ -150,11 +150,7 @@ rec {
moduleZip = funs: modules:
lib.mapAttrs (name: fun:
fun (
map (lib.getAttr name) (
filter (builtins.hasAttr name) modules
)
)
fun (catAttrs name modules)
) funs;
moduleMerge = path: modules: