mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
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:
parent
026f444450
commit
595b8dbab9
@ -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);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user