3
0
Fork 0
forked from mirrors/nixpkgs

sipp: add the package

This commit is contained in:
Sergey Mironov 2015-01-19 17:19:36 +03:00
parent 4fea283349
commit b7adfe0e7d
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,29 @@
{stdenv, fetchurl, ncurses, libpcap }:
stdenv.mkDerivation rec {
version = "3.4-beta2";
name = "sipp-${version}";
src = fetchurl {
url = "https://github.com/SIPp/sipp/archive/${version}.tar.gz";
sha256 = "0rr3slarh5dhpinif5aqji9c9krnpvl7z49w7qahvsww1niawwdv";
};
configurePhase = ''
export ac_cv_lib_curses_initscr=yes
export ac_cv_lib_pthread_pthread_mutex_init=yes
sed -i "s@-lcurses@-lncurses@g" ./configure
sed -i "s@pcap/\(.*\).pcap@$out/share/pcap/\1.pcap@g" src/scenario.cpp
./configure --prefix=$out --with-pcap
'';
postInstall = ''
mkdir -pv $out/share/pcap
cp pcap/* $out/share/pcap
'';
buildInputs = [ncurses libpcap];
}

View file

@ -11169,6 +11169,8 @@ let
shntool = callPackage ../applications/audio/shntool { };
sipp = callPackage ../development/tools/misc/sipp { };
sonic-visualiser = callPackage ../applications/audio/sonic-visualiser {
inherit (pkgs.vamp) vampSDK;
inherit (pkgs.xlibs) libX11;