3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/wrk/default.nix
2016-08-23 10:40:03 +01:00

35 lines
888 B
Nix

{ stdenv, fetchFromGitHub, openssl, perl }:
stdenv.mkDerivation rec {
name = "wrk-${version}";
version = "4.0.2";
src = fetchFromGitHub {
owner = "wg";
repo = "wrk";
rev = version;
sha256 = "1qg6w8xz4pr227h1gxrbm6ylhqvspk95hvq2f9iakni7s56pkh1w";
};
buildInputs = [ openssl perl ];
installPhase = ''
mkdir -p $out/bin
cp wrk $out/bin
'';
meta = with stdenv.lib; {
description = "HTTP benchmarking tool";
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;
};
}