utox: 0.16.1 -> 0.17.0
This commit is contained in:
parent
3f454bc90f
commit
8ce6587966
@ -1,16 +1,18 @@
|
||||
{ stdenv, fetchFromGitHub, cmake, pkgconfig, libtoxcore, filter-audio, dbus, libvpx, libX11, openal, freetype, libv4l
|
||||
, libXrender, fontconfig, libXext, libXft, utillinux, git, libsodium, libopus, check }:
|
||||
{ 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.16.1";
|
||||
version = "0.17.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "uTox";
|
||||
repo = "uTox";
|
||||
rev = "v${version}";
|
||||
sha256 = "0ak10925v67yaga2pw9yzp0xkb5j1181srfjdyqpd29v8mi9j828";
|
||||
sha256 = "12wbq883il7ikldayh8hm0cjfrkp45vn05xx9s1jbfz6gmkidyar";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
@ -20,16 +22,20 @@ stdenv.mkDerivation rec {
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake git pkgconfig check
|
||||
check cmake pkgconfig
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DENABLE_UPDATER=OFF"
|
||||
] ++ stdenv.lib.optional (!doCheck) "-DENABLE_TESTS=OFF";
|
||||
"-DENABLE_AUTOUPDATE=OFF"
|
||||
] ++ lib.optional (doCheck) "-DENABLE_TESTS=ON";
|
||||
|
||||
doCheck = true;
|
||||
doCheck = stdenv.isLinux;
|
||||
|
||||
checkTarget = "test";
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
ctest -VV
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Lightweight Tox client";
|
||||
|
Loading…
Reference in New Issue
Block a user