2015-06-29 19:43:40 +02:00
|
|
|
{ stdenv, fetchgit, pkgconfig, libtoxcore-dev, qt5, openal, opencv,
|
|
|
|
libsodium, libXScrnSaver, glib, gdk_pixbuf, gtk2, cairo,
|
|
|
|
pango, atk, qrencode, ffmpeg, filter-audio }:
|
2014-09-18 09:51:43 +02:00
|
|
|
|
2015-06-29 19:43:40 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "qtox-dev-20150624";
|
2014-09-18 09:51:43 +02:00
|
|
|
|
2015-06-29 19:43:40 +02:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/tux3/qTox.git";
|
|
|
|
rev = "9f386135a2cf428d2802b158c70be4beee5abf86";
|
|
|
|
sha256 = "1m2y50q5yim1q75k48cy5daq5qm77cvb3kcla7lpqv54xnfdwxk8";
|
2014-09-18 09:51:43 +02:00
|
|
|
};
|
|
|
|
|
2015-03-24 16:31:27 +01:00
|
|
|
buildInputs =
|
|
|
|
[
|
2015-06-29 19:43:40 +02:00
|
|
|
libtoxcore-dev openal opencv libsodium filter-audio
|
|
|
|
qt5.base qt5.tools libXScrnSaver glib gtk2 cairo
|
|
|
|
pango atk qrencode ffmpeg qt5.translations
|
2015-03-24 16:31:27 +01:00
|
|
|
];
|
2015-06-29 19:43:40 +02:00
|
|
|
|
2015-03-24 16:31:27 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2014-09-18 09:51:43 +02:00
|
|
|
|
2015-06-29 19:43:40 +02:00
|
|
|
preConfigure = ''
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags glib-2.0)"
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags gdk-pixbuf-2.0)"
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags gtk+-2.0)"
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags cairo)"
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags pango)"
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags atk)"
|
|
|
|
'';
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
runHook preConfigure
|
|
|
|
qmake
|
|
|
|
'';
|
2014-09-18 09:51:43 +02:00
|
|
|
|
|
|
|
installPhase = ''
|
2014-12-04 11:26:00 +01:00
|
|
|
mkdir -p $out/bin
|
2014-09-18 09:51:43 +02:00
|
|
|
cp qtox $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "QT Tox client";
|
|
|
|
license = licenses.gpl3;
|
2014-12-04 02:29:56 +01:00
|
|
|
maintainers = with maintainers; [ viric jgeerds ];
|
|
|
|
platforms = platforms.all;
|
2014-09-18 09:51:43 +02:00
|
|
|
};
|
|
|
|
}
|
2015-06-29 19:43:40 +02:00
|
|
|
|