aboutsummaryrefslogtreecommitdiff
path: root/npmPackages/default.nix
blob: 0f321918c25d174872942ad41ccc8a0a1f9b20de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ pkgs ? (import <nixpkgs> {})
, stdenv ? pkgs.stdenv
, nodejs ? pkgs.nodejs
}:

let

  inherit (stdenv) lib;

  set0 = lib.makeExtensible (self:
    let
      callPackage = pkgs.newScope self;
      buildNpmPackageImpl = callPackage ./buildNpmPackage.nix {};
      buildNpmPackage = lib.makeOverridable buildNpmPackageImpl;

    in {
      inherit buildNpmPackage callPackage nodejs;
      npmPackages = self;
    }
  );

  set1 = set0.extend (import ./index.nix);
  set = set1.extend (import ./bootstrap.nix { inherit pkgs; });

in set