Fix quickshell wrapper using symlinkJoin

- Use symlinkJoin with wrapProgram for proper binary wrapping
- This ensures the qs binary gets the QML2_IMPORT_PATH set correctly
- Should resolve the Qt5Compat.GraphicalEffects import issue permanently
This commit is contained in:
Celes Renata
2025-08-09 23:39:33 -07:00
parent 1601f5c85f
commit 5f15f5ed78
+9 -4
View File
@@ -24,10 +24,15 @@
{
overlays.default = final: prev: {
# Enhanced quickshell with Qt5Compat support for dots-hyprland
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 "$@"
'';
quickshell = final.symlinkJoin {
name = "quickshell-with-qt5compat";
paths = [ quickshell.packages.${system}.default ];
buildInputs = [ final.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/qs \
--prefix QML2_IMPORT_PATH : "${final.qt6.qt5compat}/lib/qt-6/qml"
'';
};
};
packages.${system} = utilityPackages // {