google-chrome: Fix Qt support (#375279)

This commit is contained in:
Jon Seager
2025-01-21 09:31:40 +00:00
committed by GitHub
@@ -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 ]}" \