51 lines
1.2 KiB
Nix
51 lines
1.2 KiB
Nix
{ stdenv, fetchFromGitHub, cmake, pkgconfig, openal, opencv,
|
|
libtoxcore, libsodium, libXScrnSaver, glib, gdk_pixbuf, gtk2, cairo, xorg,
|
|
pango, atk, qrencode, ffmpeg, filter-audio, makeQtWrapper,
|
|
qtbase, qtsvg, qttools, qttranslations, sqlcipher,
|
|
libvpx, libopus }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "qtox-${version}";
|
|
version = "1.10.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tux3";
|
|
repo = "qTox";
|
|
rev = "v${version}";
|
|
sha256 = "1c5y7fwhsq1f6z8208xl1jd6bl1r6k8g0fjqxf0z10373c9395jq";
|
|
};
|
|
|
|
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 ];
|
|
|
|
cmakeFlags = [
|
|
"-DGIT_DESCRIBE=${version}"
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm755 qtox $out/bin/qtox
|
|
wrapQtProgram $out/bin/qtox
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Qt Tox client";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ viric jgeerds akaWolf peterhoeg ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|