nixpkgs-suyu/pkgs/development/libraries/libtoxcore/default.nix

47 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, cmake, libsodium, ncurses, libopus, libmsgpack
, libvpx, check, libconfig, pkgconfig }:
stdenv.mkDerivation rec {
name = "libtoxcore-${version}";
2017-12-31 08:20:26 +01:00
version = "0.1.11";
src = fetchFromGitHub {
owner = "TokTok";
repo = "c-toxcore";
rev = "v${version}";
2017-12-31 08:20:26 +01:00
sha256 = "1fya5gfiwlpk6fxhalv95n945ymvp2iidiyksrjw1xw95fzsp1ij";
};
cmakeFlags = [
"-DBUILD_NTOX=ON"
"-DDHT_BOOTSTRAP=ON"
"-DBOOTSTRAP_DAEMON=ON"
];
buildInputs = [
libsodium libmsgpack ncurses libconfig
] ++ stdenv.lib.optionals (!stdenv.isAarch32) [
libopus
libvpx
];
2017-10-11 11:54:18 +02:00
nativeBuildInputs = [ cmake pkgconfig ];
2017-10-11 11:54:18 +02:00
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; {
2017-12-31 08:20:26 +01:00
description = "P2P FOSS instant messaging application aimed to replace Skype";
homepage = https://tox.chat;
license = licenses.gpl3Plus;
maintainers = with maintainers; [ peterhoeg ];
platforms = platforms.all;
};
}