3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/instant-messengers/utox/default.nix

48 lines
1.1 KiB
Nix
Raw Normal View History

2018-04-19 11:21:01 +01:00
{ stdenv, lib, fetchFromGitHub, check, cmake, pkgconfig
, libtoxcore, filter-audio, dbus, libvpx, libX11, openal, freetype, libv4l
, libXrender, fontconfig, libXext, libXft, utillinux, libsodium, libopus }:
2014-07-31 11:56:16 +01:00
2016-02-17 14:43:53 +00:00
stdenv.mkDerivation rec {
name = "utox-${version}";
2017-11-01 06:21:37 +00:00
2018-04-19 11:21:01 +01:00
version = "0.17.0";
2014-07-31 11:56:16 +01:00
src = fetchFromGitHub {
2017-02-14 07:00:22 +00:00
owner = "uTox";
repo = "uTox";
rev = "v${version}";
2018-04-19 11:21:01 +01:00
sha256 = "12wbq883il7ikldayh8hm0cjfrkp45vn05xx9s1jbfz6gmkidyar";
fetchSubmodules = true;
2014-07-31 11:56:16 +01:00
};
2017-02-14 07:00:22 +00:00
buildInputs = [
libtoxcore dbus libvpx libX11 openal freetype
libv4l libXrender fontconfig libXext libXft filter-audio
libsodium libopus
2017-02-14 07:00:22 +00:00
];
nativeBuildInputs = [
2018-04-19 11:21:01 +01:00
check cmake pkgconfig
2017-02-14 07:00:22 +00:00
];
2014-07-31 11:56:16 +01:00
2017-02-25 07:50:52 +00:00
cmakeFlags = [
2018-04-19 11:21:01 +01:00
"-DENABLE_AUTOUPDATE=OFF"
] ++ lib.optional (doCheck) "-DENABLE_TESTS=ON";
2017-02-25 07:50:52 +00:00
2018-04-19 11:21:01 +01:00
doCheck = stdenv.isLinux;
2016-02-17 14:43:53 +00:00
2018-04-19 11:21:01 +01:00
checkPhase = ''
runHook preCheck
ctest -VV
runHook postCheck
'';
2014-07-31 11:56:16 +01:00
meta = with stdenv.lib; {
description = "Lightweight Tox client";
2017-02-25 07:50:52 +00:00
homepage = https://github.com/uTox/uTox;
2014-07-31 11:56:16 +01:00
license = licenses.gpl3;
maintainers = with maintainers; [ domenkozar jgeerds ];
platforms = platforms.all;
2014-07-31 11:56:16 +01:00
};
}