Skip to content

Conversation

@jrobsonchase
Copy link

@jrobsonchase jrobsonchase commented Jan 10, 2026

Added an override to livekit-libwebrtc to include the build changes here and here as mentioned in this comment, which are currently in-flight in the nixpkgs PR referenced in the main desktop capture PR.

Everything seems to build, but I haven't had a chance to test it out yet.

If merged, we should delete the vendored build ASAP (once the update hits nixpkgs-unstable).

Alternatively, we can just use this to test things and make sure it's all good, and wait until the package hits nixpkgs-unstable to merge the parent PR.

NOTtheMessiah and others added 2 commits December 9, 2025 08:09
in buildInputs
This adds support for screen sharing on Wayland (fixes zed-industries#28754).

libwebrtc replaces scap, which aims to be cross platform but was only
used on Windows and X11. The X11 support relied on an out-of-tree branch
on which the original author closed their own pull request
(CapSoftware/scap#124). This also replaces Zed's
platform-specific code on macOS. Switching to a single cross platform
library simplifies the code by removing the need for Zed to have its own
traits for cross platform abstraction.
@jrobsonchase jrobsonchase force-pushed the libwebrtc_desktop_capture branch from 08571ea to 18b829b Compare January 11, 2026 20:45
@jrobsonchase
Copy link
Author

This is building, but now I've fully vendored the libwebrtc build from my nixpkgs PR. Probably not what we want long-term, but this at least works as a proof-of-concept.

Going to keep pushing that nixpkgs pr forward, and keep this around for now, just in case there are unexpected issues getting it upstreamed and we do end up needing to own the build.

@jrobsonchase jrobsonchase force-pushed the libwebrtc_desktop_capture branch from 18b829b to cd23c6b Compare January 12, 2026 15:16
@jrobsonchase jrobsonchase changed the title Update nix files from main and override libwebrtc build Override libwebrtc build with vendored in-flight nixpkgs change Jan 12, 2026
@jrobsonchase
Copy link
Author

Figured out all the build problems and cleaned this up. Now it's just a cp -r of the directory from nixpkgs to keep things simple if further changes need to be made, pending nixpkgs PR review.

@jrobsonchase jrobsonchase force-pushed the libwebrtc_desktop_capture branch from 7d21814 to db404c1 Compare January 12, 2026 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants