Unverified Commit 07cf2e83 authored by Mario Rodas's avatar Mario Rodas Committed by GitHub
Browse files

Merge pull request #301508 from marsam/update-nodejs_18

nodejs_18: 18.19.1 -> 18.20.1
parents 676d2926 bb22b55b
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -19,11 +19,8 @@ let
in
buildNodejs {
  inherit enableNpm;
  # The change to minor version 18.20.0 breaks compatibility with ffi-napi
  # This breaks the compilation of some nix packages.
  # While this is investigated and fixed, do not upgrade the minor version.
  version = "18.19.1";
  sha256 = "sha256-CQ+WouzeCAtrOCxtZCvKXQvkcCp4y1Vb578CsgvRbe0=";
  version = "18.20.1";
  sha256 = "sha256-xthnqfJeY1SBDv+4IB+BR6FbKAAOUHkP2gDRyhX0m4o=";
  patches = [
    ./disable-darwin-v8-system-instrumentation.patch
    ./bypass-darwin-xcrun-node16.patch
+3 −0
Original line number Diff line number Diff line
@@ -117,6 +117,9 @@ stdenv.mkDerivation (finalAttrs: {
    ./remove-node-download.patch
  ];

  # Disable NAPI_EXPERIMENTAL to allow to build with Node.js≥18.20.0.
  env.NIX_CFLAGS_COMPILE = "-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT";

  postPatch = ''
    export HOME=$PWD