@@ -1,6 +1,6 @@
1{ stdenv, fetchgit, pkgconfig, libtoxcore-dev, qt5, openal, opencv,
1{ stdenv, fetchgit, pkgconfig, libtoxcore-dev, qt5, openal, opencv,
2 libsodium, libXScrnSaver, glib, gdk_pixbuf, gtk2, cairo,
2 libsodium, libXScrnSaver, glib, gdk_pixbuf, gtk2, cairo,
3− pango, atk, qrencode, ffmpeg, filter-audio }:
3+ pango, atk, qrencode, ffmpeg, filter-audio, makeWrapper }:
5stdenv.mkDerivation rec {
5stdenv.mkDerivation rec {
6 name = "qtox-dev-20150624";
6 name = "qtox-dev-20150624";
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
16 libtoxcore-dev openal opencv libsodium filter-audio
16 libtoxcore-dev openal opencv libsodium filter-audio
17 qt5.base qt5.tools libXScrnSaver glib gtk2 cairo
17 qt5.base qt5.tools libXScrnSaver glib gtk2 cairo
18− pango atk qrencode ffmpeg qt5.translations
18+ pango atk qrencode ffmpeg qt5.translations makeWrapper
21 nativeBuildInputs = [ pkgconfig ];
21 nativeBuildInputs = [ pkgconfig ];
@@ -37,13 +37,16 @@ stdenv.mkDerivation rec {
37 installPhase = ''
37 installPhase = ''
38 mkdir -p $out/bin
38 mkdir -p $out/bin
39 cp qtox $out/bin
39 cp qtox $out/bin
40+ wrapProgram $out/bin/qtox \
41+ --prefix QT_PLUGIN_PATH : ${qt5.svg}/lib/qt5/plugins
44+ enableParallelBuilding = true;
42 meta = with stdenv.lib; {
46 meta = with stdenv.lib; {
43 description = "QT Tox client";
47 description = "QT Tox client";
44 license = licenses.gpl3;
48 license = licenses.gpl3;
45 maintainers = with maintainers; [ viric jgeerds ];
49 maintainers = with maintainers; [ viric jgeerds ];
46 platforms = platforms.all;
50 platforms = platforms.all;