2018-04-19 03:20:27 -07: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
|
2018-09-18 09:12:37 -07:00
|
|
|
version = "1.16.3";
|
2018-04-19 03:20:27 -07:00
|
|
|
rev = "v${version}";
|
|
|
|
|
2019-08-13 14:52:01 -07:00
|
|
|
in mkDerivation {
|
2019-08-13 14:52:01 -07:00
|
|
|
pname = "qtox";
|
|
|
|
inherit version;
|
2014-09-18 00:51:43 -07:00
|
|
|
|
2016-02-14 16:07:15 -08:00
|
|
|
src = fetchFromGitHub {
|
2017-10-02 02:39:23 -07:00
|
|
|
owner = "qTox";
|
2017-02-13 23:00:42 -08:00
|
|
|
repo = "qTox";
|
2018-09-18 09:12:37 -07:00
|
|
|
sha256 = "0qd4nvbrjnnfnk8ghsxq3cd1n1qf1ck5zg6ib11ij2pg03s146pa";
|
2018-04-19 03:20:27 -07:00
|
|
|
inherit rev;
|
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
|
2017-11-09 04:47:29 -08:00
|
|
|
qtbase qtsvg qttranslations
|
2017-10-02 02:39:23 -07:00
|
|
|
ffmpeg filter-audio libexif libopus libsodium
|
2018-02-27 10:58:51 -08:00
|
|
|
libvpx openal pcre qrencode sqlcipher
|
2018-04-19 03:20:27 -07:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [ AVFoundation] ;
|
2017-02-13 23:00:42 -08:00
|
|
|
|
2017-11-09 04:47:29 -08:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig qttools ];
|
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 = [
|
2018-04-19 03:20:27 -07:00
|
|
|
"-DGIT_DESCRIBE=${rev}"
|
2017-09-10 23:54:48 -07:00
|
|
|
"-DENABLE_STATUSNOTIFIER=False"
|
|
|
|
"-DENABLE_GTK_SYSTRAY=False"
|
|
|
|
"-DENABLE_APPINDICATOR=False"
|
2018-04-19 03:20:27 -07:00
|
|
|
"-DTIMESTAMP=1"
|
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-10-02 02:39:23 -07:00
|
|
|
homepage = https://tox.chat;
|
2017-09-10 23:54:48 -07:00
|
|
|
license = licenses.gpl3;
|
2019-03-12 15:45:33 -07:00
|
|
|
maintainers = with maintainers; [ 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
|
|
|
}
|