nixpkgs/pkgs/development/tools/misc/sipp/default.nix

36 lines
745 B
Nix
Raw Normal View History

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