forked from mirrors/nixpkgs
sipp: add the package
This commit is contained in:
parent
4fea283349
commit
b7adfe0e7d
29
pkgs/development/tools/misc/sipp/default.nix
Normal file
29
pkgs/development/tools/misc/sipp/default.nix
Normal 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];
|
||||
}
|
||||
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue