mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-30 00:00:11 +01:00

- Use libnice for better ICE protocol support. - Disable websockets support since we are already using libwebsockets. - Disable media transport facilities. Signed-off-by: Philipp Jungkamp <Philipp.Jungkamp@opal-rt.com>
27 lines
677 B
Nix
27 lines
677 B
Nix
{
|
|
cmake,
|
|
lib,
|
|
libnice,
|
|
libpcap,
|
|
pkg-config,
|
|
stdenv,
|
|
src,
|
|
openssl,
|
|
}:
|
|
stdenv.mkDerivation {
|
|
pname = "libdatachannel";
|
|
version = "villas";
|
|
src = src;
|
|
nativeBuildInputs = [cmake pkg-config];
|
|
buildInputs = [libnice libpcap openssl];
|
|
cmakeFlags = [
|
|
"-DUSE_NICE=ON" # use libnice for better protocol support
|
|
"-DNO_WEBSOCKET=ON" # villas uses libwebsockets instead
|
|
"-DNO_MEDIA=ON" # villas does not use media transport features
|
|
];
|
|
meta = with lib; {
|
|
description = "C/C++ WebRTC network library featuring Data Channels, Media Transport, and WebSockets";
|
|
homepage = "https://libdatachannel.org/";
|
|
license = licenses.mpl20;
|
|
};
|
|
}
|