2017-02-14 07:00:42 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, openal, opencv,
|
|
|
|
libtoxcore, libsodium, libXScrnSaver, glib, gdk_pixbuf, gtk2, cairo, xorg,
|
2016-04-17 00:35:28 +01:00
|
|
|
pango, atk, qrencode, ffmpeg, filter-audio, makeQtWrapper,
|
2017-02-14 07:00:42 +00:00
|
|
|
qtbase, qtsvg, qttools, qttranslations, sqlcipher,
|
|
|
|
libvpx, libopus }:
|
2015-09-25 17:36:23 +01:00
|
|
|
|
2015-06-29 18:43:40 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2016-02-15 00:07:15 +00:00
|
|
|
name = "qtox-${version}";
|
2017-06-02 13:53:26 +01:00
|
|
|
version = "1.10.2";
|
2014-09-18 08:51:43 +01:00
|
|
|
|
2016-02-15 00:07:15 +00:00
|
|
|
src = fetchFromGitHub {
|
2017-02-14 07:00:42 +00:00
|
|
|
owner = "tux3";
|
|
|
|
repo = "qTox";
|
|
|
|
rev = "v${version}";
|
2017-06-02 13:53:26 +01:00
|
|
|
sha256 = "0c2633rc9l73q9qs9hybn11hmlqbwsvih3sf6jk1jp4151k5wp1y";
|
2014-09-18 08:51:43 +01:00
|
|
|
};
|
|
|
|
|
2017-02-14 07:00:42 +00:00
|
|
|
buildInputs = [
|
|
|
|
libtoxcore openal opencv libsodium filter-audio
|
|
|
|
qtbase qttools qtsvg libXScrnSaver glib gtk2 cairo
|
|
|
|
pango atk qrencode ffmpeg qttranslations
|
|
|
|
sqlcipher
|
|
|
|
libopus libvpx
|
|
|
|
] ++ (with xorg; [
|
|
|
|
libpthreadstubs libXdmcp
|
|
|
|
]);
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake makeQtWrapper pkgconfig ];
|
2015-06-29 18:43:40 +01:00
|
|
|
|
2017-03-21 02:04:21 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DGIT_DESCRIBE=${version}"
|
|
|
|
];
|
|
|
|
|
2014-09-18 08:51:43 +01:00
|
|
|
installPhase = ''
|
2016-05-30 22:30:58 +01:00
|
|
|
runHook preInstall
|
|
|
|
|
2017-05-09 06:21:52 +01:00
|
|
|
install -Dm755 qtox $out/bin/qtox
|
2016-04-17 00:35:28 +01:00
|
|
|
wrapQtProgram $out/bin/qtox
|
2016-05-30 22:30:58 +01:00
|
|
|
|
|
|
|
runHook postInstall
|
2014-09-18 08:51:43 +01:00
|
|
|
'';
|
|
|
|
|
2015-08-21 17:45:40 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-09-18 08:51:43 +01:00
|
|
|
meta = with stdenv.lib; {
|
2015-09-25 17:36:23 +01:00
|
|
|
description = "Qt Tox client";
|
2014-09-18 08:51:43 +01:00
|
|
|
license = licenses.gpl3;
|
2017-05-09 06:21:52 +01:00
|
|
|
maintainers = with maintainers; [ viric jgeerds akaWolf peterhoeg ];
|
2014-12-04 01:29:56 +00:00
|
|
|
platforms = platforms.all;
|
2014-09-18 08:51:43 +01:00
|
|
|
};
|
2015-08-21 17:51:12 +01:00
|
|
|
}
|