1 { lib, stdenv, fetchFromGitHub, luajit, openssl, perl }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-nCfA444p7krXOB3qRtDKWxWj9tsrDZsGf03ThtE1dXM=";
14 buildInputs = [ luajit openssl perl ];
16 makeFlags = [ "WITH_LUAJIT=${luajit}" "WITH_OPENSSL=${openssl.dev}" "VER=${version}" ];
20 substituteInPlace $f \
21 --replace "#include <luajit-2.0/" "#include <"
25 env.NIX_CFLAGS_COMPILE = "-DluaL_reg=luaL_Reg"; # needed since luajit-2.1.0-beta3
33 description = "HTTP benchmarking tool";
34 homepage = "https://github.com/wg/wrk";
36 wrk is a modern HTTP benchmarking tool capable of generating
37 significant load when run on a single multi-core CPU. It
38 combines a multithreaded design with scalable event notification
39 systems such as epoll and kqueue.
41 license = licenses.asl20;
42 maintainers = with maintainers; [ ragge ];
43 platforms = platforms.unix;