From 32aff3e6b6743902c6f95f1ac8b868265aabc3f8 Mon Sep 17 00:00:00 2001 From: Patrick Mulligan Date: Fri, 9 Jan 2026 22:53:17 +0100 Subject: [PATCH] Add CC/CXX env vars, run scripts sequentially --- modules/lamassu-lnbits.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/lamassu-lnbits.nix b/modules/lamassu-lnbits.nix index 6a7df16..d7191ee 100644 --- a/modules/lamassu-lnbits.nix +++ b/modules/lamassu-lnbits.nix @@ -322,6 +322,11 @@ in # CRITICAL: pnpm fails without TTY unless CI=true is set # See: https://github.com/pnpm/pnpm/issues/6434 CI = "true"; + # Set CC/CXX for node-gyp + CC = "${pkgs.stdenv.cc}/bin/cc"; + CXX = "${pkgs.stdenv.cc}/bin/c++"; + # Limit concurrent scripts to avoid race conditions + npm_config_jobs = "1"; }; serviceConfig = { @@ -396,7 +401,8 @@ in fi echo "==> Installing dependencies with pnpm..." - pnpm install --no-frozen-lockfile + # Use --child-concurrency=1 to run install scripts sequentially (avoids race conditions) + pnpm install --no-frozen-lockfile --child-concurrency=1 echo "==> Building project..." pnpm build