1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-21 05:25:38 +00:00
nixpkgs/pkgs/development/libraries/qtinstaller/default.nix
Vladimír Čunát ce8178ed93
qtinstaller: fix broken meta
The invalid meta.outputsToInstall has been blocking channel updates.
https://mailman.science.uu.nl/pipermail/nix-dev/2017-June/023991.html
2017-06-26 19:47:19 +02:00

47 lines
1.5 KiB
Nix

{ stdenv, fetchurl, qtdeclarative , qttools, qtbase, qmake }:
stdenv.mkDerivation rec {
name = "qtinstaller";
propagatedBuildInputs = [ qtdeclarative qttools ];
nativeBuildInputs = [ qmake ];
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" ];
setOutputFlags = false;
enableParallelBuilding = true;
NIX_QT_SUBMODULE = true;
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"
'';
meta = {
description = ''Qt installer framework'';
inherit (qtbase.meta) platforms license homepage;
};
}