2016-08-23 10:39:35 +01:00
|
|
|
{ stdenv, fetchFromGitHub, openssl, perl }:
|
2015-02-06 15:02:54 +00:00
|
|
|
|
2016-08-23 10:39:35 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2015-02-06 15:02:54 +00:00
|
|
|
name = "wrk-${version}";
|
2016-08-23 10:39:35 +01:00
|
|
|
version = "4.0.2";
|
2015-02-06 15:02:54 +00:00
|
|
|
|
2016-08-23 10:39:35 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wg";
|
|
|
|
repo = "wrk";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1qg6w8xz4pr227h1gxrbm6ylhqvspk95hvq2f9iakni7s56pkh1w";
|
2015-02-06 15:02:54 +00:00
|
|
|
};
|
|
|
|
|
2016-08-23 10:39:35 +01:00
|
|
|
buildInputs = [ openssl perl ];
|
2015-06-05 15:15:21 +01:00
|
|
|
|
2015-02-06 15:02:54 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp wrk $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2015-04-28 09:54:58 +01:00
|
|
|
description = "HTTP benchmarking tool";
|
2015-02-06 15:02:54 +00: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;
|
|
|
|
};
|
|
|
|
}
|