From 1601f5c85ffd3bd3b470bfac592107035e4ce9ed Mon Sep 17 00:00:00 2001 From: Celes Renata Date: Sat, 9 Aug 2025 23:36:02 -0700 Subject: [PATCH] Fix quickshell Qt5Compat with proper wrapper script - Replace complex overrideAttrs with simple wrapper script - Directly set QML2_IMPORT_PATH to include Qt5Compat QML modules - This ensures Qt5Compat.GraphicalEffects is always available --- flake.nix | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/flake.nix b/flake.nix index 9d198d8..c30d37c 100644 --- a/flake.nix +++ b/flake.nix @@ -24,20 +24,10 @@ { overlays.default = final: prev: { # Enhanced quickshell with Qt5Compat support for dots-hyprland - quickshell = quickshell.packages.${system}.default.overrideAttrs (oldAttrs: { - # Add Qt5Compat as a runtime dependency - buildInputs = (oldAttrs.buildInputs or []) ++ [ final.qt6.qt5compat ]; - - # Use Qt's wrapper to ensure QML modules are found - nativeBuildInputs = (oldAttrs.nativeBuildInputs or []) ++ [ final.qt6.wrapQtAppsHook ]; - - # Set up QML import paths properly using QML2_IMPORT_PATH (the correct variable) - preFixup = (oldAttrs.preFixup or "") + '' - qtWrapperArgs+=( - --prefix QML2_IMPORT_PATH : "${final.qt6.qt5compat}/lib/qt-6/qml" - ) - ''; - }); + quickshell = final.writeShellScriptBin "qs" '' + export QML2_IMPORT_PATH="${final.qt6.qt5compat}/lib/qt-6/qml:$QML2_IMPORT_PATH" + exec ${quickshell.packages.${system}.default}/bin/qs "$@" + ''; }; packages.${system} = utilityPackages // {