2017-07-18 19:44:42 -07:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub, cmake, pkgconfig,
|
|
|
|
libtoxcore,
|
|
|
|
libpthreadstubs, libXdmcp, libXScrnSaver,
|
|
|
|
qtbase, qtsvg, qttools, qttranslations,
|
2017-09-10 23:54:48 -07:00
|
|
|
ffmpeg, filter-audio, libsodium, libopus,
|
|
|
|
libvpx, openal, opencv, pcre, qrencode, sqlcipher }:
|
2015-09-25 09:36:23 -07:00
|
|
|
|
2017-05-17 12:26:11 -07:00
|
|
|
mkDerivation rec {
|
2016-02-14 16:07:15 -08:00
|
|
|
name = "qtox-${version}";
|
2017-07-17 15:39:29 -07:00
|
|
|
version = "1.11.0";
|
2014-09-18 00:51:43 -07:00
|
|
|
|
2016-02-14 16:07:15 -08:00
|
|
|
src = fetchFromGitHub {
|
2017-02-13 23:00:42 -08:00
|
|
|
owner = "tux3";
|
|
|
|
repo = "qTox";
|
|
|
|
rev = "v${version}";
|
2017-07-17 15:39:29 -07:00
|
|
|
sha256 = "0h8v359h1xn2xm6xa9q56mjiw58ap1bpiwx1dxxmphjildxadwck";
|
2014-09-18 00:51:43 -07:00
|
|
|
};
|
|
|
|
|
2017-02-13 23:00:42 -08:00
|
|
|
buildInputs = [
|
2017-07-18 19:44:42 -07:00
|
|
|
libtoxcore
|
|
|
|
libpthreadstubs libXdmcp libXScrnSaver
|
|
|
|
qtbase qtsvg qttools qttranslations
|
2017-09-10 23:54:48 -07:00
|
|
|
ffmpeg filter-audio libopus libsodium
|
|
|
|
libvpx openal opencv pcre qrencode sqlcipher
|
2017-07-18 19:44:42 -07:00
|
|
|
];
|
2017-02-13 23:00:42 -08:00
|
|
|
|
2017-05-17 12:26:11 -07:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
2015-06-29 10:43:40 -07:00
|
|
|
|
2017-09-10 23:54:48 -07:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-03-20 19:04:21 -07:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DGIT_DESCRIBE=${version}"
|
2017-09-10 23:54:48 -07:00
|
|
|
"-DENABLE_STATUSNOTIFIER=False"
|
|
|
|
"-DENABLE_GTK_SYSTRAY=False"
|
|
|
|
"-DENABLE_APPINDICATOR=False"
|
2017-03-20 19:04:21 -07:00
|
|
|
];
|
|
|
|
|
2017-05-17 12:26:11 -07:00
|
|
|
meta = with lib; {
|
2015-09-25 09:36:23 -07:00
|
|
|
description = "Qt Tox client";
|
2017-09-10 23:54:48 -07:00
|
|
|
license = licenses.gpl3;
|
2017-05-08 22:21:52 -07:00
|
|
|
maintainers = with maintainers; [ viric jgeerds akaWolf peterhoeg ];
|
2017-09-10 23:54:48 -07:00
|
|
|
platforms = platforms.all;
|
2014-09-18 00:51:43 -07:00
|
|
|
};
|
2015-08-21 09:51:12 -07:00
|
|
|
}
|