nixpkgs/pkgs/applications/networking/instant-messengers/qtox/default.nix
R. RyanTM 9d288e7da3 qtox: 1.16.1 -> 1.16.3 (#46204)
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
qtox
2018-09-18 18:12:37 +02:00

50 lines
1.3 KiB
Nix

{ 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";
rev = "v${version}";
in mkDerivation rec {
name = "qtox-${version}";
src = fetchFromGitHub {
owner = "qTox";
repo = "qTox";
sha256 = "0qd4nvbrjnnfnk8ghsxq3cd1n1qf1ck5zg6ib11ij2pg03s146pa";
inherit rev;
};
buildInputs = [
libtoxcore
libpthreadstubs libXdmcp libXScrnSaver
qtbase qtsvg qttranslations
ffmpeg filter-audio libexif libopus libsodium
libvpx openal pcre qrencode sqlcipher
] ++ lib.optionals stdenv.isDarwin [ AVFoundation] ;
nativeBuildInputs = [ cmake pkgconfig qttools ];
enableParallelBuilding = true;
cmakeFlags = [
"-DGIT_DESCRIBE=${rev}"
"-DENABLE_STATUSNOTIFIER=False"
"-DENABLE_GTK_SYSTRAY=False"
"-DENABLE_APPINDICATOR=False"
"-DTIMESTAMP=1"
];
meta = with lib; {
description = "Qt Tox client";
homepage = https://tox.chat;
license = licenses.gpl3;
maintainers = with maintainers; [ jgeerds akaWolf peterhoeg ];
platforms = platforms.all;
};
}