mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 05:50:00 +00:00
81 lines
1.3 KiB
Nix
81 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
check,
|
|
cmake,
|
|
pkg-config,
|
|
libtoxcore,
|
|
filter-audio,
|
|
dbus,
|
|
libvpx,
|
|
libx11,
|
|
openal,
|
|
freetype,
|
|
libv4l,
|
|
libxrender,
|
|
fontconfig,
|
|
libxext,
|
|
libxft,
|
|
libsodium,
|
|
libopus,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "utox";
|
|
|
|
version = "0.18.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "uTox";
|
|
repo = "uTox";
|
|
tag = "v${version}";
|
|
hash = "sha256-DxnolxUTn+CL6TbZHKLHOUMTHhtTSWufzzOTRpKjOwc=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
buildInputs = [
|
|
libtoxcore
|
|
dbus
|
|
libvpx
|
|
libx11
|
|
openal
|
|
freetype
|
|
libv4l
|
|
libxrender
|
|
fontconfig
|
|
libxext
|
|
libxft
|
|
filter-audio
|
|
libsodium
|
|
libopus
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DENABLE_AUTOUPDATE=OFF"
|
|
"-DENABLE_TESTS=${if doCheck then "ON" else "OFF"}"
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace CMakeLists.txt \
|
|
--replace-fail "cmake_minimum_required(VERSION 3.2)" "cmake_minimum_required(VERSION 3.10)"
|
|
'';
|
|
|
|
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
|
|
nativeCheckInputs = [ check ];
|
|
|
|
meta = {
|
|
description = "Lightweight Tox client";
|
|
mainProgram = "utox";
|
|
homepage = "https://github.com/uTox/uTox";
|
|
license = lib.licenses.gpl3;
|
|
maintainers = [ ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|