mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
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:
parent
63d096bc46
commit
ddb8b7f831
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue