From 9e8fc7c07f1e29e05ca14eaded48b18c89177133 Mon Sep 17 00:00:00 2001 From: maulanasdqn Date: Wed, 21 Jan 2026 16:34:39 +0700 Subject: [PATCH] fix(nix): use --output-style=static to bypass Nx terminal crash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Call Nx directly with --output-style=static flag instead of through npm scripts to completely bypass the pseudo terminal initialization that crashes in non-TTY environments. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- nix/landing.nix | 2 +- nix/mkViteApp.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nix/landing.nix b/nix/landing.nix index 13174e8..c124dee 100644 --- a/nix/landing.nix +++ b/nix/landing.nix @@ -25,7 +25,7 @@ pkgs.buildNpmPackage { export NX_SKIP_NX_CACHE=true export NX_TASKS_RUNNER_DYNAMIC_OUTPUT=false export NX_NATIVE=false - npm run landing:build + ./node_modules/.bin/nx build landing --output-style=static runHook postBuild ''; diff --git a/nix/mkViteApp.nix b/nix/mkViteApp.nix index 0da24e8..8d826fd 100644 --- a/nix/mkViteApp.nix +++ b/nix/mkViteApp.nix @@ -27,7 +27,7 @@ pkgs.buildNpmPackage { export NX_TASKS_RUNNER_DYNAMIC_OUTPUT=false export NX_NATIVE=false ${pkgs.lib.concatStringsSep "\n" (pkgs.lib.mapAttrsToList (k: v: "export ${k}=\"${v}\"") envVars)} - npm run ${buildScript} + ./node_modules/.bin/nx build ${name} --output-style=static runHook postBuild '';