mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
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
|
{ stdenv, lib, fetchFromGitHub, check, cmake, pkgconfig
|
||||||
, libXrender, fontconfig, libXext, libXft, utillinux, git, libsodium, libopus, check }:
|
, libtoxcore, filter-audio, dbus, libvpx, libX11, openal, freetype, libv4l
|
||||||
|
, libXrender, fontconfig, libXext, libXft, utillinux, libsodium, libopus }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "utox-${version}";
|
name = "utox-${version}";
|
||||||
|
|
||||||
version = "0.16.1";
|
version = "0.17.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "uTox";
|
owner = "uTox";
|
||||||
repo = "uTox";
|
repo = "uTox";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0ak10925v67yaga2pw9yzp0xkb5j1181srfjdyqpd29v8mi9j828";
|
sha256 = "12wbq883il7ikldayh8hm0cjfrkp45vn05xx9s1jbfz6gmkidyar";
|
||||||
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
@ -20,16 +22,20 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cmake git pkgconfig check
|
check cmake pkgconfig
|
||||||
];
|
];
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DENABLE_UPDATER=OFF"
|
"-DENABLE_AUTOUPDATE=OFF"
|
||||||
] ++ stdenv.lib.optional (!doCheck) "-DENABLE_TESTS=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; {
|
meta = with stdenv.lib; {
|
||||||
description = "Lightweight Tox client";
|
description = "Lightweight Tox client";
|
||||||
|
Loading…
Reference in New Issue
Block a user