2022-08-12 12:06:08 +00:00
|
|
|
{ callPackage, openssl, python3, fetchpatch, enableNpm ? true }:
|
2021-04-22 02:08:21 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
buildNodejs = callPackage ./nodejs.nix {
|
|
|
|
inherit openssl;
|
|
|
|
python = python3;
|
|
|
|
};
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
npmPatches = callPackage ./npm-patches.nix { };
|
2021-04-22 02:08:21 +00:00
|
|
|
in
|
|
|
|
buildNodejs {
|
|
|
|
inherit enableNpm;
|
2023-07-15 17:15:38 +00:00
|
|
|
# If you do upgrade here, please update in pkgs/top-level/release.nix
|
|
|
|
# the permitted insecure version to ensure it gets cached for our users
|
|
|
|
# and backport this to stable release (23.05).
|
2023-08-10 07:59:29 +00:00
|
|
|
version = "16.20.2";
|
|
|
|
sha256 = "sha256-V28aA8RV5JGo0TK1h+trO4RlH8iXS7NjhDPdRNIsj0k=";
|
2021-12-19 01:06:50 +00:00
|
|
|
patches = [
|
|
|
|
./disable-darwin-v8-system-instrumentation.patch
|
2022-10-30 15:09:59 +00:00
|
|
|
./bypass-darwin-xcrun-node16.patch
|
2023-05-24 13:37:59 +00:00
|
|
|
./node-npm-build-npm-package-logic-node16.patch
|
2023-01-20 10:41:00 +00:00
|
|
|
] ++ npmPatches;
|
2021-04-22 02:08:21 +00:00
|
|
|
}
|