48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{ stdenv, lib, fetchFromGitHub, check, cmake, pkgconfig
|
|
, libtoxcore, filter-audio, dbus, libvpx, libX11, openal, freetype, libv4l
|
|
, libXrender, fontconfig, libXext, libXft, utillinux, libsodium, libopus }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "utox-${version}";
|
|
|
|
version = "0.17.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "uTox";
|
|
repo = "uTox";
|
|
rev = "v${version}";
|
|
sha256 = "12wbq883il7ikldayh8hm0cjfrkp45vn05xx9s1jbfz6gmkidyar";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
buildInputs = [
|
|
libtoxcore dbus libvpx libX11 openal freetype
|
|
libv4l libXrender fontconfig libXext libXft filter-audio
|
|
libsodium libopus
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
check cmake pkgconfig
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DENABLE_AUTOUPDATE=OFF"
|
|
] ++ lib.optional (doCheck) "-DENABLE_TESTS=ON";
|
|
|
|
doCheck = stdenv.isLinux;
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
ctest -VV
|
|
runHook postCheck
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Lightweight Tox client";
|
|
homepage = https://github.com/uTox/uTox;
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ domenkozar jgeerds ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|