python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / qt-6 / modules / qtdeclarative.nix
blob76231f866efee38a6da60539ed7b11d6b4c91510
1 { qtModule
2 , qtbase
3 , qtshadertools
4 , openssl
5 , python3
6 }:
8 qtModule {
9   pname = "qtdeclarative";
10   qtInputs = [ qtbase qtshadertools ];
11   propagatedBuildInputs = [ openssl python3 ];
12   preConfigure = ''
13     export LD_LIBRARY_PATH="$PWD/build/lib''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
14   '';
15   cmakeFlags = [
16     "-DQT6_INSTALL_PREFIX=${placeholder "out"}"
17     "-DQT_INSTALL_PREFIX=${placeholder "out"}"
18   ];
19   patches = [
20     # prevent headaches from stale qmlcache data
21     ../patches/qtdeclarative-default-disable-qmlcache.patch
22   ];
23   postInstall = ''
24     substituteInPlace "$out/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake" \
25       --replace ''\'''${QT6_INSTALL_PREFIX}' "$dev"
26   '';
27   devTools = [
28     "bin/qml"
29     "bin/qmlcachegen"
30     "bin/qmleasing"
31     "bin/qmlimportscanner"
32     "bin/qmllint"
33     "bin/qmlmin"
34     "bin/qmlplugindump"
35     "bin/qmlprofiler"
36     "bin/qmlscene"
37     "bin/qmltestrunner"
38   ];
40   NIX_CFLAGS_COMPILE = [
41     "-fmacro-prefix-map=${qtbase.dev}=qtbase.dev"
42   ];