1 { lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, gengetopt
2 , glib, libconfig, libnice, jansson, boringssl, zlib, srtp, libuv
3 , libmicrohttpd, curl, libwebsockets, sofia_sip, libogg, libopus
8 libwebsockets_janus = libwebsockets.overrideAttrs (_: {
11 "-DLWS_WITHOUT_EXTENSIONS=0"
16 stdenv.mkDerivation rec {
17 pname = "janus-gateway";
20 src = fetchFromGitHub {
24 sha256 = "sha256-3o9XxxTlWppq1mFgIUjstUFz6bT44mvBJa4FBgcc4Pc=";
27 nativeBuildInputs = [ autoreconfHook pkg-config gengetopt ];
30 glib libconfig libnice jansson boringssl zlib srtp libuv libmicrohttpd
31 curl libwebsockets_janus sofia_sip libogg libopus usrsctp ffmpeg
34 enableParallelBuilding = true;
37 "--enable-boringssl=${lib.getDev boringssl}"
39 "--enable-turn-rest-api"
40 "--enable-json-logger"
41 "--enable-gelf-event-handler"
42 "--enable-post-processing"
46 "BORINGSSL_LIBS=-L${lib.getLib boringssl}/lib"
49 outputs = [ "out" "dev" "doc" "man" ];
52 moveToOutput share/janus "$doc"
53 moveToOutput etc "$doc"
57 description = "General purpose WebRTC server";
58 homepage = "https://janus.conf.meetecho.com/";
59 changelog = "https://github.com/meetecho/janus-gateway/blob/v${version}/CHANGELOG.md";
60 license = licenses.gpl3Only;
61 platforms = platforms.linux;
62 maintainers = with maintainers; [ fpletz ];