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

52 lines
1.2 KiB
Nix
Raw Normal View History

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