2022-06-16 17:23:12 +00:00
|
|
|
{ qtModule
|
|
|
|
, qtbase
|
|
|
|
, qtshadertools
|
|
|
|
, openssl
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
|
|
|
qtModule {
|
|
|
|
pname = "qtdeclarative";
|
|
|
|
qtInputs = [ qtbase qtshadertools ];
|
|
|
|
propagatedBuildInputs = [ openssl python3 ];
|
|
|
|
preConfigure = ''
|
|
|
|
export LD_LIBRARY_PATH="$PWD/build/lib''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
|
|
|
|
'';
|
2022-10-21 18:38:19 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DQT6_INSTALL_PREFIX=${placeholder "out"}"
|
|
|
|
"-DQT_INSTALL_PREFIX=${placeholder "out"}"
|
|
|
|
];
|
2022-11-21 17:40:18 +00:00
|
|
|
patches = [
|
|
|
|
# prevent headaches from stale qmlcache data
|
|
|
|
../patches/qtdeclarative-default-disable-qmlcache.patch
|
|
|
|
];
|
2022-06-16 17:23:12 +00:00
|
|
|
postInstall = ''
|
|
|
|
substituteInPlace "$out/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake" \
|
2022-10-21 18:38:19 +00:00
|
|
|
--replace ''\'''${QT6_INSTALL_PREFIX}' "$dev"
|
2022-06-16 17:23:12 +00:00
|
|
|
'';
|
2022-10-21 18:38:19 +00:00
|
|
|
devTools = [
|
|
|
|
"bin/qml"
|
|
|
|
"bin/qmlcachegen"
|
|
|
|
"bin/qmleasing"
|
|
|
|
"bin/qmlimportscanner"
|
|
|
|
"bin/qmllint"
|
|
|
|
"bin/qmlmin"
|
|
|
|
"bin/qmlplugindump"
|
|
|
|
"bin/qmlprofiler"
|
|
|
|
"bin/qmlscene"
|
|
|
|
"bin/qmltestrunner"
|
|
|
|
];
|
2022-06-16 17:23:12 +00:00
|
|
|
}
|