{ qtModule , stdenv , lib , qtbase , qtdeclarative , cups , substituteAll }: qtModule { pname = "qttools"; qtInputs = [ qtbase qtdeclarative ]; propagatedBuildInputs = lib.optionals stdenv.isDarwin [ cups ]; patches = [ ../patches/qttools-paths.patch ]; env.NIX_CFLAGS_COMPILE = toString [ "-DNIX_OUTPUT_DEV=\"${placeholder "dev"}\"" ]; devTools = [ "bin/qcollectiongenerator" "bin/linguist" "bin/assistant" "bin/qdoc" "bin/lconvert" "bin/designer" "bin/qtattributionsscanner" "bin/lrelease" "bin/lrelease-pro" "bin/pixeltool" "bin/lupdate" "bin/lupdate-pro" "bin/qtdiag" "bin/qhelpgenerator" "bin/qtplugininfo" "bin/qthelpconverter" "bin/lprodump" "bin/qdistancefieldgenerator" ] ++ lib.optionals stdenv.isDarwin [ "bin/macdeployqt" ]; }