fix: drop chord and esbuild from the Nix package

The coding agent no longer depends on chord, so the install lock has
neither chord nor esbuild, and the v1.2.0 Nix build failed in the
install check that loads esbuild.
This commit is contained in:
Armin Ronacher 2026-10-13 00:57:33 +02:00
parent cd6b2a555a
commit 0a8cfff4cb

View file

@ -62,7 +62,6 @@ let
}
mkdir -p "$out"
pack_package packages/chord chord
pack_package packages/telemetry telemetry
pack_package packages/ai ai
pack_package packages/tui tui
@ -80,7 +79,6 @@ let
# The install lock points internal packages at registry releases. Replace
# them with the packages built from this checkout.
packageSourceOverrides = {
"node_modules/@earendil-works/chord" = workspacePackages + "/chord.tgz";
"node_modules/@earendil-works/pi-agent-core" = workspacePackages + "/agent.tgz";
"node_modules/@earendil-works/pi-ai" = workspacePackages + "/ai.tgz";
"node_modules/@earendil-works/pi-codemode" = workspacePackages + "/codemode.tgz";
@ -143,8 +141,6 @@ stdenv.mkDerivation {
installCheckPhase = ''
runHook preInstallCheck
test "$("$out/bin/pi" --version)" = "${packageJson.version}"
${nodejs}/bin/node -e \
"require('$out/lib/pi/node_modules/esbuild').transformSync('const value: number = 1', { loader: 'ts' })"
# Load host-platform TUI helpers directly so missing native dependencies
# fail the build rather than silently disabling clipboard support.
${nodejs}/bin/node -e \