1 { qtModule, stdenv, lib, qtbase, qtdeclarative }:
5 propagatedBuildInputs = [ qtbase qtdeclarative ];
6 outputs = [ "out" "dev" "bin" ];
8 # fixQtBuiltinPaths overwrites a builtin path we should keep
10 sed -i "src/linguist/linguist.pro" \
11 -e '/^cmake_linguist_config_version_file.input =/ s|$$\[QT_HOST_DATA.*\]|${lib.getDev qtbase}|'
12 sed -i "src/qtattributionsscanner/qtattributionsscanner.pro" \
13 -e '/^cmake_qattributionsscanner_config_version_file.input =/ s|$$\[QT_HOST_DATA.*\]|${lib.getDev qtbase}|'
17 "bin/qcollectiongenerator"
23 "bin/qtattributionsscanner"
34 "bin/qdistancefieldgenerator"
35 ] ++ lib.optionals stdenv.isDarwin [
39 env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isDarwin && qtdeclarative != null) ''-DNIXPKGS_QMLIMPORTSCANNER="${qtdeclarative.dev}/bin/qmlimportscanner"'';
41 setupHook = ../hooks/qttools-setup-hook.sh;