3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/jitsi-videobridge/default.nix
Ryan Mulligan c4814c03b7 treewide: add Jitsi maintainers
* makes jitsi maintainer team
2020-08-04 13:07:36 -07:00

48 lines
1.7 KiB
Nix

{ stdenv, fetchurl, dpkg, jre_headless, nixosTests }:
let
pname = "jitsi-videobridge2";
version = "2.1-202-g5f9377b9";
src = fetchurl {
url = "https://download.jitsi.org/stable/${pname}_${version}-1_all.deb";
sha256 = "16xj4m6kz4di6y3vxrjkwajd7sfm92zzhrc6q9ljmrwiqnly5z0a";
};
in
stdenv.mkDerivation {
inherit pname version src;
dontBuild = true;
unpackCmd = "${dpkg}/bin/dpkg-deb -x $src debcontents";
installPhase = ''
substituteInPlace usr/share/jitsi-videobridge/jvb.sh \
--replace "exec java" "exec ${jre_headless}/bin/java"
mkdir -p $out/{bin,share/jitsi-videobridge,etc/jitsi/videobridge}
mv etc/jitsi/videobridge/logging.properties $out/etc/jitsi/videobridge/
cp ${./logging.properties-journal} $out/etc/jitsi/videobridge/logging.properties-journal
mv usr/share/jitsi-videobridge/* $out/share/jitsi-videobridge/
ln -s $out/share/jitsi-videobridge/jvb.sh $out/bin/jitsi-videobridge
'';
passthru.tests = {
single-host-smoke-test = nixosTests.jitsi-meet;
};
meta = with stdenv.lib; {
description = "A WebRTC compatible video router";
longDescription = ''
Jitsi Videobridge is an XMPP server component that allows for multiuser video communication.
Unlike the expensive dedicated hardware videobridges, Jitsi Videobridge does not mix the video
channels into a composite video stream, but only relays the received video channels to all call
participants. Therefore, while it does need to run on a server with good network bandwidth,
CPU horsepower is not that critical for performance.
'';
homepage = "https://github.com/jitsi/jitsi-videobridge";
license = licenses.asl20;
maintainers = teams.jitsi.members;
platforms = platforms.linux;
};
}