Skip to content

Commit

Permalink
Merge pull request #169476 from NixOS/backport-169365-to-release-21.11
Browse files Browse the repository at this point in the history
[Backport release-21.11] chromium: Fix Wayland screen sharing
  • Loading branch information
Artturin authored Apr 21, 2022
2 parents 326ef98 + ba57e30 commit 9887f02
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pkgs/applications/networking/browsers/chromium/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ let
url = "https://chromium.googlesource.com/chromium/tools/build/+/e77882e0dde52c2ccf33c5570929b75b4a2a2522/recipes/recipe_modules/chromium/resources/clang-format?format=TEXT";
sha256 = "0ic3hn65dimgfhakli1cyf9j3cxcqsf1qib706ihfhmlzxf7256l";
};
# https://webrtc-review.googlesource.com/c/src/+/255601
webrtcWaylandScreenshareCoredumpFix = fetchurl {
# PipeWire capturer: check existence of cursor metadata
name = "webrtc-wayland-screenshare-coredump-fix.patch";
url = "https://webrtc-review.googlesource.com/changes/src~255601/revisions/2/patch?download";
hash = "sha256-PHGwEoYhMa+ZL2ner10FwdGUWUxsVr+HWuZOAEugYDY=";
};

# The additional attributes for creating derivations based on the chromium
# source tree.
Expand Down Expand Up @@ -166,7 +173,9 @@ let
./patches/widevine-79.patch
];

postPatch = ''
postPatch = optionalString (versionRange "100" "101") ''
base64 --decode ${webrtcWaylandScreenshareCoredumpFix} | patch -p1 -d third_party/webrtc
'' + ''
# remove unused third-party
for lib in ${toString gnSystemLibraries}; do
if [ -d "third_party/$lib" ]; then
Expand Down

0 comments on commit 9887f02

Please sign in to comment.