summary refs log tree commit diff
path: root/pkgs/applications/networking/pjsip/default.nix
blob: 4d08e1cc60a1403c09c9c82d3226caeabead4dc4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{stdenv, fetchurl, openssl, libsamplerate}:

stdenv.mkDerivation rec {
  name = "pjsip-2.1";

  src = fetchurl {
    url = http://www.pjsip.org/release/2.1/pjproject-2.1.tar.bz2;
    md5 = "310eb63638dac93095f6a1fc8ee1f578";
  };

  buildInputs = [ openssl libsamplerate ];

  postInstall = ''
    mkdir -p $out/bin
    cp pjsip-apps/bin/pjsua-* $out/bin/pjsua
    mkdir -p $out/share/${name}/samples
    cp pjsip-apps/bin/samples/*/* $out/share/${name}/samples
  '';

  # We need the libgcc_s.so.1 loadable (for pthread_cancel to work)
  dontPatchELF = true;

  meta = {
    description = "SIP stack and media stack for presence, im, and multimedia communication";
    homepage = http://pjsip.org/;
    license = stdenv.lib.licenses.gpl2Plus;
    maintainers = with stdenv.lib.maintainers; [viric];
    platforms = with stdenv.lib.platforms; linux;
  };
}