2021-12-11 03:28:09 +01:00
|
|
|
{ callPackage, fetchpatch, openssl, python3, enableNpm ? true }:
|
2021-04-20 06:20:00 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
buildNodejs = callPackage ./nodejs.nix {
|
|
|
|
inherit openssl;
|
|
|
|
python = python3;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
buildNodejs {
|
|
|
|
inherit enableNpm;
|
2021-12-06 13:03:03 +01:00
|
|
|
version = "16.13.1";
|
|
|
|
sha256 = "1bb3rjb2xxwn6f4grjsa7m1pycp0ad7y6vz7v2d7kbsysx7h08sc";
|
2021-12-11 03:28:09 +01: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-04-20 06:20:00 +02:00
|
|
|
}
|