2021-02-13 01:53:17 +00:00
|
|
|
{ lib, stdenv, fetchurl, dpkg, jre_headless, nixosTests }:
|
2020-03-18 00:51:03 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "jicofo";
|
2021-12-30 17:51:18 +00:00
|
|
|
version = "1.0-832";
|
2020-03-18 00:51:03 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://download.jitsi.org/stable/${pname}_${version}-1_all.deb";
|
2021-12-30 17:51:18 +00:00
|
|
|
sha256 = "ZSzxD4RCsIkNtB4agBRZkzbJOi6ttzlc4Qw5n0t5syc=";
|
2020-03-18 00:51:03 +00:00
|
|
|
};
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit pname version src;
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
unpackCmd = "${dpkg}/bin/dpkg-deb -x $src debcontents";
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-02-13 01:53:17 +00:00
|
|
|
runHook preInstall
|
2020-03-18 00:51:03 +00:00
|
|
|
substituteInPlace usr/share/jicofo/jicofo.sh \
|
|
|
|
--replace "exec java" "exec ${jre_headless}/bin/java"
|
|
|
|
|
|
|
|
mkdir -p $out/{share,bin}
|
|
|
|
mv usr/share/jicofo $out/share/
|
|
|
|
mv etc $out/
|
|
|
|
cp ${./logging.properties-journal} $out/etc/jitsi/jicofo/logging.properties-journal
|
|
|
|
ln -s $out/share/jicofo/jicofo.sh $out/bin/jicofo
|
2021-02-13 01:53:17 +00:00
|
|
|
runHook postInstall
|
2020-03-18 00:51:03 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
single-node-smoke-test = nixosTests.jitsi-meet;
|
|
|
|
};
|
|
|
|
|
2021-09-09 20:08:30 +01:00
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-03-18 00:51:03 +00:00
|
|
|
description = "A server side focus component used in Jitsi Meet conferences";
|
|
|
|
longDescription = ''
|
|
|
|
JItsi COnference FOcus is a server side focus component used in Jitsi Meet conferences.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/jitsi/jicofo";
|
|
|
|
license = licenses.asl20;
|
2020-08-04 20:46:14 +01:00
|
|
|
maintainers = teams.jitsi.members;
|
2020-03-18 00:51:03 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|