Make all node packages available at the top level via their real name/version

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy 2013-08-15 09:57:07 -04:00
parent 63d096bc46
commit ddb8b7f831

View file

@ -15,7 +15,10 @@ let
else [];
in depsOr;
all = pkgs.lib.fold (pkg: { top-level, full }: {
top-level = top-level ++ pkgs.lib.optional pkg.topLevel {
top-level = top-level ++ [ {
name = "${pkg.name}-${pkg.version}";
value = builtins.getAttr pkg.spec (builtins.getAttr pkg.name self.full);
} ] ++ pkgs.lib.optional pkg.topLevel {
name = pkg.name;
value = builtins.getAttr pkg.spec (builtins.getAttr pkg.name self.full);
};