2019-12-26 15:48:11 +00:00
|
|
|
{stdenv, fetchurl, ncurses, libpcap }:
|
2015-01-19 14:19:36 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-12-26 15:48:11 +00:00
|
|
|
version = "3.6.0";
|
2015-01-19 14:19:36 +00:00
|
|
|
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "sipp";
|
2015-01-19 14:19:36 +00:00
|
|
|
|
2019-12-26 15:48:11 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/SIPp/${pname}/releases/download/v${version}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "1fx1iy2n0m2kr91n1ii30frbscq375k3lqihdgvrqxn0zq8pnzp4";
|
2015-01-19 14:19:36 +00:00
|
|
|
};
|
|
|
|
|
2019-12-26 15:48:11 +00:00
|
|
|
postPatch = ''
|
2015-01-19 14:19:36 +00:00
|
|
|
sed -i "s@pcap/\(.*\).pcap@$out/share/pcap/\1.pcap@g" src/scenario.cpp
|
|
|
|
'';
|
|
|
|
|
2017-03-10 09:46:22 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-pcap"
|
|
|
|
];
|
|
|
|
|
2015-01-19 14:19:36 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -pv $out/share/pcap
|
|
|
|
cp pcap/* $out/share/pcap
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ncurses libpcap];
|
2017-03-10 09:46:22 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://sipp.sf.net;
|
|
|
|
description = "The SIPp testing tool";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2015-01-19 14:19:36 +00:00
|
|
|
}
|
|
|
|
|