From 6dfe6599d06b4fa9fc8e500ca12f9b8188145f08 Mon Sep 17 00:00:00 2001 From: Chris van der Loo Date: Sun, 23 Aug 2026 21:58:53 -0400 Subject: [PATCH] ci add nix ld --- .tangled/workflows/deploy.yaml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.tangled/workflows/deploy.yaml b/.tangled/workflows/deploy.yaml index 5bfe7dc..881a248 100644 --- a/.tangled/workflows/deploy.yaml +++ b/.tangled/workflows/deploy.yaml @@ -8,12 +8,28 @@ image: nixos dependencies: - bun - wrangler + - stdenv.cc.cc + - zlib + - openssl + - icu + - libuv + +environment: + # Instruct the kernel/binary to use Tangled's NixOS nix-ld path + NIX_LD: "/run/current-system/sw/share/nix-ld/lib/ld.so" + # Tell the dynamic linker where to load your injected dependencies from + NIX_LD_LIBRARY_PATH: "/run/current-system/sw/lib" steps: - name: build command: bun install - name: build - command: bun run build + command: | + # Explicitly export paths right before execution to enforce subshell compliance + export NIX_LD="/run/current-system/sw/share/nix-ld/lib/ld.so" + export NIX_LD_LIBRARY_PATH="/run/current-system/sw/lib" + + bun run build environment: NODE_ENV: production - name: deploy -- 2.51.2