Signed-off-by: ReStranger <restranger@disroot.org> Co-authored-by: dbeley <6568955+dbeley@users.noreply.github.com>
@@ -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