1{
2 stdenv,
3 fetchurl,
4 qtdeclarative,
5 qttools,
6 qtbase,
7 qmake,
8}:
9
10stdenv.mkDerivation rec {
11 pname = "qtinstaller";
12
13 propagatedBuildInputs = [
14 qtdeclarative
15 qttools
16 ];
17 nativeBuildInputs = [ qmake ];
18
19 version = "2.0.3";
20 src = fetchurl {
21 url = "http://download.qt.io/official_releases/qt-installer-framework/${version}/qt-installer-framework-opensource-${version}-src.tar.gz";
22 sha256 = "003gwjg02isw8qjyka377g1ahlisfyi44l6xfa4hvvdgqqq0hy2f";
23 name = "qt-installer-framework-opensource-src-${version}.tar.gz";
24 };
25
26 outputs = [
27 "out"
28 "dev"
29 "doc"
30 ];
31
32 setOutputFlags = false;
33 NIX_QT_SUBMODULE = true;
34 dontWrapQtApps = true;
35
36 installPhase = ''
37 mkdir -p $out/{bin,lib,share/qt-installer-framework}
38 cp -a bin/{archivegen,binarycreator,devtool,installerbase,repogen} $out/bin
39 cp -a lib/{libinstaller.so*,lib7z.a} $out/lib
40 cp -a examples $out/share/qt-installer-framework/
41 '';
42
43 postFixup = ''
44 moveToOutput "bin/archivegen" "$out"
45 moveToOutput "bin/binarycreator" "$out"
46 moveToOutput "bin/devtool" "$out"
47 moveToOutput "bin/installerbase" "$out"
48 moveToOutput "bin/repogen" "$out"
49 moveToOutput "share" "$doc"
50 moveToOutput "lib/libinstaller.so" "$out"
51 moveToOutput "lib/libinstaller.so.1" "$out"
52 moveToOutput "lib/libinstaller.so.1.0" "$out"
53 moveToOutput "lib/libinstaller.so.1.0.0" "$out"
54 '';
55
56 meta = {
57 description = "Qt installer framework";
58 inherit (qtbase.meta) platforms license homepage;
59 };
60}