nixpkgs/pkgs/applications/networking/tcpkali/default.nix

27 lines
742 B
Nix
Raw Normal View History

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