1 { lib, stdenv, fetchFromGitHub, cmake, libsodium, ncurses, libopus, msgpack
2 , libvpx, check, libconfig, pkg-config }:
5 generic = { version, sha256 }:
10 src = fetchFromGitHub {
20 "-DBOOTSTRAP_DAEMON=ON"
24 libsodium msgpack ncurses libconfig
25 ] ++ lib.optionals (!stdenv.isAarch32) [
29 nativeBuildInputs = [ cmake pkg-config ];
31 doCheck = false; # hangs, tries to access the net?
32 checkInputs = [ check ];
35 sed -i $out/lib/pkgconfig/*.pc \
36 -e "s|^libdir=.*|libdir=$out/lib|" \
37 -e "s|^includedir=.*|includedir=$out/include|"
41 description = "P2P FOSS instant messaging application aimed to replace Skype";
42 homepage = "https://tox.chat";
43 license = licenses.gpl3Plus;
44 maintainers = with maintainers; [ peterhoeg ];
45 platforms = platforms.all;
50 libtoxcore_0_1 = generic {
52 sha256 = "1fya5gfiwlpk6fxhalv95n945ymvp2iidiyksrjw1xw95fzsp1ij";
55 libtoxcore_0_2 = generic {
57 sha256 = "0a6sqpm00d2rn0nviqfz4gh9ck1wzci6rxgmqmcyryl5ca19ffvp";