Unverified Commit 04b1a12a authored by Michael Weiss's avatar Michael Weiss
Browse files

chromium: Support GTK 4



Chromium can be launched with `--gtk-version=4` but this didn't work as
the binary must be able to dlopen() libgtk-4.so.1 [0].

This fixes #214392.

Co-Authored-By: default avatarSávio <25729991+saviosg@users.noreply.github.com>

[0]: https://source.chromium.org/chromium/chromium/src/+/main:ui/gtk/gtk_compat.cc;l=85;drc=3e1a26c44c024d97dc9a4c09bbc6a2365398ca2c
parent 4c7a1272
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
{ newScope, config, stdenv, fetchurl, makeWrapper
, llvmPackages_14, ed, gnugrep, coreutils, xdg-utils
, glib, gtk3, gnome, gsettings-desktop-schemas, gn, fetchgit
, glib, gtk3, gtk4, gnome, gsettings-desktop-schemas, gn, fetchgit
, libva, pipewire, wayland
, gcc, nspr, nss, runCommand
, lib, libkrb5
@@ -178,7 +178,7 @@ in stdenv.mkDerivation {

  buildCommand = let
    browserBinary = "${chromiumWV}/libexec/chromium/chromium";
    libPath = lib.makeLibraryPath [ libva pipewire wayland gtk3 libkrb5 ];
    libPath = lib.makeLibraryPath [ libva pipewire wayland gtk3 gtk4 libkrb5 ];

  in with lib; ''
    mkdir -p "$out/bin"