From e0c04110032dfdc82dff2139575fb93ef56780f0 Mon Sep 17 00:00:00 2001 From: ReStranger Date: Tue, 23 Jun 2026 19:10:55 +0300 Subject: [PATCH] fix: Skip bun version check for nix version (#33166) Signed-off-by: ReStranger Co-authored-by: dbeley <6568955+dbeley@users.noreply.github.com> --- nix/opencode.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nix/opencode.nix b/nix/opencode.nix index 82a7b54c4..a22f7d3d2 100644 --- a/nix/opencode.nix +++ b/nix/opencode.nix @@ -27,6 +27,13 @@ stdenvNoCC.mkDerivation (finalAttrs: { writableTmpDirAsHomeHook ]; + postPatch = '' + # NOTE: Relax Bun version check to be a warning instead of an error + substituteInPlace packages/script/src/index.ts \ + --replace-fail 'throw new Error(`This script requires bun@''${expectedBunVersionRange}' \ + 'console.warn(`Warning: This script requires bun@''${expectedBunVersionRange}' + ''; + configurePhase = '' runHook preConfigure