16 buildToxAV = !stdenv.hostPlatform.isAarch32;
18 stdenv.mkDerivation rec {
23 # We need the prepared sources tarball.
25 url = "https://github.com/TokTok/c-toxcore/releases/download/v${version}/c-toxcore-${version}.tar.gz";
26 hash = "sha256-qciaja6nRdU+XXjnqsuZx7R5LEQApaaccSOPRdYWT0w=";
31 "-DBOOTSTRAP_DAEMON=ON"
32 ] ++ lib.optional buildToxAV "-DMUST_BUILD_TOXAV=ON";
40 ++ lib.optionals buildToxAV [
51 nativeCheckInputs = [ check ];
54 substituteInPlace $out/lib/pkgconfig/toxcore.pc \
55 --replace '=''${prefix}/' '=' \
58 # We might be getting the wrong pkg-config file anyway:
59 # https://github.com/TokTok/c-toxcore/issues/2334
62 description = "P2P FOSS instant messaging application aimed to replace Skype";
63 homepage = "https://tox.chat";
64 license = lib.licenses.gpl3Plus;
65 maintainers = with lib.maintainers; [
69 platforms = lib.platforms.all;