2018-04-19 12:20:27 +02:00
|
|
|
{ stdenv, mkDerivation, lib, fetchFromGitHub, cmake, pkgconfig
|
|
|
|
, libtoxcore
|
|
|
|
, libpthreadstubs, libXdmcp, libXScrnSaver
|
|
|
|
, qtbase, qtsvg, qttools, qttranslations
|
|
|
|
, ffmpeg, filter-audio, libexif, libsodium, libopus
|
|
|
|
, libvpx, openal, pcre, qrencode, sqlcipher
|
|
|
|
, AVFoundation ? null }:
|
|
|
|
|
|
|
|
let
|
2020-05-04 07:25:40 +02:00
|
|
|
version = "1.17.2";
|
2018-04-19 12:20:27 +02:00
|
|
|
rev = "v${version}";
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
in mkDerivation {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "qtox";
|
|
|
|
inherit version;
|
2014-09-18 09:51:43 +02:00
|
|
|
|
2016-02-15 01:07:15 +01:00
|
|
|
src = fetchFromGitHub {
|
2017-10-02 11:39:23 +02:00
|
|
|
owner = "qTox";
|
2017-02-14 08:00:42 +01:00
|
|
|
repo = "qTox";
|
2020-05-04 07:25:40 +02:00
|
|
|
sha256 = "04pbv1zsxy8dph2v0r9xc8lcm5g6604pwnppi3la5w46ihbwxlb9";
|
2018-04-19 12:20:27 +02:00
|
|
|
inherit rev;
|
2014-09-18 09:51:43 +02:00
|
|
|
};
|
|
|
|
|
2017-02-14 08:00:42 +01:00
|
|
|
buildInputs = [
|
2017-07-19 04:44:42 +02:00
|
|
|
libtoxcore
|
|
|
|
libpthreadstubs libXdmcp libXScrnSaver
|
2017-11-09 13:47:29 +01:00
|
|
|
qtbase qtsvg qttranslations
|
2017-10-02 11:39:23 +02:00
|
|
|
ffmpeg filter-audio libexif libopus libsodium
|
2018-02-27 19:58:51 +01:00
|
|
|
libvpx openal pcre qrencode sqlcipher
|
2018-04-19 12:20:27 +02:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [ AVFoundation] ;
|
2017-02-14 08:00:42 +01:00
|
|
|
|
2017-11-09 13:47:29 +01:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig qttools ];
|
2015-06-29 19:43:40 +02:00
|
|
|
|
2017-09-11 08:54:48 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-03-21 03:04:21 +01:00
|
|
|
cmakeFlags = [
|
2018-04-19 12:20:27 +02:00
|
|
|
"-DGIT_DESCRIBE=${rev}"
|
2017-09-11 08:54:48 +02:00
|
|
|
"-DENABLE_STATUSNOTIFIER=False"
|
|
|
|
"-DENABLE_GTK_SYSTRAY=False"
|
|
|
|
"-DENABLE_APPINDICATOR=False"
|
2018-04-19 12:20:27 +02:00
|
|
|
"-DTIMESTAMP=1"
|
2017-03-21 03:04:21 +01:00
|
|
|
];
|
|
|
|
|
2017-05-17 21:26:11 +02:00
|
|
|
meta = with lib; {
|
2015-09-25 18:36:23 +02:00
|
|
|
description = "Qt Tox client";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://tox.chat";
|
2017-09-11 08:54:48 +02:00
|
|
|
license = licenses.gpl3;
|
2019-03-12 23:45:33 +01:00
|
|
|
maintainers = with maintainers; [ akaWolf peterhoeg ];
|
2017-09-11 08:54:48 +02:00
|
|
|
platforms = platforms.all;
|
2014-09-18 09:51:43 +02:00
|
|
|
};
|
2015-08-21 18:51:12 +02:00
|
|
|
}
|