2015-02-06 16:02:54 +01:00
|
|
|
{ stdenv, fetchgit, openssl }:
|
|
|
|
|
|
|
|
let
|
2015-06-05 16:15:21 +02:00
|
|
|
version = "4.0.0";
|
2015-02-06 16:02:54 +01:00
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "wrk-${version}";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/wg/wrk.git";
|
2015-06-05 16:15:21 +02:00
|
|
|
rev = "7cdede916a53da253c995767a92eec36a245a2cc";
|
|
|
|
sha256 = "0m8i5pk2rj40v28bzrskkzw54v9jqdby52dwfcypannhlhgqnhy2";
|
2015-02-06 16:02:54 +01:00
|
|
|
};
|
|
|
|
|
2015-06-05 16:15:21 +02:00
|
|
|
buildInputs = [ openssl ];
|
|
|
|
|
2015-02-06 16:02:54 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp wrk $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2015-04-28 10:54:58 +02:00
|
|
|
description = "HTTP benchmarking tool";
|
2015-02-06 16:02:54 +01:00
|
|
|
homepage = http://github.com/wg/wrk;
|
|
|
|
longDescription = ''
|
|
|
|
wrk is a modern HTTP benchmarking tool capable of generating
|
|
|
|
significant load when run on a single multi-core CPU. It
|
|
|
|
combines a multithreaded design with scalable event notification
|
|
|
|
systems such as epoll and kqueue.
|
|
|
|
'';
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ragge ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|