Unverified Commit 0e9aec18 authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

Merge pull request #239773 from NickCao/libtoxcore

libtoxcore: drop unnecessary dependency on msgpack
parents d603e0a3 9589a3cd
Loading
Loading
Loading
Loading
+21 −7
Original line number Diff line number Diff line
{ lib, stdenv, fetchurl, cmake, libsodium, ncurses, libopus, msgpack
, libvpx, check, libconfig, pkg-config }:
{ lib
, stdenv
, fetchurl
, cmake
, libsodium
, ncurses
, libopus
, libvpx
, check
, libconfig
, pkg-config
}:

let buildToxAV = !stdenv.isAarch32;
in stdenv.mkDerivation rec {
@@ -14,14 +24,18 @@ in stdenv.mkDerivation rec {
      sha256 = "sha256-8pQFN5mIY1k+KLxqa19W8JZ19s2KKDJre8MbSDbAiUI=";
    };

  cmakeFlags =
    [ "-DBUILD_NTOX=ON" "-DDHT_BOOTSTRAP=ON" "-DBOOTSTRAP_DAEMON=ON" ]
    ++ lib.optional buildToxAV "-DMUST_BUILD_TOXAV=ON";
  cmakeFlags = [
    "-DDHT_BOOTSTRAP=ON"
    "-DBOOTSTRAP_DAEMON=ON"
  ] ++ lib.optional buildToxAV "-DMUST_BUILD_TOXAV=ON";

  buildInputs = [
    libsodium msgpack ncurses libconfig
    libsodium
    ncurses
    libconfig
  ] ++ lib.optionals buildToxAV [
    libopus libvpx
    libopus
    libvpx
  ];

  nativeBuildInputs = [ cmake pkg-config ];