2017-06-02 15:40:19 +00:00
|
|
|
{ stdenv, fetchurl, qtdeclarative , qttools, qtbase, qmake }:
|
2017-05-01 20:30:08 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "qtinstaller";
|
2017-05-02 19:46:54 +00:00
|
|
|
|
2017-06-02 15:40:19 +00:00
|
|
|
propagatedBuildInputs = [ qtdeclarative qttools ];
|
|
|
|
nativeBuildInputs = [ qmake ];
|
2017-05-02 19:46:54 +00:00
|
|
|
|
2017-05-01 20:30:08 +00:00
|
|
|
version = "2.0.3";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.qt.io/official_releases/qt-installer-framework/${version}/qt-installer-framework-opensource-${version}-src.tar.gz";
|
|
|
|
sha256 = "003gwjg02isw8qjyka377g1ahlisfyi44l6xfa4hvvdgqqq0hy2f";
|
|
|
|
name = "qt-installer-framework-opensource-src-${version}.tar.gz";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "doc" ];
|
|
|
|
|
2017-05-02 19:46:54 +00:00
|
|
|
setOutputFlags = false;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
NIX_QT_SUBMODULE = true;
|
|
|
|
|
2017-05-01 20:30:08 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/{bin,lib,share/qt-installer-framework}
|
|
|
|
cp -a bin/{archivegen,binarycreator,devtool,installerbase,repogen} $out/bin
|
|
|
|
cp -a lib/{libinstaller.so*,lib7z.a} $out/lib
|
|
|
|
cp -a examples $out/share/qt-installer-framework/
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
moveToOutput "bin/archivegen" "$out"
|
|
|
|
moveToOutput "bin/binarycreator" "$out"
|
|
|
|
moveToOutput "bin/devtool" "$out"
|
|
|
|
moveToOutput "bin/installerbase" "$out"
|
|
|
|
moveToOutput "bin/repogen" "$out"
|
|
|
|
moveToOutput "share" "$doc"
|
|
|
|
moveToOutput "lib/libinstaller.so" "$out"
|
|
|
|
moveToOutput "lib/libinstaller.so.1" "$out"
|
|
|
|
moveToOutput "lib/libinstaller.so.1.0" "$out"
|
|
|
|
moveToOutput "lib/libinstaller.so.1.0.0" "$out"
|
|
|
|
'';
|
|
|
|
|
2017-06-26 17:45:14 +00:00
|
|
|
meta = {
|
2017-05-01 20:30:08 +00:00
|
|
|
description = ''Qt installer framework'';
|
2017-06-26 17:45:14 +00:00
|
|
|
inherit (qtbase.meta) platforms license homepage;
|
2017-05-01 20:30:08 +00:00
|
|
|
};
|
|
|
|
}
|