From b89fa653aee4169d3a8fb01986fdc1318598fbec Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Wed, 24 Apr 2024 04:20:00 +0000 Subject: [PATCH] n8n: fix build (cherry picked from commit be2840632b13b23cec969cc93c834b0d95a5149b) --- pkgs/applications/networking/n8n/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/applications/networking/n8n/default.nix b/pkgs/applications/networking/n8n/default.nix index 20775c4ed4af..5d9b68e76839 100644 --- a/pkgs/applications/networking/n8n/default.nix +++ b/pkgs/applications/networking/n8n/default.nix @@ -30,6 +30,9 @@ nodePackages.n8n.override { # makes libmongocrypt bindings not look for static libraries in completely wrong places BUILD_TYPE = "dynamic"; + # Disable NAPI_EXPERIMENTAL to allow to build with Node.js≥18.20.0. + NIX_CFLAGS_COMPILE = "-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT"; + dontNpmInstall = true; passthru = {