2021-02-05 17:12:51 +00:00
|
|
|
{lib, stdenv, fetchurl, ncurses, libpcap }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "3.6.0";
|
|
|
|
|
|
|
|
pname = "sipp";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/SIPp/${pname}/releases/download/v${version}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "1fx1iy2n0m2kr91n1ii30frbscq375k3lqihdgvrqxn0zq8pnzp4";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i "s@pcap/\(.*\).pcap@$out/share/pcap/\1.pcap@g" src/scenario.cpp
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-pcap"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -pv $out/share/pcap
|
|
|
|
cp pcap/* $out/share/pcap
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ncurses libpcap];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://sipp.sf.net";
|
|
|
|
description = "The SIPp testing tool";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|