diff --git a/pkgs/by-name/pr/protonmail-bridge-gui/package.nix b/pkgs/by-name/pr/protonmail-bridge-gui/package.nix index 3cb289b6142694..addb68181605b9 100644 --- a/pkgs/by-name/pr/protonmail-bridge-gui/package.nix +++ b/pkgs/by-name/pr/protonmail-bridge-gui/package.nix @@ -60,6 +60,18 @@ stdenv.mkDerivation (finalAttrs: { # Don't build `bridge-gui-tester` sed -i "/add_subdirectory(bridge-gui-tester)/d" CMakeLists.txt + + # Qt 6.8 support + # fix "ColorImage is not a type" + find . -name '*.qml' -type f -exec sed -i ' + /import QtQuick.Controls/ { + n + /import QtQuick.Controls.impl/! { + i import QtQuick.Controls.impl + } + }' {} + + # fix "Cannot override FINAL property" + find . -name '*.qml' -type f -exec sed -i 's/\bpopupType\b/protonPopupType/g' {} + ''; cmakeFlags = [