nixpkgs/pkgs/servers/jicofo/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

49 lines
1.3 KiB
Nix

{ lib, stdenv, fetchurl, dpkg, jre_headless, nixosTests }:
let
pname = "jicofo";
version = "1.0-1078";
src = fetchurl {
url = "https://download.jitsi.org/stable/${pname}_${version}-1_all.deb";
sha256 = "0+VfsolOcjC68DRrWUgYYCdKhCxd0x1Y6920OrixU5g=";
};
in
stdenv.mkDerivation {
inherit pname version src;
dontBuild = true;
unpackCmd = "${dpkg}/bin/dpkg-deb -x $src debcontents";
installPhase = ''
runHook preInstall
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
runHook postInstall
'';
passthru.tests = {
single-node-smoke-test = nixosTests.jitsi-meet;
};
passthru.updateScript = ./update.sh;
meta = with lib; {
description = "Server side focus component used in Jitsi Meet conferences";
mainProgram = "jicofo";
longDescription = ''
JItsi COnference FOcus is a server side focus component used in Jitsi Meet conferences.
'';
homepage = "https://github.com/jitsi/jicofo";
license = licenses.asl20;
maintainers = teams.jitsi.members;
platforms = platforms.linux;
};
}