libtoxcore: drop unnecessary dependency on msgpack
This commit is contained in:
parent
ba65428bd3
commit
9589a3cda7
|
@ -1,5 +1,15 @@
|
||||||
{ lib, stdenv, fetchurl, cmake, libsodium, ncurses, libopus, msgpack
|
{ lib
|
||||||
, libvpx, check, libconfig, pkg-config }:
|
, stdenv
|
||||||
|
, fetchurl
|
||||||
|
, cmake
|
||||||
|
, libsodium
|
||||||
|
, ncurses
|
||||||
|
, libopus
|
||||||
|
, libvpx
|
||||||
|
, check
|
||||||
|
, libconfig
|
||||||
|
, pkg-config
|
||||||
|
}:
|
||||||
|
|
||||||
let buildToxAV = !stdenv.isAarch32;
|
let buildToxAV = !stdenv.isAarch32;
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
|
@ -14,14 +24,18 @@ in stdenv.mkDerivation rec {
|
||||||
sha256 = "sha256-8pQFN5mIY1k+KLxqa19W8JZ19s2KKDJre8MbSDbAiUI=";
|
sha256 = "sha256-8pQFN5mIY1k+KLxqa19W8JZ19s2KKDJre8MbSDbAiUI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cmakeFlags =
|
cmakeFlags = [
|
||||||
[ "-DBUILD_NTOX=ON" "-DDHT_BOOTSTRAP=ON" "-DBOOTSTRAP_DAEMON=ON" ]
|
"-DDHT_BOOTSTRAP=ON"
|
||||||
++ lib.optional buildToxAV "-DMUST_BUILD_TOXAV=ON";
|
"-DBOOTSTRAP_DAEMON=ON"
|
||||||
|
] ++ lib.optional buildToxAV "-DMUST_BUILD_TOXAV=ON";
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
libsodium msgpack ncurses libconfig
|
libsodium
|
||||||
|
ncurses
|
||||||
|
libconfig
|
||||||
] ++ lib.optionals buildToxAV [
|
] ++ lib.optionals buildToxAV [
|
||||||
libopus libvpx
|
libopus
|
||||||
|
libvpx
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkg-config ];
|
nativeBuildInputs = [ cmake pkg-config ];
|
||||||
|
|
Loading…
Reference in a new issue