2016-05-23 22:36:25 +02:00
|
|
|
{ stdenv, fetchFromGitHub, opal, ptlib }:
|
2015-01-16 13:04:12 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
rev = "3090e9f";
|
|
|
|
|
|
|
|
name = "sipcmd-${rev}";
|
|
|
|
|
2016-05-23 22:36:25 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "sipcmd";
|
|
|
|
owner = "tmakkonen";
|
|
|
|
inherit rev;
|
2015-01-16 13:04:12 +01:00
|
|
|
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;
|
2016-05-23 22:36:25 +02:00
|
|
|
description = "The command line SIP/H.323/RTP softphone";
|
2015-01-16 13:04:12 +01:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|