mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-14 08:54:46 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
71 lines
2.2 KiB
Nix
71 lines
2.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
makeWrapper,
|
|
dpkg,
|
|
jre_headless,
|
|
openssl,
|
|
nixosTests,
|
|
}:
|
|
|
|
let
|
|
pname = "jitsi-videobridge2";
|
|
version = "2.3-174-gd011ddf7";
|
|
src = fetchurl {
|
|
url = "https://download.jitsi.org/stable/${pname}_${version}-1_all.deb";
|
|
sha256 = "qBI++Awoe2NlCedgxXmqm4zXR3fYekVCyXRBF/SirWk=";
|
|
};
|
|
in
|
|
stdenv.mkDerivation {
|
|
inherit pname version src;
|
|
|
|
dontBuild = true;
|
|
|
|
nativeBuildInputs = [
|
|
dpkg
|
|
makeWrapper
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
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
|
|
|
|
# - work around https://github.com/jitsi/jitsi-videobridge/issues/1547
|
|
# - make libcrypto.so available at runtime for hardware AES
|
|
wrapProgram $out/bin/jitsi-videobridge \
|
|
--set VIDEOBRIDGE_GC_TYPE G1GC \
|
|
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ openssl ]}
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.tests = {
|
|
single-host-smoke-test = nixosTests.jitsi-meet;
|
|
};
|
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
meta = with lib; {
|
|
description = "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;
|
|
mainProgram = "jitsi-videobridge";
|
|
};
|
|
}
|