Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / misc / jitsi-meet-prosody / default.nix
blob6522924a313984aedad72324e931d78a6b8ed49e
1 { lib, stdenv, fetchurl, dpkg, nixosTests }:
3 stdenv.mkDerivation rec {
4   pname = "jitsi-meet-prosody";
5   version = "1.0.7531";
6   src = fetchurl {
7     url = "https://download.jitsi.org/stable/${pname}_${version}-1_all.deb";
8     sha256 = "ppRjUhx/VBkbFNhQunaUfOnwckOqJRQUTVMhKYZ0StU=";
9   };
11   dontBuild = true;
13   unpackCmd = "${dpkg}/bin/dpkg-deb -x $src debcontents";
15   installPhase = ''
16     runHook preInstall
17     mkdir -p $out/share
18     mv usr/share/jitsi-meet/prosody-plugins $out/share/
19     runHook postInstall
20   '';
22   passthru.tests = {
23     single-node-smoke-test = nixosTests.jitsi-meet;
24   };
26   passthru.updateScript = ./update.sh;
28   meta = with lib; {
29     description = "Prosody configuration for Jitsi Meet";
30     longDescription = ''
31         This package contains configuration for Prosody to be used with Jitsi Meet.
32     '';
33     homepage = "https://github.com/jitsi/jitsi-meet/";
34     license = licenses.asl20;
35     maintainers = teams.jitsi.members;
36     platforms = platforms.linux;
37   };