diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2018-04-17 15:40:30 -0500 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2018-04-17 15:42:25 -0500 |
commit | 1592e03abaed9be050e1546fb6dd28d2436f9c39 (patch) | |
tree | d4318f6faaa2bb43d66564fa2328da22ead732fc /pkgs/development/tools/qtcreator | |
parent | 6bd83e624c1d3478a255044704fd173ad84198fd (diff) |
treewide: rename bad filenames
Most of these can easily be moved to subdirectories of other directories. This helps reduce clutter in the main trees.
Diffstat (limited to 'pkgs/development/tools/qtcreator')
-rw-r--r-- | pkgs/development/tools/qtcreator/default.nix | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/pkgs/development/tools/qtcreator/default.nix b/pkgs/development/tools/qtcreator/default.nix new file mode 100644 index 0000000000000..de94b7a8eff34 --- /dev/null +++ b/pkgs/development/tools/qtcreator/default.nix @@ -0,0 +1,60 @@ +{ stdenv, fetchurl, makeWrapper +, qtbase, qtquickcontrols, qtscript, qtdeclarative, qmake +, withDocumentation ? false +}: + +with stdenv.lib; + +let + baseVersion = "4.5"; + revision = "0"; +in + +stdenv.mkDerivation rec { + name = "qtcreator-${version}"; + version = "${baseVersion}.${revision}"; + + src = fetchurl { + url = "http://download.qt-project.org/official_releases/qtcreator/${baseVersion}/${version}/qt-creator-opensource-src-${version}.tar.xz"; + sha256 = "1yfrfma23xxzz8hl43g7pk7ay5lg25l9lscjlih617lyv6jmc0hl"; + }; + + buildInputs = [ qtbase qtscript qtquickcontrols qtdeclarative ]; + + nativeBuildInputs = [ qmake makeWrapper ]; + + doCheck = true; + + enableParallelBuilding = true; + + buildFlags = optional withDocumentation "docs"; + + installFlags = [ "INSTALL_ROOT=$(out)" ] ++ optional withDocumentation "install_docs"; + + preConfigure = '' + substituteInPlace src/plugins/plugins.pro \ + --replace '$$[QT_INSTALL_QML]/QtQuick/Controls' '${qtquickcontrols}/${qtbase.qtQmlPrefix}/QtQuick/Controls' + ''; + + preBuild = optional withDocumentation '' + ln -s ${getLib qtbase}/$qtDocPrefix $NIX_QT5_TMP/share + ''; + + postInstall = '' + substituteInPlace $out/share/applications/org.qt-project.qtcreator.desktop \ + --replace "Exec=qtcreator" "Exec=$out/bin/qtcreator" + ''; + + meta = { + 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. + ''; + homepage = https://wiki.qt.io/Category:Tools::QtCreator; + license = "LGPL"; + maintainers = [ maintainers.akaWolf ]; + platforms = [ "i686-linux" "x86_64-linux" ]; + }; +} |