Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869{ qtModule, stdenv, lib, qtbase, qtdeclarative, replaceVars, llvmPackages,}:
qtModule { pname = "qttools";
outputs = [ "out" "dev" "bin" ];
buildInputs = with llvmPackages; [ libclang libllvm ];
propagatedBuildInputs = [ qtbase qtdeclarative ];
patches = [ # fixQtBuiltinPaths overwrites builtin paths we should keep (replaceVars ./qttools-QT_HOST_DATA-refs.patch { qtbaseDev = lib.getDev qtbase; })
(replaceVars ./qttools-libclang-main-header.patch { libclangDev = lib.getDev llvmPackages.libclang; }) ];
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.hostPlatform.isDarwin [ "bin/macdeployqt" ];
env.NIX_CFLAGS_COMPILE = lib.optionalString ( stdenv.hostPlatform.isDarwin && qtdeclarative != null ) ''-DNIXPKGS_QMLIMPORTSCANNER="${qtdeclarative.dev}/bin/qmlimportscanner"'';
setupHook = ../hooks/qttools-setup-hook.sh;}