1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

packaging-nix: tailor libdatachannel compilation to our needs

- 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>
This commit is contained in:
Philipp Jungkamp 2023-06-13 10:40:53 +02:00
parent 0d69a0eefb
commit bca7f70cc2

View file

@ -1,6 +1,9 @@
{
cmake,
lib,
libnice,
libpcap,
pkg-config,
stdenv,
src,
openssl,
@ -9,8 +12,13 @@ stdenv.mkDerivation {
pname = "libdatachannel";
version = "villas";
src = src;
nativeBuildInputs = [cmake];
buildInputs = [openssl];
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/";