2017-02-14 08:00:42 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, openal, opencv,
|
|
|
|
libtoxcore, libsodium, libXScrnSaver, glib, gdk_pixbuf, gtk2, cairo, xorg,
|
2016-04-17 01:35:28 +02:00
|
|
|
pango, atk, qrencode, ffmpeg, filter-audio, makeQtWrapper,
|
2017-02-14 08:00:42 +01:00
|
|
|
qtbase, qtsvg, qttools, qttranslations, sqlcipher,
|
|
|
|
libvpx, libopus }:
|
2015-09-25 18:36:23 +02:00
|
|
|
|
2015-06-29 19:43:40 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2016-02-15 01:07:15 +01:00
|
|
|
name = "qtox-${version}";
|
2017-02-14 08:00:42 +01:00
|
|
|
version = "1.8.1";
|
2014-09-18 09:51:43 +02:00
|
|
|
|
2016-02-15 01:07:15 +01:00
|
|
|
src = fetchFromGitHub {
|
2017-02-14 08:00:42 +01:00
|
|
|
owner = "tux3";
|
|
|
|
repo = "qTox";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "073kwfaw5n7vvcpwrpdbw5mlswbbwjipx7yy4a95r9z0gjljqnhq";
|
2014-09-18 09:51:43 +02:00
|
|
|
};
|
|
|
|
|
2017-02-14 08:00:42 +01:00
|
|
|
buildInputs = [
|
|
|
|
libtoxcore openal opencv libsodium filter-audio
|
|
|
|
qtbase qttools qtsvg libXScrnSaver glib gtk2 cairo
|
|
|
|
pango atk qrencode ffmpeg qttranslations
|
|
|
|
sqlcipher
|
|
|
|
libopus libvpx
|
|
|
|
] ++ (with xorg; [
|
|
|
|
libpthreadstubs libXdmcp
|
|
|
|
]);
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake makeQtWrapper pkgconfig ];
|
2015-06-29 19:43:40 +02:00
|
|
|
|
2014-09-18 09:51:43 +02:00
|
|
|
installPhase = ''
|
2016-05-30 23:30:58 +02:00
|
|
|
runHook preInstall
|
|
|
|
|
2014-12-04 11:26:00 +01:00
|
|
|
mkdir -p $out/bin
|
2014-09-18 09:51:43 +02:00
|
|
|
cp qtox $out/bin
|
2016-04-17 01:35:28 +02:00
|
|
|
wrapQtProgram $out/bin/qtox
|
2016-05-30 23:30:58 +02:00
|
|
|
|
|
|
|
runHook postInstall
|
2014-09-18 09:51:43 +02:00
|
|
|
'';
|
|
|
|
|
2015-08-21 18:45:40 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-09-18 09:51:43 +02:00
|
|
|
meta = with stdenv.lib; {
|
2015-09-25 18:36:23 +02:00
|
|
|
description = "Qt Tox client";
|
2014-09-18 09:51:43 +02:00
|
|
|
license = licenses.gpl3;
|
2015-09-25 18:36:23 +02:00
|
|
|
maintainers = with maintainers; [ viric jgeerds akaWolf ];
|
2014-12-04 02:29:56 +01:00
|
|
|
platforms = platforms.all;
|
2014-09-18 09:51:43 +02:00
|
|
|
};
|
2015-08-21 18:51:12 +02:00
|
|
|
}
|