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

52 lines
1.2 KiB
Nix
Raw Normal View History

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 {
name = "qtox-${version}";
2017-06-02 13:53:26 +01:00
version = "1.10.2";
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";
};
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}"
];
installPhase = ''
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
runHook postInstall
'';
enableParallelBuilding = true;
meta = with stdenv.lib; {
2015-09-25 17:36:23 +01:00
description = "Qt Tox client";
license = licenses.gpl3;
2017-05-09 06:21:52 +01:00
maintainers = with maintainers; [ viric jgeerds akaWolf peterhoeg ];
platforms = platforms.all;
};
2015-08-21 17:51:12 +01:00
}