2017-02-13 23:00:22 -08:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, libtoxcore, filter-audio, dbus, libvpx, libX11, openal, freetype, libv4l
|
2017-10-31 23:21:37 -07:00
|
|
|
, libXrender, fontconfig, libXext, libXft, utillinux, git, libsodium, libopus, check }:
|
2014-07-31 03:56:16 -07:00
|
|
|
|
2016-02-17 06:43:53 -08:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "utox-${version}";
|
2017-10-31 23:21:37 -07:00
|
|
|
|
|
|
|
version = "0.16.1";
|
2014-07-31 03:56:16 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-02-13 23:00:22 -08:00
|
|
|
owner = "uTox";
|
|
|
|
repo = "uTox";
|
|
|
|
rev = "v${version}";
|
2017-10-31 23:21:37 -07:00
|
|
|
sha256 = "0ak10925v67yaga2pw9yzp0xkb5j1181srfjdyqpd29v8mi9j828";
|
2014-07-31 03:56:16 -07:00
|
|
|
};
|
|
|
|
|
2017-02-13 23:00:22 -08:00
|
|
|
buildInputs = [
|
|
|
|
libtoxcore dbus libvpx libX11 openal freetype
|
|
|
|
libv4l libXrender fontconfig libXext libXft filter-audio
|
2017-11-02 02:53:09 -07:00
|
|
|
libsodium libopus
|
2017-02-13 23:00:22 -08:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2017-11-02 02:53:09 -07:00
|
|
|
cmake git pkgconfig check
|
2017-02-13 23:00:22 -08:00
|
|
|
];
|
2014-07-31 03:56:16 -07:00
|
|
|
|
2017-02-24 23:50:52 -08:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DENABLE_UPDATER=OFF"
|
2017-10-11 05:05:41 -07:00
|
|
|
] ++ stdenv.lib.optional (!doCheck) "-DENABLE_TESTS=OFF";
|
2017-02-24 23:50:52 -08:00
|
|
|
|
2017-10-11 05:05:41 -07:00
|
|
|
doCheck = true;
|
2016-02-17 06:43:53 -08:00
|
|
|
|
2017-11-02 02:53:09 -07:00
|
|
|
checkTarget = "test";
|
|
|
|
|
2014-07-31 03:56:16 -07:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Lightweight Tox client";
|
2017-02-24 23:50:52 -08:00
|
|
|
homepage = https://github.com/uTox/uTox;
|
2014-07-31 03:56:16 -07:00
|
|
|
license = licenses.gpl3;
|
2016-05-17 04:57:28 -07:00
|
|
|
maintainers = with maintainers; [ domenkozar jgeerds ];
|
2014-12-03 17:53:48 -08:00
|
|
|
platforms = platforms.all;
|
2014-07-31 03:56:16 -07:00
|
|
|
};
|
|
|
|
}
|