diff --git a/pkgs/by-name/go/google-chrome/package.nix b/pkgs/by-name/go/google-chrome/package.nix index e2f36205960dc..69a9c3d9be833 100644 --- a/pkgs/by-name/go/google-chrome/package.nix +++ b/pkgs/by-name/go/google-chrome/package.nix @@ -93,6 +93,9 @@ # For Vulkan support (--enable-features=Vulkan) addDriverRunpath, undmg, + + # For QT support + qt6, }: let @@ -162,6 +165,8 @@ let ++ [ gtk3 gtk4 + qt6.qtbase + qt6.qtwayland ]; linux = stdenv.mkDerivation (finalAttrs: { @@ -190,6 +195,9 @@ let gtk4 # needed for GSETTINGS_SCHEMAS_PATH gsettings-desktop-schemas + # needed for QT support + qt6.qtbase + qt6.qtwayland ]; unpackPhase = '' @@ -243,6 +251,9 @@ let # "--simulate-outdated-no-au" disables auto updates and browser outdated popup makeWrapper "$out/share/google/$appname/google-$appname" "$exe" \ + --set QT_PLUGIN_PATH "${qt6.qtbase}/lib/qt-6/plugins" \ + --suffix QT_PLUGIN_PATH : "${qt6.qtwayland}/lib/qt-6/plugins" \ + --set NIXPKGS_QT6_QML_IMPORT_PATH "${qt6.qtwayland}/lib/qt-6/qml" \ --prefix LD_LIBRARY_PATH : "$rpath" \ --prefix PATH : "$binpath" \ --suffix PATH : "${lib.makeBinPath [ xdg-utils ]}" \ @@ -262,6 +273,7 @@ let runHook postInstall ''; + }); darwin = stdenvNoCC.mkDerivation (finalAttrs: {