From 595b8dbab91bc94d2e08dcf4b6408a2d2891de41 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Fri, 16 Aug 2013 15:24:59 -0400 Subject: [PATCH] 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 ddb8b7f83136f64cff21adb3dcd300b742f4443f. Signed-off-by: Shea Levy --- pkgs/top-level/node-packages.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkgs/top-level/node-packages.nix b/pkgs/top-level/node-packages.nix index 13316e28d73..5719967c4c5 100644 --- a/pkgs/top-level/node-packages.nix +++ b/pkgs/top-level/node-packages.nix @@ -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); };