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