aboutsummaryrefslogtreecommitdiff
path: root/npmPackages/lib.nix
blob: 82e092b4fd7f5e44830a15191a5e906d5fa3aa78 (plain)
1
2
3
4
5
6
7
8
9
rec {
  overrideBuild = drv: f: (drv.override (args: args // {
    buildNpmPackage = drv: (args.buildNpmPackage drv).override f;
  })) // {
    overrideScope = scope: overrideBuild (drv.overrideScope scope) f;
  };

  dontCheck = drv: overrideBuild drv (drv: { doCheck = false; });
}