2022-11-04 12:27:35 +00:00
|
|
|
{ lib, stdenv, fetchurl, dpkg, jdk11_headless, makeWrapper, writeText, xorg }:
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
xorgModulePaths = writeText "module-paths" ''
|
|
|
|
Section "Files"
|
|
|
|
ModulePath "${xorg.xorgserver}/lib/xorg/modules
|
|
|
|
ModulePath "${xorg.xorgserver}/lib/xorg/extensions
|
|
|
|
ModulePath "${xorg.xorgserver}/lib/xorg/drivers
|
|
|
|
ModulePath "${xorg.xf86videodummy}/lib/xorg/modules/drivers
|
|
|
|
EndSection
|
|
|
|
'';
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
in
|
2021-09-18 10:52:07 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "jibri";
|
2023-03-24 00:07:29 +00:00
|
|
|
version = "8.0-140-gccc7278";
|
2021-09-18 10:52:07 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://download.jitsi.org/stable/${pname}_${version}-1_all.deb";
|
2023-03-24 00:07:29 +00:00
|
|
|
sha256 = "TiKCK41ar3X1aOrGitnNBr/iWru1HOjjGkwLBB76M1M=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
nativeBuildInputs = [ dpkg makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/{bin,opt/jitsi/jibri,etc/jitsi/jibri}
|
|
|
|
mv etc/jitsi/jibri/* $out/etc/jitsi/jibri/
|
|
|
|
mv opt/jitsi/jibri/* $out/opt/jitsi/jibri/
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
cat '${xorgModulePaths}' >> $out/etc/jitsi/jibri/xorg-video-dummy.conf
|
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
makeWrapper ${jdk11_headless}/bin/java $out/bin/jibri --add-flags "-jar $out/opt/jitsi/jibri/jibri.jar"
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "JItsi BRoadcasting Infrastructure";
|
|
|
|
longDescription = ''
|
|
|
|
Jibri provides services for recording or streaming a Jitsi Meet conference.
|
|
|
|
It works by launching a Chrome instance rendered in a virtual framebuffer and capturing and
|
|
|
|
encoding the output with ffmpeg. It is intended to be run on a separate machine (or a VM), with
|
|
|
|
no other applications using the display or audio devices. Only one recording at a time is
|
|
|
|
supported on a single jibri.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/jitsi/jibri";
|
2022-06-16 17:23:12 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2021-09-18 10:52:07 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.jitsi.members;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|