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 <stereomato@proton.me>
This commit is contained in:
stereomato
2025-01-21 02:07:47 -05:00
parent e65e23b593
commit ad370bf190
@@ -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 ]}" \