From 0084bcc0a945afdb14ef40957439b0817ba7f714 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Sun, 26 Jan 2025 01:01:54 +0100 Subject: [PATCH] n8n: fix darwin build --- pkgs/by-name/n8/n8n/package.nix | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/n8/n8n/package.nix b/pkgs/by-name/n8/n8n/package.nix index dce70e681e97..132e119bd41a 100644 --- a/pkgs/by-name/n8/n8n/package.nix +++ b/pkgs/by-name/n8/n8n/package.nix @@ -7,6 +7,7 @@ pnpm_9, python3, node-gyp, + cctools, xcbuild, libkrb5, libmongocrypt, @@ -30,12 +31,17 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-Am9R2rfQiw1IPd22/UraqzEqvVeB5XuSrrLSYXWsWfU="; }; - nativeBuildInputs = [ - pnpm_9.configHook - python3 # required to build sqlite3 bindings - node-gyp # required to build sqlite3 bindings - makeWrapper - ] ++ lib.optional stdenv.hostPlatform.isDarwin [ xcbuild ]; + nativeBuildInputs = + [ + pnpm_9.configHook + python3 # required to build sqlite3 bindings + node-gyp # required to build sqlite3 bindings + makeWrapper + ] + ++ lib.optional stdenv.hostPlatform.isDarwin [ + cctools + xcbuild + ]; buildInputs = [ nodejs