about summary refs log tree commit diff
path: root/pkgs/applications/networking/tcpkali/default.nix
blob: 805a70f88e741fdb197d3ecd9387c0ba19d0edd2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{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 ];
    mainProgram = "tcpkali";
  };
}