2022-06-16 17:23:12 +00:00
|
|
|
{ qtModule
|
|
|
|
, qtbase
|
2023-04-12 12:48:02 +00:00
|
|
|
, qtlanguageserver
|
2022-06-16 17:23:12 +00:00
|
|
|
, qtshadertools
|
|
|
|
, openssl
|
2024-04-21 15:54:59 +00:00
|
|
|
, stdenv
|
2022-06-16 17:23:12 +00:00
|
|
|
, python3
|
2024-04-21 15:54:59 +00:00
|
|
|
, lib
|
|
|
|
, pkgsBuildBuild
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
qtModule {
|
|
|
|
pname = "qtdeclarative";
|
2024-04-21 15:54:59 +00:00
|
|
|
strictDeps = !stdenv.isDarwin; # fails to detect python3 otherwise
|
|
|
|
propagatedBuildInputs = [ qtbase qtlanguageserver qtshadertools openssl ];
|
|
|
|
nativeBuildInputs = [ python3 ];
|
2022-11-21 17:40:18 +00:00
|
|
|
patches = [
|
|
|
|
# prevent headaches from stale qmlcache data
|
2024-04-21 15:54:59 +00:00
|
|
|
../patches/0001-qtdeclarative-disable-qml-disk-cache.patch
|
2024-01-25 14:12:00 +00:00
|
|
|
# add version specific QML import path
|
2024-04-21 15:54:59 +00:00
|
|
|
../patches/0002-qtdeclarative-also-use-versioned-qml-paths.patch
|
|
|
|
];
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DQt6ShaderToolsTools_DIR=${pkgsBuildBuild.qt6.qtshadertools}/lib/cmake/Qt6ShaderTools"
|
|
|
|
]
|
|
|
|
# Conditional is required to prevent infinite recursion during a cross build
|
|
|
|
++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
|
|
|
|
"-DQt6QmlTools_DIR=${pkgsBuildBuild.qt6.qtdeclarative}/lib/cmake/Qt6QmlTools"
|
2022-11-21 17:40:18 +00:00
|
|
|
];
|
2022-06-16 17:23:12 +00:00
|
|
|
}
|