mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 18:53:17 +00:00
42 lines
1.0 KiB
Nix
42 lines
1.0 KiB
Nix
{ stdenv, fetchFromGitHub, cmake, libsodium, ncurses, libopus, libmsgpack
|
|
, libvpx, check, libconfig, pkgconfig }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libtoxcore-${version}";
|
|
version = "0.1.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "TokTok";
|
|
repo = "c-toxcore";
|
|
rev = "v${version}";
|
|
sha256 = "08vdq3j60wn62lj2z9f3f47hibns93rvaqx5xc5bm3nglk70q7kk";
|
|
};
|
|
|
|
cmakeFlags = [
|
|
"-DBUILD_NTOX=ON"
|
|
"-DDHT_BOOTSTRAP=ON"
|
|
"-DBOOTSTRAP_DAEMON=ON"
|
|
];
|
|
|
|
buildInputs = [
|
|
libsodium libmsgpack ncurses
|
|
] ++ stdenv.lib.optionals (!stdenv.isArm) [
|
|
libopus
|
|
libvpx
|
|
];
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
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 with crypto";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|