1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-23 00:00:01 +01:00
VILLASnode/packaging/nix/libdatachannel.nix
Steffen Vogel 0735eb0f89 Make project REUSE compliant
And various other cleanups and harmonizations

Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
2023-09-07 11:16:04 +02:00

30 lines
795 B
Nix

# SPDX-FileCopyrightText: 2023 OPAL-RT Germany GmbH
# SPDX-License-Identifier: Apache-2.0
{
cmake,
lib,
libnice,
libpcap,
pkg-config,
stdenv,
src,
openssl,
}:
stdenv.mkDerivation {
pname = "libdatachannel";
version = "villas";
src = src;
separateDebugInfo = true;
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;
};
}