mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
61c1a307a9
$out/bin/tox-bootstrapd is not built without it, silently
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{ stdenv, fetchFromGitHub, cmake, libsodium, ncurses, libopus, libmsgpack
|
|
, libvpx, check, libconfig, pkgconfig }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libtoxcore-${version}";
|
|
version = "0.1.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "TokTok";
|
|
repo = "c-toxcore";
|
|
rev = "v${version}";
|
|
sha256 = "1fya5gfiwlpk6fxhalv95n945ymvp2iidiyksrjw1xw95fzsp1ij";
|
|
};
|
|
|
|
cmakeFlags = [
|
|
"-DBUILD_NTOX=ON"
|
|
"-DDHT_BOOTSTRAP=ON"
|
|
"-DBOOTSTRAP_DAEMON=ON"
|
|
];
|
|
|
|
buildInputs = [
|
|
libsodium libmsgpack ncurses libconfig
|
|
] ++ stdenv.lib.optionals (!stdenv.isArm) [
|
|
libopus
|
|
libvpx
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
checkInputs = [ check ];
|
|
|
|
checkPhase = "ctest";
|
|
|
|
# for some reason the tests are not running - it says "No tests found!!"
|
|
doCheck = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "P2P FOSS instant messaging application aimed to replace Skype";
|
|
homepage = https://tox.chat;
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|