opencode: fix Bun 1.4 runtime server error

This commit is contained in:
Chris Hill
2026-09-16 21:11:24 -07:00
parent aeca08089c
commit 994643a136

View File

@@ -110,6 +110,11 @@ stdenv.mkDerivation (finalAttrs: {
--replace-fail \
'if (item.os === process.platform && item.arch === process.arch && !item.abi)' \
'if (false)'
''
# Bun 1.4.x regressed compiled executable code splitting.
+ ''
substituteInPlace packages/opencode/script/build.ts \
--replace-fail 'splitting: true,' 'splitting: false,'
'';
nativeBuildInputs = [