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

46 lines
1.2 KiB
Nix
Raw Normal View History

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