2021-01-15 05:42:41 +00:00
|
|
|
{lib, stdenv, autoreconfHook, fetchFromGitHub, bison}:
|
2016-08-18 11:02:37 +00:00
|
|
|
|
2018-02-28 01:11:14 +00:00
|
|
|
let version = "1.1.1"; in
|
2016-08-18 11:02:37 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "tcpkali";
|
|
|
|
inherit version;
|
2016-08-18 11:02:37 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "machinezone";
|
|
|
|
repo = "tcpkali";
|
|
|
|
rev = "v${version}";
|
2018-02-28 01:11:14 +00:00
|
|
|
sha256 = "09ky3cccaphcqc6nhfs00pps99lasmzc2pf5vk0gi8hlqbbhilxf";
|
2016-08-18 11:02:37 +00:00
|
|
|
};
|
2020-08-10 20:26:45 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -ie '/sys\/sysctl\.h/d' src/tcpkali_syslimits.c
|
|
|
|
'';
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ bison];
|
2016-08-18 11:02:37 +00:00
|
|
|
meta = {
|
|
|
|
description = "High performance TCP and WebSocket load generator and sink";
|
2021-01-15 05:42:41 +00:00
|
|
|
license = lib.licenses.bsd2;
|
2016-08-18 11:02:37 +00:00
|
|
|
inherit (src.meta) homepage;
|
2021-01-15 05:42:41 +00:00
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = with lib.maintainers; [ ethercrow ];
|
2016-08-18 11:02:37 +00:00
|
|
|
};
|
|
|
|
}
|