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

This makes attributes visible to nix-env that can't actually be
specified with -A, which is why there is a separate top-level in the
first place, duh.

This reverts commit ddb8b7f831.

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy 2013-08-16 15:24:59 -04:00
parent 026f444450
commit 595b8dbab9

View File

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