1 { stdenv, fetchurl, qtdeclarative , qttools, qtbase, qmake }:
3 stdenv.mkDerivation rec {
6 propagatedBuildInputs = [ qtdeclarative qttools ];
7 nativeBuildInputs = [ qmake ];
11 url = "http://download.qt.io/official_releases/qt-installer-framework/${version}/qt-installer-framework-opensource-${version}-src.tar.gz";
12 sha256 = "003gwjg02isw8qjyka377g1ahlisfyi44l6xfa4hvvdgqqq0hy2f";
13 name = "qt-installer-framework-opensource-src-${version}.tar.gz";
16 outputs = [ "out" "dev" "doc" ];
18 setOutputFlags = false;
19 NIX_QT_SUBMODULE = true;
20 dontWrapQtApps = true;
23 mkdir -p $out/{bin,lib,share/qt-installer-framework}
24 cp -a bin/{archivegen,binarycreator,devtool,installerbase,repogen} $out/bin
25 cp -a lib/{libinstaller.so*,lib7z.a} $out/lib
26 cp -a examples $out/share/qt-installer-framework/
30 moveToOutput "bin/archivegen" "$out"
31 moveToOutput "bin/binarycreator" "$out"
32 moveToOutput "bin/devtool" "$out"
33 moveToOutput "bin/installerbase" "$out"
34 moveToOutput "bin/repogen" "$out"
35 moveToOutput "share" "$doc"
36 moveToOutput "lib/libinstaller.so" "$out"
37 moveToOutput "lib/libinstaller.so.1" "$out"
38 moveToOutput "lib/libinstaller.so.1.0" "$out"
39 moveToOutput "lib/libinstaller.so.1.0.0" "$out"
43 description = "Qt installer framework";
44 inherit (qtbase.meta) platforms license homepage;