about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2011-01-16 14:58:37 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2011-01-16 14:58:37 +0000
commit40012b3588aa06b0a0d58385f9ccfad94f6bff0c (patch)
treee3e1ef3d2cbeaab4af9c8d0a5222f900c27a1f51 /pkgs
parentb8e6a6ef5ad4785c8ae0c8e82ac98a165551454e (diff)
downloadnixlib-40012b3588aa06b0a0d58385f9ccfad94f6bff0c.tar
nixlib-40012b3588aa06b0a0d58385f9ccfad94f6bff0c.tar.gz
nixlib-40012b3588aa06b0a0d58385f9ccfad94f6bff0c.tar.bz2
nixlib-40012b3588aa06b0a0d58385f9ccfad94f6bff0c.tar.lz
nixlib-40012b3588aa06b0a0d58385f9ccfad94f6bff0c.tar.xz
nixlib-40012b3588aa06b0a0d58385f9ccfad94f6bff0c.tar.zst
nixlib-40012b3588aa06b0a0d58385f9ccfad94f6bff0c.zip
Making pjsip install the console User Agent (pjsua), that helps a lot testing SIP.
svn path=/nixpkgs/trunk/; revision=25587
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/networking/pjsip/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/applications/networking/pjsip/default.nix b/pkgs/applications/networking/pjsip/default.nix
index efe39d9710d4..e12edf8337b9 100644
--- a/pkgs/applications/networking/pjsip/default.nix
+++ b/pkgs/applications/networking/pjsip/default.nix
@@ -1,6 +1,6 @@
 {stdenv, fetchurl, openssl, libsamplerate}:
 
-stdenv.mkDerivation {
+stdenv.mkDerivation rec {
   name = "pjsip-1.8.10";
 
   src = fetchurl {
@@ -10,9 +10,18 @@ stdenv.mkDerivation {
 
   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;
   };
 }