2021-01-15 22:18:51 +00:00
|
|
|
{lib, stdenv, autoreconfHook, fetchFromGitHub, bison}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let version = "1.1.1"; in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tcpkali";
|
|
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "machinezone";
|
|
|
|
repo = "tcpkali";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "09ky3cccaphcqc6nhfs00pps99lasmzc2pf5vk0gi8hlqbbhilxf";
|
|
|
|
};
|
2020-10-16 20:44:37 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -ie '/sys\/sysctl\.h/d' src/tcpkali_syslimits.c
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ bison];
|
|
|
|
meta = {
|
|
|
|
description = "High performance TCP and WebSocket load generator and sink";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.bsd2;
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit (src.meta) homepage;
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = with lib.maintainers; [ ethercrow ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|