Repository navigation
fix(nix): enable Wayland clipboard images - #48928
Merged
Merged
Conversation
Contributor
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
3 of 6 tasks
jinhuang712
pushed a commit
to jinhuang712/opencode
that referenced
this pull request
Sep 26, 2026
Co-authored-by: Aiden Cline <[email protected]>
9 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Closes #48931
Related to #44310, specifically the NixOS image-paste report.
Build dependency: #48662 fixes the existing CLI binary-name mismatch in the Nix package.
Type of change
What does this PR do?
Adds Wayland to the Nix CLI package and prefixes its library directory to
LD_LIBRARY_PATHon Linux.OpenTUI loads
libwayland-client.so.0at runtime to access clipboard images. On NixOS, that library lives in the Nix store and needs an explicit search path. This moves the working downstream wrapper fix into the package.How did you verify your code works?
LD_LIBRARY_PATHunset; loading the same library succeeds with the path generated by this wrapper.nix build .#opencode --no-linkand the built CLI's--versionpassed with a local binary-source-path correction. That correction is excluded from this PR because fix(nix): install opencode and keep opencode2 alias #48662 covers it. Without it, the existing install step fails before wrapping the binary.bun run checkcould not run because the fresh checkout has nooxlintinstalled.Screenshots / recordings
N/A, pending the nix packaging change.
However, here is a screenshot of it working with the equivalent fix applied to my flake:

Checklist