01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
43 lines
992 B
Nix
43 lines
992 B
Nix
{ 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"
|
|
'';
|
|
cmakeFlags = [
|
|
"-DQT6_INSTALL_PREFIX=${placeholder "out"}"
|
|
"-DQT_INSTALL_PREFIX=${placeholder "out"}"
|
|
];
|
|
patches = [
|
|
# prevent headaches from stale qmlcache data
|
|
../patches/qtdeclarative-default-disable-qmlcache.patch
|
|
];
|
|
postInstall = ''
|
|
substituteInPlace "$out/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake" \
|
|
--replace ''\'''${QT6_INSTALL_PREFIX}' "$dev"
|
|
'';
|
|
devTools = [
|
|
"bin/qml"
|
|
"bin/qmlcachegen"
|
|
"bin/qmleasing"
|
|
"bin/qmlimportscanner"
|
|
"bin/qmllint"
|
|
"bin/qmlmin"
|
|
"bin/qmlplugindump"
|
|
"bin/qmlprofiler"
|
|
"bin/qmlscene"
|
|
"bin/qmltestrunner"
|
|
];
|
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
"-fmacro-prefix-map=${qtbase.dev}=qtbase.dev"
|
|
];
|
|
}
|