From ad370bf1906d6e1cb78cd44dffdd884f901521b7 Mon Sep 17 00:00:00 2001 From: stereomato Date: Mon, 20 Jan 2025 03:09:02 -0500 Subject: [PATCH] google-chrome: Fix QT support Up until now, the AllowQt feature and the "Use Qt" button on Chrome's settings simply did nothing, now, they work. Related to: https://github.com/NixOS/nixpkgs/issues/228751 Signed-off-by: stereomato --- pkgs/by-name/go/google-chrome/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/go/google-chrome/package.nix b/pkgs/by-name/go/google-chrome/package.nix index e2f36205960d..e5284e697730 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: { @@ -243,6 +248,9 @@ let # "--simulate-outdated-no-au" disables auto updates and browser outdated popup makeWrapper "$out/share/google/$appname/google-$appname" "$exe" \ + --prefix QT_PLUGIN_PATH : "${qt6.qtbase}/lib/qt-6/plugins" \ + --prefix QT_PLUGIN_PATH : "${qt6.qtwayland}/lib/qt-6/plugins" \ + --prefix 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 ]}" \