mirror of
https://github.com/celesrenata/end-4-flakes.git
synced 2026-06-12 21:09:56 -05:00
Fix Qt6 QML import path for Qt5Compat
- Use NIXPKGS_QT6_QML_IMPORT_PATH which is the correct variable for Qt6 - Add QT_PLUGIN_PATH for Qt5Compat plugins - This should properly expose Qt5Compat.GraphicalEffects to quickshell
This commit is contained in:
@@ -31,12 +31,12 @@
|
|||||||
# Use Qt's wrapper to ensure QML modules are found
|
# Use Qt's wrapper to ensure QML modules are found
|
||||||
nativeBuildInputs = (oldAttrs.nativeBuildInputs or []) ++ [ final.qt6.wrapQtAppsHook ];
|
nativeBuildInputs = (oldAttrs.nativeBuildInputs or []) ++ [ final.qt6.wrapQtAppsHook ];
|
||||||
|
|
||||||
# Set up QML import paths properly
|
# Set up QML import paths properly using the correct Qt6 variable
|
||||||
preFixup = (oldAttrs.preFixup or "") + ''
|
preFixup = (oldAttrs.preFixup or "") + ''
|
||||||
qtWrapperArgs+=(
|
qtWrapperArgs+=(
|
||||||
--prefix QML2_IMPORT_PATH : "${final.qt6.qt5compat}/${final.qt6.qtbase.qtQmlPrefix}"
|
--prefix QML2_IMPORT_PATH : "${final.qt6.qt5compat}/${final.qt6.qtbase.qtQmlPrefix}"
|
||||||
--prefix QML2_IMPORT_PATH : "${final.qt6.qtpositioning}/${final.qt6.qtbase.qtQmlPrefix}"
|
--prefix NIXPKGS_QT6_QML_IMPORT_PATH : "${final.qt6.qt5compat}/${final.qt6.qtbase.qtQmlPrefix}"
|
||||||
--prefix QML2_IMPORT_PATH : "${final.qt6.qtmultimedia}/${final.qt6.qtbase.qtQmlPrefix}"
|
--prefix QT_PLUGIN_PATH : "${final.qt6.qt5compat}/lib/qt-6/plugins"
|
||||||
)
|
)
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user