20 buildInputs = with llvmPackages; [
25 propagatedBuildInputs = [
31 # fixQtBuiltinPaths overwrites builtin paths we should keep
33 src = ./qttools-QT_HOST_DATA-refs.patch;
34 qtbaseDev = lib.getDev qtbase;
38 src = ./qttools-libclang-main-header.patch;
39 libclangDev = lib.getDev llvmPackages.libclang;
44 "bin/qcollectiongenerator"
50 "bin/qtattributionsscanner"
61 "bin/qdistancefieldgenerator"
62 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ "bin/macdeployqt" ];
64 env.NIX_CFLAGS_COMPILE = lib.optionalString (
65 stdenv.hostPlatform.isDarwin && qtdeclarative != null
66 ) ''-DNIXPKGS_QMLIMPORTSCANNER="${qtdeclarative.dev}/bin/qmlimportscanner"'';
68 setupHook = ../hooks/qttools-setup-hook.sh;