Merge pull request #223216 from wineee/qtcreator

qtcreator-qt6: init at 9.0.2

authored by

Weijia Wang and committed by
GitHub
c2f2239d 12b639a8

+108
+102
pkgs/development/tools/qtcreator/qt6.nix
···
··· 1 + { stdenv 2 + , lib 3 + , fetchurl 4 + , cmake 5 + , pkg-config 6 + , ninja 7 + , python3 8 + , qtbase 9 + , qt5compat 10 + , qtdeclarative 11 + , qtdoc 12 + , qtquick3d 13 + , qtquicktimeline 14 + , qtserialport 15 + , qtsvg 16 + , qttools 17 + , qtwebengine 18 + , qtshadertools 19 + , wrapQtAppsHook 20 + , yaml-cpp 21 + , litehtml 22 + , gumbo 23 + , llvmPackages 24 + , rustc-demangle 25 + , elfutils 26 + , perf 27 + }: 28 + 29 + stdenv.mkDerivation rec { 30 + pname = "qtcreator"; 31 + version = "9.0.2"; 32 + 33 + src = fetchurl { 34 + url = "https://download.qt.io/official_releases/${pname}/${lib.versions.majorMinor version}/${version}/qt-creator-opensource-src-${version}.tar.xz"; 35 + sha256 = "sha256-7KWMxcoNOXiWlAVCYZzyA/WWLuPIggCBIics23Ifoyg="; 36 + }; 37 + 38 + nativeBuildInputs = [ 39 + cmake 40 + pkg-config 41 + qttools 42 + wrapQtAppsHook 43 + python3 44 + ninja 45 + ]; 46 + 47 + buildInputs = [ 48 + qtbase 49 + qtdoc 50 + qtsvg 51 + qtquick3d 52 + qtwebengine 53 + qtserialport 54 + qtshadertools 55 + qt5compat 56 + qtdeclarative 57 + qtquicktimeline 58 + yaml-cpp 59 + litehtml 60 + gumbo 61 + llvmPackages.libclang 62 + llvmPackages.llvm 63 + rustc-demangle 64 + elfutils 65 + ]; 66 + 67 + cmakeFlags = [ 68 + # workaround for missing CMAKE_INSTALL_DATAROOTDIR 69 + # in pkgs/development/tools/build-managers/cmake/setup-hook.sh 70 + "-DCMAKE_INSTALL_DATAROOTDIR=${placeholder "out"}/share" 71 + # qtdeclarative in nixpkgs does not provide qmlsc 72 + # fix can't find Qt6QmlCompilerPlusPrivate 73 + "-DQT_NO_FIND_QMLSC=TRUE" 74 + "-DWITH_DOCS=ON" 75 + "-DBUILD_DEVELOPER_DOCS=ON" 76 + "-DBUILD_QBS=OFF" 77 + "-DQTC_CLANG_BUILDMODE_MATCH=ON" 78 + "-DCLANGTOOLING_LINK_CLANG_DYLIB=ON" 79 + ]; 80 + 81 + qtWrapperArgs = [ 82 + "--set-default PERFPROFILER_PARSER_FILEPATH ${lib.getBin perf}/bin" 83 + ]; 84 + 85 + postInstall = '' 86 + substituteInPlace $out/share/applications/org.qt-project.qtcreator.desktop \ 87 + --replace "Exec=qtcreator" "Exec=$out/bin/qtcreator" 88 + ''; 89 + 90 + meta = with lib; { 91 + description = "Cross-platform IDE tailored to the needs of Qt developers"; 92 + longDescription = '' 93 + Qt Creator is a cross-platform IDE (integrated development environment) 94 + tailored to the needs of Qt developers. It includes features such as an 95 + advanced code editor, a visual debugger and a GUI designer. 96 + ''; 97 + homepage = "https://wiki.qt.io/Qt_Creator"; 98 + license = licenses.lgpl3Plus; 99 + maintainers = [ maintainers.rewine ]; 100 + platforms = platforms.linux; 101 + }; 102 + }
+6
pkgs/top-level/all-packages.nix
··· 18648 inherit (linuxPackages) perf; 18649 }; 18650 18651 qxmledit = libsForQt5.callPackage ../applications/editors/qxmledit {} ; 18652 18653 r10k = callPackage ../tools/system/r10k { };
··· 18648 inherit (linuxPackages) perf; 18649 }; 18650 18651 + qtcreator-qt6 = qt6Packages.callPackage ../development/tools/qtcreator/qt6.nix { 18652 + inherit (linuxPackages) perf; 18653 + stdenv = llvmPackages_14.stdenv; 18654 + llvmPackages = llvmPackages_14; 18655 + }; 18656 + 18657 qxmledit = libsForQt5.callPackage ../applications/editors/qxmledit {} ; 18658 18659 r10k = callPackage ../tools/system/r10k { };