summary refs log tree commit diff
path: root/pkgs/applications/networking/sipcmd/default.nix
blob: a36c2286956bc1436cf1756984f050cf2dc4c0ff (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
31
32
33
34
{ stdenv, fetchFromGitHub, opal, ptlib }:

stdenv.mkDerivation rec {

  rev = "3090e9f";

  name = "sipcmd-${rev}";
  
  src = fetchFromGitHub {
    repo = "sipcmd";
    owner = "tmakkonen";
    inherit rev;
    sha256 = "072h9qapmz46r8pxbzkfmc4ikd7dv9g8cgrfrw21q942icbrvq2c";
  };

  buildInputs = [ opal ptlib ];

  buildPhase = ''
    make IFLAGS="-I${opal}/include/opal -I${ptlib}/include -Isrc/ -L${opal}/lib -L${ptlib}/lib"
  '';

  installPhase = ''
    mkdir -pv $out/bin
    cp sipcmd $out/bin/sipcmd
  '';

  meta = {
    homepage = https://github.com/tmakkonen/sipcmd;
    description = "The command line SIP/H.323/RTP softphone";
    platforms = with stdenv.lib.platforms; linux;
    license = stdenv.lib.licenses.gpl2;
  };
}