3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/pjsip/default.nix
Lluís Batlle i Rossell 40012b3588 Making pjsip install the console User Agent (pjsua), that helps a lot testing SIP.
svn path=/nixpkgs/trunk/; revision=25587
2011-01-16 14:58:37 +00:00

28 lines
779 B
Nix

{stdenv, fetchurl, openssl, libsamplerate}:
stdenv.mkDerivation rec {
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 ];
postInstall = ''
ensureDir $out/bin
cp pjsip-apps/bin/pjsua-* $out/bin/pjsua
ensureDir $out/share/${name}/samples
cp pjsip-apps/bin/samples/*/* $out/share/${name}/samples
'';
meta = {
description = "SIP stack and media stack for presence, im, and multimedia communication";
homepage = http://pjsip.org/;
license = "GPLv2+";
maintainers = with stdenv.lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; linux;
};
}