2021-12-19 01:06:50 +00:00
|
|
|
{ callPackage, fetchpatch, python3, enableNpm ? true }:
|
2021-10-17 09:34:42 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
buildNodejs = callPackage ./nodejs.nix {
|
|
|
|
python = python3;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
buildNodejs {
|
|
|
|
inherit enableNpm;
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "17.5.0";
|
|
|
|
sha256 = "sha256-myTmgwV2xX7ja6SDM974vldSMph7Tak5Vot7ifdzzcM=";
|
2021-12-19 01:06:50 +00:00
|
|
|
patches = [
|
|
|
|
./disable-darwin-v8-system-instrumentation.patch
|
|
|
|
# Fixes node incorrectly building vendored OpenSSL when we want system OpenSSL.
|
|
|
|
# https://github.com/nodejs/node/pull/40965
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/nodejs/node/commit/65119a89586b94b0dd46b45f6d315c9d9f4c9261.patch";
|
|
|
|
sha256 = "sha256-dihKYEdK68sQIsnfTRambJ2oZr0htROVbNZlFzSAL+I=";
|
|
|
|
})
|
|
|
|
];
|
2021-10-17 09:34:42 +00:00
|
|
|
}
|