evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / ji / jigasi / package.nix
blob28204cb1384e5dd252daf683213085068a014d63
1 { lib, stdenv, fetchurl, dpkg, jdk11, nixosTests }:
3 let
4   pname = "jigasi";
5   version = "1.1-311-g3de47d0";
6   src = fetchurl {
7     url = "https://download.jitsi.org/stable/${pname}_${version}-1_all.deb";
8     hash = "sha256-pwUgkId7AHFjbqYo02fBgm0gsiMqEz+wvwkdy6sgTD0=";
9   };
11 stdenv.mkDerivation {
12   inherit pname version src;
14   nativeBuildInputs = [ dpkg ];
16   dontBuild = true;
18   unpackCmd = "dpkg-deb -x $src debcontents";
20   installPhase = ''
21     runHook preInstall
22     substituteInPlace usr/share/${pname}/${pname}.sh \
23       --replace "exec java" "exec ${jdk11}/bin/java"
25     mkdir -p $out/{share,bin}
26     mv usr/share/${pname} $out/share/
27     mv etc $out/
28     ln -s $out/share/${pname}/${pname}.sh $out/bin/${pname}
29     runHook postInstall
30   '';
32   passthru.tests = {
33     single-node-smoke-test = nixosTests.jitsi-meet;
34   };
36   meta = with lib; {
37     description = "Server-side application that allows regular SIP clients to join Jitsi Meet conferences";
38     mainProgram = "jigasi";
39     longDescription = ''
40       Jitsi Gateway to SIP: a server-side application that allows regular SIP clients to join Jitsi Meet conferences hosted by Jitsi Videobridge.
41     '';
42     homepage = "https://github.com/jitsi/jigasi";
43     license = licenses.asl20;
44     maintainers = teams.jitsi.members;
45     platforms = platforms.linux;
46   };