3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/instant-messengers/qtox/default.nix

51 lines
1.3 KiB
Nix
Raw Normal View History

2018-04-19 11:20:27 +01: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
version = "1.16.3";
2018-04-19 11:20:27 +01:00
rev = "v${version}";
in mkDerivation rec {
name = "qtox-${version}";
src = fetchFromGitHub {
2017-10-02 10:39:23 +01:00
owner = "qTox";
2017-02-14 07:00:42 +00:00
repo = "qTox";
sha256 = "0qd4nvbrjnnfnk8ghsxq3cd1n1qf1ck5zg6ib11ij2pg03s146pa";
2018-04-19 11:20:27 +01:00
inherit rev;
};
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
2017-10-02 10:39:23 +01:00
ffmpeg filter-audio libexif libopus libsodium
libvpx openal pcre qrencode sqlcipher
2018-04-19 11:20:27 +01:00
] ++ lib.optionals stdenv.isDarwin [ AVFoundation] ;
2017-02-14 07:00:42 +00:00
2017-11-09 12:47:29 +00:00
nativeBuildInputs = [ cmake pkgconfig qttools ];
2015-06-29 18:43:40 +01:00
enableParallelBuilding = true;
2017-03-21 02:04:21 +00:00
cmakeFlags = [
2018-04-19 11:20:27 +01:00
"-DGIT_DESCRIBE=${rev}"
"-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
];
2017-05-17 20:26:11 +01:00
meta = with lib; {
2015-09-25 17:36:23 +01:00
description = "Qt Tox client";
2017-10-02 10:39:23 +01:00
homepage = https://tox.chat;
license = licenses.gpl3;
maintainers = with maintainers; [ jgeerds akaWolf peterhoeg ];
platforms = platforms.all;
};
2015-08-21 17:51:12 +01:00
}