about summary refs log tree commit diff
path: root/pkgs/servers/openvscode-server
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/servers/openvscode-server')
-rw-r--r--pkgs/servers/openvscode-server/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/servers/openvscode-server/default.nix b/pkgs/servers/openvscode-server/default.nix
index fe6f36617d23..6a8de3c6c7b4 100644
--- a/pkgs/servers/openvscode-server/default.nix
+++ b/pkgs/servers/openvscode-server/default.nix
@@ -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