2020-03-18 03:51:03 +03:00
|
|
|
{ pkgs, stdenv, fetchurl, dpkg, jre_headless, nixosTests }:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "jicofo";
|
2020-08-08 22:30:13 +03:00
|
|
|
version = "1.0-612";
|
2020-03-18 03:51:03 +03:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://download.jitsi.org/stable/${pname}_${version}-1_all.deb";
|
2020-08-08 22:30:13 +03:00
|
|
|
sha256 = "0xv3p2h8g1jwcmxljdpz08d6dsz543mznp0nwgb6vr93faz8kc81";
|
2020-03-18 03:51:03 +03:00
|
|
|
};
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit pname version src;
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
unpackCmd = "${dpkg}/bin/dpkg-deb -x $src debcontents";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
single-node-smoke-test = nixosTests.jitsi-meet;
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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 22:46:14 +03:00
|
|
|
maintainers = teams.jitsi.members;
|
2020-03-18 03:51:03 +03:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|