14 let buildToxAV = !stdenv.hostPlatform.isAarch32;
15 in stdenv.mkDerivation rec {
20 # We need the prepared sources tarball.
23 "https://github.com/TokTok/c-toxcore/releases/download/v${version}/c-toxcore-${version}.tar.gz";
24 hash = "sha256-qciaja6nRdU+XXjnqsuZx7R5LEQApaaccSOPRdYWT0w=";
29 "-DBOOTSTRAP_DAEMON=ON"
30 ] ++ lib.optional buildToxAV "-DMUST_BUILD_TOXAV=ON";
36 ] ++ lib.optionals buildToxAV [
41 nativeBuildInputs = [ cmake pkg-config ];
44 nativeCheckInputs = [ check ];
47 substituteInPlace $out/lib/pkgconfig/toxcore.pc \
48 --replace '=''${prefix}/' '=' \
51 # We might be getting the wrong pkg-config file anyway:
52 # https://github.com/TokTok/c-toxcore/issues/2334
55 description = "P2P FOSS instant messaging application aimed to replace Skype";
56 homepage = "https://tox.chat";
57 license = lib.licenses.gpl3Plus;
58 maintainers = with lib.maintainers; [ peterhoeg ehmry ];
59 platforms = lib.platforms.all;