2019-06-16 12:59:06 -07:00
|
|
|
{ stdenv, fetchFromGitHub, check, cmake, pkgconfig
|
2018-04-19 03:21:01 -07:00
|
|
|
, libtoxcore, filter-audio, dbus, libvpx, libX11, openal, freetype, libv4l
|
2018-07-20 17:44:44 -07:00
|
|
|
, libXrender, fontconfig, libXext, libXft, libsodium, libopus }:
|
2014-07-31 03:56:16 -07:00
|
|
|
|
2016-02-17 06:43:53 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "utox";
|
2017-10-31 23:21:37 -07:00
|
|
|
|
2018-04-19 03:21:01 -07:00
|
|
|
version = "0.17.0";
|
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}";
|
2018-04-19 03:21:01 -07:00
|
|
|
sha256 = "12wbq883il7ikldayh8hm0cjfrkp45vn05xx9s1jbfz6gmkidyar";
|
|
|
|
fetchSubmodules = true;
|
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 = [
|
2018-08-08 11:21:16 -07:00
|
|
|
cmake pkgconfig
|
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 = [
|
2018-04-19 03:21:01 -07:00
|
|
|
"-DENABLE_AUTOUPDATE=OFF"
|
2018-08-08 11:21:16 -07:00
|
|
|
"-DENABLE_TESTS=${if doCheck then "ON" else "OFF"}"
|
|
|
|
];
|
2016-02-17 06:43:53 -08:00
|
|
|
|
2018-08-08 11:21:16 -07:00
|
|
|
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
|
|
|
|
checkInputs = [ check ];
|
2017-11-02 02:53:09 -07:00
|
|
|
|
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;
|
2019-03-12 15:45:33 -07:00
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
2014-12-03 17:53:48 -08:00
|
|
|
platforms = platforms.all;
|
2014-07-31 03:56:16 -07:00
|
|
|
};
|
|
|
|
}
|