Skip to content

Nix desktop build still fails Bun version check #36331

Description

@jerome-benoit

Description

nix build .#opencode-desktop still fails because the Bun version workaround from #33166 only applies to nix/opencode.nix.

nix/desktop.nix inherits patches from opencode, but the workaround lives in opencode.postPatch, which is not inherited. Desktop defines its own postPatch, so packages/script/src/index.ts remains unchanged and packages/desktop/scripts/prebuild.ts fails the version check.

Plugins

None

OpenCode version

1.17.18+9976269 (9976269ab1accfc9f9dc98a4a688c516934de422)

Steps to reproduce

nix build .#opencode-desktop --no-link

The build fails with:

error: This script requires bun@^1.3.14, but you are using bun@1.3.13
at /build/source/packages/script/src/index.ts:17:13
error: script "prebuild" exited with code 1

The workaround should be shared through an inherited patch or also applied by nix/desktop.nix.

Screenshot and/or share link

No response

Operating System

NixOS unstable, Linux x86_64

Terminal

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions