depot/third_party/nixpkgs/pkgs/applications/networking/tcpkali/default.nix
Default email a5adf1ddd8 Project import generated by Copybara.
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
2021-01-15 23:18:51 +01:00

26 lines
726 B
Nix

{lib, stdenv, autoreconfHook, fetchFromGitHub, bison}:
let version = "1.1.1"; in
stdenv.mkDerivation rec {
pname = "tcpkali";
inherit version;
src = fetchFromGitHub {
owner = "machinezone";
repo = "tcpkali";
rev = "v${version}";
sha256 = "09ky3cccaphcqc6nhfs00pps99lasmzc2pf5vk0gi8hlqbbhilxf";
};
postPatch = ''
sed -ie '/sys\/sysctl\.h/d' src/tcpkali_syslimits.c
'';
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ bison];
meta = {
description = "High performance TCP and WebSocket load generator and sink";
license = lib.licenses.bsd2;
inherit (src.meta) homepage;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ ethercrow ];
};
}