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