2011-01-13 09:23:40 +00:00
|
|
|
{stdenv, fetchurl, openssl, libsamplerate}:
|
|
|
|
|
2011-01-16 14:58:37 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2011-01-13 09:23:40 +00:00
|
|
|
name = "pjsip-1.8.10";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://www.pjsip.org/release/1.8.10/pjproject-1.8.10.tar.bz2;
|
|
|
|
sha256 = "1v2mgbgzn7d3msb406jmg69ms97a0rqg58asykx71dmjipbaiqc0";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ openssl libsamplerate ];
|
|
|
|
|
2011-01-16 14:58:37 +00:00
|
|
|
postInstall = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/bin
|
2011-01-16 14:58:37 +00:00
|
|
|
cp pjsip-apps/bin/pjsua-* $out/bin/pjsua
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/share/${name}/samples
|
2011-01-16 14:58:37 +00:00
|
|
|
cp pjsip-apps/bin/samples/*/* $out/share/${name}/samples
|
|
|
|
'';
|
|
|
|
|
2011-01-19 21:16:40 +00:00
|
|
|
# We need the libgcc_s.so.1 loadable (for pthread_cancel to work)
|
|
|
|
dontPatchELF = true;
|
|
|
|
|
2011-01-13 09:23:40 +00:00
|
|
|
meta = {
|
|
|
|
description = "SIP stack and media stack for presence, im, and multimedia communication";
|
|
|
|
homepage = http://pjsip.org/;
|
|
|
|
license = "GPLv2+";
|
2011-01-16 14:58:37 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2011-01-13 09:23:40 +00:00
|
|
|
};
|
|
|
|
}
|