nixpkgs/pkgs/applications/networking/instant-messengers/qtox/default.nix

46 lines
1.2 KiB
Nix
Raw Normal View History

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