python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / qtinstaller / default.nix
blob0fd21a1a2968037ffdcac7651a538ff7490b489f
1 { stdenv, fetchurl, qtdeclarative , qttools, qtbase, qmake }:
3 stdenv.mkDerivation rec {
4   pname = "qtinstaller";
6   propagatedBuildInputs = [ qtdeclarative qttools ];
7   nativeBuildInputs = [ qmake ];
9   version = "2.0.3";
10   src = fetchurl {
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";
14   };
16   outputs = [ "out" "dev" "doc" ];
18   setOutputFlags = false;
19   NIX_QT_SUBMODULE = true;
20   dontWrapQtApps = true;
22   installPhase = ''
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/
27   '';
29   postFixup = ''
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"
40   '';
42   meta = {
43     description = "Qt installer framework";
44     inherit (qtbase.meta) platforms license homepage;
45   };