@@ -1,4 +1,4 @@
1−{ callPackage, python3, enableNpm ? true }:
1+{ callPackage, fetchpatch, python3, enableNpm ? true }:
22
33let
44 buildNodejs = callPackage ./nodejs.nix {
@@ -9,5 +9,13 @@ buildNodejs {
99 inherit enableNpm;
1010 version = "17.1.0";
1111 sha256 = "1iyazwpgv3pxqh7zz3s87qwrbahifrj9sj1a2vwhkc4jxcvkz03b";
12− patches = [ ./disable-darwin-v8-system-instrumentation.patch ];
12+ patches = [
13+ ./disable-darwin-v8-system-instrumentation.patch
14+ # Fixes node incorrectly building vendored OpenSSL when we want system OpenSSL.
15+ # https://github.com/nodejs/node/pull/40965
16+ (fetchpatch {
17+ url = "https://github.com/nodejs/node/commit/65119a89586b94b0dd46b45f6d315c9d9f4c9261.patch";
18+ sha256 = "sha256-dihKYEdK68sQIsnfTRambJ2oZr0htROVbNZlFzSAL+I=";
19+ })
20+ ];
1321}