nixpkgs/pkgs/development/node-packages/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
836 B
Nix
Raw Normal View History

2023-05-04 23:08:44 +00:00
{
config,
pkgs,
lib,
nodejs,
stdenv,
}:
let
inherit (lib)
composeManyExtensions
extends
makeExtensible
mapAttrs
;
nodePackages =
final:
import ./composition.nix {
inherit pkgs nodejs;
inherit (stdenv.hostPlatform) system;
};
2022-05-06 19:20:30 +00:00
mainProgramOverrides =
final: prev:
mapAttrs (
pkgName: mainProgram:
prev.${pkgName}.override (oldAttrs: {
meta = oldAttrs.meta // {
inherit mainProgram;
};
})
) (import ./main-programs.nix);
2023-05-04 23:08:44 +00:00
aliases =
final: prev: lib.optionalAttrs config.allowAliases (import ./aliases.nix pkgs lib final prev);
extensions = composeManyExtensions [
2023-05-04 23:08:44 +00:00
aliases
mainProgramOverrides
(import ./overrides.nix { inherit pkgs nodejs; })
];
in
makeExtensible (extends extensions nodePackages)