2023-08-04 22:07:22 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, ninja
|
|
|
|
, python3
|
|
|
|
, qtbase
|
|
|
|
, qt5compat
|
|
|
|
, qtdeclarative
|
|
|
|
, qtdoc
|
|
|
|
, qtquick3d
|
|
|
|
, qtquicktimeline
|
|
|
|
, qtserialport
|
|
|
|
, qtsvg
|
|
|
|
, qttools
|
|
|
|
, qtwebengine
|
|
|
|
, qtwayland
|
|
|
|
, qtshadertools
|
|
|
|
, wrapQtAppsHook
|
|
|
|
, yaml-cpp
|
|
|
|
, litehtml
|
|
|
|
, gumbo
|
|
|
|
, llvmPackages
|
|
|
|
, rustc-demangle
|
|
|
|
, elfutils
|
|
|
|
, perf
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "qtcreator";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "11.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-08-04 22:07:22 +00:00
|
|
|
url = "https://download.qt.io/official_releases/${pname}/${lib.versions.majorMinor version}/${version}/qt-creator-opensource-src-${version}.tar.xz";
|
|
|
|
hash = "sha256-T55ZOFPPO/gGxlc6u2/EF2dhQWAj2X3e0H4ZxFbW23M=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
(qttools.override { withClang = true; })
|
|
|
|
wrapQtAppsHook
|
|
|
|
python3
|
|
|
|
ninja
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
qtdoc
|
|
|
|
qtsvg
|
|
|
|
qtquick3d
|
|
|
|
qtwebengine
|
|
|
|
qtwayland
|
|
|
|
qtserialport
|
|
|
|
qtshadertools
|
|
|
|
qt5compat
|
|
|
|
qtdeclarative
|
|
|
|
qtquicktimeline
|
|
|
|
yaml-cpp
|
|
|
|
litehtml
|
|
|
|
gumbo
|
|
|
|
llvmPackages.libclang
|
|
|
|
llvmPackages.llvm
|
|
|
|
rustc-demangle
|
|
|
|
elfutils
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
# workaround for missing CMAKE_INSTALL_DATAROOTDIR
|
|
|
|
# in pkgs/development/tools/build-managers/cmake/setup-hook.sh
|
|
|
|
"-DCMAKE_INSTALL_DATAROOTDIR=${placeholder "out"}/share"
|
|
|
|
# qtdeclarative in nixpkgs does not provide qmlsc
|
|
|
|
# fix can't find Qt6QmlCompilerPlusPrivate
|
|
|
|
"-DQT_NO_FIND_QMLSC=TRUE"
|
|
|
|
"-DWITH_DOCS=ON"
|
|
|
|
"-DBUILD_DEVELOPER_DOCS=ON"
|
|
|
|
"-DBUILD_QBS=OFF"
|
|
|
|
"-DQTC_CLANG_BUILDMODE_MATCH=ON"
|
|
|
|
"-DCLANGTOOLING_LINK_CLANG_DYLIB=ON"
|
|
|
|
];
|
2021-10-01 09:20:50 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
qtWrapperArgs = [
|
|
|
|
"--set-default PERFPROFILER_PARSER_FILEPATH ${lib.getBin perf}/bin"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
substituteInPlace $out/share/applications/org.qt-project.qtcreator.desktop \
|
|
|
|
--replace "Exec=qtcreator" "Exec=$out/bin/qtcreator"
|
|
|
|
'';
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Cross-platform IDE tailored to the needs of Qt developers";
|
|
|
|
longDescription = ''
|
|
|
|
Qt Creator is a cross-platform IDE (integrated development environment)
|
|
|
|
tailored to the needs of Qt developers. It includes features such as an
|
|
|
|
advanced code editor, a visual debugger and a GUI designer.
|
|
|
|
'';
|
2023-08-04 22:07:22 +00:00
|
|
|
homepage = "https://wiki.qt.io/Qt_Creator";
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
maintainers = [ maintainers.rewine ];
|
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|