diff --git a/overlays/default.nix b/overlays/default.nix index ef211269..228d47a8 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -43,15 +43,26 @@ in { }; qutebrowser = prev.qutebrowser.overrideAttrs (oldAttrs: { - # Force x11, as live-refreshing colorscheme based on portal is not working on wayland platform atm - # This is fixed by https://codereview.qt-project.org/c/qt/qtbase/+/547252 preFixup = oldAttrs.preFixup - + '' + + + # Force x11, as live-refreshing colorscheme based on portal is not working on wayland platform atm + # This is fixed by https://codereview.qt-project.org/c/qt/qtbase/+/547252 + '' makeWrapperArgs+=( --set QT_QPA_PLATFORM xcb ) - ''; + '' + + + # Fix for https://github.com/NixOS/nixpkgs/issues/168484 + (let + schemaPath = package: "${package}/share/gsettings-schemas/${package.name}"; + in '' + makeWrapperArgs+=( + --prefix XDG_DATA_DIRS : ${schemaPath final.gsettings-desktop-schemas} + --prefix XDG_DATA_DIRS : ${schemaPath final.gtk3} + ) + ''); patches = (oldAttrs.patches or []) ++ [