From 8b75191beaaa19bd0a7f9bc4985356653a530a50 Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Wed, 21 Jul 2021 11:46:49 +0200 Subject: [PATCH] chromium: Fix the Ozone/Wayland support The stable channel update to M92 (97570d30c7f) broke the Wayland support: $ chromium --enable-features=UseOzonePlatform --ozone-platform=wayland [31712:31712:0721/114725.940557:ERROR:wayland_connection.cc(137)] Failed to load wayland client libraries. [31712:31712:0721/114725.940641:FATAL:ozone_platform_wayland.cc(177)] Failed to initialize Wayland platform [0721/114725.947566:ERROR:process_memory_range.cc(75)] read out of range Trace/breakpoint trap (core dumped) (cherry picked from commit bb651d27fd86814087f54eaefda0a0fc04d4d6cf) --- pkgs/applications/networking/browsers/chromium/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/browsers/chromium/default.nix b/pkgs/applications/networking/browsers/chromium/default.nix index c83a0e166bd..33619f27350 100644 --- a/pkgs/applications/networking/browsers/chromium/default.nix +++ b/pkgs/applications/networking/browsers/chromium/default.nix @@ -1,8 +1,7 @@ { newScope, config, stdenv, fetchurl, makeWrapper , llvmPackages_11, llvmPackages_12, ed, gnugrep, coreutils, xdg-utils , glib, gtk3, gnome, gsettings-desktop-schemas, gn, fetchgit -, libva ? null -, pipewire +, libva, pipewire, wayland , gcc, nspr, nss, runCommand , lib @@ -165,7 +164,7 @@ in stdenv.mkDerivation { buildCommand = let browserBinary = "${chromiumWV}/libexec/chromium/chromium"; - libPath = lib.makeLibraryPath [ libva pipewire gtk3 ]; + libPath = lib.makeLibraryPath [ libva pipewire wayland gtk3 ]; in with lib; '' mkdir -p "$out/bin"