Final fix for Qt5Compat QML import path

- Use QML2_IMPORT_PATH with correct path to qt5compat QML modules
- Simplified to just the essential path that works
- This resolves the Qt5Compat.GraphicalEffects import issue
This commit is contained in:
Celes Renata
2025-08-09 23:28:53 -07:00
parent 60c9d69eba
commit 9e5a394b54
+2 -4
View File
@@ -31,12 +31,10 @@
# 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 using the correct Qt6 variable # Set up QML import paths properly using QML2_IMPORT_PATH (the correct 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}/lib/qt-6/qml"
--prefix NIXPKGS_QT6_QML_IMPORT_PATH : "${final.qt6.qt5compat}/${final.qt6.qtbase.qtQmlPrefix}"
--prefix QT_PLUGIN_PATH : "${final.qt6.qt5compat}/lib/qt-6/plugins"
) )
''; '';
}); });