Files
nixpkgs/pkgs/by-name/ji/jicofo/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

56 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchurl,
dpkg,
jre_headless,
nixosTests,
}:
let
pname = "jicofo";
version = "1.0-1153";
src = fetchurl {
url = "https://download.jitsi.org/stable/${pname}_${version}-1_all.deb";
sha256 = "tBvaXyRqNg8VeIy3aI1HbrZNlelsYowLOVlsXyap+gA=";
};
in
stdenv.mkDerivation {
inherit pname version src;
dontBuild = true;
nativeBuildInputs = [ dpkg ];
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;
teams = [ teams.jitsi ];
platforms = platforms.linux;
};
}