mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-10 00:28:29 +00:00
fix: Skip bun version check for nix version (#33166)
Signed-off-by: ReStranger <restranger@disroot.org> Co-authored-by: dbeley <6568955+dbeley@users.noreply.github.com>
This commit is contained in:
parent
e439456b13
commit
e0c0411003
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue