2021-01-17 03:09:27 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, check, cmake, pkg-config
|
2018-04-19 12:21:01 +02:00
|
|
|
, libtoxcore, filter-audio, dbus, libvpx, libX11, openal, freetype, libv4l
|
2018-07-21 02:44:44 +02:00
|
|
|
, libXrender, fontconfig, libXext, libXft, libsodium, libopus }:
|
2014-07-31 12:56:16 +02:00
|
|
|
|
2016-02-17 15:43:53 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "utox";
|
2017-11-01 07:21:37 +01:00
|
|
|
|
2018-04-19 12:21:01 +02:00
|
|
|
version = "0.17.0";
|
2014-07-31 12:56:16 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-02-14 08:00:22 +01:00
|
|
|
owner = "uTox";
|
|
|
|
repo = "uTox";
|
|
|
|
rev = "v${version}";
|
2018-04-19 12:21:01 +02:00
|
|
|
sha256 = "12wbq883il7ikldayh8hm0cjfrkp45vn05xx9s1jbfz6gmkidyar";
|
|
|
|
fetchSubmodules = true;
|
2014-07-31 12:56:16 +02:00
|
|
|
};
|
|
|
|
|
2017-02-14 08:00:22 +01:00
|
|
|
buildInputs = [
|
|
|
|
libtoxcore dbus libvpx libX11 openal freetype
|
|
|
|
libv4l libXrender fontconfig libXext libXft filter-audio
|
2017-11-02 10:53:09 +01:00
|
|
|
libsodium libopus
|
2017-02-14 08:00:22 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-17 03:09:27 +01:00
|
|
|
cmake pkg-config
|
2017-02-14 08:00:22 +01:00
|
|
|
];
|
2014-07-31 12:56:16 +02:00
|
|
|
|
2017-02-25 08:50:52 +01:00
|
|
|
cmakeFlags = [
|
2018-04-19 12:21:01 +02:00
|
|
|
"-DENABLE_AUTOUPDATE=OFF"
|
2018-08-08 20:21:16 +02:00
|
|
|
"-DENABLE_TESTS=${if doCheck then "ON" else "OFF"}"
|
|
|
|
];
|
2016-02-17 15:43:53 +01:00
|
|
|
|
2018-08-08 20:21:16 +02:00
|
|
|
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
|
|
|
|
checkInputs = [ check ];
|
2017-11-02 10:53:09 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2014-07-31 12:56:16 +02:00
|
|
|
description = "Lightweight Tox client";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/uTox/uTox";
|
2014-07-31 12:56:16 +02:00
|
|
|
license = licenses.gpl3;
|
2021-03-03 11:50:26 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2014-12-04 02:53:48 +01:00
|
|
|
platforms = platforms.all;
|
2014-07-31 12:56:16 +02:00
|
|
|
};
|
|
|
|
}
|