Skip to content

Commit

Permalink
qtinstaller: init at 2.0.3; adapted from expression by @spacefrogg
Browse files Browse the repository at this point in the history
See #23620
  • Loading branch information
7c6f434c committed May 1, 2017
1 parent 4c576fd commit f4289c8
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
38 changes: 38 additions & 0 deletions pkgs/development/libraries/qtinstaller/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{ stdenv, fetchurl, qtdeclarative , qttools, qtbase, qmakeHook }:

stdenv.mkDerivation rec {
name = "qtinstaller";
buildInputs = [ qtdeclarative qttools qtbase qmakeHook ];
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" ];

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 = (qtbase.meta) // {
description = ''Qt installer framework'';
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9688,6 +9688,8 @@ with pkgs;
withQt5 = true;
};

qtinstaller = callPackage ../development/libraries/qtinstaller { };

qtkeychain = callPackage ../development/libraries/qtkeychain {
withQt5 = true;
};
Expand Down

1 comment on commit f4289c8

@vcunat
Copy link
Member

@vcunat vcunat commented on f4289c8 Jun 26, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: inheriting whole meta can be dangerous. See ce8178e.

Please sign in to comment.