summary refs log tree commit diff
path: root/pkgs/development/qtcreator/default.nix
blob: add0c08e95aec321a2baed81acd33dbbc8661582 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ stdenv, fetchurl, qt48 }:

let
  baseVersion = "2.7";
  revision = "1";
  version = "${baseVersion}.${revision}";
  qt4_for_qtcreator = qt48.override {
    developerBuild = true;
  };
in

stdenv.mkDerivation rec {
  name = "qtcreator-${version}";

  src = fetchurl {
    url = "http://download.qt-project.org/official_releases/qtcreator/${baseVersion}/${version}/qt-creator-${version}-src.tar.gz";
    sha256 = "04vn7y3dkk9vi1rsmsxby57mvc2h9n5q842hayq2mdlsax4qnhjv";
  };

  buildInputs = [ qt4_for_qtcreator ];

  doCheck = false;

  enableParallelBuilding = true;

  preConfigure = ''
    qmake -spec linux-g++ "QT_PRIVATE_HEADERS=${qt4_for_qtcreator}/include" qtcreator.pro
  '';

  installFlags = "INSTALL_ROOT=$(out)";

  meta = {
    description = "Qt Creator is a 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 = "http://qt-project.org/wiki/Category:Tools::QtCreator";
    license = "LGPL";

    maintainers = [ stdenv.lib.maintainers.bbenoist ];
    platforms = stdenv.lib.platforms.all;
  };
}