parent
68e2c3ea23
commit
fe71426b9a
|
@ -6,8 +6,6 @@ let
|
||||||
|
|
||||||
in rec {
|
in rec {
|
||||||
|
|
||||||
janus-gateway = callPackage ./pkgs/janus-gateway { };
|
|
||||||
|
|
||||||
nextcloud-spreed-signaling = callPackage ./pkgs/nextcloud-spreed-signaling { };
|
nextcloud-spreed-signaling = callPackage ./pkgs/nextcloud-spreed-signaling { };
|
||||||
|
|
||||||
snipe-it = callPackage ./pkgs/snipe-it { };
|
snipe-it = callPackage ./pkgs/snipe-it { };
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
let localPkgs = import ./. { pkgs = next; };
|
let localPkgs = import ./. { pkgs = next; };
|
||||||
in {
|
in {
|
||||||
inherit (localPkgs)
|
inherit (localPkgs)
|
||||||
janus-gateway
|
|
||||||
nextcloud-spreed-signaling
|
nextcloud-spreed-signaling
|
||||||
snipe-it
|
snipe-it
|
||||||
;
|
;
|
||||||
|
|
|
@ -1,59 +0,0 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, gengetopt
|
|
||||||
, glib, libconfig, libnice, jansson, boringssl, zlib, srtp, libuv
|
|
||||||
, libmicrohttpd, curl, libwebsockets, sofia_sip, libogg, libopus
|
|
||||||
, usrsctp, ffmpeg
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
|
||||||
libwebsockets_janus = libwebsockets.overrideAttrs (_: {
|
|
||||||
configureFlags = [
|
|
||||||
"-DLWS_MAX_SMP=1"
|
|
||||||
"-DLWS_WITHOUT_EXTENSIONS=0"
|
|
||||||
];
|
|
||||||
});
|
|
||||||
in
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
pname = "janus-gateway";
|
|
||||||
version = "0.11.4";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "meetecho";
|
|
||||||
repo = pname;
|
|
||||||
rev = "v${version}";
|
|
||||||
sha256 = "sha256-K+6r7Nz+zzEDNd5Y44+V7x80DPxjaithregEg+goXk0=";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook pkg-config gengetopt ];
|
|
||||||
|
|
||||||
buildInputs = [
|
|
||||||
glib libconfig libnice jansson boringssl zlib srtp libuv libmicrohttpd
|
|
||||||
curl libwebsockets_janus sofia_sip libogg libopus usrsctp ffmpeg
|
|
||||||
];
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
|
||||||
|
|
||||||
configureFlags = [
|
|
||||||
"--enable-boringssl=${boringssl}"
|
|
||||||
"--enable-libsrtp2"
|
|
||||||
"--enable-turn-rest-api"
|
|
||||||
"--enable-json-logger"
|
|
||||||
"--enable-gelf-event-handler"
|
|
||||||
"--enable-post-processing"
|
|
||||||
];
|
|
||||||
|
|
||||||
outputs = [ "out" "dev" "doc" "man" ];
|
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
moveToOutput share/janus "$doc"
|
|
||||||
moveToOutput etc "$doc"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "General purpose WebRTC server";
|
|
||||||
homepage = "https://janus.conf.meetecho.com/";
|
|
||||||
license = licenses.gpl3Only;
|
|
||||||
platforms = platforms.linux;
|
|
||||||
maintainers = with maintainers; [ fpletz ];
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in New Issue